Arnaud,

Well whatever you did seems to have got rid of the problem. I don't get any errors now (I still have a few things to do to the schema, but hopefully it will keep working).

Thanks again.

Regards,


Sean

--------------------------------------------------
Dr Sean Radford, MBBS, MSc
Senior Consultant
Agora Professional Services Ltd
[EMAIL PROTECTED]
http://www.agora.co.uk
--------------------------------------------------
Agora Professional Services is an entrepreneurial consulting firm specialising in e-Business and innovative solutions since 1995.




"Arnaud Blandin" <[EMAIL PROTECTED]>

05/03/2002 14:27
Please respond to castor-dev

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: [castor-dev] NullPointerException with SourceGenerator





Hi Sean,

 

I've committed some code in the CVS that if you set the verbose mode helps you to track down the problems.

Here it seems that the type "G1_QUANTITY" is not defined your schema.

 

Arnaud

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] NullPointerException with SourceGenerator

 


Patrick,

Are you saying that in the xsd file a complex type contains an element has a type="xxx" attribute where the simple/complex type that xxx refers to has not been defined (i.e. further down in the file)?

- I'll start hunting - it's a big xsd though :-(


Sean

--------------------------------------------------
Dr Sean Radford, MBBS, MSc
Senior Consultant
Agora Professional Services Ltd
[EMAIL PROTECTED]
http://www.agora.co.uk
--------------------------------------------------
Agora Professional Services is an entrepreneurial consulting firm specialising in e-Business and innovative solutions since 1995.



 

Patrick Moore <[EMAIL PROTECTED]>

04/03/2002 18:54
Please respond to castor-dev

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: [castor-dev] NullPointerException with SourceGenerator






I run  into this when a type is used that has not been defined. Once I find and fix the  'type=' parameter to have the correct value the problem goes  away.
-----Original Message-----
From:[EMAIL PROTECTED]  [mailto:[EMAIL PROTECTED]]
Sent:Monday, March 04, 2002 10:14  AM
To:[EMAIL PROTECTED]
Subject:[castor-dev]  NullPointerException with SourceGenerator



Hi,

(and  special thanks to Arnaud Blandin for his previous help). 


I'm getting the following when using  the SourceGenerator with the class mapping set to 'type'  (org.exolab.castor.builder.javaclassmapping=type in the  castorbuilder.properties file).

Exception in thread "main" java.lang.NullPointerException 
        at  org.exolab.castor.builder.SourceFactory.processContentModel(Unknown  Source)
        at  org.exolab.castor.builder.SourceFactory.processContentModel(Unknown  Source)
        at  org.exolab.castor.builder.SourceFactory.processComplexType(Unknown  Source)
        at  org.exolab.castor.builder.SourceFactory.createSourceCode(Unknown  Source)
        at  org.exolab.castor.builder.SourceGenerator.processComplexType(Unknown  Source)
        at  org.exolab.castor.builder.SourceGenerator.createClasses(Unknown Source) 
        at  org.exolab.castor.builder.SourceGenerator.generateSource(Unknown  Source)
        at  org.exolab.castor.builder.SourceGenerator.generateSource(Unknown  Source)
        at  org.exolab.castor.builder.SourceGenerator.generateSource(Unknown  Source)
        at  org.exolab.castor.builder.SourceGenerator.main(Unknown Source) 

I think that the NullPointer is on line  1461 of SourceFactory and that eDecl.getType() is returning NULL. 

The same xsd file is 'parsed' fine when  the class mapping is element - thanks to Arnaud.


Any help/pointers, much appreciated, 

Regards,


Sean

--------------------------------------------------
Dr Sean Radford,  MBBS, MSc
Senior Consultant
Agora Professional Services  Ltd
[EMAIL PROTECTED]
http://www.agora.co.uk
--------------------------------------------------
Agora  Professional Services is an entrepreneurial consulting firm specialising in  e-Business and innovative solutions since  1995.

Reply via email to