This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Persistence IllegalArgumentException in EntityManager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Persistence IllegalArgumentException in EntityManager" Watch "Persistence IllegalArgumentException in EntityManager" New topic

Persistence IllegalArgumentException in EntityManager

Pradyut Bhattacharya
Ranch Hand

Joined: Aug 12, 2004
Posts: 63
i m trying to retrieve a table using persistence framework

the code i have written is in simple java class file in webapplication

the code in the java class

But on running this i m getting a IllegalArgumentException
the full exception being

I think the entity classes are not initialized or they have not connected with the database
Thats why the IllegalArgumentException

Please any help


Pradyut Bhattacharya
Ranch Hand

Joined: Aug 12, 2004
Posts: 63
I could correct it with some changes in code...

I agree. Here's the link:
subject: Persistence IllegalArgumentException in EntityManager
Similar Threads
Serious error in JPA with @Version
JPA with JSF
update using JPA
How to create a Template for EntityManager in a WebApplication
JPA - Hibernate - query.getResultList() returns 3 null values.