cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP process hangs when calling a jCO Server J2EE-available RFC

Former Member
0 Kudos

Hi there

Here's the scenario:

We have deployed a jCO server under the SAP WAS. This jCO server implements two functions. They are both called from ABAP process through RFC. We are using the same RFC destination for both

First function is defined with import/export parameters and the second one only operates with a TABLE parameter.

Incidentally, these functions are captured by the jCO server, which calls an IBM MQ server

First function works fine. Second function hangs and there is not even a timeout so the ABAP process (run on foreground) can stay forever.

The interesting part is that the same application works really fine when called from a Tomcat using a standalon instance of the jCO.

Additional info:

We have noticed that some time after the second function gets called, there are five dumps on the system (the same amount of servers we make available). These are CALL_FUNCTION_SIGNON_REJECTED.

The fun part of the dumps is that the user making the RFC call is a different user that the one we use for the jCO connection, and the client number is '000', instead of the '728' we are using for the connection. Somehow they seem related but we do not know how yet:

Short text

You are not authorized to logon to the target system (error code 1).

What happened?

Error in the ABAP Application Program

The current ABAP program "SAPMSSY1" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Error analysis

RFC (Remote Function Call) sent with invalid

user ID "%_LOG01% " or client 000.

User "ARINSO " under client 001 from system "SMD " has tried to carry out an

RFC

call under the user ID "%_LOG01% " and client 000 (Note: For releases < 4.0,

the

information on caller and caller system do not exist.).

...

Call Program........."SAPLSMSY_ACTUALIZE_DATA"

Function Module..... "SCSM_SYSTEM_LIST"

Call Destination.... "SM_ET7CLNT000_READ"

Source Server....... "sapwasmd_SMD_10"

Source IP Address... "172.17.82.80"

...

Termination occurred in the ABAP program "SAPMSSY1" - in

"REMOTE_FUNCTION_CALL".

The main program was "SAPMSSY1 ".

In the source code you have the termination point in line 67

of the (Include) program "SAPMSSY1".

Any tip or suggestion on where to look at is more than welcome

Thanks in advance,

Miguel

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Here's some more info. It comes within the dev_jrfc.trc:

Exception thrown [Thu Jun 11 03:08:16,429]:Exception thrown in JCo Server

java.lang.ArrayIndexOutOfBoundsException

at com.sap.i18n.cp.ConvertUc2BE.ConvertArr(ConvertUc2BE.java:37)

at com.sap.mw.jco.Converter.decodeChar(Converter.java:148)

at com.sap.mw.jco.TableParameter.getBytes(TableParameter.java:82)

at com.sap.mw.rfc.engine.RfcCall.send_table_space(RfcCall.java:205)

at com.sap.mw.rfc.engine.RfcCall.rfc_table(RfcCall.java:117)

at com.sap.mw.rfc.engine.RfcCall.rfc_extdata(RfcCall.java:394)

at com.sap.mw.rfc.engine.RfcCall.ab_rfcbxt(RfcCall.java:28)

at com.sap.mw.rfc.api.RfcApi.RfcSendData(RfcApi.java:491)

at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java:2645)

at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java:1801)

at com.sap.mw.jco.JCO$Server.listen(JCO.java:8183)

at com.sap.mw.jco.JCO$Server.work(JCO.java:8303)

at com.sap.mw.jco.JCO$Server.loop(JCO.java:8250)

at com.sap.mw.jco.JCO$Server.run(JCO.java:8166)

at java.lang.Thread.run(Thread.java:770)

I am trying to get information about the i18n.cp package and com.sap.mw.jco.Converter class but I cannot even find anything about them. It looks like they do not exist ...

PLEASE ANY SUGGESTION WILL BE VERY WELCOME!

Former Member
0 Kudos

More info concerning this issue.

The MQ server is called properly and the jCO server receives the response properly from this MQ server. The problem is that somehow, the Server is firing an exception

Array index out of range:48

This exception is captured but my jCO server as it is implementing the method serverExceptionOccured, from jCO.ServerExceptionListener

Is there anyway to ignore this exception so the process can continue? Is there any way to get more info about the reason of this exception? This exception does not get fired when executing the same code on a Tomcat server

this is the exception stack:

com.efh.jco.valtran.sap.ValtranRequestHandler.serverExceptionOccurred(ValtranRequestHandler.java:185)

com.sap.mw.jco.JCO.fireServerExceptionOccurred(JCO.java:880)

com.sap.mw.jco.JCO$Server.listen(JCO.java:8187)#

com.sap.mw.jco.JCO$Server.work(JCO.java:8303)#

com.sap.mw.jco.JCO$Server.loop(JCO.java:8250)#

