[ http://issues.apache.org/jira/browse/GERONIMO-559?page=history ]
John Sisson updated GERONIMO-559:
---------------------------------
Attachment: StartRemoteServer.diff
Patch
geronimo\plugins\maven-geronimo-plugin\src\java\org\apache\geronimo\deployment\mavenplugin\StartRemoteServer.java
so that it checks whether config is not null before trying to pass it to the
StringTokenizer.
> NullPointerException if config attribute is not passed on
> deploy:startRemoteServer goal
> ---------------------------------------------------------------------------------------
>
> Key: GERONIMO-559
> URL: http://issues.apache.org/jira/browse/GERONIMO-559
> Project: Apache Geronimo
> Type: Bug
> Reporter: John Sisson
> Priority: Minor
> Attachments: StartRemoteServer.diff
>
> NullPointerException if config attribute is not passed on
> deploy:startRemoteServer goal.
> For example, the following will fail:
> <deploy:startRemoteServer
> geronimoTarget="${maven.build.dir}/geronimo" />
> java.lang.NullPointerException
> at java.util.StringTokenizer.<init>(StringTokenizer.java:146)
> at java.util.StringTokenizer.<init>(StringTokenizer.java:176)
> at
> org.apache.geronimo.deployment.mavenplugin.StartRemoteServer.execute(StartRemoteServer.java:138)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230)
> at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> at
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
> at
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
> at com.werken.werkz.Goal.fire(Goal.java:639)
> at com.werken.werkz.Goal.attain(Goal.java:575)
> at
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
> at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
> at org.apache.maven.cli.App.doMain(App.java:488)
> at org.apache.maven.cli.App.main(App.java:1239)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at com.werken.forehead.Forehead.run(Forehead.java:551)
> at com.werken.forehead.Forehead.main(Forehead.java:581)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira