cancel
Showing results for 
Search instead for 
Did you mean: 

JCo protocol error

Former Member
0 Kudos

Hello,

I try to connect with JCo and seem to get connected.

When trying to do a check of the connection in "SM59 RFC Destinations" I get only a "connection closed".

In the RFC Trace I see the following:

>>> RfcDispatch [1] ...
Received RFCHEADER [1]: 01/LIT/IEEE/SPACE-U2/4103
Error ab_RfcSetHeader> invalid compression value  received

   ERROR: ab_RfcGetName [1]
   Invalid protocol version detected
<* RfcDispatch [1] : returns 22:

I tried different versions of JCo 2.0.5, 2.0.10, 2.0.12 and even 2.1.6. It's always the same, and I can't find a way to influence something with compression.

What's wrong here ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I am encountering the same error and it appears to be related to a communicating between a unicode and non-unicode application. When setting the SM59 connection to Unicode and testing with what I expected to be a Unicode enable Jco Server I encounter the same error you have here. Have you figured out this problem yet?

Former Member
0 Kudos

Yes, I tried all combinations.

At the Moment Unicode is enabled on both sides.

The Data is transfered with no Problems as far as I can see.

The strange thing is just this error when testing the connection, everything is working fine.

Former Member
0 Kudos

Hi,

Are you trying to Connect to R/3 using JCO or r u trying to connect to Java program from R/3 using JCO..

Let me know please..

Regards,

Tanveer.

"If U think U can, U can!"

Former Member
0 Kudos

Hi,

it is a Java Programm acting as a "registered server program". It gets connected and registered.

The error occurs when testing the connectino in SM59.

The point is it is not a new program. It works perfectly on other customer installations.

The SAP is a Netweaver 04 SR1.

I attach the short RFC trace below, maybe that helps.

Regards

Uwe

[code]

        • Trace file opened at 20060504 142538 W. Europe Dayl, SAP-REL 640,0,91 RFC-VER 3 781131 MT-SL

>>>> Listen/WaitForRequest (counter = 43)

>>>> [1] < accepted > : REG <ac: 1> L >>> LISTEN (48878178)

000000 | 01010008 01010105 04010003 01010103 |................|

000010 | 00040000 021B0103 0106000B 04010003 |................|

000020 | 01000200 00002301 06000700 1E310035 |......#......1.5|

000030 | 0037002E 00310036 0033002E 00320034 |.7...1.6.3...2.4|

000040 | 002E0038 00370020 00200000 07001100 |...8.7. . ......|

000050 | 02330000 11001200 08360032 00300020 |.3.......6.2.0. |

000060 | 00001200 13000836 00340030 00200000 |.......6.4.0. ..|

000070 | 13000800 40770063 00730073 0069006D |....@w.c.s.s.i.m|

000080 | 005F0057 00540053 005F0030 00300020 |._.W.T.S._.0.0. |

000090 | 00200020 00200020 00200020 00200020 |. . . . . . . . |

0000a0 | 00200020 00200020 00200020 00200020 |. . . . . . . . |

0000b0 | 00200020 00000800 06010057 00430053 |. . .......W.C.S|

0000c0 | 00440045 00560031 00000000 00000000 |.D.E.V.1........|

0000d0 | 00000000 00000000 00000000 00000000 |................|

0000e0 | 00000000 00000000 00000000 00000000 |................|

0000f0 | 00000000 00000000 00000000 00000000 |................|

000100 | 00000000 00000000 00000000 00000000 |................|

000110 | 00000000 00000000 00000000 00000000 |................|

000120 | 00000000 00000000 00000000 00000000 |................|

000130 | 00000000 00000000 00000000 00000000 |................|

000140 | 00000000 00000000 00000000 00000000 |................|

000150 | 00000000 00000000 00000000 00000000 |................|

000160 | 00000000 00000000 00000000 00000000 |................|

000170 | 00000000 00000000 00000000 00000000 |................|

000180 | 00000000 00000000 00000000 00000000 |................|

000190 | 00000000 00000000 00000000 00000000 |................|

0001a0 | 00000000 00000000 00000000 00000000 |................|

0001b0 | 00000000 00000000 00000000 06051400 |................|

0001c0 | 10687D9A 73AAB802 448C75F6 38B9369F |.h}.s...D.u.8.6.|

