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 - NoClassDefFoundError: model/item (wrong name: model/Item)
Summary: NoClassDefFoundError: model/item (wrong name: model/Item)
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-20 14:40 UTC by MackSix
Modified: 2014-07-30 02:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 207822


Attachments
stacktrace (10.34 KB, text/plain)
2014-02-20 14:40 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
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