IDOC Listener Exception

Hello ,
I configured an IDOC Listener in xMII to execute a transaction when it recieves an IDOC in routing rules. But when an IDOC is sent to xMII, it is saved to "\Lighthammer\JCO\Output" folder but the transaction is not executed. And i am getting an exception
"error making call to xacute java.net.SocketException: Software caused connection abort:" .
Thanks,
Srinivas.

Hi,
The transaction is working fine. I tested it manually.
I saw the error in the general log of xMII. This is really a weird behaviour. I am using xMII 11.5.1 b54.
This is the exception i got :
Error making call to xacute java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1360) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:790) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2271) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2651) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1087) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497) at com.lighthammer.jco.system.XacuteHelper.run(Unknown Source) at com.lighthammer.jco.server.JCOServer.process(Unknown Source) at com.lighthammer.jco.server.LHiDocServer.handleRequest(Unknown Source) at com.sap.mw.idoc.jco.JCoIDoc$Server.dispatchRequest(JCoIDoc.java:10226) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(MiddlewareRFC.java:1368) at com.sap.mw.jco.JCO$Server.listen(JCO.java:6844) at com.sap.mw.jco.JCO$Server.run(JCO.java:6773) at java.lang.Thread.run(Thread.java:534)
Thanks,
Srinivas.

