java.lang.ClassNotFoundException:org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider

时间:2015-03-31 19:35:55

标签: java netbeans eclipselink netbeans-8

我正在使用NetBeans IDE 8.0.1(在Win XP上)。我最近将EclipseLink从2.5.2升级到2.6.0。更新已成功传播到所需位置。没有与服务器相关的问题。它适用于Java EE应用程序。

我已将以下JAR文件放在${NetBeansHome}/java/modules/ext/eclipselink下。

  • eclipselink.jar
  • javax.persistence_2.1.0.v201304241213.jar
  • org.eclipse.persistence.jpa.jpql_2.6.0.v20150309-bf26070.jar
  • org.eclipse.persistence.jpa.modelgen_2.6.0.v20150309-bf26070.jar

就像更新之前一样。

在进行这些更改后,我无法通过 ctrl + space 获得IDE的智能。 ctrl + space 会导致抛出以下异常。

java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider starting from ModuleCL@cc3bba[org.netbeans.modules.j2ee.persistence] with possible defining loaders [ModuleCL@1d2f158[org.netbeans.modules.j2ee.eclipselink]] and declared parents [org.netbeans.MainImpl$BootClassLoader@d84586, ModuleCL@e6aaa7[org.netbeans.modules.queries], ModuleCL@af4256[org.netbeans.api.java], ModuleCL@1d96b0c[org.netbeans.modules.xml.lexer], ModuleCL@2c0dbb[org.netbeans.modules.editor.completion], ModuleCL@92f2e7[org.openide.actions], ModuleCL@85b121[org.netbeans.modules.xml.text], ModuleCL@131e02f[org.netbeans.modules.java.sourceui], ModuleCL@4079d6[org.netbeans.core.multiview], ModuleCL@b3a92a[org.netbeans.modules.dbapi], ...37 more]
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Caused: java.lang.NoClassDefFoundError: org/eclipse/persistence/jpa/jpql/tools/spi/IManagedTypeProvider
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.initResolvers(JPACodeCompletionProvider.java:127)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.<init>(JPACodeCompletionProvider.java:120)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider.createTask(JPACodeCompletionProvider.java:96)
    at org.netbeans.modules.editor.completion.CompletionImpl.completionQuery(CompletionImpl.java:721)
    at org.netbeans.modules.editor.completion.CompletionImpl.showCompletion(CompletionImpl.java:925)
    at org.netbeans.modules.editor.completion.CompletionImpl.access$2400(CompletionImpl.java:111)
    at org.netbeans.modules.editor.completion.CompletionImpl$CompletionShowAction.actionPerformed(CompletionImpl.java:1613)
    at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:644)
    at org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:404)
    at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250)
    at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
    at java.awt.Component.processKeyEvent(Component.java:6483)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2829)
    at java.awt.Component.processEvent(Component.java:6302)
    at java.awt.Container.processEvent(Container.java:2234)
    at java.awt.Component.dispatchEventImpl(Component.java:4881)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
    at java.awt.Component.dispatchEventImpl(Component.java:4752)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Window.dispatchEventImpl(Window.java:2739)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

上述JAR文件是否包含类org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider?是否需要将一些其他JAR文件添加到${NetBeansHome}/java/modules/ext/eclipselink的新版EclipseLink中?本质上是什么修复?


发现了一些错误报告,但它们已在相应版本中修复。


修改

org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProviderorg.eclipse.persistence.jpa.jpql_2.6.0.v20150309-bf26070.jar中可用,但根据IDE的日志,它似乎仍然引用某个旧{JAR}文件org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar。在过去的EclipseLink更新期间没有发生这种情况。

INFO [org.netbeans.JarClassLoader]: C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink\org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar does not exist, # of retries 0
INFO [org.netbeans.JarClassLoader]: file C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink exists. # of retries 0
INFO [org.netbeans.JarClassLoader]: C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink is directory and contains: [eclipselink.jar, javax.persistence_2.1.0.v201304241213.jar, org.eclipse.persistence.jpa.jpql_2.6.0.v20150309-bf26070.jar, org.eclipse.persistence.jpa.modelgen_2.6.0.v20150309-bf26070.jar]
INFO [org.netbeans.JarClassLoader]: Cannot open C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink\org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
java.io.FileNotFoundException: C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink\org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar (The system cannot find the file specified)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:220)
    at java.util.zip.ZipFile.<init>(ZipFile.java:150)
    at java.util.jar.JarFile.<init>(JarFile.java:166)
    at java.util.jar.JarFile.<init>(JarFile.java:145)
    at org.netbeans.JarClassLoader$JarSource$1.call(JarClassLoader.java:524)
