3 Replies Latest reply on Jul 30, 2003 2:34 AM by ako

    java.sql.SQLException: Got a $Proxy65 ... expected was $Prox

    ako

      Hi,

      is there some who can help me with this mess ?!
      I use the jBoss 3.2.1 and I have tried to deploy an application EAR file that works fine with jBoss 2.2. Yes I know that is a litle bit old, but I have updated the deployment descriptor - and all other descriptor, jboss, jaws, web, aplication etc. - and is conform with the current supported last version. The entities are EJB 1.1 compliant and so described in the ejb-jar file.

      Case: I have a state full session bean and with this is associated a sort of cotainer, called profile, as entity bean - CMP 1.0 -. This container refers more other BMWs, CMPs all compliant with 1.0 version. As below listed I have got the reference of the container and get the reference of one of its components (entity bean) - com.agentscape.cymon.interaction.DialogManager (CMP 1.0). When I try to call amethod on the returned proxy get the SQL exception....

      Why ??? - Could be some missconfiguration in place ???
      Thank's.



      ....
      --------------------
      get: user.language
      nam: null
      num: 4
      pak: [userfoerderung][properties][session][user]
      -- : cymon/ProfileProperties:4395664354444539336
      -- : $Proxy64
      --------------------
      10:05:29,477 INFO [STDOUT] -----> cymon/ProfileProperties:4395664354444539336
      10:05:29,497 INFO [STDOUT] -- hashCode
      10:05:29,497 INFO [STDOUT] -- setProperty
      10:05:29,497 INFO [STDOUT] -- equals
      10:05:29,497 INFO [STDOUT] -- toString
      10:05:29,507 INFO [STDOUT] -- toString
      10:05:29,507 INFO [STDOUT] -- remove
      10:05:29,507 INFO [STDOUT] -- getProperty
      10:05:29,507 INFO [STDOUT] -- getProperty
      10:05:29,507 INFO [STDOUT] -- elements
      10:05:29,517 INFO [STDOUT] -- store
      10:05:29,517 INFO [STDOUT] -- keys
      10:05:29,517 INFO [STDOUT] -- addPropertyListener
      10:05:29,517 INFO [STDOUT] -- removePropertyListener
      10:05:29,517 INFO [STDOUT] -- isIdentical
      10:05:29,517 INFO [STDOUT] -- setProfile
      10:05:29,517 INFO [STDOUT] -- getHandle
      10:05:29,517 INFO [STDOUT] -- getPrimaryKey
      10:05:29,517 INFO [STDOUT] -- getEJBHome
      10:05:29,517 INFO [STDOUT] -- getProfile
      10:05:29,557 ERROR [LogInterceptor] EJBException, causedBy:
      java.sql.SQLException: Got a $Proxy65[cl=9102746, value=cymon/Profile:4395664354
      444539336] while looking for a javax.ejb.Handle[cl=1247640]
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.coerceToJavaType(JDBCUtil.jav
      a:588)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:449)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load
      ArgumentResults(JDBCAbstractCMPFieldBridge.java:369)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load
      InstanceResults(JDBCAbstractCMPFieldBridge.java:322)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoad
      EntityCommand.java:190)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoad
      EntityCommand.java:83)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreM
      anager.java:632)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreM
      anager.java:614)
      at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistence
      Manager.java:386)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.load
      Entity(CachedConnectionInterceptor.java:353)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntityS
      ynchronizationInterceptor.java:232)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
      ke(CachedConnectionInterceptor.java:186)
      at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentr
      anceInterceptor.java:82)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstance
      Interceptor.java:174)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
      tor.java:89)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
      Interceptor.java:53)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:243)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
      04)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:117)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
      ryFinderInterceptor.java:122)
      at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483
      )
      at org.jboss.ejb.Container.invoke(Container.java:674)
      at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)

      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
      a:83)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
      java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:4
      5)
      at org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:9
      7)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      at $Proxy64.getProperty(Unknown Source)
      at com.agentscape.cymon.session.SessionContext.get(SessionContext.java:2
      07)
      at com.agentscape.cymon.interaction.InteractionEngine.processSentence1(I
      nteractionEngine.java:629)
      at com.agentscape.cymon.interaction.InteractionEngine.processSentence(In
      teractionEngine.java:613)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.agentscape.cymon.interaction.statemachine.resource.Action.execute
      (Action.java:336)
      at com.agentscape.cymon.interaction.statemachine.resource.Actions.execut
      e(Actions.java:66)
      at com.agentscape.cymon.interaction.statemachine.resource.Rule.execute(R
      ule.java:195)
      at com.agentscape.cymon.interaction.statemachine.Transition.execute(Tran
      sition.java:176)
      at com.agentscape.cymon.interaction.statemachine.State.receiveEvent(Stat
      e.java:283)
      at com.agentscape.cymon.interaction.statemachine.StateMachine.receiveEve
      nt(StateMachine.java:482)
      at com.agentscape.cymon.interaction.statemachine.StateMachine.receiveEve
      nt(StateMachine.java:434)
      at com.agentscape.cymon.interaction.InteractionEngine.receiveEvent1(Inte
      ractionEngine.java:419)
      at com.agentscape.cymon.interaction.InteractionEngine$1.run(InteractionE
      ngine.java:189)
      10:05:29,647 ERROR [STDERR] java.rmi.ServerException: EJBException:; nested exce
      ption is:
      javax.ejb.EJBException: Internal error getting results for field member
      profile; CausedByException is:
      Got a $Proxy65[cl=9102746, value=cymon/Profile:4395664354444539336] whil
      e looking for a javax.ejb.Handle[cl=1247640]
      10:05:29,657 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.handleEx
      ception(LogInterceptor.java:346)
      10:05:29,657 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(L
      ogInterceptor.java:195)
      10:05:29,657 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInter
      ceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      10:05:29,657 ERROR [STDERR] at org.jboss.ejb.EntityContainer.internalInvoke(
      EntityContainer.java:483)
      10:05:29,657 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java
      :674)
      10:05:29,657 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor52.invoke(
      Unknown Source)
      10:05:29,657 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      10:05:29,657 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:3
      24)
      10:05:29,657 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatc
      her.invoke(ReflectedMBeanDispatcher.java:284)
      10:05:29,657 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
      eanServerImpl.java:549)
      10:05:29,657 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invok
      e(LocalInvoker.java:101)
      10:05:29,657 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invok
      e(InvokerInterceptor.java:83)
      10:05:29,657 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke
      (TransactionInterceptor.java:46)
      10:05:29,657 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(Se
      curityInterceptor.java:45)
      10:05:29,667 ERROR [STDERR] at org.jboss.proxy.ejb.EntityInterceptor.invoke(
      EntityInterceptor.java:97)
      10:05:29,667 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(Client
      Container.java:85)
      10:05:29,667 ERROR [STDERR] at $Proxy64.getProperty(Unknown Source)
      10:05:29,667 ERROR [STDERR] at com.agentscape.cymon.session.SessionContext.g
      et(SessionContext.java:207)
      10:05:29,667 ERROR [STDERR] at com.agentscape.cymon.interaction.InteractionE
      ngine.processSentence1(InteractionEngine.java:629)
      10:05:29,667 ERROR [STDERR] at com.agentscape.cymon.interaction.InteractionE
      ngine.processSentence(InteractionEngine.java:613)
      10:05:29,667 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
      Native Method)
      10:05:29,667 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
      ativeMethodAccessorImpl.java:39)
      10:05:29,667 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      10:05:29,667 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:3
      24)
      10:05:29,667 ERROR [STDERR] at com.agentscape.cymon.interaction.statemachine
      .resource.Action.execute(Action.java:336)
      10:05:29,667 ERROR [STDERR] at com.agentscape.cymon.interaction.statemachine
      .resource.Actions.execute(Actions.java:66)
      10:05:29,667 ERROR [STDERR] at com.agentscape.cymon.interaction.statemachine
      .resource.Rule.execute(Rule.java:195)
      10:05:29,667 ERROR [STDERR] at com.agentscape.cymon.interaction.statemachine
      .Transition.execute(Transition.java:176)
      10:05:29,677 ERROR [STDERR] at com.agentscape.cymon.interaction.statemachine
      .State.receiveEvent(State.java:283)
      10:05:29,677 ERROR [STDERR] at com.agentscape.cymon.interaction.statemachine
      .StateMachine.receiveEvent(StateMachine.java:482)
      10:05:29,677 ERROR [STDERR] at com.agentscape.cymon.interaction.statemachine
      .StateMachine.receiveEvent(StateMachine.java:434)
      10:05:29,677 ERROR [STDERR] at com.agentscape.cymon.interaction.InteractionE
      ngine.receiveEvent1(InteractionEngine.java:419)
      10:05:29,677 ERROR [STDERR] at com.agentscape.cymon.interaction.InteractionE
      ngine$1.run(InteractionEngine.java:189)
      10:05:29,677 ERROR [STDERR] Caused by: javax.ejb.EJBException: Internal error ge
      tting results for field member profile; CausedByException is:
      Got a $Proxy65[cl=9102746, value=cymon/Profile:4395664354444539336] whil
      e looking for a javax.ejb.Handle[cl=1247640]
      10:05:29,687 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbs
      tractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:379)
      10:05:29,687 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbs
      tractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:322)
      10:05:29,687 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
      Command.execute(JDBCLoadEntityCommand.java:190)
      10:05:29,687 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
      Command.execute(JDBCLoadEntityCommand.java:83)
      10:05:29,687 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManag
      er.loadEntity(JDBCStoreManager.java:632)
      10:05:29,687 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManag
      er.loadEntity(JDBCStoreManager.java:614)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.l
      oadEntity(CMPPersistenceManager.java:386)
      10:05:29,767 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedCo
      nnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationIn
      terceptor.invoke(EntitySynchronizationInterceptor.java:232)
      10:05:29,767 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedCo
      nnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.EntityReentranceInterce
      ptor.invoke(EntityReentranceInterceptor.java:82)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceIntercept
      or.invoke(EntityInstanceInterceptor.java:174)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.i
      nvoke(EntityLockInterceptor.java:89)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationIntercept
      or.invoke(EntityCreationInterceptor.java:53)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.i
      nvokeNext(AbstractTxInterceptor.java:84)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWit
      hTransactions(TxInterceptorCMT.java:243)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
      (TxInterceptorCMT.java:104)
      10:05:29,767 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.inv
      oke(SecurityInterceptor.java:117)
      10:05:29,777 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(L
      ogInterceptor.java:191)
      10:05:29,777 ERROR [STDERR] ... 31 more