You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jamie Goodyear (JIRA)" <ji...@apache.org> on 2008/10/23 17:48:52 UTC
[jira] Issue Comment Edited: (SMX4-123) Issuing command "log d"
fails with NullPointerException on AIX.
[ https://issues.apache.org/activemq/browse/SMX4-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46793#action_46793 ]
jgoodyear edited comment on SMX4-123 at 10/23/08 8:48 AM:
---------------------------------------------------------------
Determined work around to IBM JDK issue.
In Apache Geronimo GShell gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java
Apply the following modification:
{code:language=java}
bash-2.05a$ svn diff gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java
Index: gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java
===================================================================
--- gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java (revision 654638)
+++ gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java (working copy)
@@ -42,7 +42,11 @@
this.description = description;
this.metaVar = metaVar;
this.required = required;
- this.handler = handler;
+ if (handler == null) {
+ this.handler = Handler.class;
+ } else {
+ this.handler = handler;
+ }
this.multiValued = multiValued;
}
{code}
I have not determined how or why the IBM JDK passes in a null handler to Descriptor - the call to the Descriptor constructor may occur in dynamically generated code. I do know however that if we test for the null handler in the constructor and upon detection set it to 'Handler.class' as a safe default value that "null" error we see when executing "log d" or "config list" stops occuring.
Will create a JIRA and attach patch to Gernimo GShell project.
was (Author: jgoodyear):
Determined work around to IBM JDK issue.
In Apache Geronimo GShell gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java
Apply the following modification:
bash-2.05a$ svn diff gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java
Index: gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java
===================================================================
--- gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java (revision 654638)
+++ gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java (working copy)
@@ -42,7 +42,11 @@
this.description = description;
this.metaVar = metaVar;
this.required = required;
- this.handler = handler;
+ if (handler == null) {
+ this.handler = Handler.class;
+ } else {
+ this.handler = handler;
+ }
this.multiValued = multiValued;
}
I have not determined how or why the IBM JDK passes in a null handler to Descriptor - the call to the Descriptor constructor may occur in dynamically generated code. I do know however that if we test for the null handler in the constructor and upon detection set it to 'Handler.class' as a safe default value that "null" error we see when executing "log d" or "config list" stops occuring.
Will create a JIRA and attach patch to Gernimo GShell project.
> Issuing command "log d" fails with NullPointerException on AIX.
> ---------------------------------------------------------------
>
> Key: SMX4-123
> URL: https://issues.apache.org/activemq/browse/SMX4-123
> Project: ServiceMix 4
> Issue Type: Bug
> Environment: AIX 5.3 Java 1.5
> Reporter: Jamie Goodyear
> Assignee: Jamie Goodyear
>
> Issuing command "log d" fails with NullPointerException on AIX.
> o Install SMX 4 Features build.
> o Start servicemix in terminal (bash-2.05a$./servicemix.sh)
> o Once kernel prompt is displayed type "log d"
> o Will receive error message: "ERROR NullPointerException: null"
> Here is the screen content:
> servicemix>
> servicemix> log d
> ERROR NullPointerException: null
> servicemix> exit
> AIX OS Level:
> bash-2.05a$ oslevel -s
> 5300-04-00
> Java Version:
> bash-2.05a$ java -version
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build pap32dev-20080315 (SR7))
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20080315 (JIT enabled)
> J9VM - 20080314_17962_bHdSMr
> JIT - 20080130_0718ifx2_r8
> GC - 200802_08)
> JCL - 20080314
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.