Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Ejb NotSerializableException ???

 
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!
 
Ranch Hand
Posts: 2713
  • 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??
 
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic