cancel
Showing results for 
Search instead for 
Did you mean: 

J2SE Adapter Engine Error

Former Member
0 Kudos

Hi everyone,

I am facing couple of issues with J2SE adapter engine.

1. First Issue

Config in SLDaccessor -

    1. file adapter java class

classname=com.sap.aii.messaging.adapter.ModuleSLDaccessor

SLD.host=<HOST>

SLD.port=50xxx

SLD.user=user

SLD.password=pass

SLD.adapterEngineName=AdapterEngine

Config in Sender File Channel

  1. file adapter java class

classname=com.sap.aii.messaging.adapter.ModuleFile2XMB

version=30

mode=FILE2XMBWITHROWCONVERSION

XI.SLDConfiguration=SLDaccessor

#XI.TargetURL=http://<HOST>:<50xxx>/sap/xi/engine/?type=entry

XI.TargetURL=<fromSLD>

XI.QualityOfService=EO

XI.Client=001

<Other parameters like InterfaceName / FCC>

If I use XI.SLDConfiguration=SLDaccessor and XI.TargetURL=<fromSLD>, I get an error of HTTP 401 unauthorized.

If I ignore the SLDaccessor, the message is processed successfully.

Am I missing anything in the above configuration?

The user id user is having the roles of SAP_SLD_CONFIGURATOR and SAP_XI_APPL_SERV_USER.

2. Second Issue

In RWB -> Component Monitoring -> J2SE Adapter Engine, there is an error coming up - Unable to establish connection to "https://<LocalHost>:50001/rtc"

The port is wrong ... it should be 8200. My question is, from where to fix this?

Any help will be highly appreciated.

Thanks,

Neetesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Neetesh,

After copying tech_adapter on your local machine douple click on run_adapter.bat and then open internet explorer and enter http://l<ocalmachine_ip_address>:8200/adapter.html

After doing this you will get logon popup, enter user & password and configure the adapters.

Secondly you can see the port in SLDAPICUST if I am not mistaken. (not very sure)

Compare your configuration with below one

    1. file adapter java class

classname=com.sap.aii.messaging.adapter.ModuleFile2XMB

version=30

mode=FILE2XMB

    1. Integration Engine address and document settings (example, see docu)

XI.TargetURL=http://<host>:8000/sap/xi/engine?type=entry

XI.User=testuser

XI.Password=pass123

XI.QualityOfService=EO

#XI.SenderParty=

XI.SenderService=LocalSystem

#XI.ReceiverParty=

XI.ReceiverService=LocalSystem

XI.Interface=IM_J2SE

XI.InterfaceNamespace=http://abc.com/j2se/test

##File Adapter specific parameters (example, see docu)

file.type=BIN

#file.type=TXT

file.encoding=UTF-8

file.sourceDir=c:/sender

file.sourceFilename=sender1.xml

#file.processingMode=test

file.processingMode=delete

#file.processingMode=archiveWithTimeStamp

#file.archiveDir=./temp_archive

#file.retryInterval=20

file.pollInterval=30

Regards,

Sarvesh

Former Member
0 Kudos

Hi Sarvesh,

Thanks for your prompt reply.

Unfortunately, I am through with all the steps that you have mentioned.

My main problem is coming up when I try to run the File channel and access the SLDaccessor from there.

Secondly you can see the port in SLDAPICUST if I am not mistaken. (not very sure)

In this TCode, the port of the PI server is maintained. I am not too sure whether the port of the J2SE AE will be maintained here. Correct me if I am wrong.

I guess the port might needs to be changed from the SLD -> CIM Instance -> Some where

Any further help will be highly appreciated.

Thanks,

Neetesh

Former Member
0 Kudos

Yes you are correct, the transaction code is used to maintain PI port.

Former Member
0 Kudos

Just an update ...

I re-started the AE and now the error message has changed to -

13:44:40 (4030): Start processing "TXT" file "Jun2009DataTemplate_v2.csv" size 787661 in "EO mode

13:44:40 (4059): Start converting to XML format

13:44:40 (4061): Converted complete file content to XML format

13:44:40 (4062): Sending text message "e299ebb1-9f03-11de-8927-e8520ac80dcc" type "application/xml" to Integration Engine... (message size: 4801870 bytes, URL: "<fromSLD>")

13:44:40 (4076): ERROR: Finished sending to Integration Engine with error "java.lang.NullPointerException". Skip confirmation and quit this loop

13:44:40 (4077): Retry mode - wait 300 sec, 0 msec interval before retry

This error message comes up only after I re-start the AE. If I re-start the Channel couple of times, same old 401 error message comes up.

Any inputs?

Thanks,

Neetesh

Edited by: Neetesh Raj on Sep 11, 2009 2:19 PM

Former Member
0 Kudos

Any one having more ideas ?

Thanks,

Neetesh

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

SR,

I guess this is not how the forum works. Maintain the dignity of the forum.

Neetesh

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

Kindly check the integration url which u defined in the parameters

Thanks,

Kalyan

Answers (0)