Dear Bruce,
 
This email follow up the previous mail.
 
Additional question:
I copied the build file from the castor doclet tutorial, what is the properties directory for?
 
Cheers,
Ng Keng Yap
 
-------Original Message-------
 
Date: Thursday, October 07, 2004 06:00:08
Subject: [castor-user] Xdoclet end up with NullPointerException
 
Dear Bruce,
 
I am now trying to test on the feasibility of the XSD castor Xdoclet Javadoc tags.
 
It returned a nullpointerexception...I just wonder what was missing?
 
What are the pitfalls that should be aware of ? May be it should be highlighted in the <castor Live>...
 
 
Thanks
 
Cheers,
Ng Keng Yap
 
Console:
C:\Documents and Settings\Ng Keng Yap\SMML\conf>ant -buildfile buildDDL.xml
Buildfile: buildDDL.xml
 
init:
 
mapping:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package com.smml.castor.bean...
  [javadoc] Constructing Javadoc information...
  [javadoc] 1: configuring the logger
  [javadoc] 1: configuring the tag handler factory
  [javadoc] 1: configuring the type factory
  [javadoc] java.lang.NullPointerException
  [javadoc]     at java.util.Properties$LineReader.readLine(Properties.java:365)
 
  [javadoc]     at java.util.Properties.load(Properties.java:293)
  [javadoc]     at org.castor.doclet.helper.TypeFactory.configure(TypeFactory.ja
va:58)
  [javadoc]     at org.castor.doclet.ddl.DDL.configure(DDL.java:95)
  [javadoc]     at org.castor.doclet.ddl.DDL.start(DDL.java:49)
  [javadoc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [javadoc]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
  [javadoc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
  [javadoc]     at java.lang.reflect.Method.invoke(Method.java:585)
  [javadoc]     at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java
:215)
  [javadoc]     at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:
91)
  [javadoc]     at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
  [javadoc]     at com.sun.tools.javadoc.Start.begin(Start.java:128)
  [javadoc]     at com.sun.tools.javadoc.Main.execute(Main.java:41)
  [javadoc]     at com.sun.tools.javadoc.Main.main(Main.java:31)
 

  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package com.smml.castor.bean...
  [javadoc] Constructing Javadoc information...
  [javadoc] 1: configuring the logger
  [javadoc] 1: configuring the tag handler factory
  [javadoc] 1: configuring the type factory
  [javadoc] 1: generating properties/mapping.xml...
 
buildDDL.xml:
 
<project name="Hibernate" default="mapping" basedir=".">
 <target name="init">
  <mkdir dir="src" INCREDI_LINK_PLACEHOLDER_5632 dir="lib" />
  <mkdir dir="classes" />
  <mkdir dir="properties" />
  <mkdir dir="ddl" />
 </target>
 <path id="classpath">
   <pathelement location="classes"/>
   <pathelement location="properties"/>
   <fileset dir="lib">
     <include name="*.jar"/>
   </fileset>
 </path>
 <target name="mapping" depends="init">
  <javadoc packagenames="com.smml.castor.bean.*"
         sourcepath="src"INCREDI_LINK_PLACEHOLDER_6332"true"
         doclet="org.castor.doclet.ddl.DDL"
         docletpath="lib/jdom.jar;lib/castor-doclet.jar"
         additionalparam=" -J-DFILE=ddl/create.sql  -J-DDB_TYPE=mysql -J-DLOG=1">
   <classpath refid="classpath"/>
  </javadoc>
  <javadoc packagenames="com.smml.castor.bean.*"
         sourcepath="src"INCREDI_LINK_PLACEHOLDER_6911"true"
         doclet="org.castor.doclet.jdo.JDO"
         docletpath="lib/jdom.jar;lib/castor-doclet.jar"
   additionalparam="-J-DFILE=properties/mapping.xml -J-DLOG=1">
   <classpath refid="classpath"/>
  </javadoc>
 </target>
</project>
 
Current dir structure:
C:\Documents and Settings\Ng Keng Yap\SMML\conf>dir
 Volume in drive C has no label.
 Volume Serial Number is D4B3-E48C
 
 Directory of C:\Documents and Settings\Ng Keng Yap\SMML\con
 
07/10/2004  05:23    <DIR>          .
07/10/2004  05:23    <DIR>          ..
07/10/2004  05:41             1,124 buildDDL.xml
22/09/2004  19:28         1,674,935 castor-0.9.5.3.jar
07/10/2004  05:23    <DIR>          classes
07/10/2004  05:18    <DIR>          classpath
06/10/2004  11:52               101 CompileObject.bat
25/09/2004  18:33                 0 currentDatabase.conf
05/10/2004  17:17             7,685 data.smml
05/10/2004  11:02               383 database.conf
06/10/2004  15:49            23,728 database.mapping
24/09/2004  11:46             1,914 database.xsd
05/10/2004  11:01             1,298 databases.conf
25/09/2004  15:56             2,110 databases.xsd
26/09/2004  11:44                 0 db.conf
07/10/2004  05:18    <DIR>          ddl
29/09/2004  23:01               725 drivers.conf
26/09/2004  11:22             1,547 drivers.xsd
04/09/2004  09:31             1,394 HowtoListerDOM.java
03/09/2004  11:46               578 JDBC_Driver.conf
07/10/2004  05:38    <DIR>          lib
07/10/2004  04:45               106 ObjectGen.bat
07/10/2004  05:39    <DIR>          properties
05/10/2004  16:50               477 recentDocuments.conf
28/09/2004  16:26               551 recentDocuments.xsd
24/09/2004  15:47               509 settings.ini
07/10/2004  04:42             7,403 smml.xsd
07/10/2004  05:03    <DIR>          src
 
 
 
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to