JCO communication error/ failure

In all scenarios, XML file has been picked up from the destination but not found in the target directory.
( In Adapter Framework the inbound and outbound messages are in green color.)
In qRFC monitor (TC smq2) the status is SYSFAIL.
When double clicking the SYSFAIL, a window shows that "communication failure during JCO all error"
Could you please let me know what is the error and how to solve this ?
Regards,
Ashok kumar

Ashok -
Did you check these links:
Mapping Error :JCO_COMMUNICATION_FAILURE
getting error "JCO_COMMUNICATION_FAILURE"
JCO_COMMUNICATION_FAILURE
JCO_COMMUNICATION_FAILURE
Hope those help.
Thanks,
Tirumal

Similar Messages

  • Random JCO Communication Failure Error after Hardware Migration

    Greetings experts,
    we had a migrated our XI server to new hardware and had couple of SLD related issues which were solved by the migration team. However, we are getting JCO communication failure very frequent whenever we use JCO from JAVA to call an RFC. The weird thing, if you restarted the message it will be successful.
    The error message in the message monitor :
    "COMMUNICATION FAILURE" during JCo call. Error opening an RFC connection"
    Any idea to solve this random issue?

    Hi again,
    the number of connection was increased to 200 but with no effects. Also, the user used to connect is a system user which does not need a ticket.
    This is my connection code
                   mConnection = JCO.createClient("600", // Client
              "USER", // Username
              "PASSWORD", // Password
              "EN", // Language
              "hostname", // Host
              "01"); // System Number
    do I need to add anything else if I am using a clustered system?

  • System Error due to JCO communication failure? during mapping

    in my JDBC-XI-Proxy scenario,
    there is BPM with a transformation step,
    in that step, during execution it gives Jco failure error, and particularly when the payload is very large....
    my question is:
    1.  how JCo communication failure occurs in case of mapping??
    2. why its only when the payload is huge??

    Sudheep,
    1, The Mapping is alaways executed in the Java Stack. And so win the runtime there needs to be a connection between the ABAP stack and the Java Stack for the Mapping to get exectued. The TCP IP Connection AI_RUNTIME_JCOSERVER is used for this purpise in SM59.
    2. When the payload is huge , there can be a over flow of the java Heap memory and this needs to be increased. Ask your Basis team to increase the java heap size if you do not want to face this issue.
    Regards
    Bhavesh

  • Mapping: JCO Communication Failure

    Hi Experts,
    I am working on a scenario PROXY<-->PI<-->SOAP.
    When i trigger the proxy from SPROXY, the message gets stuck in PI with an error Mapping: JCO Communication Failure. I have checked the RFC destinations AI_RUNTIME_JCOSERVER and AI_VALIDATION_JCOSERVER in the PI system, both of which are successfully connected. the correct entiry is also maintaine in sxmb_adm.
    I am not sure what could be the issue otherwise. I am not sure if we are missing any configuration on the PI side.
    Any idea how can i get this resolved.
    Thanks in advance.
    Regards
    Tanzoom

    Hi Tanzoom,
    You get this kind of error when there are lots of messages to be processed simultaneously.  Every message mapping needs one connection. If all 10 available connections are blocked from other messages you get this kind of error. Try increasing the the number of processes in VisualAdmin.
    Also refer this below blog
    http://scn.sap.com/blogs/saprouter/2012/08/07/jcocommunicationfailure
    Best Regards,
    Monikandan.

  • Getting communication link failure error

    Hi,
    I am getting communication link failure error frequently in my website. Can you tell me why this error is coming & how can I resolved this issue
    Thanks

    What is the complete error? Do you have any stack which you can share?
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Fiori Launchpad Error: Failure - Unable to load groups Resolved!!!!

    Hey Good Fellas,
    This is a solution rather than a discussion, which i thought to do to with a kind generosity of spirit to give back to the community.
    It gives me immense pleasure and happiness to write this particular post, because it is through SCN only i have been able to find the solution.
    Ok, let's get down to the Business quickly, shall we?
    I have been configuring Fiori App - Approve Purchase Orders. All the tasks for this have been done from SAP Help Site.
    Recently I upgraded the ERP/Gateway (Its an embedded deployment) to EHP 7 and UI to SP09, post which the Fiori Launchpad started giving the below error.
    If you look around the SCN, you will probably hit across these threads and so did I.
    http://scn.sap.com/thread/3571448
    SAP Fiori - UI Add-on SP09 update troubleshooting
    With the first thread, I tried everyone's solution and suggestions which had worked for others, but it didn't for me.
    With second thread (Excellently posted by Masayuki Sekihara), it started off with lots of efforts and double-checks applying all of these notes hoping that it would resolve the issue. But I had done all the steps 1-8 and still didn't get the solution.
    Besides the above two mentions I did umpteen number of other ridiculous things like implementing this note, that note, De-implementing another of the notes and everything i found as possible solutions on the Web.
    Now, the breakthrough here is checking the errors in /IWFND/ERROR_LOG. Well, on the browser it used to give error 'Failure - Unable to Load Groups' while at the server side, actual error was something unusual and remotely not related to what the error looked like in the browser. In the back-end, I was getting the error "Data Provider implementation 'ZINTEROP_MODEL_0001_BE' '01' 'DEFAULT' does not exist". And this is something i know how to correct.
    So just keep looking for the errors in /IWFND/ERROR_LOG and shift your focus there. That's really a good place to trouble-shoot.
    And for the record to take care of the error 'Data Provider implementation 'ZINTEROP_MODEL_0001_BE' '01' 'DEFAULT' does not exist' you have to assign the DPC (Data Provider Class) to DMC (Data Modelling Class) correctly by navigating to IMG - SAP Netweaver - Gateway - Former Development - Local OData Channel Development - Registration - Assign Data Provider to Data Model. There you define the Data provider with the correct Software Version and Voila you are all set! You don't have to worry about the duplicate entry with another Software version, your correct software version is the one you have defined in the System Alias which you are using inside the service, which is generally DEFAULT.
    I am able to get inside the Fiori Launchpad now (I was quite at edge to really give up as all the possible solutions had been ruled out for me ) and do see the tiles of the apps configured.
    I hope this is going to be a good take-away for others who are having Odata handling issues.
    The floor is all yours now for your kind feedback. Be gentle with me, I am a very shy blogger.
    Best Regards,
    Akshay

    Steve,
    If you still have the error, this is what I did to resolve mines.
    1) Goto SPRO - SAP Netweaver - Gateway - Former Development - Local OData Channel Development - Registration - Assign Data Provider to Data Model
    2) Find out the entry for 'ZINTEROP_MODEL_0001_BE'
    3) Copy that entire row in a notepad for all the fields
    4) Create new Entry with all the fields, except change the Software Version to DEFAULT (As that's what missing for you'
    5) Save and give that another try.
    This is what I exactly wrote in my solution as well.
    Akshay wrote:
    And for the record to take care of the error 'Data Provider implementation 'ZINTEROP_MODEL_0001_BE' '01' 'DEFAULT' does not exist' you have to assign the DPC (Data Provider Class) to DMC (Data Modelling Class) correctly by navigating to IMG - SAP Netweaver - Gateway - Former Development - Local OData Channel Development - Registration - Assign Data Provider to Data Model. There you define the Data provider with the correct Software Version and Voila you are all set! You don't have to worry about the duplicate entry with another Software version, your correct software version is the one you have defined in the System Alias which you are using inside the service, which is generally DEFAULT.
    A screen-shot perhaps helps you more.
    Let the other duplicate entry with Software Version other than Default be there. Important is that the software version that you have defined in your alias must be the one over here.
    Let me know how that goes?
    -Akshay

  • RFC communication error

    hi guys,
    our company has SAP servers in location A which often communicates with servers in location B. recently we moved both DEV and PRD servers to location C from A. the servers from B and C communicates via a VPN link.sequel to this movement we changed the IP configuration of all the systems. presently users in location B can access the PRD server in C but are not able to access the DEV server.
    the following error messages appears:
    ON PRD
    TMS Alert viewer
    transport control program tp ended with error code 0212
    error:could not access file as supposed
    command:SHOWBUFFER PRD PF=
    SAPDEV\sapmnt\trans\bin\TP_DOM
    while on DEV
    message:RFC-communication failure
    RFC communication error with system/destination
    partner not reached
    would appreciate if u culd profer a solution as soon as possible
    Regards walata

    Hi Walat,
    User access problem :-
    You located at location B are not able to access server DEV which is located C
    Pls take help from your system administrator for doing below task if you are not aware about output
    From location B try to telnet server DEV on port 32<NN> or 36<NN>  ( <NN> is your instance no of DEV )
    for e.g
    from command prompt run the following command
    telnet < dev server ip >  32<NN>
    check the ouput
    How to check the ouput
    1   after giving the above command, if you get blank screen it mean ports are open
    2  after giving the above command, if you get ouput on screen like " conneting to server < dev server ip > it mean ports are not open
    If the ports are not open then inform you network team that port mention aboev should be open for users.
    once the ports get open check above step again , if you get the blank screen , then you wil be able to login to SAP
    Server to Server Access problem :-
    From server DEV to PRD and vice versa check whether you can share the drives .
    if yous system team that yor PRD system should be able to to access the share folder sapmnt of server DEV ( SAPDEV )
    As well as check server to server port 33<NN> is open or not
    Any query pls reply.
    Thanks
    Anil

  • ColdFusion 10 - MySQL Communications link failure

    We are migrating some websites onto a cloud infrastructure running Windows 2008 virtual machines.  These websites all run on ColdFusion with MySQL databases.  They currently are running in our CoLo with no problems.  Additionally, they are running on our development network in our offices with no problems.
    We are setting up our cloud to match as closely as possible the configuration we currently use which is, essentially, CF10 + IIS on one server and MySQL on a separate machine.  We are 99% finished and most things are running great.  However....
    We have run into a couple, as in 2, places where we click a link/button and are greeted with:
    Error Executing Database Query.
    Communications link failure The last packet successfully received from the server was 0 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
    Scanning the stack-trace I also find:
    `Caused by: java.net.SocketException: Connection reset`
    The communications link error is ALWAYS: 0ms.
    What's most puzzling is the Queries that seem to be causing this are *simple* queries that are used ALL OVER the sites with no problems.  Why they are failing at hese 2 particular places has us at wits end.
    Our only clue is, looking at the CF Error description of what scripts are called, we can see the script where the query is failing is getting called twice?  For example, one of the occurences is in our Application file:
        >The error occurred in D:/Our_Web_Sites/oursite/Application.cfm: line 73
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 17
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 1
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 73
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 17
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 1
    We can find nothing in our CF code that would be causing the script to be called twice so our guess is the first call is failing on the Query so CF tries again...only to fail and error.
    Googling this issue I've found lots of posts about changing the MySQL timeouts.  None of those worked and I didn't expect them to since what we're dealing with doesn't appear to be a timeout issue.  These pages fail each and every time.
    The closest we've come to a solution came from this blog posting:
    http://www.talkingtree.com/blog/index.cfm/2011/1/12/Validation-Query-for-MySQL-communicati ons-link-failure
    If we UNCHECK the "Maintain connections across client requests. " setting in CFAdmin then the error goes away.  The blog suggests leaving that checked, which is our preference, and using Connection Validation of "SELECT 1;".  Try that...same error.
    We've also tried the JDBC AutoConnect=true option.  No effect.
    Downloaded latest JDBC Connector and used it instead of standard CF10-MySQL connector.  No effect.
    Again, 99% of the site works with the exception of these two links, both of which work just fine in all our other environments.  Any other ideas?

    I have some questions.
    1) You talk of 2 calls. However, you show us 5 calls from Application.cfm. What do those line numbers tell us?
    2) Shouldn't that be AutoReconnect=true rather than AutoConnect=true? In any case, it seems that the problem here is that ColdFusion attempts to use a stale connection to the database. It is then usually preferable to change wait_timeout instead. The MySQL documentation says, 'Alternatively[to AutoReconnect=true], as a last option, investigate setting the MySQL server variable "wait_timeout" to a high value, rather than the default of 8 hours.'.
    3) Shouldn't you already convert to Application.cfc?

  • Communication channel Failure of SFTP adapter type.

    Hi,
    I have a communication channel failure while sending data from a system using SFTP adapter.But when i cross checked in SXMB_MONI i am unable to find any errors.
    Error is : Current transaction is marked for rollback: Trace of setRollbackOnly() invocation. (Software version: 3.0.17).
    Do anyone face this error previous?
    Thanks,
    Kumar

    Hi,
    i am  using advantco SFTP adapter at sender side, it is giving the following error in Runtime workbench
    Error: Cannot connect to SFTP server. Host: #######; port:##; username: ######; home directory: ; current directory: ; ; private key store: ####; private key alias: ###; ; server version: SSH-2.0-Connect:Enterprise_UNIX_2.4.02:
    connection is closed by foreign host (Software version: ###)
    cross checked the SFTP connection, it is working fine.
    Can anyone have an idea about SFTP adapter?
    Regards,
    Kumar

  • Communication link failure

    Hai guys,
    I am using Mysql5.o.
    I set classpath to mysql.jar
    Driver is successfully loaded
    But it throws Exception like
    java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream
    Help me
    Thank u.

    I was also facing the similar problem.
    I have installed MySQL Server 4.1.16 and was using the jdbc 3.0.6 version.
    Though the documentation says that it works; but i was getting the "SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream" error.
    Then I upgraded the jdbc driver to version 5.0.4 and it worked.
    Cheers
    Tapesh

  • RFC Communication error when doing initial indexing

    Hello Everyone,
    I have a quick question, when doing the initial index rollup for a BIA index the job is failing with RFC communication error.
    We currently have the setting related to " TREXRfcServer threads" set to "Automatic Changes" in order to avoid the RFC Communication errors when loading big loads in BI system.
    We currently are on Revision 49.
    I also have referred to OSS Note 1138603.
    The issue is when I am rolling up the BIA Index the rollup job is failing with RFC Communication errors.
    The Global parameters within BIA are:
    BATCHPARA - 2
    NUMPROC - 5
    PKGSIZE - 10000000
    SUBPKGSIZE - 20000
    We have two app servers with 52 Dialog processes and 25 Background processes.
    Any help would be really appreciated.
    Thanks
    Dharma.

    Removing references to systems and ports
    Issue:
    When the initial indexing is being carried out for an InfoCube to
    create the BIA Index and there is more than one application server in
    the system the job is failing with the http error.
    Hello Everyone,
    Thanks for the input, after the automatic changes was configured for concurrent requests the error is different right now.
    The error message is,
    "Remote communication failure with partner http://<Removed>:<removed>/indexCellTable"
    Overview/Background:
    When the indexing job is triggered as a background job the failure happens when the S table index is being filled.
    In our system where we are trying to do the stress testing we currently have two app servers and one central instance.
    When I limit the RFCGROUP in RSDDTREXADMIN table to one App server in terms of logon group the job finishes fine.
    Whereas, when I do not limit the RFCGROUP and all app servers are open for access the background job finishes with the error message
    Remote communication failure with partner http://<Removed>:<removed>/indexCellTable.
    We have looked into the OSS Note 1102652 and our BASIS team confirmed that they were able to ping from BI App servers into BIA blades and vice versa.
    We also confirmed if the local gateway was used for connectivity.
    The above issue was not in other systems where we only had one server.
    We currently are at Revision 49 and SP 13 in BI.
    We have E5345 Clowertown blades (2 x 4) 16GB blades.
    Please let us know if you need additional information.
    Thanks in advance for the input.
    Dharma.
    Edited by: Arun Varadarajan on Apr 24, 2009 1:36 AM

  • CF11 is crashing ( application pool suffered a fatal communication error with the Windows Process Activation Service)

    I have a cluster of 2 IIS web servers on Windows Server 2008 R2. They had been running on CF10 for over a year (if not two) with no problems. I upgraded one server to CF11 and now that server is crashing while the CF10 servers is still running fine.
    In the Windows event log I'm seeing 4 instances of this error:
    "A process serving application pool '******' suffered a fatal communication error with the Windows Process Activation Service. The process id was '4652'. The data field contains the error number."
    Then finally:
    "Application pool '******' is being automatically disabled due to a series of failures in the process(es) serving that application pool.".
    Looking at the application pool in the IIS admin it is stopped. Restarting will resolve but it will eventually crash.
    What could be the issue?
    -Phil

    I'm seeing in the CF logs leading up to the crash:
    Jun 04, 2014 11:11:31 AM org.apache.coyote.ajp.AjpProcessor getRealPathFromServer
    SEVERE: Error in getRealPathFromConn
    java.net.SocketException: Connection reset by peer: socket write error
      at java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.net.SocketOutputStream.socketWrite(Unknown Source)
      at java.net.SocketOutputStream.write(Unknown Source)
      at org.apache.coyote.ajp.AjpProcessor.getRealPathFromServer(AjpProcessor.java:402)
      at org.apache.coyote.ajp.AbstractAjpProcessor.getRealPath(AbstractAjpProcessor.java:1276)
      at org.apache.naming.resources.FileDirContext.doGetRealPath(FileDirContext.java:202)
      at org.apache.naming.resources.BaseDirContext.getRealPath(BaseDirContext.java:424)
      at org.apache.catalina.core.StandardContext.getRealPath(StandardContext.java:4660)
      at org.apache.catalina.core.ApplicationContext.getRealPath(ApplicationContext.java:432)
      at org.apache.catalina.core.ApplicationContextFacade.getRealPath(ApplicationContextFacade.ja va:333)
      at coldfusion.runtime.ServletContextWrapper.doGetRealPath(ServletContextWrapper.java:184)
      at coldfusion.runtime.ServletContextWrapper._doGetRealPath(ServletContextWrapper.java:116)
      at coldfusion.runtime.ServletContextWrapper.getRealPath(ServletContextWrapper.java:98)
      at coldfusion.filter.FusionContext.getRealPath(FusionContext.java:999)
      at coldfusion.filter.FusionContext.getRealPath(FusionContext.java:937)
      at coldfusion.runtime.RuntimeServiceImpl.resolveTemplatePath(RuntimeServiceImpl.java:866)
      at coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:420)
      at cfApplication2ecfc1835967654.runPage(C:\Data\http\domain\apps\Application.cfc:3)
      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
      at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
      at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java: 538)
      at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:248)
      at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:159)
      at coldfusion.runtime.TemplateProxyFactory.resolveFile(TemplateProxyFactory.java:120)
      at coldfusion.cfc.CFCProxy.<init>(CFCProxy.java:138)
      at coldfusion.cfc.CFCProxy.<init>(CFCProxy.java:84)
      at coldfusion.runtime.AppEventInvoker.<init>(AppEventInvoker.java:64)
      at coldfusion.filter.PathFilter.resolveApplicationScope(PathFilter.java:195)
      at coldfusion.filter.PathFilter.invoke(PathFilter.java:124)
      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
      at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
      at coldfusion.CfmServlet.service(CfmServlet.java:219)
      at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
      at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:97)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorR equestHandler.java:472)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest( FusionReactorRequestHandler.java:312)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(Fusio nReactorRequestHandler.java:192)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorR equestHandler.java:507)
      at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCor eFilter.java:36)
      at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:79)
      at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactor StaticFilter.java:53)
      at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChai nPointCut.java:41)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

  • Java JDBC Communication Link Failure

    Hi,
    I have a Java application which utilizes the JDBC mysql connector 5.1.6. It works great, and I am able to connect to my MySQL database just fine and execute queries perfectly.
    However, it seems that if my server idles for certain periods of time without issuing a command to the MySQL server (and this idle period seems to be variant; sometimes if it sites just 5 minutes I get this error, other times it has to idle for close to 25 minutes before it gives me this error):
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    Last packet sent to the server was 1493610 ms ago.Obviously the "... ms ago" part varies based on how long the server was idling.
    This is a particular problem for me because the purpose of my application is to be one part in more of an enterprise information system. So this connection to the database is intended to make an update every 25 minutes to update a user's session data in my database. Unfortunately, when idling for this long it will just error out.
    My temporary solution has been to catch this exception, reconnect, and re-issue the query which is working, but that's like putting a band-aid on a wound that needs stitches. The real problem is I have so many areas in my code where I execute commands that it would make it difficult to maintain if I had to use this Try-Catch method of reconnecting in each spot.
    Is there some timeout setting I need to set in MySQL or in the JDBC to stopt his error from happening? I have read the MySQL documentation and its timeout is already set to an hour so that shouldn't be the problem...
    Thanks!

    I searched for this on google:
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications
    and here is a link that might help:
    http://forums.mysql.com/read.php?39,199085,204628#msg-204628
    I think the key to your problem is the last line in that link. In connection pooling, you should get a connection, use it, then close it as quickly as possible (ideally, all in the same function within try/catch/finally block) for each time you need to use a connection (hundreds of times within your application). I suspect you open a connection and keep it open with the anticipation that there is a performance penalty in alternatively opening and closing it hundreds of times. There is none. The act of getting and closing a connection from a connection pool is a lightweight operation (in terms of performance). I suggest going back and refactoring your code with the above in mind. That way, your connections will never time out (they are only open for a few milliseconds at a time).

  • CLI0108E Communication link failure. After clone machine

    AIX 5.3
    SAP R / 3 4.7 Enterprise 110
    DB2 9.5 fix pack 2
    We did a clone machine that already had SAP and DB2 9.5 installed and changed the host and ip.
    After adjustments sidadm user profiles, user db2prd and adjust db2conf password file, database and SAP initialize however, is occurring Dumps:.
    Database error text........: "CLI0108E Communication link failure.
    SQLSTATE=40003"  
    Previously the same dump occurred when accessed RZ10- import profile of active server. Once deleted entries in the tables  TPFET and TPFHT dump no longer occurs in RZ10.
    The dump occurs in certain situations such as: SE06-Data base or Data Migration Perform post-installation.After that the dump occurs and the following message appears: connection lost to database, session terminated and closes the connection to SAP.
    I thought about asking the customer to perform the clone in separate network with the same host or conduct a new HSC if no solution.
    I appreciate any help.
    Below are some logs:
    Fri Oct 14 19:19:26 2011
    C  *** ERROR in DB6Fetch[dbdb6.c, 3385] CON = 0 (BEGIN)
    C  &+     DbSlExeReadDB6( SQLFetch ): [IBM][CLI Driver] SQL1224N  The database manager is not able to accept new requests, h
    C  &+     as terminated all requests in progress, or has terminated your particular request due to an error or a force inter
    C  &+     rupt.  SQLSTATE=55032                                                                               
    C  &+                                                                               
    C  &+     SELECT * FROM "E070" WHERE NOT ( "TRKORR" LIKE ? ) AND "TRSTATUS" <> ? AND "TRFUNCTION" IN ( ? , ? , ? , ? , ? , ?
    C  &+      , ? )                                                                               
    C  &+       cursor type=NO_HOLD, isolation=UR, cc_release=NO, optlevel=5, degree=1, op_type=18, reopt=0                    
    C  &+       ABAP location info: 'SAPLSTRO', 1286                                                                           
    C  &+                                                                               
    C  &+     Input SQLDA:                                                                               
    C  &+                        1 CT=CHAR            T=VARCHAR         L=4     P=4     S=0   
    C  &+                        2 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        3 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        4 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        5 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        6 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        7 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        8 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        9 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                                                                               
    C  &+     Input data:                                                                               
    C  &+     row 1: [ERR]       1 CHAR            I=4       "SAP%"
    C  &+                        2 CHAR            I=1       "R"
    C  &+                        3 CHAR            I=1       "C"
    C  &+                        4 CHAR            I=1       "K"
    C  &+                        5 CHAR            I=1       "L"
    C  &+                        6 CHAR            I=1       "R"
    C  &+                        7 CHAR            I=1       "S"
    C  &+                        8 CHAR            I=1       "T"
    C  &+                        9 CHAR            I=1       "W"
    C  &+                                                                               
    C  &+     Output SQLDA:                                                                               
    C  &+                        1 CT=CHAR            T=VARCHAR         L=20    P=20    S=0   
    C  &+                        2 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        3 CT=CHAR            T=CHAR            L=1     P=1     S=0   
    C  &+                        4 CT=CHAR            T=VARCHAR         L=10    P=10    S=0   
    C  &+                        5 CT=CHAR            T=VARCHAR         L=4     P=4     S=0   
    C  &+                        6 CT=CHAR            T=VARCHAR         L=12    P=12    S=0   
    C  &+                        7 CT=CHAR            T=CHAR            L=8     P=8     S=0   
    C  &+                        8 CT=CHAR            T=CHAR            L=6     P=6     S=0   
    C  &+                        9 CT=CHAR            T=VARCHAR         L=20    P=20    S=0   
    C  &+                                                                               
    C  &+     ABAP location info 'SAPLSTRO', 1286                                                                               
    C  &+     SAP user 'PWBASIS', transaction code 'SE06'                                                                      
    C  &+                                                                               
    C  *** ERROR in DB6Fetch[dbdb6.c, 3385] (END)
    B  ***LOG BYM=> severe DB error -1224     ; work process in reconnect status [dbsh#4 @ 1127] [dbsh    1127 ]
    B  ***LOG BY4=> sql error -1224  performing FET on table E070       [dbtran#13 @ 7371] [dbtran  7371 ]
    B  ***LOG BY0=> SQL1224N  The database manager is not able to accept new requests, has terminated all requests in progress, or has terminated your particular request due to an error or a force interrupt.  SQLSTATE=55032 [dbtran#13 @ 7371] [dbtran  7371 ]
    B  dbtran ERROR LOG (hdl_dbsl_error): DbSl 'FET'
    ============================================
    C Fri Oct 14 19:20:18 2011
    C  *** ERROR in DB6Connect[dbdb6.c, 1482] CON = 0 (BEGIN)
    C  &+     DbSlConnectDB6( SQLConnect ): [IBM][CLI Driver] SQL1032N  No start database manager command was issued.  SQLSTATE=
    C  &+     57019                                                                               
    C  &+                                                                               
    C  &+                                                                               
    C  *** ERROR in DB6Connect[dbdb6.c, 1482] (END)
    C  *** ERROR => DbSlConnect to 'PRD' as 'sapprd' failed
    ==========================================
    db2diag.log
    2011-10-14-19.19.27.022877+000 E5735635A801       LEVEL: Critical
    PID     : 1233036              TID  : 5913        PROC : db2sysc 0
    INSTANCE: db2prd               NODE : 000
    EDUID   : 5913                 EDUNAME: db2pclnr (PRD) 0
    FUNCTION: DB2 UDB, base sys utilities, sqle_panic, probe:10
    MESSAGE : ADM14001C  An unexpected and critical error has occurred: "Panic".
              The instance may have been shutdown as a result. "Automatic" FODC
              (First Occurrence Data Capture) has been invoked and diagnostic
              information has been recorded in directory
              "/db2/PRD/db2dump/FODC_Panic_2011-10-14-19.19.26.809033/". Please
              look in this directory for detailed evidence about what happened and
              contact IBM support if necessary to diagnose the problem.
    2011-10-14-19.19.26.800536+000 I5720080A624       LEVEL: Severe
    PID     : 1233036              TID  : 14651       PROC : db2sysc 0
    INSTANCE: db2prd               NODE : 000         DB   : PRD
    APPHDL  : 0-44                 APPID: *LOCAL.db2prd.111014191834
    AUTHID  : SAPPRD 
    EDUID   : 14651                EDUNAME: db2agent (PRD) 0
    FUNCTION: DB2 UDB, buffer pool services, sqlbCleanupBeforeTerm, probe:837
    MESSAGE : ZRC=0x8602001A=-2046689254=SQLB_BADD "Bad Database, Can't flush"
              DIA8427C The database has been marked as being damaged.
    DATA #1 : String, 48 bytes
    A portion of SQLB termination processing failed.
    2011-10-14-19.19.26.801650+000 I5720705A430       LEVEL: Error
    PID     : 1233036              TID  : 5656        PROC : db2sysc 0
    INSTANCE: db2prd               NODE : 000
    EDUID   : 5656                 EDUNAME: db2pclnr (PRD) 0
    FUNCTION: DB2 UDB, data protection services, sqlpgild, probe:310
    RETCODE : ZRC=0x8610000D=-2045771763=SQLP_BADLOG "Log File cannot be used"
              DIA8414C Logging can not continue due to an error.
    2011-10-14-19.48.44.487238+000 E6321299A549       LEVEL: Severe
    PID     : 1019968              TID  : 258         PROC : db2wdog 0
    INSTANCE: db2prd               NODE : 000
    EDUID   : 258                  EDUNAME: db2wdog 0
    FUNCTION: DB2 UDB, base sys utilities, sqleWatchDog, probe:20
    MESSAGE : ADM0503C  An unexpected internal processing error has occurred.  ALL
              DB2 PROCESSES ASSOCIATED WITH THIS INSTANCE HAVE BEEN SHUTDOWN. 
              Diagnostic information has been recorded.  Contact IBM Support for
              further assistance

    Hi Shahin,
    At the time I did not find a solution, so I installed the R / 3 4.7 on a machine with the same host and then I did a homogeneous system copy.
    At the time I did not find a solution, so I installed the R / 3 4.7 on a machine with the same host and then I did a homogeneous system copy.
    Perhaps an export base correct the problem. I have not tried the time.
    If you find a solution, let us know.
    regards,
    Emerson

  • Communication link failures

    I have been seeing a lot of communication link failures in my applications log (Specifically 08s01 errors) and I was wondering if anyone has tried adjusting the TCP/IP property "Keep Alive" with any success in preventing dis-connects. I am reasonable
    confident that the dis-connects are being caused by snap shots being taken (VSS), and once my app loses the persistent connection it will throw the error. Any thoughts on the subject would be much appreciated.

    Hi Curtizus,
    Please help to post the detail error log information about this issue, and also collect log information from the SQL Server side. I found a KB article to deal with this issue, please reference it:
    "General Network error," "Communication link failure," or "A transport-level error" message when an application connects to SQL Server:
    http://support.microsoft.com/kb/942861/en-us
    Hope this helps.
    Elvis Long
    TechNet Community Support

Maybe you are looking for