Ng Keng Yap wrote:

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-------/
/*From:*/ [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
/*Date:*/ Thursday, October 07, 2004 06:00:08
/*To:*/ [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
/*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)

I'm not familiar with the Castor Doclet project, but the exception you're receiving is clearly coming from there. The last maintainer of Castor Doclet was Mickael Guessant who is an inactive Castor committer. Unfortunately it appears that the Castor Doclet project has been abandoned and does not have an active committer.


BTW, if you're trying to generate Java code from an XSD as you state above, the Castor Doclet will not do this. You said yourself that you are using the Ant build descriptor from the Castor Doclet project. This Ant build descriptor is going to execute Castor Doclet, not the Castor Source Generator.

One of my additional goals to getting the XDoclet tags extended to cover all of Castor XML is to generate DDL from either the classes using more XDoclet taglets or the mapping descriptor or straight from the database using MiddleGen. I haven't thought much about this one yet.

Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\\`\\`");'


The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to