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 201305212300) VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11 OS: Windows 7 User Comments: alied: pasted a jpql query in the jpql editor. BTW, it keeps saying "Hint: You need to build the project to get the correct results to your query." on the down panel. Stacktrace: java.lang.ClassNotFoundException: Log4J is forbidden at org.netbeans.modules.j2ee.persistence.util.CustomClassLoader.loadClass(CustomClassLoader.java:128) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:83) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:53) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
Created attachment 134825 [details] stacktrace
Created attachment 134885 [details] stacktrace opening the jpql query console
Exception comes from java.lang.ClassNotFoundException: Log4J is forbidden at org.netbeans.modules.j2ee.persistence.util.CustomClassLoader.loadClass(CustomClassLoader.java:128) at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Hint is ok, it's replaced with data after query execution and can't be replaced because of the issue. there was some reasons to prohibit log4j classes loading, but in my opinion it may better just to skip them rather then throw something, can you provide project example?
I was wrong regarding return null, cl should either return class or throw classnot found and related code shuld handle this exception. But I may need additional information to evaluate the issue, I tried to create a project with hibernate provider and run some simple jpql with success. Pleasse provide some steps.
exception seems valid but without additional details it's hard to decide on issue fix, to P4 for now.
*** Bug 231529 has been marked as a duplicate of this bug. ***
Created attachment 139284 [details] stacktrace run JPQL query
Created attachment 143500 [details] stacktrace When try to execute a simple jpql query in a database oracle 11g
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss