cancel
Showing results for 
Search instead for 
Did you mean: 

J2SE File Sender Adapter Error

Former Member
0 Kudos

Hi Experts,

I am doing a scenario on J2SE. Like this: J2SE File Sender -> XI -> J2SE File Receiver.

On File Sender adapter, it has an error, like this "ERROR: Finished sending to Integration Engine with error u201Cjava.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Foundu201D. Skip confirmation and quit this loop"

And this is the full log:

D:\Thach\Input\xi_test.xml

16:51:45 (4052): Start processing u201CTXTu201D file u201CD:\Thach\Input\xi_test.xmlu201D size 190 in u201CEO mode

16:51:45 (4058): Start converting to XML format

16:51:45 (4061): Converted complete file content to XML format

16:51:45 (4062): Sending text message u201Ce1ffc9e0-71e5-11de-8306-0019d12044f1u2033 type u201Capplication/xmlu201D to Integration Engineu2026 (message size: 633 bytes, URL: u201Chttp://host:50200/sap/xi/engine?type=entryu201D)

16:51:45 (4076): ERROR: Finished sending to Integration Engine with error u201Cjava.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Foundu201D. Skip confirmation and quit this loop

16:51:45 (4077): Retry mode - wait 10 sec, 0 msec interval before retry

And this the content of xi_test.xml:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Material_toPPS xmlns:ns0="http://gml.com/xi/XI/Tutorials">

<Material>

<Text>Test</Text>

</Material>

</ns0:MT_Material_toPPS>

And this the configuration of J2SE File Sender:

mode=FILE2XMBWITHROWCONVERSION

XI.TargetURL=http://host:50200/sap/xi/engine?type=entry

XI.User=PISUPER

XI.Password=*********

XI.QualityOfService=EO

XI.SenderParty=

XI.SenderService=BS_PlainJ2SE_Sender

XI.ReceiverParty=

XI.ReceiverService=BS_FileRecv

XI.Interface=MI_Material_toPPS_OB

XI.InterfaceNamespace=http://gml.com/xi/XI/Tutorials

file.type = xml

file.sourceDir=D:
Thach
Input

file.sourceFilename=xi_test.xlm

file.processingMode=test

file.pollInterval=10

#Content conversion parameters in PlainJ2SE Adapter

xml.documentName = MT_Material_toPPS

xml.documentNamespace = http://gml.com/xi/XI/Tutorials

xml.structureTitle = Material

xml.processFieldNames = fromConfiguration

xml.fieldNames = Text

Please help to solve the issue.

Thanks so much,

vn thach

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

The URL of the Integration Server is wrong or you cannot access the server from the host, where the J2SE adapter is running:

XI.TargetURL=http://host:50200/sap/xi/engine?type=entry

If the Client of the Integration Server is not 000, then you have also to add that line:

XI.Client=XXX

Former Member
0 Kudos

Thank Stephan,

Your idea helped me to solve problem. The port is wrong, it must 8002, not 50200. I forgot it, hihi.

And I also added the client 001.

Ok, thank all of you.

vnthach

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Suraj and Kamath,

I tested two cases that you suggested, it still has the same error.

Have you got any ideas?

Thanks so much.

vn thach

Shabarish_Nair
Active Contributor
0 Kudos
file.type = xml
file.sourceDir=D:
Thach
Input
file.sourceFilename=xi_test.xlm
file.processingMode=test
file.pollInterval=10

just one thought;

shouldnt it be

file.sourceFilename=xi_test.xml ???

Former Member
0 Kudos

Hi Shabarish,

Yes, sure. Exactly like this. I am focusing the message "... invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found"

I do'nt know why.

Thanks for your consider,

Edited by: vn thach on Jul 17, 2009 7:24 AM

former_member187339
Active Contributor
0 Kudos

Hi,

change file.type = bin (in case you are reading xml or any other format file) or txt (if you are reading text file)

Regards

Suraj

former_member272911
Participant
0 Kudos

Hi

I can see your file name is ending with '.XML'. Instead it should TXT if you are using content conversion.

file.sourceFilename=xi_test.xlm

Thanks

kamath