0 Replies Latest reply on Apr 4, 2002 6:38 AM by RITESH

    IllegalArgumentException on invoking remove() method

    RITESH Newbie

      Hi!
      I am using JBoss-2.4.3 with TomCat-3.2.3

      I am using UserTransaction in my JSP Page.
      On invoking the remove() method for deleting a record the java.lang.IllegalArgumentException exception is thrown, the complete details are shown below:

      [TheTICLVehicleNumbers] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
      java.lang.IllegalArgumentException: object is not an instance of declaring class; nested
      exception is:
      java.rmi.ServerException: Load failed; nested exception is:
      java.lang.IllegalArgumentException: object is not an instance of declaring class
      [TheTICLVehicleNumbers] java.rmi.ServerException: Load failed; nested exception is:
      [TheTICLVehicleNumbers] java.lang.IllegalArgumentException: object is not an instance of
      declaring class
      [TheTICLVehicleNumbers] java.lang.IllegalArgumentException: object is not an instance of declari
      ng class
      [TheTICLVehicleNumbers] at java.lang.reflect.Field.get(Native Method)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getPkFieldValue(J
      DBCCommand.java:663)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setPrimaryKeyPara
      meters(JDBCCommand.java:364)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.setPara
      meters(JDBCLoadEntityCommand.java:163)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCC
      ommand.java:159)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute
      (JDBCLoadEntityCommand.java:147)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(
      JAWSPersistenceManager.java:156)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPer
      sistenceManager.java:362)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
      (EntitySynchronizationInterceptor.java:286)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(Entity
      InstanceInterceptor.java:208)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLock
      Interceptor.java:136)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept
      orCMT.java:133)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
      InterceptorCMT.java:307)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM
      T.java:99)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInte
      rceptor.java:128)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.ja
      va:195)
      [TheTICLVehicleNumbers] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:427
      )
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke
      (JRMPContainerInvoker.java:489)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeCont
      ainer(GenericProxy.java:335)
      [TheTICLVehicleNumbers] at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(Enti
      tyProxy.java:133)
      [TheTICLVehicleNumbers] at $Proxy54.remove(Unknown Source)
      [TheTICLVehicleNumbers] at SCM.Work.Code.DSM.jsp._0002fSCM_0002fWork_0002fCode_0002fDSM_
      0002fjsp_0002fTICLList_0002ejspTICLList_jsp_1._jspService(_0002fSCM_0002fWork_0002fCode_0002fDSM
      _0002fjsp_0002fTICLList_0002ejspTICLList_jsp_1.java:525)
      [TheTICLVehicleNumbers] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.jav
      a:119)
      [TheTICLVehicleNumbers] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [TheTICLVehicleNumbers] at org.apache.jasper.servlet.JspServlet$JspCountedServlet.servic
      e(JspServlet.java:130)
      [TheTICLVehicleNumbers] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [TheTICLVehicleNumbers] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
      e(JspServlet.java:282)
      [TheTICLVehicleNumbers] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
      t.java:429)
      [TheTICLVehicleNumbers] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
      500)
      [TheTICLVehicleNumbers] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [TheTICLVehicleNumbers] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrappe
      r.java:405)
      [TheTICLVehicleNumbers] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [TheTICLVehicleNumbers] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.
      java:372)
      [TheTICLVehicleNumbers] at org.apache.tomcat.core.ContextManager.internalService(Context
      Manager.java:812)
      [TheTICLVehicleNumbers] at org.apache.tomcat.core.ContextManager.service(ContextManager.
      java:758)
      [TheTICLVehicleNumbers] at org.apache.tomcat.service.http.HttpConnectionHandler.processC
      onnection(HttpConnectionHandler.java:213)
      [TheTICLVehicleNumbers] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoi
      nt.java:416)
      [TheTICLVehicleNumbers] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadP
      ool.java:501)
      [TheTICLVehicleNumbers] at java.lang.Thread.run(Unknown Source)


      Could somebody please help me understand why this error is being thrown as some of my other forms are working fine.

      Thanks in advance