Sorry. I repasted it below:
 

From: Kuns, Edward [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 24, 2006 1:26 PM
To: [email protected]
Subject: RE: [castor-user] XML Source Code Generator - v1.0.4 throws a NPE

Tom,
 
What Ralf said.  Also, your stack dump cut off characters beyond some column, so we don't know where the exception occurred.  It could have been line 1481 or 1484.
 
    Thanks
 
    Eddie


From: Carey, Tom [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 24, 2006 12:18 PM
To: '[email protected]'
Subject: [castor-user] XML Source Code Generator - v1.0.4 throws a NPE

Under v1.0.1, the schema generates all the classes successfully.  I also appropriately get prompted for name collisions as shown below. 
 
  Warning: A class name generation conflict has occured between element 'complexType:ProductInstanceType/grps' and element 'complexType:ComponenInstanceType/grps'.
  Please use a Binding file to solve this   problem.Continue anyway [not recommended] (y|n|?)n
 
Note: I'm looking into using a binding file to resolve those but haven't gotten to that yet.
 
Under v1.0.4, I get the following NPE attempting to run with the same schema input.  Note: I don't get the name collision prompts.
 
java.lang.NullPointerException
        at org.exolab.castor.builder.SourceFactory.processAttributes(SourceFactory.java:1484)
        at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.java:1630)
        at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.java:630)
        at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java:337)
        at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.java:594)
        at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java:337)
        at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java:817)
        at org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerator.java:974)
        at org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerator.java:977)
        at org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator.java:912)
        at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java:824)
        at org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerator.java:974)
        at org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerator.java:977)
        at org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator.java:919)
        at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java:824)
        at org.exolab.castor.builder.SourceGenerator.generateAllClassFiles(SourceGenerator.java:680)
        at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:646)
        at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:587)
        at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:489)
        at org.exolab.castor.builder.SourceGeneratorMain.main(SourceGeneratorMain.java:245)
 
If you need more info, let me know.
Tom Carey
Talk America
office:    215-862-6875
cell:      215-499-5771
im:        careytm1
 

Reply via email to