Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDO Enhancer Problems

 
david andre king
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic