Skip to Content
0
Former Member
Dec 03, 2015 at 09:46 AM

Issue with DeepFCCBean

96 Views

Dear all,

we habe an issue with the modul DeepFCCBean, what works perfect for a lot of different sceanrios.

The adapter config is:

In case the last field contains an error we get an exception - if not it works fine.

Do you have an idea what to do to fix the issue?

working file (separator is a tab):

WB 1071 4 4711 936 5 1 1 1 1 10 ST 201506291624370364 11 1 1 1
WB 1071 4 4711 936 5 1 1 1 1 10 ST 201506291624370364 11 1 1 1

not working file (just deleted last "1"):

WB 1071 4 4711 936 5 1 1 1 1 10 ST 201506291624370379 11 1 1
WB 1071 4 4711 936 5 1 1 1 1 10 ST 201506291624370379 11 1 1

Exception:

Caused by: javax.ejb.EJBException: ASJ.ejb.005044 (Failed in component: sap.com/com.equalize.xpi.af.modules.app) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.equalize.xpi.af.modules.util.AbstractModule.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.equalize.xpi.af.modules.FormatConversionBean@7b1a02ef for bean sap.com/com.equalize.xpi.af.modules.app*xml|com.equalize.xpi.af.modules.ejb.jar*xml|FormatConversionBean in application sap.com/com.equalize.xpi.af.modules.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method java.lang.String.trim() of a null object loaded from local variable 'fieldValue'

at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:88)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37)

... 49 more

Caused by: java.lang.NullPointerException: while trying to invoke the method java.lang.String.trim() of a null object loaded from local variable 'fieldValue'

at com.equalize.xpi.af.modules.util.RecordTypeParameters.createNewField(RecordTypeParameters.java:201)

at com.equalize.xpi.af.modules.util.RecordTypeParameters.extractLineContents(RecordTypeParameters.java:185)

at com.equalize.xpi.af.modules.deepfcc.DeepPlain2XMLConverter.extractLineToFieldList(DeepPlain2XMLConverter.java:142)

at com.equalize.xpi.af.modules.deepfcc.DeepPlain2XMLConverter.generateNestedContents(DeepPlain2XMLConverter.java:114)

at com.equalize.xpi.af.modules.deepfcc.DeepPlain2XMLConverter.parseInput(DeepPlain2XMLConverter.java:68)

at com.equalize.xpi.af.modules.FormatConversionBean.processModule(FormatConversionBean.java:14)

at com.equalize.xpi.af.modules.util.AbstractModule.process(AbstractModule.java:49)

at sun.reflect.GeneratedMethodAccessor2363.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)

... 55 more

Best Regards,

Thorsten

Attachments

adapter.jpg (84.6 kB)
file.jpg (25.8 kB)