0 Replies Latest reply on Nov 19, 2007 6:35 AM by 604984

    Strange error!

      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)