Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Strange error!

604984Nov 19 2007
I'm using an enum for a property called type (of type GeoType). My application works correctly on normal tomcat startup, but whenever tomcat is about to republish, the following error happens. I traced the code to the source of TopLink essentials, and to my surprise, both expected and set parameters where of type GeoPos$GeoType. I think this can be a class loader problem. Any hint?

java.lang.IllegalArgumentException: You have attempted to set a value of type class mypackage.model.GeoPos$GeoType for parameter type with expected type of class mypackage.model.GeoPos$GeoType from query string SELECT pos FROM GeoPos pos WHERE pos.type = :type .
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.setParameterInternal(EJBQueryImpl.java:663)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2007
Added on Nov 19 2007
0 comments
479 views