Yes, I know I'm using an unusual port. I verified it was working using
tnsping. If it was a problem connecting to Oracle, I would expect to see an SQL
Exception logged before this NullPointerException. Is this a valid expectation?
Does anybody have a jboss.jcml which does work with Oracle? If so, please post
it (and feel free to xxx out the password), as I've gotten two emails from other
users who say they have the same problem.
-David
Guy Rouillier wrote:
> Null pointer exceptions with Oracle are most frequently caused by failure to
> establish a connection. This can be due to a userid and password that is
> not right, or a bad URL. I notice your URL uses an unusual port number -
> 1626. The default one is 1521. Are you sure you have the correct port?
>
> ----- Original Message -----
> From: "David Filiatrault" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 03, 2001 2:10 PM
> Subject: [JBoss-user] NullPointerException in XAPoolDataSource.java:165
>
> > I got the following exception after doing the following:
> > 1. downloaded and installed jboss 2.2.2 with tomcat with jdk 1.3.1 on
> > Windows NT 4.0SP6a.
> > 2. Ran jboss_with_tomcat.bat, loaded fine.
> > 3. Added the Oracle settings according to the online manual to
> > jboss.jcml, changes are at the end of the message.
> >
> > I didn't disable any of the default databases, I thought I should be
> > able just to add the Oracle resources.
> >
> > ...
> > [OracleDS] Starting
> > [OracleDS] XA Connection pool OracleDS bound to java:/OracleDS
> > [OracleDS] Started
> > [OracleDB] Starting
> > [OracleDB] XA Connection pool OracleDB bound to java:/OracleDB
> > [OracleDB] Stopped
> > [OracleDB] java.lang.NullPointerException
> > [OracleDB] at
> > org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(
> > XAPoolDataSource.java:165)
> > [OracleDB] at
> > org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLo
> > ader.java:330)
> > [OracleDB] at
> > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
> > java:93)
> > [OracleDB] at java.lang.reflect.Method.invoke(Native Method)
> > [OracleDB] at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> > .java:1628)
> > [OracleDB] at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> > .java:1523)
> > [OracleDB] at
> > org.jboss.util.ServiceControl.start(ServiceControl.java:97)
> > [OracleDB] at java.lang.reflect.Method.invoke(Native Method)
> > [OracleDB] at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> > .java:1628)
> > [OracleDB] at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> > .java:1523)
> > [OracleDB] at org.jboss.Main.<init>(Main.java:217)
> > [OracleDB] at org.jboss.Main$1.run(Main.java:121)
> > [OracleDB] at java.security.AccessController.doPrivileged(Native
> > Method)
> > [OracleDB] at org.jboss.Main.main(Main.java:117)
> > [Service Control] Could not start
> > DefaultDomain:service=XADataSource,name=null
> > [Service Control] java.lang.NullPointerException
> > [Service Control] at
> > org.opentools.minerva.jdbc.xa.XAPoolDataSource.getCon
> > nection(XAPoolDataSource.java:165)
> > [Service Control] at
> > org.jboss.jdbc.XADataSourceLoader.startService(XAData
> > SourceLoader.java:330)
> > [Service Control] at
> > org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
> > Support.java:93)
> > [Service Control] at java.lang.reflect.Method.invoke(Native
> > Method)
> > [Service Control] at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> > rverImpl.java:1628)
> > [Service Control] at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> > rverImpl.java:1523)
> > [Service Control] at
> > org.jboss.util.ServiceControl.start(ServiceControl.ja
> > va:97)
> > [Service Control] at java.lang.reflect.Method.invoke(Native
> > Method)
> > [Service Control] at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> > rverImpl.java:1628)
> > [Service Control] at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> > rverImpl.java:1523)
> > [Service Control] at org.jboss.Main.<init>(Main.java:217)
> > [Service Control] at org.jboss.Main$1.run(Main.java:121)
> > [Service Control] at
> > java.security.AccessController.doPrivileged(Native Me
> > thod)
> > [Service Control] at org.jboss.Main.main(Main.java:117)
> > [Service Control] Started 27 services
> > [Default] JBoss 2.2.2 Started in 0m:28s
> >
> >
> > ----------------------
> > <!-- JDBC -->
> > <mbean code="org.jboss.jdbc.JdbcProvider"
> > name="DefaultDomain:service=JdbcProvider">
> > <attribute
> >
> name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,orac
> le.jdbc.driver.OracleDriver</attribute>
> >
> > </mbean>
> >
> > <mbean code="org.jboss.jdbc.XADataSourceLoader"
> > name="DefaultDomain:service=XADataSource,name=OracleDS">
> > <attribute name="PoolName">OracleDS</attribute>
> > <attribute
> >
> name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l</attribute>
> >
> > <attribute
> > name="URL">jdbc:oracle:thin:@neptune.xxxx.com:1626:wbsldv</attribute>
> > <attribute name="JDBCUser">xxxxx</attribute>
> > <attribute name="Password">xxxxxr</attribute>
> > </mbean>
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user