0 Replies Latest reply on Aug 15, 2002 6:40 PM by 3004

    jdoc: kodo-jdoee.jar vs. kodo-jdo.jar

    3004
      When I recompile my classes and run jdoc from kodo-jdoee.jar, I get:

      C:\aml\src\WEB-INF\classes>jdoc system.jdo
      Exception in thread "main" java.lang.NullPointerException
      at java.io.Reader.<init>(Reader.java:61)
      at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
      at
      com.solarmetric.kodo.meta.JDOMetaDataParser.getDocType(Unknown Source
      )
      at
      com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(U
      nknown Source)
      at
      com.solarmetric.kodo.meta.JDOMetaDataParser.parseMetaData(Unknown Sou
      rce)
      at
      com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(U
      nknown Source)
      at
      com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(U
      nknown Source)
      at com.solarmetric.kodo.meta.ClassMetaData.newInstance(Unknown
      Source)
      at com.solarmetric.kodo.meta.ClassMetaData.getInstance(Unknown
      Source)
      at
      com.solarmetric.kodo.impl.jdbc.ormapping.MetaDataVerifier.main(Unknow
      n Source)
      Exception in thread "main" java.lang.NullPointerException
      at java.io.Reader.<init>(Reader.java:61)
      at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
      at
      com.solarmetric.kodo.meta.JDOMetaDataParser.getDocType(Unknown Source
      )
      at
      com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(U
      nknown Source)
      at
      com.solarmetric.kodo.meta.JDOMetaDataParser.parseMetaData(Unknown Sou
      rce)
      at
      com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(U
      nknown Source)
      at
      com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(U
      nknown Source)
      at com.solarmetric.kodo.meta.ClassMetaData.newInstance(Unknown
      Source)
      at com.solarmetric.kodo.meta.ClassMetaData.getInstance(Unknown
      Source)
      at com.solarmetric.kodo.enhance.JDOEnhancer.<init>(Unknown Source)
      at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(Unknown Source)
      at com.solarmetric.kodo.enhance.JDOEnhancer.main(Unknown Source)



      However, when I run jdoc from kodo-jdo.jar (everything else unchanged),
      it is successful:


      C:\aml\src\WEB-INF\classes>set
      CLASSPATH=c:\kodo-jdo-2.3.0\lib\kodo-jdo.jar;%CLA
      SSPATH%

      C:\aml\src\WEB-INF\classes>jdoc system.jdo
      Enhancing type "class com.factor3.aml.domain.Entity"...
      Enhancing type "class com.factor3.aml.domain.Person"...
      Enhancing type "class com.factor3.aml.domain.Account"...
      Enhancing type "class com.factor3.aml.domain.Organization"...
      Enhancing type "class com.factor3.aml.domain.Vessel"...
      Enhancing type "class com.factor3.aml.domain.Association"...
      Enhancing type "class com.factor3.aml.domain.Position"...
      Enhancing type "class com.factor3.aml.domain.EntityAddress"...
      Enhancing type "class com.factor3.aml.domain.Address"...
      Enhancing type "class com.factor3.aml.domain.EntityTelephone"...
      Enhancing type "class com.factor3.aml.domain.Telephone"...
      Enhancing type "class com.factor3.aml.domain.Activity"...
      Enhancing type "class com.factor3.aml.domain.Transfer"...
      Enhancing type "class com.factor3.aml.domain.Trade"...
      Enhancing type "class com.factor3.aml.domain.Credential"...
      Enhancing type "class com.factor3.aml.domain.Report"...
      Enhancing type "class com.factor3.aml.domain.Country"...
      Enhancing type "class com.factor3.aml.domain.Province"...
      Enhancing type "class com.factor3.aml.domain.Instrument"...

      C:\aml\src\WEB-INF\classes>javap com.factor3.aml.domain.Entity
      Compiled from Entity.java
      public abstract class com.factor3.aml.domain.Entity extends
      java.lang.Object imp
      lements java.io.Serializable, javax.jdo.spi.PersistenceCapable {
      protected static java.text.SimpleDateFormat df1;