cancel
Showing results for 
Search instead for 
Did you mean: 

Jco connection error while calling Custom FM in CRM Internet Sales Application

Former Member
0 Kudos

Hi ,

I am trying to do some customisation in the CRM ISA 4.0 development component.

Have followed the steps given in the Development and Extension Guide and tutorial PDF

Steps done for Custom RFC Call

1.       Create RFCs

2.       Edit file backendobject-config.xml in folder project_root\b2b_z\WEB-INF\xcm\customer\modification:-

3.       BackendBusinessObject Jco -

4.       BusinessObject -

5.       Edit file bom-config.xml in folder project_root\b2b_z\WEB-INF\xcm\customer\modification

6.       BusinessObjectManager BoM

7.       BackendAware-

8.       config.xml - to add custom actions

9.       Action  creation

10.     Page : Order_change.jsp.

The backend is the CRM system while making a call to the CRM system the connection to the CRM system is not working .

Similar to what is given in the tutorial the  getDefaultJCoConnection() is used .

But gettting null at the JCO connection.

JCO.Function func = getDefaultJCoConnection().getJCoFunction(‘CRM_ISA_SHOP_GETLIST’);

This is how my custom FM is being called.

Can someone help me with what may be the possible reason for this call failure.

While debugging and checking it shows null pointer exception in the JCo connection .

Thanks

Chinju

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member193379
Active Contributor
0 Kudos

Hi Chinju,

Please debug your code. It's the best way to dig.

Thanks,

Hamendra

Former Member
0 Kudos

Hi Hamendra,

When the code debugging was done in Java then we got just the NullPointerException for the JCo.

In the nwa log shows

where BackendBusinessObjectBaseSAP is the standard Java Class in the ISA

Error at
com.sap.isa.core.eai.sp.jco.BackendBusinessObjectBaseSAP.getDefaultJCoConnection(BackendBusinessObjectBaseSAP.java:46)

Thanks

Chinju

former_member193379
Active Contributor
0 Kudos

Hi Chinju,

Please put the break point in ConnectionFactory.java file. It will give an idea about Null value.

Thanks,

Hamendra

AntalP
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Chinju,

Enable JCo tracing by adding these JVM paramters to the startup script:

-Djco.trace_level=6
-Djco.trace_path=<directory_of_trace_files>

The created JCO* file will show the reason.

Best Regards,

Antal

Former Member
0 Kudos

Hi Antal,

Thanks for the input , but since I am from the development team we dont have access to update the JVM parameters. We want to do this for client.

Thanks

Chinju