-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Javassist Exception
PostPosted: Fri Aug 28, 2009 4:48 pm 
Beginner
Beginner

Joined: Wed Dec 17, 2008 12:10 pm
Posts: 47
Hey Guys,

I have no clue where to start with this one...

I am getting this exception intermittently:

Code:
java.lang.NullPointerException
   at javassist.util.proxy.RuntimeSupport$DefaultMethodHandler.invoke(RuntimeSupport.java:37)
   at com.verani.common.backPage.User_$$_javassist_33.getHibernateLazyInitializer(User_$$_javassist_33.java)
   at org.directwebremoting.hibernate.H3BeanConverter.getClass(H3BeanConverter.java:139)
   at com.verani.common.dwr.H3SmartBeanConverter.getPropertyMapFromObject(H3SmartBeanConverter.java:39)
   at com.verani.common.dwr.H3SmartBeanConverter.convertInbound(H3SmartBeanConverter.java:157)
   ... 27 more


I have upgraded to Javassist 3.9.0...this seemed to have worked for a while, but after the application has been running for a while the exceptions started cropping up again...I can't see any reason for this. I found a few posts here referencing a similar exception, but the solutions did not work. My class (User) already has a no-arg constructor. Also, I cannot disable proxying of the class because that causes all kinds of other problems.


Top
 Profile  
 
 Post subject: Re: Javassist Exception
PostPosted: Fri Aug 28, 2009 4:51 pm 
Beginner
Beginner

Joined: Wed Dec 17, 2008 12:10 pm
Posts: 47
I forgot to mention...this only happens on my production server...even though it is running the same exact JVM as my development environment:
Code:
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)


Top
 Profile  
 
 Post subject: Re: Javassist Exception
PostPosted: Mon Aug 31, 2009 10:01 am 
Beginner
Beginner

Joined: Wed Dec 17, 2008 12:10 pm
Posts: 47
Anyone have any suggestions?? This is causing me a lot of trouble. I just upgraded to Hibernate 3.3.2 to hopefully solve the issue, but it did not. After the application has been running for a while, this error starts to crop up again!


Top
 Profile  
 
 Post subject: Re: Javassist Exception
PostPosted: Tue Sep 01, 2009 1:58 pm 
Beginner
Beginner

Joined: Wed Dec 17, 2008 12:10 pm
Posts: 47
Although I have side-stepped the problem for now (by disabling proxying for the class in question) I would like to know what is causing this? I eventually would like the class to be lazy loaded...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.