Hello,

We are trying to incorporate Mpeg7 schema in our project as java classes
generated by castor. I've tried 0.9.4.1 and cvs (latest 20030113). There are
some things such as lists, unions, etc that I've had to take out and I might
not mind as I understand someone from the mailing list is already working on
adding lists (no pun intended)... However I have a question that you might
be able to help with... How can I find out on which line of the schema the
error occurs so I can try to resolve it?

[Here's how I run the generator:]
C:\mpeg>java -cp
";.;C:\castor-cvs\build\castor-cvs.jar;C:\castor-cvs\lib\jdbc-se2.0.jar;C:\c
astor-cvs\lib\jta1.0.1.jar;C:\castor-cvs\lib\xerces-J_1.4.0.jar"
org.exolab.castor.builder.SourceGenerator -package foo -i mds-2001.xsd

[There was some generation from the previous run before it had crashed:]
foo\Mpeg7.java already exists. overwrite(y|n|a|?)a

[Error:]
Exception in thread "main" java.lang.IllegalArgumentException: 'null' is not
a valid Java identifier.
        at org.exolab.javasource.JStructure.<init>(JStructure.java:143)
        at org.exolab.javasource.JClass.<init>(JClass.java:117)
        at
org.exolab.castor.builder.TypeConversion.convertType(TypeConversion.java:109
)
        at
org.exolab.castor.builder.binding.XMLBindingComponent.getJavaType(XMLBinding
Component.java:1095)
        at
org.exolab.castor.builder.MemberFactory.createFieldInfo(MemberFactory.java:2
04)
        at
org.exolab.castor.builder.SourceFactory.processAttributes(SourceFactory.java
:1203)
        at
org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.jav
a:1283)
        at
org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java:
323)
        at
org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator
.java:1274)
        at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:1238)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1342)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1345)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1345)
        at
org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator
.java:1289)
        at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:1238)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1342)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1345)
        at
org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator
.java:1289)
        at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:1238)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1342)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1345)
        at
org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator
.java:1289)
        at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:1238)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1342)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1345)
        at
org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator
.java:1289)
        at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:1238)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1342)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1345)
        at
org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator
.java:1289)
        at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:1238)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1342)
        at
org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerato
r.java:1345)
        at
org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator
.java:1289)
        at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:1238)
        at
org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java
:1169)
        at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:479)
        at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:538)
        at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav
a:569)
        at
org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:1118)




How can I find out on which line of the schema the error occurs so I can try
to resolve it?




The cropped source xsd used in this run can be found at
http://manolito.image.ntua.gr/~forste/mpeg7/schema/castor/mpeg/
The original xsd file from Mpeg7 can be found at
http://manolito.image.ntua.gr/~forste/mpeg7/schema/original/mpeg/

I appreciate any help you can give me and thank you for the great work,

Stefanos

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

Reply via email to