Jira bug created: CASTOR-1659 -----Original Message----- From: Ralf Joachim [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 24, 2006 1:25 PM To: [email protected] Subject: Re: [castor-user] XML Source Code Generator - v1.0.4 throws a NPE
Hi Tom, can you please create a bug report at http://jira.codehaus.org/browse/CASTOR and attach all XSD and instructions for us to reproduce the problem. Regards Ralf Carey, Tom schrieb: > 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 :148 > at > org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav a:16 > at > org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav a:63 > at > org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java: 337) > at > org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav a:59 > 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(SourceGenerato r.ja > at > org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato r.ja > at > org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator .jav > at > org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java :824 > at > org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato r.ja > at > org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato r.ja > at > org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator .jav > at > org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java :824 > at > org.exolab.castor.builder.SourceGenerator.generateAllClassFiles(SourceGenera tor. > at > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav a:64 > at > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav a:58 > at > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav a:48 > 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 > -- Syscon Ingenieurbüro für Meß- und Datentechnik GmbH Ralf Joachim Raiffeisenstraße 11 D-72127 Kusterdingen Germany Tel. +49 7071 3690 52 Mobil: +49 173 9630135 Fax +49 7071 3690 98 Email: [EMAIL PROTECTED] Web: www.syscon-informatics.de --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

