db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu DELAHAIS <dela_...@yahoo.fr>
Subject Re: Problem with torque.init
Date Wed, 30 Apr 2003 15:40:40 GMT
Hi Graham,

Thanks for you anwser. I had a look in the torque.log,
but it doesn't really help me. It's just said what I
found by myself..;

INFO - Logging has been configured by Torque.
DEBUG - Starting initAdapters
DEBUG - Starting initDSF
DEBUG - handle: default DataSourceFactory:
org.apache.torque.dsfactory.TorqueDataSourceFactory
DEBUG - Starting initCPDS
ERROR - 
java.lang.NullPointerException
	at
org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:132)
	at
org.apache.torque.dsfactory.TorqueDataSourceFactory.initialize(TorqueDataSourceFactory.java:109)
	at
org.apache.torque.Torque.initDataSourceFactories(Torque.java:330)
	at
org.apache.torque.Torque.initialize(Torque.java:239)
	at org.apache.torque.Torque.init(Torque.java:415)
	at org.apache.torque.Torque.init(Torque.java:395)
	at
fr.unis.cms.recherche.recherche.main(recherche.java:28)
ERROR - 
java.lang.NullPointerException
	at
org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:132)
	at
org.apache.torque.dsfactory.TorqueDataSourceFactory.initialize(TorqueDataSourceFactory.java:109)
	at
org.apache.torque.Torque.initDataSourceFactories(Torque.java:330)
	at
org.apache.torque.Torque.initialize(Torque.java:239)
	at org.apache.torque.Torque.init(Torque.java:415)
	at org.apache.torque.Torque.init(Torque.java:395)
	at
fr.unis.cms.recherche.recherche.main(recherche.java:28)
rethrown as 
org.apache.torque.TorqueException
	at
org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:149)
	at
org.apache.torque.dsfactory.TorqueDataSourceFactory.initialize(TorqueDataSourceFactory.java:109)
	at
org.apache.torque.Torque.initDataSourceFactories(Torque.java:330)
	at
org.apache.torque.Torque.initialize(Torque.java:239)
	at org.apache.torque.Torque.init(Torque.java:415)
	at org.apache.torque.Torque.init(Torque.java:395)
	at
fr.unis.cms.recherche.recherche.main(recherche.java:28)
Caused by: java.lang.NullPointerException
	at
org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:132)
	... 6 more

You wrote you had the same problem. How did you solve
it?
Thanks 

Matthieu


 --- Graham Leggett <minfrin@sharp.fm> a écrit : >
Matthieu DELAHAIS wrote:
> 
> > The problem is that my program didn't make the
> > torque.init... I trace the program and I found the
> > problem was in the class TorqueDataSourceFactory
> on
> > the method ConnectionPoolDataSource
> > initCPDS(Configuration configuration). The problem
> is
> > that the line :
> > Configuration c =
> configuration.subset("connection");
> > return null (c = null);
> > Any idea will be very welcome!
> 
> Unfortunately the method really stupidly returns
> null on connection 
> failure, instead of throwing an exception - I
> recently experienced this 
> problem.
> 
> Basically torque is not connecting to your database,
> possibly because it 
> is not reading the config file correctly.
> Unfortunately torque doesn't 
> seem to throw an exception on config file being
> missing either, which 
> doesn't help you either. To make sure your config
> file is being read, 
> make sure that a file called torque.log is appearing
> - there should be 
> some clues in there.
> 
> Good luck!
> 
> Regards,
> Graham
> -- 
> -----------------------------------------
> minfrin@sharp.fm		"There's a moon
> 					over Bourbon Street
> 						tonight..."
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail:
> torque-user-help@db.apache.org
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

Mime
View raw message