NullPointerException occurs when Marketing e-mail is sent in WebSphere Commerce

Technote (troubleshooting)


Problem(Abstract)

NullPointerException occurs when Marketing e-mail is sent using custom code as a wrapper around the default WebSphere Commerce marketing e-mail tag engine.

Symptom

The error is:

[9/5/12 13:27:28:624 EDT] 00000164 SystemErr R java.lang.NullPointerException
[9/5/12 13:27:28:624 EDT] 00000164 SystemErr R at java.net.URLEncoder.encode(URLEncoder.java:186)
[9/5/12 13:27:28:624 EDT] 00000164 SystemErr R at com.ibm.commerce.emarketing.emailtemplate.tag.TagEMSpotBase.getESpotViewDirectURL(TagEMSpotBase.java:159)
[9/5/12 13:27:28:625 EDT] 00000164 SystemErr R at com.ibm.commerce.emarketing.emailtemplate.tag.TagEMSpot.getTagValue(TagEMSpot.java:76)
[9/5/12 13:27:28:625 EDT] 00000164 SystemErr R at com.ibm.commerce.emarketing.emailtemplate.tag.TagEngineImpl.parse(TagEngineImpl.java:234)
[9/5/12 13:27:28:625 EDT] 00000164 SystemErr R at com.ibm.commerce.emarketing.emailtemplate.tag.TagEngineImpl.renderEmailContent(TagEngineImpl.java:115)
[9/5/12 13:27:28:625 EDT] 00000164 SystemErr R at com.custom-code-to-send-email.sendEmail
..
..
..


Resolving the problem

The getESpotViewDirectURL API requires the following parameters:

name
catalogId
recipientId

The NullPointerException occurs because one or more of the required parameters are missing.

To resolve the problem, set the required parameters by calling setTagParameters() before calling the WebSphere Commerce marketing e-mail tag engine from custom code.

Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Commerce Enterprise
Marketing / Campaigns

Software version:

7.0

Operating system(s):

AIX, IBM i, Linux, Solaris, Windows, i5/OS

Software edition:

All Editions

Reference #:

1616839

Modified date:

2014-10-09

Translate my page

Machine Translation

Content navigation