4 Replies Latest reply on Mar 15, 2002 12:41 PM by jd_brennan

    Newbie Problems with Jboss 2.4.4 and Mysql

    lynggaard

      I have written a very simple entity (CMP) bean and deployed it but i cannot gte it to work

      In my JSP client, i can look it up the DB table is create, but when i call a create method i get:
      ------------------------------
      java.rmi.ServerException: RemoteException occurred in server thread; nested
      exception is:
      javax.transaction.TransactionRolledbackException: null
      Embedded Exception
      null; nested exception is:
      javax.ejb.EJBException: null
      Embedded Exception
      null
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:536)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source)
      at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:258)
      at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
      at $Proxy3.create(Unknown Source)
      at _ejbtest__jsp._jspService(/ejbtest.jsp:21)
      at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
      at com.caucho.jsp.Page.subservice(Page.java:485)
      at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:176)
      at com.caucho.server.http.Invocation.service(Invocation.java:278)
      at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
      at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:338)
      at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:270)
      at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: javax.transaction.TransactionRolledbackException: null
      Embedded Exception
      null; nested exception is:
      javax.ejb.EJBException: null
      Embedded Exception
      null
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:166)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:102)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:103)
      at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:421)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:387)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      ... 1 more
      Caused by: javax.ejb.EJBException: null
      Embedded Exception
      null
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:870)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:234)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:147)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:97)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:142)
      ... 17 more

      -------------------------

      As said im a newbie at JBoss and EJBs so I have no clue whats going on.

        • 1. Re: Newbie Problems with Jboss 2.4.4 and Mysql
          apeterson

          Did you ever find a solution to your problem here? I'm about to tackle the same evironment, Jboss 2.4.4. and MySQL. Can you do CMP using MySQL? Any advice you have to offer is much appreciated. Thanks.

          Andrew

          • 2. Re: Newbie Problems with Jboss 2.4.4 and Mysql
            jd_brennan

            I'm trying to get this working also, and I can't even
            get the JBoss 2.4.4 server to start up when I configure
            a MySQL connection pool:


            org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
            MySQLPool
            jdb:mysql://mysql1/test
            foo
            bar


            I get this error:

            [ERROR,MySQLPool] Stopped
            java.lang.NullPointerException
            at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source)
            at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)
            at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
            at java.lang.reflect.Method.invoke(Native Method)
            ...

            JD




            • 3. Re: Newbie Problems with Jboss 2.4.4 and Mysql
              davidjencks

              Your mysql config is wrong, so jboss can't get a connection. One obvious problem with what you quoted is the url not starting jdbc. Make sure you can connect standalone using the exact url in your config file before you blame jboss.

              • 4. Re: Newbie Problems with Jboss 2.4.4 and Mysql
                jd_brennan

                Thanks. That was my problem. Good idea testing
                standalone. I certainly didn't mean to blame JBoss.
                I love JBoss!