This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201402190001) VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13 OS: Windows 7 User Comments: MackSix: I don't know what I am doing, but anyhow I right clicked on a persistence.xml file and chose to do a JPQL query. I am trying to figure out how to do it on the PetCatalog demo that I am using a different database for. I entered "select i from model.item i" and that mad this error happen. Stacktrace: java.lang.NoClassDefFoundError: model/item (wrong name: model/Item) at java.lang.ClassLoader.defineClass1(ClassLoader.java:0) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
Created attachment 145437 [details] stacktrace
in this case, specific query and specific entity code may matter
ok, I see, even it seems to be an issue, the query look wrong, model.item doesn't look as a valid target
wasn't able to reproduce it easily, but hope http://hg.netbeans.org/web-main/rev/d34f557abf72 showld catch exception and show in jpql editor, instead of throw as nb error. exception itself is valid for wrong query but should be visible as query result instead of netbeans error
Integrated into 'main-silver', will be available in build *201407300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d34f557abf72 User: Sergey B. Petrov <sj-nb@netbeans.org> Log: #242149 do not throw NoClassDefFount to users