java.lang.NullPointerException Error
Technical Note IRE2905Created 16-Mar-2006Applies 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 ErrorError: 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 JSPError occurs with servletError occurs with Java APICause
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