Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException thrown while parsing IAB VAST 2.0.1 XSD #5

Open
Unlimity opened this issue Dec 8, 2015 · 4 comments
Open

NullPointerException thrown while parsing IAB VAST 2.0.1 XSD #5

Unlimity opened this issue Dec 8, 2015 · 4 comments
Assignees
Labels

Comments

@Unlimity
Copy link

Unlimity commented Dec 8, 2015

Hello there!
I tried to use this library to convert IAB's VAST 2.0.1 XSD for my current project and issued this exception:

Exception in thread "main" java.lang.NullPointerException
    at com.mickoo.xml.xsd2simplexml.NameUtil.toWordList(NameUtil.java:208)
    at com.mickoo.xml.xsd2simplexml.NameConverter$Standard.toWordList(NameConverter.java:106)
    at com.mickoo.xml.xsd2simplexml.NameConverter$Standard.toClassName(NameConverter.java:108)
    at com.mickoo.xml.xsd2simplexml.CodeGenerator.createElement(CodeGenerator.java:43)
    at com.mickoo.xml.xsd2simplexml.SchemaParser.processElement(SchemaParser.java:323)
    at com.mickoo.xml.xsd2simplexml.SchemaParser.processParticle(SchemaParser.java:208)
    at com.mickoo.xml.xsd2simplexml.SchemaParser.processGroup(SchemaParser.java:219)
    at com.mickoo.xml.xsd2simplexml.SchemaParser.processParticle(SchemaParser.java:204)
    at com.mickoo.xml.xsd2simplexml.SchemaParser.processComplexType(SchemaParser.java:232)
    at com.mickoo.xml.xsd2simplexml.SchemaParser.processElement(SchemaParser.java:344)
    at com.mickoo.xml.xsd2simplexml.SchemaParser.parse(SchemaParser.java:67)
    at com.mickoo.xml.xsd2simplexml.Main.main(Main.java:80)

You can download this xsd at IAB
I hope you can solve the issue or point me out where to search for answer.
Thanks in advance!

@yeshodhan yeshodhan added the bug label Dec 9, 2015
@yeshodhan yeshodhan self-assigned this Jan 11, 2016
yeshodhan pushed a commit that referenced this issue Jan 11, 2016
yeshodhan pushed a commit that referenced this issue Jan 11, 2016
@yeshodhan
Copy link
Owner

I've checked few interim fixes for making the VAST schema work. See vast.zip
There are a lot of anonymous complex types, that were causing issues.

Could you please pull or use the attached file, and let me know if it works? If yes, I'll make a new release a new version with the fixes.
android-jaxb-1.0.1-jar-with-dependencies.jar.zip

@jrkoiter
Copy link

I ran into the same NullPointerException, but with a different XSD. Using the version linked in the previous comment fixed the issue. That is: generation finishes without error. I still need to verify the generated classes though.

@yshahak
Copy link

yshahak commented Feb 10, 2017

I had the same problem. the android-jaxb-1.0.1-jar-with-dependencies.jar.zip managed to generate the files. But I needed to do a lot of changes as it didn't convert properly some of the elements.

@mohdizham
Copy link

mohdizham commented Feb 10, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants