You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Tim Clotworthy <tc...@bka-inc.com> on 2003/05/05 00:32:11 UTC
Torque Tutorial Problem
Hello,
I am having a little problem getting the torque tutorial to run. I am
running the tutorial using Oracle 9i for the database on my laptop. When
trying to run the application, I get the following error:
C:\java\jakarta\torque-3.0>java com.kazmier.Bookstore
java.lang.NullPointerException: Connection object was null. This could
be due to a misconfiguration
of the DataSourceFactory. Check the logs and Torque.properties to better
determine the cause.
at
org.apache.torque.util.Transaction.rollback(Transaction.java:179)
at
org.apache.torque.util.Transaction.safeRollback(Transaction.java:221)
at com.kazmier.om.BasePublisher.save(BasePublisher.java:426)
at com.kazmier.om.BasePublisher.save(BasePublisher.java:401)
at com.kazmier.Bookstore.main(Bookstore.java:26)
C:\java\jakarta\torque-3.0>lsnrctl startup
And the torque log specifies the following corresponding information:
WARN - IDBroker is being used with db 'bookstore', which does not
support transactions. IDBroker attempts to use transactions to limit the
possibility of duplicate key generation. Without transactions,
duplicate key generation is possible if multiple JVMs are used or other
means are used to write to the database.
I am assuming that there is something wrong with my configuration that
might be causing this, but I'm not sure what to look for. Can anyone
give me any pointers?
Thanks in advance.
RE: Torque Tutorial Problem
Posted by Tim Clotworthy <tc...@bka-inc.com>.
Please disregard this, as I figured out the problem was due to the fact
that I was using an existing Oracle database instance that was not named
"bookstore", and had not completely changed all the parameters
appropriately.
> -----Original Message-----
> From: Tim Clotworthy [mailto:tclotworthy@bka-inc.com]
> Sent: Sunday, May 04, 2003 6:32 PM
> To: turbine-user@jakarta.apache.org
> Subject: Torque Tutorial Problem
>
> Hello,
> I am having a little problem getting the torque tutorial to run. I am
> running the tutorial using Oracle 9i for the database on my laptop.
When
> trying to run the application, I get the following error:
>
> C:\java\jakarta\torque-3.0>java com.kazmier.Bookstore
> java.lang.NullPointerException: Connection object was null. This could
> be due to a misconfiguration
> of the DataSourceFactory. Check the logs and Torque.properties to
better
> determine the cause.
> at
> org.apache.torque.util.Transaction.rollback(Transaction.java:179)
> at
> org.apache.torque.util.Transaction.safeRollback(Transaction.java:221)
> at com.kazmier.om.BasePublisher.save(BasePublisher.java:426)
> at com.kazmier.om.BasePublisher.save(BasePublisher.java:401)
> at com.kazmier.Bookstore.main(Bookstore.java:26)
> C:\java\jakarta\torque-3.0>lsnrctl startup
>
> And the torque log specifies the following corresponding information:
>
> WARN - IDBroker is being used with db 'bookstore', which does not
> support transactions. IDBroker attempts to use transactions to limit
the
> possibility of duplicate key generation. Without transactions,
> duplicate key generation is possible if multiple JVMs are used or
other
> means are used to write to the database.
>
> I am assuming that there is something wrong with my configuration that
> might be causing this, but I'm not sure what to look for. Can anyone
> give me any pointers?
>
>
> Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org