Technote

(FAQ)
NullPointerException upon running OfferUpdateCmd in WebSphere Commerce when its setAccCheck is set to false
When OfferUpdateCmd is called with setAccCheck = false, UpdateOfferCmdImpl throws a NullPointerException. The exception occurs in the performExecute() method because the OfferAccessBean is null. The OfferAccessBean is normally instantiated in the getResources() method, which is not called when access control is not being used (setAccCheck is set to false).
Cause
This is a known defect. The error looks similiar to the following:

executeCommand CMN0420E: The following command exception has occurred during processing: "java.lang.NullPointerException".java.lang.NullPointerException
at com.ibm.commerce.catalogmanagement.commands.UpdateOfferCmdImpl.performExecute(UpdateOfferCmdImpl.java:553)
at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:157)


Answer

Contact WebSphere Commerce Support for APAR JR27432.

For information about using the access control flag in a command, see:
http://publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/topic/com.ibm.commerce.api.doc/com/ibm/commerce/command/ECCommand.html#setAccCheck(boolean)

 

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21270950