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.
Product Version: NetBeans IDE 8.0 (Build 201403052200) Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb) The HQL Query editor throw exception when trying to run a query. https://netbeans.org/kb/docs/web/hibernate-webapp.html Possibly it is related to the translator factory (see #241729). I tried with two different versions of the translator factory When using the default org.hibernate.hql.classic.ClassicQueryTranslatorFactory, I see the following exception in the editor: java.lang.ClassCastException: dvdrental.Language_$$_javassist_12 cannot be cast to javassist.util.proxy.ProxyObject at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy(JavassistLazyInitializer.java:147) at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:71) at org.hibernate.tuple.entity.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:631) If I try using org.hibernate.hql.internal.ClassicQueryTranslatorFactory as mentioned in issue #241729, the following exception is displayed in the editor: org.hibernate.HibernateException: could not instantiate QueryTranslatorFactory: org.hibernate.hql.internal.ClassicQueryTranslatorFactory at org.hibernate.cfg.SettingsFactory.createQueryTranslatorFactory(SettingsFactory.java:436) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:258)
p2, seems important, and need to reevaluate, but simple queries on fresh works fine, priority isn't final.
interesting discussion, I don't knwo why it works in some cases and may not work in another. I can reproduce with tutorial steps. I may need to rollback to older hibernate or somehow combine with another javassist version.
forget to add link https://hibernate.atlassian.net/browse/HHH-8778
seems fixed with http://hg.netbeans.org/web-main/rev/3ef9987079f3
Integrated into 'main-silver', will be available in build *201407080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3ef9987079f3 User: Sergey B. Petrov <sj-nb@netbeans.org> Log: #243018 change javassist classes loading way
*** Bug 246910 has been marked as a duplicate of this bug. ***