my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Persistence IllegalArgumentException in EntityManager" Watch "Persistence IllegalArgumentException in EntityManager" New topic
Author

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

Thanks
Pradyut>


Pradyut
http://pradyut.tk/
Pradyut Bhattacharya
Ranch Hand

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



Thanks
Pradyut>
 
wood burning stoves
 
subject: Persistence IllegalArgumentException in EntityManager
 
Similar Threads
How to create a Template for EntityManager in a WebApplication
JPA - Hibernate - query.getResultList() returns 3 null values.
Serious error in JPA with @Version
JPA with JSF
update using JPA