Hi,

before we are able to look into this, you need to give us more context about the steps you have already performed, such as e.g.

a) I did already generate Java sources from my XML schema using ....
b) Etc.

Can you please try to give us as much context as possible, and point us to documentation you have already consultd with.

Kind Regards
Werner

On 02.06.2010 17:07, Jorrit Wortel wrote:
Hello,

After hours on a non working example using JPA, JDO, Spring ORM and more, I
went to a more simple example but even this isn't working.

I'm trying JDO (in order to let in work with oracle later) with a quite
simple XML file and it's XML Schemas.
The first step I would like to achieve is generating the descriptors of the
files.

Enclosed are the XML, the XML Schemas and the corresponding Java file I try
to use.

At the execution, I get the following Java exception :

No namespace declaration has been found for person
* assuming default namespace of http://www.w3.org/2001/XMLSchema
<person>  elements are either currently unsupported or non-valid schema
elements.
Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:399)
at
org.exolab.castor.builder.BuilderConfiguration.setLocationPackageMapping(BuilderConfiguration.java:614)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:755)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:705)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:602)
at Test.generate(Test.java:17)
at Test.main(Test.java:24)

Could someone help me understand this exception ?

Best Regards,
Jorrit Wortel




---------------------------------------------------------------------
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


Reply via email to