wood burning stoves*
The moose likes Object Relational Mapping and the fly likes JDO Enhancer Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JDO Enhancer Problems" Watch "JDO Enhancer Problems" New topic
Author

JDO Enhancer Problems

david andre king
Greenhorn

Joined: Jun 24, 2002
Posts: 4
I am having an issue with the JDORI.
I have a class named Session.java, a package.jdo in the same package
directory /model/Session.class /model/package.jdo, I have compiled the
class, and am trying to enhance it. The following jar's are in my class path:
(jdo.jar, jdori.jar, jdori-enhancer.jar, btree.jar, jta.jar, antlr.jar)
I keep getting the following stack trace:
C:\jdo\model>java com.sun.jdori.enhancer.Main Session.class package.jdo
com.sun.jdori.enhancer.util.InternalError: assertion failed: cannot find class f
ile for class: model/Session
at com.sun.jdori.enhancer.util.Assertion.affirm(Unknown Source)
at com.sun.jdori.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.declar
eField(Unknown Source)
at com.sun.jdori.enhancer.core.Analyzer.scanFields(Unknown Source)
at com.sun.jdori.enhancer.core.Analyzer.scan(Unknown Source)
at com.sun.jdori.enhancer.core.Controller.scan(Unknown Source)
at com.sun.jdori.enhancer.core.Controller.enhanceClass(Unknown Source)
at com.sun.jdori.enhancer.filter.Enhancer.enhanceClassFile1(Unknown Sour
ce)
at com.sun.jdori.enhancer.filter.Enhancer.enhanceClassFile(Unknown Sourc
e)
at com.sun.jdori.enhancer.Main.enhanceClassFile(Unknown Source)
at com.sun.jdori.enhancer.Main.enhanceInputFiles(Unknown Source)
at com.sun.jdori.enhancer.Main.process(Unknown Source)
at com.sun.jdori.enhancer.Main.main(Unknown Source)
Fatal error while enhancing: JDO ENHANCER: An internal error occurred while enha
ncing input class; detailed message: assertion failed: cannot find class file fo
r class: model/Session
com.sun.jdori.enhancer.EnhancerFatalError: JDO ENHANCER: An internal error occur
red while enhancing input class; detailed message: assertion failed: cannot find
class file for class: model/Session
at com.sun.jdori.enhancer.filter.Enhancer.enhanceClassFile(Unknown Sourc
e)
at com.sun.jdori.enhancer.Main.enhanceClassFile(Unknown Source)
at com.sun.jdori.enhancer.Main.enhanceInputFiles(Unknown Source)
at com.sun.jdori.enhancer.Main.process(Unknown Source)
at com.sun.jdori.enhancer.Main.main(Unknown Source)
aborted with errors.

Any help
 
Consider Paul's rocket mass heater.
 
subject: JDO Enhancer Problems