cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Exception

Former Member
0 Kudos

Hi,

When I deploy and run my application on localhost, sometimes it comes the exception as following.

Any idea? thanks!

=======================================================

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: CPIC-CALL: CMRCV

LOCATION CPIC (TCP/IP) on local host with Unicode

ERROR connection to partner broken

TIME Wed Oct 19 15:33:48 2005

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -6

MODULE ninti.c

LINE 777

DETAIL NiPRead (10.171.145.25/3300, hdl 7)

SYSTEM CALL recv

ERRNO 10054

ERRNO TEXT WSAECONNRESET: Connection reset by peer

COUNTER 3

at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:413)

at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1247)

at com.sap.mw.jco.JCO$Client.execute(JCO.java:3587)

at com.sap.mw.jco.JCO$Client.execute(JCO.java:3081)

at com.sap.mw.jco.JCO$Repository.execute(JCO.java:19378)

at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:19737)

at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:19413)

at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:19527)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.RFCMetadataRepository.getJcoMetadataForFunction(RFCMetadataRepository.java:64)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:184)

at com.dtt.eform.models.zwd17.Z_Wd_Query_Upload_File_Data_Input.<init>(Z_Wd_Query_Upload_File_Data_Input.java:51)

at com.dtt.eform.feetransfer.ZFeeTransferCust.wdDoInit(ZFeeTransferCust.java:117)

at com.dtt.eform.feetransfer.wdp.InternalZFeeTransferCust.wdDoInit(InternalZFeeTransferCust.java:796)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doInit(DelegatingCustomController.java:73)

at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)

at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:433)

at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:371)

at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:400)

at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:138)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:746)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)

at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:346)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:352)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi ,

This error comes due to time out or non availablity of JCO connection.

For that

1. Increase the JCo connection pool size

2. Increase you r webdynpro application expiration time considerably (Also if you are using portal the portal timeout should also be increased)

3. After the model is executed, disconnect the model.

Also refer to

/people/sap.user72/blog/2005/01/08/adaptive-rfc-models-in-web-dynprosome-pointers

Regards,

Mahesh K.

Former Member
0 Kudos

hi,

Go through this link it might helps you.

U need to configure SLD properly.

Thanks,

Lohi.

Former Member
0 Kudos

ur using JCO, that means you are trying to connect to R/3, which inturn means that you are using a model.

If you have reimported the model, try restarting the W.A.S, ie the J2EE engine.

I was facing the same error, restarting the server solved the problem.

all the best

Former Member
0 Kudos

I'm getting this exact same error message at seemingly random intervals. Since patching our development system to SP19, I have seen it less frequently - perhaps once every week or two, but I have four Web Dynpro applications deployed that call four different function modules in R/3, and all four of them are subject to doing this, as I said, almost completely at random.

There are no short dumps in the system at the time of these errors. I've checked the appropriate trace file, dev_jrfc.trc, and though the error does in fact appear there, it is accompanied by no additional information.

ilja_farber
Employee
Employee
0 Kudos

"Connection reset by peer" mean the ABAP Server reseted the connection. In most cases an abap short dump caused an abort of the session.

Take a look into st22.

Former Member
0 Kudos

hi,

Please find the URL with information about 'JCo Exceptions' on SAPHelp:

http://help.sap.com/saphelp_nw04s/helpdata/en/f6/daea401675752ae10000000a155106/content.htm

Please also find the URL containing Javadoc on 'Class JCO.Exception' at:

http://www.huihoo.org/openweb/jco_api/com/sap/mw/jco/JCO.Exception.html

regards,

gopi

ryan_wicks
Explorer
0 Kudos

We are experiencing this exact same problem. All the JCo connections have been setup correctly. We only see the error sometimes (1 out of 20 calls). Does anyone know what could be causing this?

Former Member
0 Kudos

Hi Eason,

did you create all the JCO destination that you are using in your application ? Did you test them all ?

Regards,

Julien

Former Member
0 Kudos

Hi Julien,

I have create all JCO setting in my application and test ok.

When I deploy and run my application, sometimes OK and sometimes the exception occurs.

any idea?

thanks for your help!

Eason