Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ejb NotSerializableException ???  RSS feed

 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a session bean and some other entity beans. the entity beans have only local interface because only the session bean will use them. but when I invoke the session bean from the web layer, the weblogic tell me java.io.NotSerializableException error. Is that mean I cannot set the entity beans to local?
any help is appliciate!
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remote Session Bean to colocated Local Entity Bean is fine.
Are the parameters passed to your Session Bean and the value returned Serializable? If not, then you have a problem.
[ September 26, 2002: Message edited by: Chris Mathews ]
 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u mean only the value transfered between the web layer and the session should be seriable. but how about the values between the session bean and the entity bean?
in face, the weblogic told me that the implementation of the entity bean's local home interface has NotSerializableException.
I've check my code times, but found no error. could somebody help me??
 
Lipman Li
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maybe it is deployment matter, too.
how you deploy your EJB(application), is it in the same jar file(ear file)? or development in exploded directory?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!