[jopr-issues] [JBoss JIRA] Resolved: (JOPR-92) TC5: failure on shutdown operation (NPE)

Jay Shaughnessy (JIRA) jira-events at lists.jboss.org
Wed Mar 11 16:44:24 EDT 2009


     [ https://jira.jboss.org/jira/browse/JOPR-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jay Shaughnessy resolved JOPR-92.
---------------------------------

    Resolution: Done


rev248
 Improved results handling logic for both start and shutdown operations.

> TC5: failure on shutdown operation (NPE)
> ----------------------------------------
>
>                 Key: JOPR-92
>                 URL: https://jira.jboss.org/jira/browse/JOPR-92
>             Project: Jopr
>          Issue Type: Bug
>          Components: Plugin - Tomcat
>    Affects Versions: 2.2
>            Reporter: Heiko W. Rupp
>            Assignee: Jay Shaughnessy
>             Fix For: 2.2
>
>
> Issued a shutdown operation
> TC Server is shutting down, but the operation returns a failure
> I get a failure to shut down:
> ava.lang.NullPointerException
> 	at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.shutdownViaScript(TomcatServerOperationsDelegate.java:276)
> 	at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.shutdown(TomcatServerOperationsDelegate.java:247)
> 	at org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate.invoke(TomcatServerOperationsDelegate.java:117)
> 	at org.jboss.on.plugins.tomcat.TomcatServerComponent.invokeOperation(TomcatServerComponent.java:366)
> Reason is that results.exitCode is null and
>         if (results.getExitCode() != 0) {
>             throw new RuntimeException("Error executing shutdown script while stopping Tomcat instance. Exit code [" + results.getExitCode() + "]");
>         }
> the comparision in getExitCode != 0 tries to do an implicit intValue() on it which results in a NPE -- classical boxing issue

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jopr-issues mailing list