IBM Support

NumberFormatException error is logged in the FFDC logs when performing retrieve operation

Troubleshooting


Problem

Using the WebSphere Adapter for Flat File to generate an outbound artifact for a retrieve operation, when you deploy it to the WebSphere Process Server and send a test request, the FFDC logs record a NumberFormatException error, although the retrieve operation executes correctly.

Symptom

The FFDC logs record a NumberFormatException error, although the retrieve operation executes correctly.

Following is an example of the NumberFormatException error as recorded in the FFDC logs:


[11/26/09 18:57:59:609 CST] FFDC Exception:java.lang.NumberFormatException SourceId:com.ibm.j2ca.flatfile.FlatFilePrivilegedExceptionAction ProbeId:run Reporter:java.lang.Class@69e869e8
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:429)
at java.lang.Integer.parseInt(Integer.java:511)
at com.ibm.j2ca.flatfile.FlatFilePrivilegedExceptionAction.run(FlatFilePrivilegedExceptionAction.java:354)
at java.security.AccessController.doPrivileged(AccessController.java:251)
at com.ibm.j2ca.flatfile.emd.runtime.FlatFileBaseDataBinding.processRetrieve
(FlatFileBaseDataBinding.java:615)
at com.ibm.j2ca.flatfile.emd.runtime.FlatFileBaseDataBinding.getDataObject
(FlatFileBaseDataBinding.java:551)
at fcobol.f.cobol.flatfile.DFHCOMMAREADataBinding.getDataObject
(DFHCOMMAREADataBinding.java:673)
at com.ibm.ws.sca.binding.j2c.J2CMethodBindingImpl.invoke
(J2CMethodBindingImpl.java:1334)
at com.ibm.ws.sca.binding.j2c.J2CInterfaceBindingImpl.invoke
(J2CInterfaceBindingImpl.java:152)
at com.ibm.ws.sca.binding.j2c.handler.J2CImportHandler.invokeDynamicImport
(J2CImportHandler.java:1307)
at com.ibm.ws.sca.binding.j2c.handler.J2CImportHandler.processBase
(J2CImportHandler.java:402)
at com.ibm.ws.sca.binding.j2c.handler.J2CNativeImportHandler.processMessage
(J2CNativeImportHandler.java:118)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI
(MessageDispatcherImpl.java:764)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage
(MessageDispatcherImpl.java:1605)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process
(ManagedMessageImpl.java:955)
at com.ibm.ws.sca.uow.handler.UOWNativeWASStrategyImpl.transactionAnyActivitySessionAny
(UOWNativeWASStrategyImpl.java:297)
at com.ibm.ws.sca.uow.handler.JoinUOWNativeHandler.processMessage
(JoinUOWNativeHandler.java:169)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI
(MessageDispatcherImpl.java:764)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage
(MessageDispatcherImpl.java:1605)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process
(ManagedMessageImpl.java:946)
at com.ibm.wbit.comptest.controller.invocation.impl.Invoker.managedInvoke
(Invoker.java:316)
at com.ibm.wbit.comptest.controller.invocation.impl.Invoker.invoke
(Invoker.java:196)
at com.ibm.wbit.comptest.controller.invocation.impl.BaseInvocationHandler.invoke
(BaseInvocationHandler.java:64)
at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager.doInvoke
(InvocationManager.java:67)
at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager$1.run
(InvocationManager.java:48)
at java.security.AccessController.doPrivileged
(AccessController.java:224)
at javax.security.auth.Subject.doAs(Subject.java:495)
at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:131)
at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:89)
at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager.invoke
(InvocationMan

Cause

The defalut value for Split Criteria is being passed as a null value to the FlatFile record causing the NumberFormatException error.

Resolving The Problem

The NumberFormatException error that gets logged in FFDC logs does not affect the adapter functionality. Therefore, you can either ignore the NumberFormatException in FFDC logs or enable splitting and set the default value for the SplitCriteria property, which is 0, and then run the scenario.

[{"Product":{"code":"SSMKUK","label":"WebSphere Adapters Family"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Adapter for FlatFiles","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
23 June 2018

UID

swg21412820