0001d0 | F1051401 11000645 00410049 00011101 |.......E.A.I....|

0001e0 | 14000631 00300030 00011401 15000244 |...1.0.0.......D|

0001f0 | 00011500 09000645 00410049 00000905 |.......E.A.I....|

000200 | 01000101 05010502 00000502 000B0008 |................|

000210 | 36003200 30002000 000B0102 00105200 |6.2.0. .......R.|

000220 | 46004300 5F005000 49004E00 47000102 |F.C._.P.I.N.G...|

000230 | 03370000 03370503 00000503 05140010 |.7...7..........|

000240 | 687D9A73 AAB80244 8C75F638 B9369FF1 |h}.s...D.u.8.6..|

000250 | 05140512 00000512 03010010 52004600 |............R.F.|

000260 | 43005400 41004200 34003000 03010302 |C.T.A.B.4.0.....|

000270 | 00080000 01080000 00000302 010400A6 |................|

000280 | 10040200 0C000187 68000004 4C00000B |........h...L...|

000290 | B810040B 0020FF7F FA0D78B7 37DEF619 |..... ....x.7...|

0002a0 | 6E9325BF 1593EF73 EFEB1B00 00000000 |n.%....s........|

0002b0 | 00000000 00001004 0D001000 00001A00 |................|

0002c0 | 00009100 00002400 00009110 04040008 |......$.........|

0002d0 | 00150007 000F0007 10041600 02001110 |................|

0002e0 | 04170002 00221004 19000200 00100413 |....."..........|

0002f0 | 00340359 742798A4 D64DE7B7 D43BB7AE |.4.Yt'...M...;..|

000300 | A536CD01 9712F1E5 BA43458E A1315B65 |.6.......CE..1[e|

000310 | 5B595181 001FDBC3 9B7EEB49 92A6CDFB |[YQ......~.I....|

000320 | 3BE140E1 61000104 01250040 36003100 |;.@.a....%.@6.1.|

000330 | 35003500 46003300 44004500 33003500 |5.5.F.3.D.E.3.5.|

000340 | 38004600 34004200 32004200 41003100 |8.F.4.B.2.B.A.1.|

000350 | 41003600 46004400 34003600 42004300 |A.6.F.D.4.6.B.C.|

000360 | 45004600 30003500 32004400 01250131 |E.F.0.5.2.D..%.1|

000370 | 00B92A54 482A0200 B9000057 54532020 |..TH.....WTS |

000380 | 20202020 20202020 20202020 20202020 | |

000390 | 20202020 20202020 20202000 01454149 | ..EAI|

0003a0 | 20202020 20202020 20202020 20202020 | |

0003b0 | 20202020 20202020 20202020 20534D35 | SM5|

0003c0 | 39202020 20202020 20202020 20202020 |9 |

0003d0 | 20202020 20202020 20202020 20202020 | |

0003e0 | 20202020 20000157 54532020 20202020 | ..WTS |

0003f0 | 20202020 20202020 20202020 20202020 | |

000400 | 20202020 20202036 31353546 33444533 | 6155F3DE3|

000410 | 35384634 42324241 31413646 44343642 |58F4B2BA1A6FD46B|

000420 | 43454630 3532442A 54482A01 31FFFF00 |CEF052DTH.1...|

000430 | 00FFFF00 00000000 00000000 00000000 |................|

<* RfcWaitForRequest [1] : returns 0:RFC_OK

>>> RfcDispatch [1] ...

Received RFCHEADER [1]: 01/LIT/IEEE/SPACE-U2/4103

Error ab_RfcSetHeader> invalid compression value received

ERROR: ab_RfcGetName [1]

Invalid protocol version detected

<* RfcDispatch [1] : returns 22:

*> RfcClose called by external program ...

handle = 1

*> rfcClose called by RFC-Library in file: abrfc.c, line: 532

handle = 1

>>>> [1] < accepted > : REG <ac: 2> L >>> CLOSE abrfc.c 585 (48878178)

>>>> [1] < accepted > : REG <ac: 3> L >>> FREE abrfc.c 587 (48878178)

        • Trace file opened at 20060504 142538 W. Europe Dayl, SAP-REL 640,0,91 RFC-VER 3 781131 MT-SL

<* rfcClose

>* RfcClose

>>>> [2] < accepted > : REG <ac: 4> L >>> ACCEPT

[/code]