com.sap.mw.jco.JCO$Server.run(JCO.java:8166)#

java.lang.Thread.run(Thread.java:770)#

Thanks for any suggestion you can provide

Former Member
0 Kudos

And this is the content of the defaultTrace.0.trc log from the WAS

1.#005056AB04C500440000000200002B0000046B495CA1AF67#1243862737727#com.sap.caf.um.relgrou

ps.imp.principals.RelGroupFactory##com.sap.caf.um.relgroups.imp.principals.RelGroupFactor

y.RelGroupFactory()#######SAPEngine_System_Thread[impl:5]_13##0#0#Info#1#/System/Server#P

lain###sap.com caf/um/relgroups/imp MAIN_NW701P03_C 2846629#

#1.#005056AB04C500240000000100002B0000046B495CCDAAFB#1243862740608#com.sap.engine.library

.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3

89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg

isterNode</Kernel/System Threads Pool/WaitingTasksCount>: com.sap.engine.library.monitor.

mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for node'/Kerne

l/System Threads Pool/WaitingTasksCount' (MANAGERS.SThreadPool.WaitingInRequestQueueCount

, max. 40 characters)#

#1.#005056AB04C500240000000200002B0000046B495CCDB4CC#1243862740612#com.sap.engine.library

.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3

89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg

isterNode</Kernel/System Threads Pool/WaitingTasksQueueOverflow>: com.sap.engine.library.

monitor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for nod

e'/Kernel/System Threads Pool/WaitingTasksQueueOverflow' (MANAGERS.SThreadPool.Waiting4Fr

eeReqQueueSlotCount, max. 40 characters)#

#1.#005056AB04C500240000000300002B0000046B495CCDCDA1#1243862740618#com.sap.engine.library

.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3

89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg

isterNode</Kernel/Application Threads Pool/WaitingTasksCount>: com.sap.engine.library.mon

itor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for node'/

Kernel/Application Threads Pool/WaitingTasksCount' (MANAGERS.AThreadPool.WaitingInRequest

QueueCount, max. 40 characters)#

#1.#005056AB04C500240000000400002B0000046B495CCDD69B#1243862740620#com.sap.engine.library

.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3

89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg

isterNode</Kernel/Application Threads Pool/WaitingTasksQueueOverflow>: com.sap.engine.lib

rary.monitor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group fo

r node'/Kernel/Application Threads Pool/WaitingTasksQueueOverflow' (MANAGERS.AThreadPool.

Waiting4FreeReqQueueSlotCount, max. 40 characters)#

#1.#005056AB04C500600000001600002B0000046B4960688301#1243862801089#com.sap.slm.exec.messa

ge.SLMApplication#sap.com/tcslmslmapp#com.sap.slm.exec.message.SLMApplication#Guest#0##

n/a##c59827604eaf11de9fb3005056ab04c5#SAPEngine_Application_Thread[impl:3]_0##0#0#Error##

Java###null##

#1.#005056AB04C500730000000000002B0000046B4CF0593ABD#1243878100908#System.err#arinso.com/

valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E

5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou

p]##0#0#Error##Plain###com.sap.mw.jco.JCO$AbapException: (126) 1: Array index out of rang

e: 48#

#1.#005056AB04C500730000000100002B0000046B4CF0594028#1243878100909#System.err#arinso.com/

valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E

5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou

p]##0#0#Error##Plain### at com.efh.jco.valtran.sap.ValtranRequestHandler.serverExceptionO

ccurred(ValtranRequestHandler.java:164)#

#1.#005056AB04C500730000000200002B0000046B4CF059406B#1243878100910#System.err#arinso.com/

valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E

5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou

p]##0#0#Error##Plain### at com.sap.mw.jco.JCO.fireServerExceptionOccurred(JCO.java:880)#

#1.#005056AB04C500730000000300002B0000046B4CF05940A3#1243878100910#System.err#arinso.com/

valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E

5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou

p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.listen(JCO.java:8187)#

#1.#005056AB04C500730000000400002B0000046B4CF05940DB#1243878100910#System.err#arinso.com/

valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E

5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou

p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.work(JCO.java:8303)#

#1.#005056AB04C500730000000500002B0000046B4CF0594111#1243878100910#System.err#arinso.com/

valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E

5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou

p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.loop(JCO.java:8250)#

#1.#005056AB04C500730000000600002B0000046B4CF0594143#1243878100910#System.err#arinso.com/

valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E

5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou

p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.run(JCO.java:8166)#

#1.#005056AB04C500730000000700002B0000046B4CF05941F0#1243878100910#System.err#arinso.com/

valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E

5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou

p]##0#0#Error##Plain### at java.lang.Thread.run(Thread.java:770)#