Null pointer exception is encountered if error
databean is not populated with ECMessage
|
Technote
(troubleshooting)
Problem(Abstract)
|
You notice the following error occurs if the error data
bean is not populated with an ECMessage object at run time:
[4/12/07 14:27:55:766 EDT] 00000058 CommerceSrvr E DataBeanManager
activate(DataBean,ViewCommandContext,HttpServletRequest,HttpServletResponse)
CMN0420E: The following command exception has occurred during processing:
"java.lang.NullPointerException".java.lang.NullPointerException
at
com.ibm.commerce.beans.ErrorDataBean.getErrorCode(ErrorDataBean.java:127)
at
com.ibm.commerce.xic.custserv.registration.beans.XICErrorDataBean.populate(XICErrorDataBean.java:92)
|
Cause
|
The error databean is being populated with an exception
that does not contain the ECMessage object. Typically the error used to
populate the databean will come from an EC exception which will have an
ECMessage. In this particular case, the ECMessage is null.
|
Resolving the
problem
|
The problem (APAR JR26436) is resolved in Fix Pack 6.0.0.3
or newer. You can obtain Fix Pack 6.0.0.3 or newer from the WebSphere Commerce Fixes by version page. Alternatively, you can ensure to
populate your exception with the ECMessage object. Applying the fix is the
recommended method as you will not need to make any changes to your
current code.
|
|
|
Current web document: http://www.ibm.com/support/docview.wss?uid=swg21287749
|