Troubleshooting Common Problems
Page 4 of 4

ClassNotFound When Accessing Demo Database

Users sometimes get ClassNotFound errors when trying to access some of the data in the demo database, toursDB. The errors look something like this:

Database access resulted in SQL exception:
SQLState XSDA9, Error code 20000, Message:
Class not found during restore of a serializable object
SQLState XJ001, Error code 0, Message:
Java exception: 'JBMSTours.City: java.lang.ClassNotFoundException'.

This is a classic class path error. You can't access City objects because the class definition for JBMSTours.City is not in your class path.

Be sure to add the /demo/programs/tours subdirectory in the cloudscape base directory to your class path. See Getting Acquainted with Class Path.