RE: [JBoss-user] NullPointerException in XAPoolDataSource.java:165

2001-06-08 Thread Allen Fogleson

unless there was a definition somewhere of OracleDS already i suppose. I
have mistakenly done that before :) and the second pool (on a different DB)
wouldnt bind to JNDI. I agree that you should then get a naming exception
though. (agreeing before it is pointed out)

Al


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Guy
Rouillier
Sent: Friday, June 08, 2001 2:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] NullPointerException in
XAPoolDataSource.java:165


Something is not right there.  "OracleDB" and "OracleDS" are just text
strings - they should both work.

- Original Message -
From: "David Filiatrault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 3:50 AM
Subject: Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165


> Guy: your example worked.  The difference that made it work was the
> specification of "OracleDB" rather than "OracleDS".



___
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



Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165

2001-06-08 Thread Guy Rouillier

Something is not right there.  "OracleDB" and "OracleDS" are just text
strings - they should both work.

- Original Message -
From: "David Filiatrault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 3:50 AM
Subject: Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165


> Guy: your example worked.  The difference that made it work was the
> specification of "OracleDB" rather than "OracleDS".



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165

2001-06-07 Thread Emerson

I uncommented this line in jboss.properties

jboss.xa.xidclass=oracle.jdbc.xa.OracleXid

and change my jboss.jcml to |:




 
 org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,orac
le.jdbc.driver.OracleDriver  
  

  

  
1476
true
default
false
  


 
  OracleDS
  org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
  jdbc:oracle:thin:@sc2:1521:cad
  cons_tre
  pcdigital
  2
  true

  180
  false
 




At 03:50 07/06/01 -0400, you wrote:
>Guy: your example worked.  The difference that made it work was the
>specification of "OracleDB" rather than "OracleDS".
>
>Whoever maintains http://www.jboss.org/documentation/HTML/ch03s05.html,
>please
>correct the example, as it specified "OracleDS", which doesn't work, and
>has
>caused at least two other people the same failure.
>
>The following is an example of the console log as it looks when Oracle
>connectivity works..
>
>[OracleDB] Starting
>[OracleDB] XA Connection pool OracleDB bound to java:/OracleDB
>[OracleDB] org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
>created new Co
>
>nnection (oracle.jdbc.driver.OracleConnection) with XAResource
>org.opentools.min
>
>erva.jdbc.xa.wrapper.XAResourceImpl and XAConnection
>org.opentools.minerva.jdbc.
>
>xa.wrapper.XAConnectionImpl.
>[OracleDB] No transaction right now.
>[OracleDB] Pool OracleDB [0/0/Unlimited] gave out new object:
>org.opentools.mine
>
>rva.jdbc.xa.wrapper.XAConnectionImpl@b8914
>[OracleDB] Pool OracleDB [0/1/Unlimited] returned object
>org.opentools.minerva.j
>
>dbc.xa.wrapper.XAConnectionImpl@b8914 to the pool.
>[OracleDB] Started
>[Service Control] Started 26 services
>[Default] JBoss 2.2.2 Started in 0m:33s
>
>Guy Rouillier wrote:
>
>> ----- Original Message -
>> From: "David Filiatrault" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Tuesday, June 05, 2001 11:32 AM
>> Subject: Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165
>>
>> > 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?
>>
>> No.  If it can't get a connection, you'll just get a null pointer, because
>> with no connection, nothing gets added to the connection pool and you have
>> no connection object.
>>
>> >
>> > 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
>> >
>>
>> Note that if you are running 2.2.2, the pool name has changed to JBossPool.
>> I haven't upgraded yet.
>>
>>   > name="DefaultDomain:service=XADataSource,name=OracleDB">
>> OracleDB
>> >
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
>> l
>> > name="URL">jdbc:oracle:thin:@localhost:1521:homedb
>> true
>> guyr
>> x
>>   
>>
>> ___
>> 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
>
>
Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165

2001-06-07 Thread David Filiatrault

Guy: your example worked.  The difference that made it work was the
specification of "OracleDB" rather than "OracleDS".

Whoever maintains http://www.jboss.org/documentation/HTML/ch03s05.html,
please
correct the example, as it specified "OracleDS", which doesn't work, and
has
caused at least two other people the same failure.

The following is an example of the console log as it looks when Oracle
connectivity works..

[OracleDB] Starting
[OracleDB] XA Connection pool OracleDB bound to java:/OracleDB
[OracleDB] org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
created new Co

nnection (oracle.jdbc.driver.OracleConnection) with XAResource
org.opentools.min

erva.jdbc.xa.wrapper.XAResourceImpl and XAConnection
org.opentools.minerva.jdbc.

xa.wrapper.XAConnectionImpl.
[OracleDB] No transaction right now.
[OracleDB] Pool OracleDB [0/0/Unlimited] gave out new object:
org.opentools.mine

rva.jdbc.xa.wrapper.XAConnectionImpl@b8914
[OracleDB] Pool OracleDB [0/1/Unlimited] returned object
org.opentools.minerva.j

dbc.xa.wrapper.XAConnectionImpl@b8914 to the pool.
[OracleDB] Started
[Service Control] Started 26 services
[Default] JBoss 2.2.2 Started in 0m:33s

Guy Rouillier wrote:

> - Original Message -
> From: "David Filiatrault" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 05, 2001 11:32 AM
> Subject: Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165
>
> > 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?
>
> No.  If it can't get a connection, you'll just get a null pointer, because
> with no connection, nothing gets added to the connection pool and you have
> no connection object.
>
> >
> > 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
> >
>
> Note that if you are running 2.2.2, the pool name has changed to JBossPool.
> I haven't upgraded yet.
>
>name="DefaultDomain:service=XADataSource,name=OracleDB">
> OracleDB
>  name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l
>  name="URL">jdbc:oracle:thin:@localhost:1521:homedb
> true
> guyr
> x
>   
>
> ___
> 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



Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165

2001-06-05 Thread Toby Allsopp

Guy Rouillier wrote:

> Note that if you are running 2.2.2, the pool name has changed to JBossPool.


2.2 is still Minerva.  2.4 will be JBossPool.

Toby.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165

2001-06-05 Thread Guy Rouillier


- Original Message -
From: "David Filiatrault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 11:32 AM
Subject: Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165


> 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?

No.  If it can't get a connection, you'll just get a null pointer, because
with no connection, nothing gets added to the connection pool and you have
no connection object.

>
> 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
>

Note that if you are running 2.2.2, the pool name has changed to JBossPool.
I haven't upgraded yet.

  
OracleDB
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
jdbc:oracle:thin:@localhost:1521:homedb
true
guyr
x
  



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165

2001-06-05 Thread David Filiatrault

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.(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.(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
> >
> >
> > --
> >   
> >> name="DefaultDomain:service=JdbcProvider">
> >   >
> name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,orac
> le.jdbc.driver.OracleDriver
> >
> >   
> >
> >> name="DefaultDomain:service=XADataSource,name=OracleDS">
> >   OracleDS
> >>
> name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l
> >
> >> name="URL">jdbc:oracle:thin:

Re: [JBoss-user] NullPointerException in XAPoolDataSource.java:165

2001-06-03 Thread Guy Rouillier

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.(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.(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
>
>
> --
>   
>name="DefaultDomain:service=JdbcProvider">
>  
name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,orac
le.jdbc.driver.OracleDriver
>
>   
>
>name="DefaultDomain:service=XADataSource,name=OracleDS">
>   OracleDS
>   
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
>
>name="URL">jdbc:oracle:thin:@neptune..com:1626:wbsldv
>   x
>   xr
>  
>
>
> ___
> 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