简体   繁体   English

Google Web Toolkit的Datanucleus错误

[英]Datanucleus error with the Google Web Toolkit

Im trying to use the GWT plugin with eclipse. 我正在尝试将GWT插件与Eclipse结合使用。 I have fresh installs of both done, but yet I get the following error: 我都完成了全新安装,但是却收到以下错误消息:

DataNucleus Enhancer (version 3.1.1) : Enhancement of classes Encountered a problem: Unexpected exception

On examining the log files I found this: 在检查日志文件时,我发现:

java.lang.RuntimeException: Unexpected exception
at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:76)
at com.google.appengine.tools.enhancer.Enhance.<init>(Enhance.java:71)
at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:51)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:74)
... 2 more
Caused by: java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.datanucleus.enhancer.asm.ASMClassEnhancer.getClassNameForFileName(ASMClassEnhancer.java:272)
at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:727)
at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:525)
at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1258)
... 7 more

I tried installing a new version of Datanucleus from the site, but the issue persists. 我尝试从该站点安装新版本的Datanucleus,但问题仍然存在。

Earlier I had a version of Eclipse running on my C:/ and it worked perfectly. 早些时候,我在C:/上运行了一个Eclipse版本,并且运行良好。 I un-instlled that one and moved it to another drive, the problem stated after that. 我取消安装该驱动器,然后将其移至另一驱动器,之后出现了问题。

I am very new to both Java and Eclipse and I don't exactly understand the problem. 我对Java和Eclipse都是新手,但我不太了解这个问题。 Any help would be appreciated. 任何帮助,将不胜感激。

Details about my system: 有关我的系统的详细信息:

Windows 7 
C:\Users\Shaunak>java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

PATH: 路径:

 C:\Ruby193\bin;C:\Ruby200-x64\bin;C:\Program Files (x86)\Google\google_appengine\;C:\ant\apache-ant-1.9.4\bin;F:\Program Files\AndroidStudio\sdk\tools;F:\Program Files\AndroidStudio\sdk\platform-tools

ANDROID_HOME ANDROID_HOME

F:\\Program Files\\AndroidStudio\\sdk F:\\ Program Files \\ AndroidStudio \\ sdk

ANT_HOME ANT_HOME

C:\\ant\\apache-ant-1.9.4 C:\\ ant \\ apache-ant-1.9.4

PATH (System Variable) PATH(系统变量)

  C:\ProgramData\Oracle\Java\javapath;C:\Python34\;C:\Python34\Scripts;Z:\.sys\miniperl\bin;Z:\.sys\php;C:\Tcl\bin;c:\program files (x86)\imagemagick-6.5.1-q8;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\NEST4C-1.1;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ASF_Tools\MapReady 3.1;C:\Program Files (x86)\ASF_Tools\MapReady 3.1\lib;C:\Program Files\MATLAB\R2012a\runtime\win64;C:\Program Files\MATLAB\R2012a\bin;%systemroot%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;F:\Program Files (x86)\Git\cmd;C:\WT-NMP\bin

You may need to check you project classpath. 您可能需要检查项目类路径。 Are you still referencing older versions of the DataNucleus library? 您是否还在引用旧版本的DataNucleus库? If you just moved files without touching code, I would blame libraries versions. 如果您只是移动文件而不接触代码,那我就应该归咎于库版本。

My bet is that depending on how you moved you Eclipse files or on what you did when downloading/installing a newer version of Eclipse you could have newer GWT-GAE libraries that are not compatible with the ones your project was using. 我敢打赌,根据您移动Eclipse文件的方式或下载/安装较新版本的Eclipse时的操作,您可能会拥有与您的项目使用的库不兼容的更新的GWT-GAE库。 Even if you are trying to run your code with newer ones (as you said you tried installing a new version of Datanucleus), or even if there's a certain set of libraries that is Eclipse's default or only GAE SDK, your project might want to be run with an older version. 即使您尝试使用更新的代码运行代码(如您所说的,尝试安装新版本的Datanucleus),或者即使有某些库集是Eclipse的默认库,也只有GAE SDK,您的项目可能还是使用旧版本运行。

Which versions of GWT and GAE where you using before moving Eclipse? 在迁移Eclipse之前,您使用了哪个版本的GWT和GAE? Which versions of Google-related plugins or libraries are you using after relocating Eclipse? 迁移Eclipse后,您正在使用哪个版本的Google相关插件或库?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM