File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ASSERTION FAILED Error while retrieving EntityManager instance In JPA

 
chandr prakash
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
enviornment : EJB3.0,JPA

Actually i am writing session bean for retrieving EntityManager instance,But stuck up in error while running on weblogic server.



and session bean which is returning EntityManager instance



Error Description


m pretty new to this, so Im trying to post everything you need to understand my problem: How can i resolve this error?

persistent.xml


 
chandr prakash
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
waiting for reply!......
 
James Sutherland
Ranch Hand
Posts: 553
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you are trying to serialize an EntityManager. Probably not a good idea.

Make your SessionBean2 Local not Remote. Maybe also rethink what you are doing, maybe don't use a SessionBean for this.
 
chandr prakash
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@James...thankX for reply....Kindly can you show your code please!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic