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.

Bug 242149

Summary: NoClassDefFoundError: model/item (wrong name: model/Item)
Product: javaee Reporter: MackSix
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207822
Attachments: stacktrace

Description MackSix 2014-02-20 14:40:48 UTC
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)
Comment 1 MackSix 2014-02-20 14:40:50 UTC
Created attachment 145437 [details]
stacktrace
Comment 2 Sergey Petrov 2014-02-20 17:06:39 UTC
in this case, specific query and specific entity code may matter
Comment 3 Sergey Petrov 2014-02-20 17:07:37 UTC
ok, I see, even it seems to be an issue, the query look wrong, model.item doesn't look as a valid target
Comment 4 Sergey Petrov 2014-07-29 13:39:07 UTC
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
Comment 5 Quality Engineering 2014-07-30 02:32:53 UTC
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