Similar Messages

  • Configuring IDOC Listener on MII 12.1

    Hi,
    I had a basic question around the configuration.
    This is from 12.1 help:
    "The SAP Java Resource Adapter (SAP JRA) server is used to connect to SAP ERP Central Component (SAP ECC) to receive remote function calls (RFC) and IDocs. You can use the asynchronous HTTP interface to post data to SAP MII for asynchronous transaction processing."
    In this regard is it mandatory to first configure SAP JRA on NW and then proceed with the IDOC specific config both on the R/3 as well as NW side?
    The reason I ask this is that we are currently struggling with this config on 12.1.8 (build 30) where the BASIS folks are observing that the system hangs when they try to add enteries to the XMIIIDOC component . Before going through with the IDOC config they made sure that the JRA is configured and followed the steps as mentioned in the 12.1 installation guide under "Configuring JRA for JRA Actions" & "Cloning the default JRA Config" sections.They are simultaneously also following up in the NW forums to find a solution.
    Additionally I had another question (this one's specifically for MIke Appleby ). Would one have to follow similar config steps as IDOC when configuring the RFC listener , atleast from the NW CE perspective? We are trying to download Control Recipes from R/3.
    Thanks
    Udayan

    Hi Udayan,
    Yes, the configuration for the RFC Listener is essentially the same as the IDoc Listener, except the binding is different (do not change either type from the default values and you should be fine).
    The differences between the two Listener types are really on the ECC side.  The installation instructions for Batch Manufacturing included the RFC Listener setup.  Keep meaning to write a separate document for RFC Listeners, but haven't yet.
    One general note of caution for all readers:
    Do not reuse ProgIDs from an IDoc Listener in an RFC Listener and vice versa.  Only use a unique ProgID once (and deleting them from one Listener or MII server to use them elsewhere is generally not advisable). 
    Roughly 90% of the tickets entered for IDoc Listeners with MII are because of ProgIDs used in more than one place.
    Regards,
    Mike

  • IDOC Listener for 12.1 to ECC 6.0 is now available

    [IDoc Listener|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a02bc706-15f2-2c10-1aab-a1927ada11f0]
    The ECC 6.0 side is virtually unchanged, but there were significant changes in NW and MII.
    Enjoy!  Or let me know if there are any areas that need improvement or clarification.
    Thanks,
    Mike

    Hi,
    There are no standard timeliness for the upgrade project. It depends upon number of factors like number of background processes, no of R3trans processes defined in configuration phase, Memory parameters etc. So, it is really difficult to give you an estimate for this. Best option is do the test upgrade, so that you will get an idea how much time it will take.
    Also, If you want to migrate your existing system to new hardware then I would suggest you to install your system as unicode system on new hardware as a result you can save a lot of time because of unicode conversion in CUUC.
    Thanks
    Sunny

  • IDOC Listener not calling BLS Transaction

    All,
    I am running xmii 11.5.4.  I have a single IDOC Listener configured with a Routing Rule for Message Type = "PROCESS_MESS_DOWNLOAD".  The Routing Rule is defined to trigger a BLS called "TEST_BLS".  The Listener is configured with the BLS Input Parameter.
    The Listener processes the incoming message by writing the XML file to the defined Path with no problems.
    The issue is the BLS Transaction will not trigger.  The Transaction has a single Transaction Property of data type XML with no default value defined.
    I have tried using a simple Transaction with nothing but an Event Logger or XML Trace actions to verify the Transaction is being executed. But nothing occurs.
    I have viewed the General Log and see no errors or warnings or fatal log entries.
    The Transaction works fine manually from inside Logic Editor and even runs from a URL invokation.
    Any ideas of what to look for or try would be greatly appreciated.
    Thanks,
    Chuck

    Udayan,
    The Transaction consists of only an Event Logger Action and an XML Tracer Action.  Neither of these are apparently executing.  No event is logged and no entry is made to the XML Tracer file. The Transaction has a Transaction Property defined as stated in my first post.
    I have noticed through trial and error that the IDOC Listener only works with the asterick message type.  The actual message type of the IDOC is evidently not being read by the Listener.  The IDOC being created is coming from a PPPI Process Message.  The first few lines are:
    <?xml version="1.0" encoding="UTF-8"?>
    <PROCESS_MESS_DOWNLOAD>
    <INPUT>
    <CLIENT>200</CLIENT>
    </INPUT>
    <TABLES>
    <MSEL>
    <item>
    <MSID>100000000000000537</MSID>
    Thanks,
    Chuck

  • Where can I find IDOC Listener (xMII 12.05) .It is not in DataServices.

    Hi all,
    I can not find IDOC Listener in Data Services in xMII version 12.05.
    Where can I find the IDOC Listener? Must I set up it first? Or must I do some configurations for IDOC Listener?
    Thanks.

    Cemil,
    in MII 12.0.x you will find the Listener under Message Services -> Message Listener.
    If you need to run a transaction after receiving a IDOC, than you need also to configure
    a Rule under Message Services -> Processing Rule Editor.
    Under the link below you will find the Documentation for Message Services:
    http://wbhelp.sap.com/manufacturing/xmii_120/en/45/aa5d17b8f52e78e10000000a155369/frameset.htm
    Regards
    Pedro

  • IDoc Listener connecting to a clustered SAP

    We have SAP MII V12.1 loaded to Netweaver CE 7.11 EHP1, and want to connect one of the Resource Adapters (an iDoc Listener in this case) to a clustered SAP environment by connecting to a message server / system ID / logon group combination.
    I can successfully connect to a specific application server using server name / port number, but these don't exist within the clustered environment.
    When I point to the message server, I can get the iDoc Listener to sucessfully register a connection to the RFC destination, but it does not receive any iDocs when they are pushed out.
    Note that traditionally, I have used XMIIIDOC01 as a "Resource Adapter" within NW, and configured it to point to a "ServerName" and "PortNumber", but as mentioned these do not exist within a clustered environment.
    Has anybody ever managed to connect XMIIIDOC01 (or similar resource) to a clustered SAP environment, by pointing to a message server / logon group?
    I have been able to successfully configure a new JRA by cloning a "JCA Connection Factory", and call BAPI's etc, but now I want to be able to receive iDocs.
    To be honest, I'm not overly familiar with the NW architecture, nor the relationship between
    1. Resource Adapter
    2. JCA Resource
    3. JCA Connection Factory
    Any assistance greatly appreciated.
    Regards
    Kevin.
    Edited by: Kevin Hibbins on Mar 31, 2011 1:56 AM

    Hi Kevin,
    Were you able to figure out what the relationship is between those 3 components?  If so could you post what you have learned here?
    Thanks.
    Justin

  • Remotely shutting down the idoc listener

    This is onorthodox, and the reason for it is too long to type here.  But is there a way to turn off an idoc listener through a URL that I could run in BLS?  
    Doesn't matter if its recommended or supported.  I'm just curioius.  I'll do it at my own risk

    No there is no service type URL available for this.  The only option is via the Message Listener screen currently. That said....
    You could attempt to post directly to the admin page handler, simulating a call from the JSP page.  That would be your only option.  I really don't recommend it since it could be broken by any service pack.

  • MII 12.1 and IDoc listener

    Hi.
    I have been trying to setup an idoc listener in MII 12.1, but can not figure out where in NWA to do this an how.
    Have anyone tried that? The help file might not be updated on this point.
    BR
    Poul.

    Hi.
    Thanks, I have found this location but could not se anything happening. To start with i missed the parameter setting MaxReaderThreadCount and needed to restart the listener.
    Now I get something in the log but my username and password is not working..
    Thanks a lot for this
    BR.
    Poul.

  • Updated IDoc Listener document

    Hi All,
    There is a new document for building an IDoc listener using MII 12.0 and ECC 6.0.  This will hopefully reduce confusion for those using the documents meant for use with xMII 11.5 and ERP R/3.  Please let me or Diana Hoppe know your comments and suggestions. 
    Since there are so many different ALE configurations possible, we know that we can't address them all.  Nor was that our intention.  We wanted to provide a template and reasonable starting point for building a simple Listener.  If our simple model does not work, you may need to bring an ALE expert into the picture.  We hope that it proves useful to some of you out there.
    [New IDoc Listener Instructions|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/bpx-community/manufacturing/how%20to%20send%20an%20idoc%20from%20sap%20ecc%20to%20the%20sap%20mii%20idoc%20listener.pdf]
    Thanks,
    Mike & Diana

    Thanks.

  • IDoc Listener Settings

    Hi,
    We have our SAP server in some other country and we access that SAP through the following settings in SAP Logon pad
    SID               :    XF5
    Group/Server  :   xpxcp5.xxx.dom.corp
    system #       :   09
    router            : /H/9.99.89.32/H/23.23.23.2/S/3297/H/
    In this case what values i should specify in iDoc Listener Configuration.
    server property : gwhost and in ahost of
    I tried all the combinations and ran out of ideas that I can think off.
    If some one can help me that will great.
    Thanks,
    Srinivas.

    ahost = /H/<saprouter IP>/H/<erp IP>
    The xMII IDOC listener is implemented via SAP JCO.  The SAP JCO documentation explains those parameters a little better than the xMII docs.  This <a href="http://www.sapfans.com/sapfans/forum/intface/messages/4132.html">thread</a> is where we got our answer - perhaps it will help you also.
    -tim

  • Socket Listener  - Exception (Connection refused, reset)

    Dear All,
    We are developing a Socket Listener for an application. when we try to check the performance the below errors came.
    Code
    public static void main(String[] args) {
              ServerSocket ss = null;
              Socket s = null;
              try {
                   ss = new ServerSocket(Integer.parseInt(property
                             .getProperty("SERVER_PORT")), 1500 );
                   while ((s = ss.accept()) != null) {
                        Thread current = new Thread(new ServerSocketListener(s));
                        current.setDaemon(true);
                        // start the user's thread
                        current.start();
              } catch (Exception exp) {
                   exp.printStackTrace();
    Exception 1
    java.net.ConnectException: Connection refused: connect     
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at srm.ServerSocketListener.run(ServerSocketListener.java:143)
         at java.lang.Thread.run(Unknown Source)
    Exception 2
    java.net.SocketException: Connection reset
    Test
    Invoking the Socket Server Listener with 1500 client (Java and .NET) requests.
    Then the above exceptions occurred.
    Help me
    1) Maximum client a port can supports?
    2) Is there any code or property change required?
    3) any other way

                        Thread current = new Thread(new ServerSocketListener(s));
    java.net.ConnectException: Connection refused: connect     Nothing is listening at the host:port you are trying to connect a new socket to.
         at srm.ServerSocketListener.run(ServerSocketListener.java:143)You are trying to create a new Socket inside the ServerSocketListener. Why? You already have a connected socket.
    java.net.SocketException: Connection resetStack trace please. This usually means you have written to a connection that has already been closed by the other end, but there are other possibilities.
    1) Maximum client a port can supports?Please restate your question in standard english.
    2) Is there any code or property change required?Required for what?
    3) any other wayAny other way to do what?

  • XMII 11.5 iDoc Listener on VMware Workstation 6.5.1

    I have installed xMII 11.5.6 b73 on a VMware instance running Windows Server 2003 Standard Edition.  Everything appears to be running fine except for the iDoc Listeners.  When I click the link from the SAP xMII Menu, I receive the following error message:
    Error. The server encountered an unexpected condition which prevented it from fulfilling the request.
    java.lang.NoClassDefFoundError
    +     at com.lighthammer.jco.server.JCOServerManager.(Unknown Source)+
    +     at com.lighthammer.jco.server.JCOServerManager.getInstance(Unknown Source)+
    +     at pagecompile._JCO._ConfigList_xjsp._jspService(_ConfigList_xjsp.java:71)+
    +     at com.newatlanta.servletexec.JspHttpJspPage.service(JspHttpJspPage.java:41)+
    +     at com.newatlanta.servletexec.JspServlet.service(JspServlet.java:1036)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)+
    +     at com.newatlanta.servletexec.SERequestDispatcher.forwardServlet(SERequestDispatcher.java:638)+
    +     at com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java:236)+
    +     at com.newatlanta.servletexec.SERequestDispatcher.internalForward(SERequestDispatcher.java:283)+
    +     at com.newatlanta.servletexec.SEFilterChain.doFilter(SEFilterChain.java:96)+
    +     at com.lighthammer.cms.system.CMSFilter.doFilter(Unknown Source)+
    +     at com.newatlanta.servletexec.SEFilterChain.doFilter(SEFilterChain.java:60)+
    +     at com.newatlanta.servletexec.ApplicationInfo.filterApplRequest(ApplicationInfo.java:2159)+
    +     at com.newatlanta.servletexec.ApplicationInfo.processApplRequest(ApplicationInfo.java:1823)+
    +     at com.newatlanta.servletexec.ServerHostInfo.processApplRequest(ServerHostInfo.java:937)+
    +     at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1091)+
    +     at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:973)+
    +     at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)+
    +     at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)+
    +     at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:487)+
    Here a quick summary of the installed components:
    SAP xMII 11.5.6 b73
    Sun Microsystems Inc. JDK 1.4.2_18
    VMware Workstation 6.5.1
    Assistance in resolving this issue is much appreciated.
    Thanks,
    Michael Teti

    Is the server creating a _JCO folder with .java.class files in that directory?
    - Yes, there was a _JCO folder in the pagecompile directory
    Do you have this file (and is it valid): C:\Lighthammer\JCO\jcoservers.xml
    - Yes, the file exists and contains the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <Servers>
        <Server name="LHJC01">
            <ServerProps trace="0" unicode="0" />
            <ClientProps passwd="cGFzc3dvcmQ=" trace="0" />
            <Routing>
                <Rule msgtype="*" path="C:/Lighthammer/JCO/Output/" />
            </Routing>
        </Server>
    </Servers>
    Are there any General log errors related to this file or iDoc listeners in the startup sequence where it says:
    SystemInit Loading iDOC server configurations...
    xxxxx
    SystemInit Starting iDOC listeners.....
    - Here's what I found...
    ServletExec: caught exception - java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\WINDOWS\system32\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [C:\j2sdk1.4.2_13\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem]
    [Fri Mar 27 17:19:04 EDT 2009] java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\WINDOWS\system32\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [C:\j2sdk1.4.2_13\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem]
    [Fri Mar 27 17:19:04 EDT 2009]      at com.sap.mw.jco.JCO.<clinit>(JCO.java:738)
    [Fri Mar 27 17:19:04 EDT 2009]      at com.lighthammer.jco.server.JCOServerManager.<init>(Unknown Source)
    [Fri Mar 27 17:19:04 EDT 2009]      at com.lighthammer.jco.server.JCOServerManager.getInstance(Unknown Source)
    [Fri Mar 27 17:19:04 EDT 2009]      at com.lighthammer.cms.system.SystemInit.init(Unknown Source)

  • IDOC Listener setup in SAP 4.6C

    Hello,
    from the documentation I've found the Idoc setup should be quite standard, but still real life is different. The 4.6C system here has no registered server program option in the SM59. When I try to test the connection I get the following error: program <PROGID> not registered / CPI-C error CM_ALLOCATE_FAILURE_RETRY.
    The operating system is HP-UX.
    I would be glad to receive any hints.
    Kind Regards,
    Christoph Mertins

    https://forums.sdn.sap.com/click.jspa?searchID=12426260&messageID=5211759 might help.
    As this question is not directly related to MII would suggest you to search other forums as well.

  • File to IDoc Scenario exception handling

    I have configured Time bound File to IDoc scenario with processing mode in Sender adapter as 'Delete'. And it is running perfectly. I am trying to add additional functionality to the scenario, i.e.,if a file does not exist on the ftp server, a mail should be sent to a recipient.
    May be using Java proxy is not appropriate, as poll interval does not be accounted in Java Proxy and file server should be having Java runtime.
    Please can any one suggest, how this can be acheived?
    Regards,
    Suraj Kumar

    Hi Bhavesh,
    What you have understood is correct?
    Any way, I will come out in more detail.
    My Ftp server: //yhsap/xi
    File: xi_for_upload.txt
    Sender Adapter: File Adapter using content conversion with processing mode as 'Delete' and poll interval is 600sec.
    Simple Mapping is achieved.
    Receiver Adapter: IDoc Adapter.
    So, if file is not available in Source system, send mail to [email protected]
    Can you suggest a suitable solution?
    VasanthaKumar: After adding wait step in BPM, can you please illustrate me how to ping the ftp server and how to read whether file is there? Can you please explain in more detail.
    Thanks & Regards,
    Suraj Kumar

  • ORA-12541: TNS:no listener exception

    can anyone tell me how can i resolve this exception....????

    943935 wrote:
    can anyone tell me how can i resolve this exception....????<sorry, wrong error>
    http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/
    Edited by: EdStevens on Jul 3, 2012 12:50 PM

Maybe you are looking for