Hi,
I previously used xsd2thrift for converting XSDs but decided it's time to move to schema2proto . I'm working with large complicated XSDs generated by Sparx Systems Enterprise Architect - in this case the AIXM for aeronautical data - the XSDs are available here:
http://aixm.aero/document/aixm-511-xml-schema-xsd
I'm using the one with local copies of all dependencies. I can convert some of the dependencies - but once I start with the larger ones things crash pretty immediately on the following exception:
[main] INFO no.entur.schema2proto.generateproto.Schema2Proto - Starting to parse aixm-5.1.1/AIXM_DataTypes.xsd
[main] ERROR no.entur.schema2proto.generateproto.Schema2Proto - Error processing proto files: null
java.lang.NullPointerException
at no.entur.schema2proto.generateproto.SchemaParser.navigateSubTypes(SchemaParser.java:388)
at no.entur.schema2proto.generateproto.SchemaParser.processGroupAsSequence(SchemaParser.java:993)
at no.entur.schema2proto.generateproto.SchemaParser.processGroup(SchemaParser.java:922)
at no.entur.schema2proto.generateproto.SchemaParser.processComplexType(SchemaParser.java:696)
at no.entur.schema2proto.generateproto.SchemaParser.lambda$processSchemaSet$2(SchemaParser.java:191)
at java.base/java.util.TreeMap.forEach(TreeMap.java:1002)
at no.entur.schema2proto.generateproto.SchemaParser.processSchemaSet(SchemaParser.java:191)
at no.entur.schema2proto.generateproto.SchemaParser.parse(SchemaParser.java:137)
at no.entur.schema2proto.generateproto.Schema2Proto.parseAndSerialize(Schema2Proto.java:107)
at no.entur.schema2proto.generateproto.Schema2Proto.<init>(Schema2Proto.java:92)
at no.entur.schema2proto.generateproto.Schema2Proto.main(Schema2Proto.java:125)
All help much appreciated!
Hi,
I previously used xsd2thrift for converting XSDs but decided it's time to move to schema2proto . I'm working with large complicated XSDs generated by Sparx Systems Enterprise Architect - in this case the AIXM for aeronautical data - the XSDs are available here:
http://aixm.aero/document/aixm-511-xml-schema-xsd
I'm using the one with local copies of all dependencies. I can convert some of the dependencies - but once I start with the larger ones things crash pretty immediately on the following exception:
All help much appreciated!