4 Replies Latest reply on Jul 5, 2005 11:08 PM by dhansen1969

    XAPoolDataSource

    jacktr

      hi
      I'm using jboss 2.4.4 and the DS ist pointbase. i made all the settings in the jboss.jcml, here they are:

      com.pointbase.jdbc.jdbcUniversalDriver



      MyDS
      org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
      jdbc:pointbase://localhost/aaaa

      nose
      nose
      10
      2
      false


      when i run jboss, i get the following error:

      [INFO,MyDS] XA Connection pool MyDS bound to java:/MyDS
      [ERROR,MyDS] Stopped
      java.lang.NullPointerException
      at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source)

      at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.jav
      a:412)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103
      )
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
      igurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      could you please help me?

        • 1. Re: XAPoolDataSource
          jacktr

          sorry for posting ist twice, it was a mistake

          • 2. Re: XAPoolDataSource
            pazu

            I know nothing about pointbase, but this is the kind of error occurs when for some reason JBoss couldn't get a connection from the database.

            Check the username and password. If pointbase has host-based access control, check if the host where JBoss is running has access. Try to obtain a connection from a sample program or from any other JDBC based program. Make sure your database is in order.

            • 3. Re: XAPoolDataSource
              jacktr

              thanks for your answer
              i did what you suggested, i wrote a simple jdbc programm, and my database is working. my password and username are both set. pointbase and jboss are running on the same machine.
              do you have an other idea of what could be the problem?

              • 4. Re: XAPoolDataSource
                dhansen1969

                Hello,

                I'm not 100% certain, but you might try using the XA DataSource that ships with Pointbase (com.pointbase.xa.xaDataSource).

                Also, the following is cut and pasted directly from the Pointbase Developer documentation:

                Important Note
                To successfully run your XA application with PointBase, you must obtain the following two JAR files from the Sun Microsystem?s website, ?jta.jar? and ?jdbc2_0-stdext.jar? and, include them in your classpath with the PointBase JAR?s.
                ? Download the ?jta.jar ?at http://java.sun.com/products/jta/index.html
                ? Download the ?jdbc2_0-stdext.jar? at http://java.sun.com/products/jdbc/
                download.html#corespec21.



                Hope that helps.
                Cheers,
                DavidH.