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 246910 - ClassCastException: dtech.felix.model.Dic_$$_javassist_2 cannot be cast to javassist.util.proxy.ProxyObject
Summary: ClassCastException: dtech.felix.model.Dic_$$_javassist_2 cannot be cast to ja...
Status: RESOLVED DUPLICATE of bug 243018
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-07 11:11 UTC by ser_berto
Modified: 2014-09-18 08:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 209500


Attachments
stacktrace (3.58 KB, text/plain)
2014-09-07 11:11 UTC, ser_berto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ser_berto 2014-09-07 11:11:24 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12
OS: Windows 7

User Comments:
ser_berto: Start HQL Query
any query eg. from User
SQL tab show query: select user0_.USERID as col_0_0_ from felix.user user0_
Result tab does not display anythin only 0 row(s) updated.; 12 row(s) selected.

GUEST: Follwoing tutorial https://netbeans.org/kb/docs/web/hibernate-webapp.html

GUEST: hibernate error

GUEST: Windows 7 Professional; Netbeans 8.0

GUEST: Can I use Chinese..Okey I use English. When I do the thing which I refer to the "Docs & Support"->"Using Hibernate in a web Application". Oh I use Netbeans 8, so the edition of Hibernate is 4.2.6. And when I do "Creating the FilmHelper.java Helper Class" -> "Enumerating Film Titles and rEtrieving Actors Using an HQL Query", I input the HQL"from Film". so it comes to the cruch

GUEST: when i run hql query it stopped at 80%

GUEST: Please, I need a help!
I m following the the tutorial (Using Hibernate in a Web Application with netbeans) an i m having this error by runing the HQL Query

GUEST: a

GUEST: While executing an HQL Query this exception is thrown and processing results stops at 80%




Stacktrace: 
java.lang.ClassCastException: dtech.felix.model.Dic_$$_javassist_2 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)
   at org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:3737)
   at org.hibernate.event.def.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:360)
   at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:281)
Comment 1 ser_berto 2014-09-07 11:11:28 UTC
Created attachment 149060 [details]
stacktrace
Comment 2 Sergey Petrov 2014-09-18 08:55:16 UTC
I hope it's duplicate of 243018

*** This bug has been marked as a duplicate of bug 243018 ***