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

Null pointer when invoking the maven plugin if propertyWordDelimiters not set #46

Closed
joelittlejohn opened this issue Jun 23, 2013 · 1 comment
Milestone

Comments

@joelittlejohn
Copy link
Owner

Original author: [email protected] (April 25, 2012 07:50:49)

java.lang.NullPointerException
at com.googlecode.jsonschema2pojo.maven.Jsonschema2PojoMojo.getPropertyWordDelimiters(Jsonschema2PojoMojo.java:226)
at com.googlecode.jsonschema2pojo.rules.PropertyRule.getPropertyName(PropertyRule.java:153)
at com.googlecode.jsonschema2pojo.rules.PropertyRule.apply(PropertyRule.java:75)
at com.googlecode.jsonschema2pojo.rules.PropertyRule.apply(PropertyRule.java:43)
at com.googlecode.jsonschema2pojo.rules.PropertiesRule.apply(PropertiesRule.java:63)
at com.googlecode.jsonschema2pojo.rules.PropertiesRule.apply(PropertiesRule.java:34)
at com.googlecode.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:110)
at com.googlecode.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:56)
at com.googlecode.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:96)
at com.googlecode.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:33)
at com.googlecode.jsonschema2pojo.rules.JsonSchemaRule.apply(JsonSchemaRule.java:74)
at com.googlecode.jsonschema2pojo.rules.JsonSchemaRule.apply(JsonSchemaRule.java:67)
at com.googlecode.jsonschema2pojo.rules.JsonSchemaRule.apply(JsonSchemaRule.java:31)
at com.googlecode.jsonschema2pojo.SchemaMapperImpl.generate(SchemaMapperImpl.java:66)
at com.googlecode.jsonschema2pojo.cli.Jsonschema2Pojo.generate(Jsonschema2Pojo.java:88)
at com.googlecode.jsonschema2pojo.maven.Jsonschema2PojoMojo.execute(Jsonschema2PojoMojo.java:172)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=46

@joelittlejohn
Copy link
Owner Author

From [email protected] on April 25, 2012 21:14:38
Fixed (r6961e11ba289). To workaround this in 0.2.2, add a propertyWordDelimiters value to your plugin configuration e.g.

<propertyWordDelimiters>-</propertyWordDelimiters>

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

No branches or pull requests

1 participant