Caused: java.util.zip.ZipException: C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink\org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar (The system cannot find the file specified)
    at org.netbeans.JarClassLoader$JarSource$1.call(JarClassLoader.java:526)
    at org.netbeans.JarClassLoader$JarSource$1.call(JarClassLoader.java:515)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.netbeans.JarClassLoader$JarSource.getJarFile(JarClassLoader.java:550)
[catch] at org.netbeans.JarClassLoader$JarSource.resource(JarClassLoader.java:591)
    at org.netbeans.Archive.getData(Archive.java:212)
    at org.netbeans.JarClassLoader$JarSource.readClass(JarClassLoader.java:577)
    at org.netbeans.JarClassLoader$Source.getClassData(JarClassLoader.java:374)
    at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:221)
    at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:259)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.initResolvers(JPACodeCompletionProvider.java:127)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.<init>(JPACodeCompletionProvider.java:120)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider.createTask(JPACodeCompletionProvider.java:96)
    at org.netbeans.modules.editor.completion.CompletionImpl.completionQuery(CompletionImpl.java:721)
    at org.netbeans.modules.editor.completion.CompletionImpl.showCompletion(CompletionImpl.java:925)
    at org.netbeans.modules.editor.completion.CompletionImpl.access$2400(CompletionImpl.java:111)
    at org.netbeans.modules.editor.completion.CompletionImpl$CompletionShowAction.actionPerformed(CompletionImpl.java:1613)
    at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:644)
    at org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:404)
    at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250)
    at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
    at java.awt.Component.processKeyEvent(Component.java:6483)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2829)
    at java.awt.Component.processEvent(Component.java:6302)
    at java.awt.Container.processEvent(Container.java:2234)
    at java.awt.Component.dispatchEventImpl(Component.java:4881)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
    at java.awt.Component.dispatchEventImpl(Component.java:4752)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Window.dispatchEventImpl(Window.java:2739)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
INFO [org.netbeans.JarClassLoader]: C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink\org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar does not exist, # of retries -1
INFO [org.netbeans.JarClassLoader]: file C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink exists. # of retries -1
INFO [org.netbeans.JarClassLoader]: C:\Program Files\NetBeans 8.0.1\java\modules\ext\eclipselink is directory and contains: [eclipselink.jar, javax.persistence_2.1.0.v201304241213.jar, org.eclipse.persistence.jpa.jpql_2.6.0.v20150309-bf26070.jar, org.eclipse.persistence.jpa.modelgen_2.6.0.v20150309-bf26070.jar]
SEVERE [global]
java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider starting from ModuleCL@e4568e[org.netbeans.modules.j2ee.persistence] with possible defining loaders [ModuleCL@27dbf9[org.netbeans.modules.j2ee.eclipselink]] and declared parents [ModuleCL@1fa7a03[org.netbeans.modules.projectapi], ModuleCL@3538b6[org.netbeans.modules.j2ee.core.utilities], ModuleCL@1df7c09[org.netbeans.modules.xml.catalog], org.netbeans.MainImpl$BootClassLoader@d84586, ModuleCL@12640e6[org.netbeans.modules.db], ModuleCL@54c934[org.netbeans.modules.lexer], ModuleCL@18d7b5f[org.netbeans.api.xml], ModuleCL@ab06aa[org.netbeans.modules.editor.lib], ModuleCL@11a7cb[org.netbeans.modules.j2ee.persistenceapi], ModuleCL@b42ace[org.netbeans.modules.xml.text], ...37 more]
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Caused: java.lang.NoClassDefFoundError: org/eclipse/persistence/jpa/jpql/tools/spi/IManagedTypeProvider
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.initResolvers(JPACodeCompletionProvider.java:127)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.<init>(JPACodeCompletionProvider.java:120)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider.createTask(JPACodeCompletionProvider.java:96)
    at org.netbeans.modules.editor.completion.CompletionImpl.completionQuery(CompletionImpl.java:721)
    at org.netbeans.modules.editor.completion.CompletionImpl.showCompletion(CompletionImpl.java:925)
    at org.netbeans.modules.editor.completion.CompletionImpl.access$2400(CompletionImpl.java:111)
    at org.netbeans.modules.editor.completion.CompletionImpl$CompletionShowAction.actionPerformed(CompletionImpl.java:1613)
    at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:644)
    at org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:404)
    at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250)
    at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
    at java.awt.Component.processKeyEvent(Component.java:6483)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2829)
    at java.awt.Component.processEvent(Component.java:6302)
    at java.awt.Container.processEvent(Container.java:2234)
    at java.awt.Component.dispatchEventImpl(Component.java:4881)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
    at java.awt.Component.dispatchEventImpl(Component.java:4752)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Window.dispatchEventImpl(Window.java:2739)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with the position attribute: [org-netbeans-modules-editor-java-JavaBracesMatcher.shadow], but some are: [org-netbeans-modules-editor-bracesmatching-LegacyEssMatcher.instance, org-netbeans-modules-editor-bracesmatching-DefaultMatcher.instance]
SEVERE [global]
java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider starting from ModuleCL@e4568e[org.netbeans.modules.j2ee.persistence] with possible defining loaders [ModuleCL@27dbf9[org.netbeans.modules.j2ee.eclipselink]] and declared parents [ModuleCL@1fa7a03[org.netbeans.modules.projectapi], ModuleCL@3538b6[org.netbeans.modules.j2ee.core.utilities], ModuleCL@1df7c09[org.netbeans.modules.xml.catalog], org.netbeans.MainImpl$BootClassLoader@d84586, ModuleCL@12640e6[org.netbeans.modules.db], ModuleCL@54c934[org.netbeans.modules.lexer], ModuleCL@18d7b5f[org.netbeans.api.xml], ModuleCL@ab06aa[org.netbeans.modules.editor.lib], ModuleCL@11a7cb[org.netbeans.modules.j2ee.persistenceapi], ModuleCL@b42ace[org.netbeans.modules.xml.text], ...37 more]
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Caused: java.lang.NoClassDefFoundError: org/eclipse/persistence/jpa/jpql/tools/spi/IManagedTypeProvider
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.initResolvers(JPACodeCompletionProvider.java:127)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.<init>(JPACodeCompletionProvider.java:120)
    at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider.createTask(JPACodeCompletionProvider.java:96)
    at org.netbeans.modules.editor.completion.CompletionImpl.completionQuery(CompletionImpl.java:721)
    at org.netbeans.modules.editor.completion.CompletionImpl.showCompletion(CompletionImpl.java:925)
    at org.netbeans.modules.editor.completion.CompletionImpl.access$2400(CompletionImpl.java:111)
    at org.netbeans.modules.editor.completion.CompletionImpl$CompletionShowAction.actionPerformed(CompletionImpl.java:1613)
    at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:644)
    at org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:404)
    at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250)
    at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
    at java.awt.Component.processKeyEvent(Component.java:6483)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2829)
    at java.awt.Component.processEvent(Component.java:6302)
    at java.awt.Container.processEvent(Container.java:2234)
    at java.awt.Component.dispatchEventImpl(Component.java:4881)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
    at java.awt.Component.dispatchEventImpl(Component.java:4752)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Window.dispatchEventImpl(Window.java:2739)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

1 个答案:

答案 0 :(得分:0)

org.eclipse.persistence.jpa.jpql.tools.spi.IManagedTypeProvider在 我的构建中的org.eclipse.persistence.jpa.jpql_2.6.1.qualifier.jar(来自git的2.6.1分支)但你已经拥有它了。也许尝试在NetBeans中创建包含所有这些JAR的新库,然后使用它来代替这个.JAR。

不幸的是我现在正在度假,但下周我可以看一下这个。我们可以在NetBeans的主分支中将EclipseLink更新为2.6.0。