com.odi
Class ClassNotRegisteredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.odi.ObjectStoreException
com.odi.SchemaException
com.odi.ClassNotRegisteredException
- All Implemented Interfaces:
- Serializable
- public final class ClassNotRegisteredException
- extends SchemaException
Thrown whenever an attempt is made to access a class that is not known to
PSE/PSE Pro because the class was not registered with a call to the
ClassInfo.register() method.
There are several situations that can cause this exception.
- CLASSPATH error - Check your CLASSPATH
environment variable and ensure that the system is loading
the annotated class files before the unannotated files.
- Postprocessing error - When you run the postprocessor
(osjcfp), you must run it on all classes in your
application in one execution. This ensures that all of your classes are
annotated correctly. For more complex applications, and
applications that use libraries, you might want to postprocess
classes in multiple batches. Check the documentation in
Chapter 8 of the user guide
to ensure that you are postprocessing batches correctly.
- Schema error - You might have changed the definition of
a class for which instances were already stored in the database.
For example, suppose you store an instance of X.Y in
a database and you associate it with a database root. Then you
move X.Y to a new package and it becomes the X.A.Y
class. You recompile and repostprocess the class. Now when you
try to use the database root to navigate to the instance of Y,
PSE/PSE Pro has no information about X.Y even though
an instance of it exists in the database.
- See Also:
- Serialized Form
Copyright 2005 Progress Software Corporation. All rights reserved.