2 Replies Latest reply on Mar 14, 2006 8:00 AM by Mark Little

    Exception in JBoss (Phorum)

    Mark Little Master

      Author: Sebastiao
      Date: 09-24-04 15:01

      Hi,

      There's 2 things to think about posting the first message on this forum.

      Or I am the only man in the world using/evaluating Arjuna + JBoss (I know, it's a new product), or I am the only man having trouble.

      :)

      I need distributed transaction against distinct servers, them ... I can not use HSQLDB.

      First, in "Oracle Database Configuration" when you write "Note: only Oracle version 9i release 2 (9.0.2) is currently supported." you really want to write "Note: only Oracle version 9i release 2 (9.2.0) is currently supported." ? (version ok!?).

      Second, oracle thin drivers supports XA ? In other form, thin driver supports transactions distributed against containers ? It's not necessary to use oci ? The example saids: "...URL should be of the form jdbc:oracle:thin:@hostname:port:sid..."

      With all installed Ok (Jboss 3.2.5, Arjuna + JBoss, Oracle 9i 9.2.0.4), application deployed ok, ArjunaMS running, JBoss running, table created with CMP ok, I still having the following stack trace when running "ant client":

      client:
      [java] Setting up bank accounts...
      [java] javax.ejb.CreateException: Error checking if entity exists:org.jboss
      .util.NestedSQLException: Could not enlist in transaction on entering meta-aware
      object!javax.transaction.SystemException: enlistResource failed; - nested throw
      able: (javax.resource.ResourceException: Could not enlist in transaction on ente
      ring meta-aware object!javax.transaction.SystemException: enlistResource failed)

      [java] at org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand.befo
      reInsert(JDBCInsertPKCreateCommand.java:92)
      [java] at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.exec
      ute(JDBCAbstractCreateCommand.java:136)
      [java] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(
      JDBCStoreManager.java:562)
      [java] at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPP
      ersistenceManager.java:203)
      [java] at org.jboss.resource.connectionmanager.CachedConnectionIntercep
      tor.createEntity(CachedConnectionInterceptor.java:269)
      [java] at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java
      :725)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome
      (EntityContainer.java:1061)
      [java] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(Abstract
      Interceptor.java:88)
      [java] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
      Home(EntitySynchronizationInterceptor.java:204)
      [java] at org.jboss.resource.connectionmanager.CachedConnectionIntercep
      tor.invokeHome(CachedConnectionInterceptor.java:214)
      [java] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(Abstract
      Interceptor.java:88)
      [java] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En
      tityInstanceInterceptor.java:90)
      [java] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(Entity
      LockInterceptor.java:61)
      [java] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(En
      tityCreationInterceptor.java:28)
      [java] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstra
      ctTxInterceptor.java:88)
      [java] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
      InterceptorCMT.java:315)
      [java] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxIntercept
      orCMT.java:128)
      [java] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(Security
      Interceptor.java:94)
      [java] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIntercepto
      r.java:120)
      [java] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHom
      e(ProxyFactoryFinderInterceptor.java:93)
      [java] at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContai
      ner.java:478)
      [java] at org.jboss.ejb.Container.invoke(Container.java:743)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDis
      patcher.java:60)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
      Invoker.java:185)
      [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.ja
      va:473)
      [java] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.j
      ava:97)
      [java] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterce
      ptor.java:90)
      [java] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInte
      rceptor.java:46)
      [java] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityIntercepto
      r.java:53)
      [java] at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.ja
      va:173)
      [java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:8
      5)
      [java] at $Proxy58.create(Unknown Source)
      [java] at transaction.session.AccountSessionBean.createAccount(AccountS
      essionBean.java:70)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.
      invoke(StatelessSessionContainer.java:683)
      [java] at org.jboss.resource.connectionmanager.CachedConnectionIntercep
      tor.invoke(CachedConnectionInterceptor.java:185)
      [java] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.inv
      oke(StatelessSessionInstanceInterceptor.java:72)
      [java] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstra
      ctTxInterceptor.java:84)
      [java] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
      InterceptorCMT.java:315)
      [java] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM
      T.java:148)
      [java] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInte
      rceptor.java:120)
      [java] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.ja
      va:191)
      [java] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(Pr
      oxyFactoryFinderInterceptor.java:122)
      [java] at org.jboss.ejb.StatelessSessionContainer.internalInvoke(Statel
      essSessionContainer.java:331)
      [java] at org.jboss.ejb.Container.invoke(Container.java:723)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDis
      patcher.java:60)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBean
      Invoker.java:185)
      [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.ja
      va:473)
      [java] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvok
      er.java:360)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
      a:261)
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:148)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
      t.java:460)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
      ransport.java:701)
      [java] at java.lang.Thread.run(Thread.java:534)
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
      r(StreamRemoteCall.java:247)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
      ll.java:223)
      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
      [java] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unkn
      own Source)
      [java] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(
      JRMPInvokerProxy.java:135)
      [java] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterce
      ptor.java:96)
      [java] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInte
      rceptor.java:46)
      [java] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityIntercepto
      r.java:53)
      [java] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(Statel
      essSessionInterceptor.java:100)
      [java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:8
      5)
      [java] at $Proxy1.createAccount(Unknown Source)
      [java] at com.arjuna.jboss.demo.Client.setupBanking(Client.java:101)
      [java] at com.arjuna.jboss.demo.Client.main(Client.java:56)
      [java] Exception in thread "main"
      [java] Java Result: 1

      BUILD SUCCESSFUL
      Total time: 13 seconds

      Anyone can help ?

      Thanks in advance (excuse poor english)

      Sebastiao

      __________________________________
      Need really distributed transactions !!!

        • 1. Re: Exception in JBoss (Phorum)
          Mark Little Master

          Author: Mark Little
          Date: 09-26-04 14:54

          Hi Sebastiano,

          > I need distributed transaction against distinct servers, them
          > ... I can not use HSQLDB.
          >
          > First, in "Oracle Database Configuration" when you write
          > "Note: only Oracle version 9i release 2 (9.0.2) is currently
          > supported." you really want to write "Note: only Oracle version
          > 9i release 2 (9.2.0) is currently supported." ? (version
          > ok!?).

          We'll certainly double check the right phrase to use here.

          > Second, oracle thin drivers supports XA ? In other form, thin
          > driver supports transactions distributed against containers ?
          > It's not necessary to use oci ? The example saids: "...URL
          > should be of the form jdbc:oracle:thin:@hostname:port:sid..."

          You should use the Oracle JDBC driver mentioned in the manuals. These are the only ones that we certify against.

          > With all installed Ok (Jboss 3.2.5, Arjuna + JBoss, Oracle 9i
          > 9.2.0.4), application deployed ok, ArjunaMS running, JBoss
          > running, table created with CMP ok, I still having the
          > following stack trace when running "ant client":
          >

          [Stuff deleted]

          >
          > Thanks in advance (excuse poor english)

          You don't say which version of A+J you are using. Can you just confirm the version, your operating system (both for JBoss and for the back end Oracle database if it is different) and the JDK you are using?

          Thanks,

          Mark.

          • 2. Re: Exception in JBoss (Phorum)
            Mark Little Master

            Author: Kevin Conner
            Date: 10-04-04 17:06

            Hiya Sebastio.

            Have you made any progress on this issue?

            If this is still a problem can you attach a copy of the jboss server log file?

            Thanks,
            Kev