I am new to the OJB and was trying out the tutorials. I am able to run the JDO tutorial fine connecting to a MySQL db. In order to understand OJB better, I tried to duplicate the same tutorial in a different directory.
The following output shows the error I am getting.. I have no idea what could be wrong... can some kind souls help me out here ?
There is the "javax.jdo.JDOUserException: Class given to getExtent does not implement javax.jdo.spi.PersistenceCapable" error ...
Tracing the code, this error is thrown from the
Collection allProducts = (Collection)query.execute();
thanks ... merlin
====================
_ _
__ (_)| |_
/ _\| || _ \ ~ be persistent ~
\__/| ||___/ v. 1.0.rc4
/_/Welcome to the OJB JDO RI tutorial application
[ 0 ] List all product entries
[ 1 ] Enter a new product
[ 2 ] Edit a product entry
[ 3 ] Delete a product entry
[ 4 ] Quit Application
Type in number to select a use case
0
The list of available products:
[JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false
query = [EMAIL PROTECTED]
javax.jdo.JDOUserException: Class given to getExtent does not implement javax.jdo.spi.PersistenceCapable
at com.sun.jdori.common.PersistenceManagerImpl.getExtent(Unknown Source)
at com.sun.jdori.common.query.QueryImpl.checkCandidates(Unknown Source)
at com.sun.jdori.common.query.QueryImpl.execute(Unknown Source)
at org.apache.ojb.tutorial5.UCListAllProducts.apply(UCListAllProducts.java:36)
at org.apache.ojb.tutorial5.Application.run(Application.java:96)
at org.apache.ojb.tutorial5.Application.main(Application.java:66)
Cannot close PersistenceManager while transaction is still active.
[ 0 ] List all product entries [ 1 ] Enter a new product [ 2 ] Edit a product entry [ 3 ] Delete a product entry [ 4 ] Quit Application Type in number to select a use case 4 bye....
_________________________________________________________________
Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ at only S$36 including GST
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
