aspose file tools*
The moose likes Object Relational Mapping and the fly likes ASSERTION FAILED Error while retrieving EntityManager instance In JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "ASSERTION FAILED Error while retrieving EntityManager instance In JPA" Watch "ASSERTION FAILED Error while retrieving EntityManager instance In JPA" New topic
Author

ASSERTION FAILED Error while retrieving EntityManager instance In JPA

chandr prakash
Ranch Hand

Joined: Jan 29, 2011
Posts: 32
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

Joined: Jan 29, 2011
Posts: 32
waiting for reply!......
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
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.

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
chandr prakash
Ranch Hand

Joined: Jan 29, 2011
Posts: 32
@James...thankX for reply....Kindly can you show your code please!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ASSERTION FAILED Error while retrieving EntityManager instance In JPA