Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Home » Support » Solution Library

Technical Support

java.lang.NullPointerException Error


Technical Note IRE2905
Created 16-Mar-2006

Applies To
Synapta Services Builder for CICS

Synapta Services Builder for CICS 3.0

Synapta Services Builder 3.0

Smart Connector for CICS

Symptoms

java.lang.NullPointerException Error

Error: java.lang.NullPointerException
at com.attachmate.connectors.cics.common.taskbean.TxRecord.set_stringValue(TxRecord.java:565)
at com.attachmate.connectors.cics.common.taskbean.BaseTxBean.setIn_stringValue(BaseTxBean.java:619)
at myTB.TDquery.setCUSTOMER_FIRST_NAME(TDquery.java:57)
at Query.processRequest(Query.java:36)


Error occurs with JSP

Error occurs with servlet

Error occurs with Java API

Cause

The input for the CUSTOMER_FIRST_NAME task input is too big. When the Cobol Copy Book for example specify an input length of 8 characters and there are more then 8 characters enterd in the input field of the JSP, this exception is thrown

Fix

Workaround by setting a SIZE parameter for the JSP input field, matching the size of the task input e.g.
<INPUT TYPE=TEXT Name="CFN" VALUE="Bond" SIZE=8>Workaround in Java by adding code that checks for the input length


Did this technical note answer your question?

Yes    No    Somewhat     Not sure yet

Additional comments about this tech note:

Need further help? For technical support, please contact Support.