2 Replies Latest reply on Aug 8, 2003 8:37 AM by pm

    Error in org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCom

    pm Newbie

      From a Session Bean I am calling a CMP 2.0 Local Entity Bean's findByPrimaryKey() method and get the following exception. Any ideas ? Thanks very much in advance. Paul

      2003-08-07 14:25:11,779 FATAL [uk.co.autotrader.traderlink.ejb.facade.SessionFacadeBean] Finder Exception
      2003-08-07 14:25:11,779 ERROR [STDERR] javax.ejb.FinderException: Find failed: java.lang.ClassCastException
      2003-08-07 14:25:11,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:148)
      2003-08-07 14:25:11,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:44)
      2003-08-07 14:25:11,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:541)
      2003-08-07 14:25:11,781 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:336)
      2003-08-07 14:25:11,781 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:301)
      2003-08-07 14:25:11,781 ERROR [STDERR] at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:636)
      2003-08-07 14:25:11,781 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
      2003-08-07 14:25:11,782 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2003-08-07 14:25:11,782 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      2003-08-07 14:25:11,782 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1119)
      2003-08-07 14:25:11,782 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:73)
      2003-08-07 14:25:11,782 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:206)
      2003-08-07 14:25:11,782 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
      2003-08-07 14:25:11,782 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:73)
      2003-08-07 14:25:11,783 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:90)
      2003-08-07 14:25:11,783 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
      2003-08-07 14:25:11,783 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
      2003-08-07 14:25:11,783 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:111)
      2003-08-07 14:25:11,783 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
      2003-08-07 14:25:11,783 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
      2003-08-07 14:25:11,783 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105)
      2003-08-07 14:25:11,784 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
      2003-08-07 14:25:11,784 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
      2003-08-07 14:25:11,784 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:230)
      2003-08-07 14:25:11,784 ERROR [STDERR] at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
      2003-08-07 14:25:11,784 ERROR [STDERR] at $Proxy31.findByPrimaryKey(Unknown Source)
      2003-08-07 14:25:11,784 ERROR [STDERR] at uk.co.autotrader.traderlink.ejb.facade.SessionFacadeBean.checkAndGetDealerProfile(SessionFacadeBean.java:67)
      2003-08-07 14:25:11,784 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2003-08-07 14:25:11,785 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2003-08-07 14:25:11,785 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2003-08-07 14:25:11,785 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      2003-08-07 14:25:11,785 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
      2003-08-07 14:25:11,785 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      2003-08-07 14:25:11,785 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
      2003-08-07 14:25:11,786 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
      2003-08-07 14:25:11,786 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
      2003-08-07 14:25:11,786 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
      2003-08-07 14:25:11,786 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      2003-08-07 14:25:11,786 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
      2003-08-07 14:25:11,786 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
      2003-08-07 14:25:11,786 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
      2003-08-07 14:25:11,787 ERROR [STDERR] at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:81)
      2003-08-07 14:25:11,787 ERROR [STDERR] at $Proxy148.checkAndGetDealerProfile(Unknown Source)
      2003-08-07 14:25:11,787 ERROR [STDERR] at uk.co.autotrader.traderlink.web.actions.FrontPageAction.perform(FrontPageAction.java:234)
      2003-08-07 14:25:11,787 ERROR [STDERR] at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
      2003-08-07 14:25:11,787 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
      2003-08-07 14:25:11,787 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
      2003-08-07 14:25:11,788 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      2003-08-07 14:25:11,788 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2003-08-07 14:25:11,788 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      2003-08-07 14:25:11,788 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      2003-08-07 14:25:11,788 ERROR [STDERR] at uk.co.autotrader.traderlink.web.util.RegistrationFilter.doFilter(RegistrationFilter.java:533)
      2003-08-07 14:25:11,788 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
      2003-08-07 14:25:11,788 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      2003-08-07 14:25:11,789 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      2003-08-07 14:25:11,789 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      2003-08-07 14:25:11,789 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      2003-08-07 14:25:11,789 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      2003-08-07 14:25:11,789 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
      2003-08-07 14:25:11,789 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      2003-08-07 14:25:11,789 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      2003-08-07 14:25:11,790 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      2003-08-07 14:25:11,790 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      2003-08-07 14:25:11,790 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      2003-08-07 14:25:11,790 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
      2003-08-07 14:25:11,790 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      2003-08-07 14:25:11,790 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      2003-08-07 14:25:11,791 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      2003-08-07 14:25:11,791 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      2003-08-07 14:25:11,791 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      2003-08-07 14:25:11,791 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      2003-08-07 14:25:11,791 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
      2003-08-07 14:25:11,791 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      2003-08-07 14:25:11,791 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      2003-08-07 14:25:11,792 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      2003-08-07 14:25:11,792 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      2003-08-07 14:25:11,792 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      2003-08-07 14:25:11,792 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      2003-08-07 14:25:11,792 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      2003-08-07 14:25:11,792 ERROR [STDERR] at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
      2003-08-07 14:25:11,792 ERROR [STDERR] at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
      2003-08-07 14:25:11,793 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536)
      2003-08-07 14:25:11,794 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException: