Skip to Content
author's profile photo Former Member
Former Member

Issue with DeepFCCBean

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

adapter.jpg (84.6 kB)
file.jpg (25.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 04, 2015 at 02:02 AM

    Hi Thorsten

    Thanks for providing details for the issue.

    I've tried testing it out but could not reproduce the error.

    I've tried removing the values from the last few fields as shown below.

    And it still produces the result with those fields having empty value in the XML.

    Can you please provide the following?

    1. Attach the actual text file that fails in this thread.

    2. Check if the EAR file that was deployed in your system is the latest one. The latest version was released on 11 Sep 2015.

    Rgds

    Eng Swee


    input.png (7.2 kB)
    result.png (18.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Thorsten

      I managed to figure out why I couldn't reproduce the error earlier. In your module configuration, you specified Field8 twice, so there was a total of 17 fields. However, I manually typed the field names and did not have the duplicate Field8, so the total fields were 16.

      Once I added a 17th field, I managed to reproduce the error.

      I've done a quick fix for this and released a new version of the EAR file. Basically the fix will just add empty XML tags for the fields that are non existent at the end of the line.

      In the longer run, this issue has helped to show a few areas in the module that could be enhanced in order to handle deviations/errors properly and provide a more accurate error to the developer.

      These enhancements will take a bit longer to deliver, so I hope you can live with the quick fix at the moment.

      Rgds

      Eng Swee

      output.png (13.2 kB)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.