"Software caused connection abort: recv failed" from Applet in IE to JBoss

Hi
We have an application hosted as applets on our web-site, but offer the
same application to customers as a "standalone" off-line version. This
off-line version is the same code-base, deploy and HTML but run from the
local file system (in the absence of a web-server).
I have a J2EE Jasper Reporting framework running in JBoss. On the off-line
product JBoss runs on the same machine.
The on-line version works perfectly in both IE and FireFox.
The off-line version works perfectly in FireFox, but alas, NOT in IE!
First, here's some code:
private JasperPrint generateReport() {
          Hashtable enva = new Hashtable();
          System.out.println("enva.put(\"java.naming.factory.initial\", \"org.jnp.interfaces.NamingContextFactory\");");
          enva.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
          System.out.println("enva.put(\"java.naming.factory.url.pkgs\", \"org.jboss.naming:org.jnp.interfaces\");");
          enva.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
          int port = 1099;
          String host = "127.0.0.1";
          System.out.println("enva.put(\"java.naming.provider.url\", \"jnp:// " + host + ":" + port);
          enva.put("java.naming.provider.url", "jnp:// " + host + ":" + port);
          try {
               System.out.println("Context ictx = new InitialContext(enva);");
               Context ictx = new InitialContext(enva);
               System.out.println("Object o = ictx.lookup(\"java:/SessionReport\");");
               Object o = ictx.lookup("java:/SessionReport");
               System.out.println("SessionReportControllerHome home = (SessionReportControllerHome) PortableRemoteObject.narrow(o, SessionReportControllerHome.class);");
               SessionReportControllerHome home = (SessionReportControllerHome) PortableRemoteObject.narrow(o, SessionReportControllerHome.class);
               System.out.println("SessionReportController remote = home.create();");
               SessionReportController remote = home.create();
               PSIberRDSParameterSEIFSAPensionProvidendFund rVO = new PSIberRDSParameterSEIFSAPensionProvidendFund();
               //call the function on remote
               try {
                    JasperPrint jasperPrint = new JasperPrint();
                    JasperVO jasperVO = remote.generateMyJasperReport(rVO);
                    jasperPrint = jasperVO.getJasperPrint();
                    return jasperPrint;
               } catch (Exception re) {
                    System.err.println("remote exception is " + re.getMessage());
          } catch (Exception e) {
               e.printStackTrace();
          return null;
     }This function returns a net.sf.jasperreports.engine.JasperPrint object wich I
feed to the JasperViewer.
Here's the output in my Java console:
enva.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
enva.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
enva.put("java.naming.provider.url", "jnp:// 127.0.0.1:1099
Context ictx = new InitialContext(enva);
Object o = ictx.lookup("java:/SessionReport");
javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
     java.net.SocketException: Software caused connection abort: recv failed]
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
     at javax.naming.InitialContext.lookup(Unknown Source)
     at psiber.v2.pp.psiberworks.server.MessageRouter_PAY.callSEIFSAPensionProvidentFundReport(MessageRouter_PAY.java:15159)
     at psiber.v2.pp.psiberworks.server.MessageRouter_PAY.getPayAppletDataImpl(MessageRouter_PAY.java:14895)
     at psiber.v2.pp.psiberworks.server.MessageRouter_PAY.getAppletDataImpl(MessageRouter_PAY.java:14228)
     at psiber.v2.pp.psiberworks.server.MessageRouter.getAppletData(MessageRouter.java:135)
     at psiber.v2.pp.psiberworks.server.RemoteSessionImpl.getAppletDataImpl(RemoteSessionImpl.java:734)
     at psiber.v2.pp.psiberworks.server.RemoteSessionImpl.access$0(RemoteSessionImpl.java:710)
     at psiber.v2.pp.psiberworks.server.RemoteSessionImpl$1.exec(RemoteSessionImpl.java:668)
     at psiber.v2.pp.psiberworks.server.SynchronizedAccessController.doExecuteQuery(SynchronizedAccessController.java:61)
     at psiber.v2.pp.psiberworks.server.SynchronizedAccessController.executeQuery(SynchronizedAccessController.java:137)
     at psiber.v2.pp.psiberworks.server.RemoteSessionImpl.getAppletData(RemoteSessionImpl.java:690)
     at psiber.v2.pp.psiberworks.client.RemoteSessionProxy.getAppletData(RemoteSessionProxy.java:109)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.getAppletData(PsiberPayReportWizardApplet.java:7094)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.callSEIFSAPensionProvidentFundReport(PsiberPayReportWizardApplet.java:14492)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.processSelectedReport(PsiberPayReportWizardApplet.java:14091)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.onNextButtonPressed(PsiberPayReportWizardApplet.java:13229)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.actionPerformed(PsiberPayReportWizardApplet.java:361)
     at java.awt.Button.processActionEvent(Unknown Source)
     at java.awt.Button.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
     java.net.SocketException: Software caused connection abort: recv failed
     at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
     at sun.rmi.server.UnicastRef.invoke(Unknown Source)
     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
     ... 28 more
Caused by: java.net.SocketException: Software caused connection abort: recv failed
     at java.net.SocketInputStream.socketRead0(Native Method)
     at java.net.SocketInputStream.read(Unknown Source)
     at java.io.BufferedInputStream.fill(Unknown Source)
     at java.io.BufferedInputStream.read(Unknown Source)
     at java.io.DataInputStream.readByte(Unknown Source)
     ... 32 more
remote exception is null
You'll see just as the InitialContext.lookup is executed a
javax.naming.CommunicationException is thrown.
I have re-tried changing hostnames, ip addresses etc.
Port 1099 is allowed on Personal Firewall and I even diabled it to be sure.
Like I said, it works fine in FireFox.
I'm running Windows XP Version 5.1 (Build 2600.xpsp_sp2_gdr.050501-1519 : Service Pack 2)
and IE Version 6.0.2900.2180.xpsp_sp2_gdr.050501-1519
and SUN JAVA Version 1.4.2_06 (build 1.4.2_06-b03)
I have tested this on 1.5.0 (build 15.0_02-b09) with the same result.
Please help! F1! F1! F1!
Thanks in advance :D

Hello again
I have discovered more info. I'm not realy enthusiastic about these latests
findings and I realy hope someone can help me figure a work around.
Intermittently I get this stack trace in the java console:
enva.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
enva.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
enva.put("java.naming.provider.url", "jnp://localhost:1099
Context ictx = new InitialContext(enva);
Object o = ictx.lookup("java:/SessionReport");
javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
     java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.net.MalformedURLException: no protocol: Files/psiberworks/lib/pcl.jar]
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
     at javax.naming.InitialContext.lookup(Unknown Source)
     at psiber.v2.pp.psiberworks.server.MessageRouter_PAY.callSEIFSAPensionProvidentFundReport(MessageRouter_PAY.java:15160)
     at psiber.v2.pp.psiberworks.server.MessageRouter_PAY.getPayAppletDataImpl(MessageRouter_PAY.java:14895)
     at psiber.v2.pp.psiberworks.server.MessageRouter_PAY.getAppletDataImpl(MessageRouter_PAY.java:14228)
     at psiber.v2.pp.psiberworks.server.MessageRouter.getAppletData(MessageRouter.java:135)
     at psiber.v2.pp.psiberworks.server.RemoteSessionImpl.getAppletDataImpl(RemoteSessionImpl.java:734)
     at psiber.v2.pp.psiberworks.server.RemoteSessionImpl.access$0(RemoteSessionImpl.java:710)
     at psiber.v2.pp.psiberworks.server.RemoteSessionImpl$1.exec(RemoteSessionImpl.java:668)
     at psiber.v2.pp.psiberworks.server.SynchronizedAccessController.doExecuteQuery(SynchronizedAccessController.java:61)
     at psiber.v2.pp.psiberworks.server.SynchronizedAccessController.executeQuery(SynchronizedAccessController.java:137)
     at psiber.v2.pp.psiberworks.server.RemoteSessionImpl.getAppletData(RemoteSessionImpl.java:690)
     at psiber.v2.pp.psiberworks.client.RemoteSessionProxy.getAppletData(RemoteSessionProxy.java:109)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.getAppletData(PsiberPayReportWizardApplet.java:7094)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.callSEIFSAPensionProvidentFundReport(PsiberPayReportWizardApplet.java:14492)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.processSelectedReport(PsiberPayReportWizardApplet.java:14091)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.onNextButtonPressed(PsiberPayReportWizardApplet.java:13229)
     at psiber.v2.pp.psiberworks.client.hr.psiberpay.PsiberPayReportWizardApplet.actionPerformed(PsiberPayReportWizardApplet.java:361)
     at java.awt.Button.processActionEvent(Unknown Source)
     at java.awt.Button.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
     java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.net.MalformedURLException: no protocol: Files/psiberworks/lib/pcl.jar
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
     at sun.rmi.transport.Transport$1.run(Transport.java:148)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
     at java.lang.Thread.run(Thread.java:534)
     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
     at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
     at sun.rmi.server.UnicastRef.invoke(Unknown Source)
     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
     ... 28 more
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.net.MalformedURLException: no protocol: Files/psiberworks/lib/pcl.jar
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:249)
     at sun.rmi.transport.Transport$1.run(Transport.java:148)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
     at java.lang.Thread.run(Thread.java:534)
Caused by: java.net.MalformedURLException: no protocol: Files/psiberworks/lib/pcl.jar
     at java.net.URL.<init>(URL.java:537)
     at java.net.URL.<init>(URL.java:434)
     at java.net.URL.<init>(URL.java:383)
     at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747)
     at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
     at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
     at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:79)
     at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
     at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
     at javax.naming.CompoundName.readObject(CompoundName.java:554)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
     at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:246)
     ... 6 more
remote exception is null
So why would I get a java.net.MalformedURLException?!?! And why is the
classloader having problems loading on of the referenced jars?!
It's that space in "Program Files"......
So I copied the folder to D:\Temp and.... volla!! the off-line deploy of the
application now works fine in Internet Explorer. It's that space!
So this is my theory, when the initialcontext.lookup is called the classnames specified are reflected, instanciated etc. So when the applet gets the
document base from the browser IE gives it "C:\Program Files\" and not an
encoded "file://C:\Program%20Files\" and the spaces causes the classloader
(or something) to not parse the path correctly and causes a bad URL.
If I type the encoded URL in IE's address bar it finds the HTML, displayes it and changes the address bar contents back to "C:\Program Files".
FireFox doen't do this, and therefore works.
Does anyone know if their is a patch for IE, or if there is another way to
connect to JBoss?
How frustrating!! IE Stuffs up the encoded URLS!!!

Similar Messages

  • Io exception: Software caused connection abort: recv failed

    Hi
    I am using BPEL to integrate Oracle E-Business Suite with some vertical applications. the problem that I am facing is I need to have BPEL server running all the time and other servers (VA and Oracle E-Biss) are going down daily at night for backup. every day connection is aborted because of this and I have to bounce BPEL server again.
    is there a soultion for this, any parameters need to be set in definning the connection or else.
    Thanks

    Thanks man there were some parameters need to be added in datasource.xml to keep validating the connection and it worked fine with Ebus. today I will try it with other VA
    Regarding bouncing BPEL server also it is not possible since it connect different servers in different parts of the world were some servers get down for backup while others are running and making transaction
    Thanks again

  • DB adapter and connections problem (Software caused connection abort)

    Hi all!
    I've heard about some problems of BPEL with database pooling and restoring the connection to the database. I think I might ran into a problem linked with this issue.
    I have a process with a DB adapter that executes custom SQL (SELECT I.SEQ.NEXTVAL FROM DUAL). Yesterday everything worked fine. Over the night the database has been restarted. Today, when I try to execute the process I receive this error:
    <fault>
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>17002
    </code>
    </part>
    -<part name="summary">
    <summary>
    file:/C:/Oracle/OracleAS/bpel/domains/default/tmp/.bpel_process_1.0_e83588e1ecab6f4899d99f7f74afd076.tmp/MyNextVal.wsdl [ MyNextVal_ptt::MyNextVal(MyNextValInput_msg,MyNextValOutputCollection) ] - WSIF JCA Execute of operation 'MyNextVal' failed due to: Pure SQL Exception.
    Pure SQL Execute of SELECT I.SEQ.NEXTVAL FROM DUAL failed. Caused by java.sql.SQLException: Io exception: Software caused connection abort: recv failed.
    ; nested exception is:
         ORABPEL-11633
    Pure SQL Exception.
    Pure SQL Execute of SELECT I.SEQ.NEXTVAL FROM DUAL failed. Caused by java.sql.SQLException: Io exception: Software caused connection abort: recv failed.
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
    </summary>
    </part>
    -<part name="detail">
    <detail>Io exception: Software caused connection abort: recv failed
    </detail>
    </part>
    </remoteFault>
    </fault
    I don't believe the problem is in using custom SQL but in establishing new DB connection (I'm not a DB expert so I don't know exactly the problem).
    Can anyone please explain something about this and what should I do to ensure this error doesn't repeat?
    After restarting opmn the process is executed successfully.
    Regards!

    Are you using locally defined datasources (setting in wsdl of the dbadapter) or have you set them up at the application server (managed) ?

  • [b]java.sql.SQLException: Io exception: Software caused connection abort: r

    hi ,
    In my application iam getting DBconnection obj from context attribute which iam using in all my sevlets & jsp's.
    The application is running fine but sometimes iam getting following exception
    java.sql.SQLException: Io exception: Software caused connection abort: recv failed
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:417)
    at oracle.jdbc.driver.OracleConnection.privateCreateStatement(OracleConn
    ection.java:474)
    at oracle.jdbc.driver.OracleConnection.createStatement(OracleConnection.
    java:383)
    at org.apache.jsp.Vis_002dReg.GetCompNames_jsp._jspService(GetCompNames_
    jsp.java:64)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:311)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    01)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
    atcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
    ispatcher.java:575)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
    patcher.java:498)
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
    .java:1002)
    at org.apache.jsp.Vis_002dReg.VisRegCustmer3_jsp._jspService(VisRegCustm
    er3_jsp.java:320)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:311)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    01)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2415)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
    3)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :594)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:392)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :565)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:619)
    at java.lang.Thread.run(Thread.java:534)
    222222 In GET COMPANY NAMES EXCEPTION
    java.lang.NullPointerException
    at org.apache.jsp.Vis_002dReg.GetCompNames_jsp._jspService(GetCompNames_
    jsp.java:101)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:311)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    01)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
    atcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
    ispatcher.java:575)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
    patcher.java:498)
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
    .java:1002)
    at org.apache.jsp.Vis_002dReg.VisRegCustmer3_jsp._jspService(VisRegCustm
    er3_jsp.java:320)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:311)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    01)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2415)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
    3)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :594)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:392)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :565)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:619)
    at java.lang.Thread.run(Thread.java:534)
    can any body help me with this wat went wrong, need urgent

    Something bad happened.
    Why is this such a calamity?
    Anyway something (probably the server) closed the connection probably. Maybe a time out. Or you asked for something so dispicable the database got upset and booted you out.

  • Some information about 'software caused connection abort'

    WSAECONNABORTED (10053) Software caused connection abort
    A connection abort was caused internal to your host machine. The software caused a connection abort because there is no space on the socket's queue and the socket cannot receive further connections.
    WinSock description: The error can occur when the local network system aborts a connection. This would occur if WinSock aborts an established connection after data retransmission fails (receiver never acknowledges data sent on a datastream socket).
    TCP/IP scenario: A connection will timeout if the local system doesn't receive an (ACK)nowledgement for data sent. It would also timeout if a (FIN)ish TCP packet is not ACK'd (and even if the FIN is ACK'd, it will eventually timeout if a FIN is not returned).
    It seems to happen more with WindowsXP and it seems also to be possibly related to Windows firewall settings. In any case the salient point is that the abort has originated inside the local machine.
    It's a stupidly worded message.

    I know this probably isn't a good solution and may not bhelp you but I had a similar problem with an applet communicating with a server. My destroy function quitted the connection to the server.
    I had to send 2 commands to the server then disconnect. I regularly saw a problem at the server end. It troubled me so I wanted to resolve. I ended up putting a 500 millisecond sleep between the two commands and the socket shutdown and that did the trick.
    I waited for a response from the server after each command sent so not sure why I had to put the sleeps in - but it cured problem anyway. But it always bugs me if I don't know why. Something to come back to when I am less busy.

  • Servletengine Unable to send back last chunk: Software caused connection abort: socket write error

    I have created a bundle for the class com.xxx.cq.wcm.foundation.profile.impl.TnailImages from the foundation file com.day.cq.wcm.foundation.profile.impl.ProfileImages.
    Here are the changes I made ot this class
    1. width and height for the default foundation class ProfileImages to have our own default width and height in TnailImages.
    2. selectors changed to our own like
    * @scr.property name="sling.servlet.selectors" values.0="adjust"
    *                                              values.1="adjust.small"
    3.   Variable changed to  private static final String THUMBNAIL = "small";
    4. Metatype annotation won't compile for CQ5.5  I changed this  * @scr.component metatype="false"
           to
         * @Component(immediate = true)
    This bundle compiled successfully and I see it in OSGi felix console, it is in start mode. Even then I did a restart of this bundle as well as whole CQ5.
    When I call an image using the following tag
    <img  alt="" src="/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg">
    there are no spases anywhere
    the servlet ThumbNailImages is not being call, I see the following error in error.log
    servletengine Unable to send back last chunk: Software caused connection abort: socket write error
    this image is not being displayed in the page, firebug displays failed to load URL
    Default img works fine
    <img  alt="" src="/content/dam/geometrixx/portraits/scott_reynolds.jpg.prof.thumbnail.jpg">
    Class com.day.cq.wcm.foundation.profile.impl.ProfileImages is available in
    /libs/foundation/src/impl/src/main/java/com/day/cq/wcm/foundation/profile/impl/ProfileImag es.java
    Here are my annotations * @Component(immediate = true) * @scr.service * @scr.property name="sling.servlet.resourceTypes" value="nt:file" * @scr.property name="sling.servlet.extensions" values.0="res" *                          values.1="jpg" *                          values.2="png" *                          values.3="gif" * @scr.property name="sling.servlet.selectors" values.0="adjust" *                                              values.1="adjust.small" */ It seems that this servlet is not being called, when I invoke http://xyz.com:4502/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg I am getting 404 Cannot serve request to /content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg in org.apache.sling.servlets.get.DefaultGetServlet
    3 (2013-05-20 11:02:40) TIMER_END{2,resolveServlet(JcrNodeResource, type=dam:Asset, superType=null, path=/content/dam/geometrixx/portraits/scott_reynolds.jpg)} Using servlet com.day.cq.dam.core.impl.servlet.BinaryProviderServlet 3 (2013-05-20 11:02:40) TIMER_END{2,ServletResolution} URI=/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg handled by Servlet=com.day.cq.dam.core.impl.servlet.BinaryProviderServlet
    It seems that my Servlet TnailImages is not being called, it is always going to default servlet.

    Hi Akhter,
    Seeme like in your servlet the value for resourceType set to nt:file. Change it to "sling/servlet/default" and verify.
    Thanks,
    Sham

  • WSACONNABORTED: Software caused connection abort

    Hi,
    I am using SAP GUI 7.10 Patch Level 9 on my laptop. I have no problems accessing SAP from the office, however when I try via a VPN connection from home I receive the following errror :
    connection to partner 'xxxx <server_name> xxx:sapdp03' broken
    WSACONNABORTED: Software caused connection abort
    I know the server is up and running because I can access all transactions fine via a webgui Portal iView.
    Also I have given the same laptop to a colleague and she has no problems accessing SAP via the SAP GUI from her home VPN.
    I have 8Mb broadband at home, although is generally runs at about 5Mb. I have tried using the low speed connection option with no change. I am thinking that there may be some settings on my router that is causing the problem or perhaps there are some restrictions with my broadband provider ?
    Any suggestions/advice would be great
    Thanks
    Craig

    > I am using SAP GUI 7.10 Patch Level 9 on my laptop. I have no problems accessing SAP from the office, however when I try via a VPN connection from home I receive the following errror :
    >
    > connection to partner 'xxxx <server_name> xxx:sapdp03' broken
    > WSACONNABORTED: Software caused connection abort
    >
    > I know the server is up and running because I can access all transactions fine via a webgui Portal iView.
    The portal uses the webbrowser and an HTTP protocol. The DIAG protocol of the SAPGUI is different. You either have a problem with a local firewall or the VPN tunnel does not allow other protocols going through it.
    Markus

  • Software caused connection abort?

    I am receiving the following errors:
    Nov 20 08:13:07 nexus sendmail[29376]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): getrequests: accept: Software caused connection abort
    I have not been able to find anything regarding the cause or resolution of this issue - does anyone have a pointer for me?
    Mike

    Hopefully you've long since addressed this, but for those who are still looking...
    Anything that externally interrupts your network access can cause Windows to return "software caused connection abort". It's the "General Protection Fault" of network errors (that dates me, doesn't it?)
    Look for firewalls intermittently swiping packets, flaky NICs, bad cables, and in my case, a DHCP server that was occasionally, briefly denying the assigned IP address, just long enough to kill existing connections.
    The only way I found that problem was checking the Event Log and finding DHCPNACK errors. I reserved a specific IP for my computer, configured Windows with a static LAN IP address (usually 192.168.x.x or 10.0.0.x), and set the DHCP Client service to manual start / off. Error free connections now.

  • Sun Messaging Queue (Sun MQ) Connectivity Error - recv failed

    Dear Readers
    I am using following code to connect to SUN MQ Server.
    I only have IP Address, Port number and username password of server. JMS Server has three brokers having their own ports.
    com.sun.messaging.ConnectionFactory myConnFactory = new com.sun.messaging.ConnectionFactory();
    myConnFactory.setProperty(com.sun.messaging.ConnectionConfiguration.imqBrokerHostName,"19.11.12.3");
    myConnFactory.setProperty(com.sun.messaging.ConnectionConfiguration.imqBrokerHostPort,"141");
    myConnFactory.setProperty(com.sun.messaging.ConnectionConfiguration.imqDefaultUsername,"ad1min");
    myConnFactory.setProperty(com.sun.messaging.ConnectionConfiguration.imqDefaultPassword,"ad1min");
    Connection myConn = myConnFactory.createConnection();
    but when i try to run this code the exception comes given below
    After then i just commented Hostname and Port section and added following to it:
    myConnFactory.setProperty(com.sun.messaging.ConnectionConfiguration.imqAddressList,  "mq://19.11.12.3:141");
    but i got same exception with slight difference:
    Exception:
    +15 Feb, 2013 12:32:08 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler throwConnectionException+
    +Exception occurred : com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [19.11.12.3:141]. - cause: java.net.SocketException: Software caused connection abort: recv failed+
    +WARNING: [C4003]: Error occurred on connection creation [19.11.12.3:141]. - cause: java.net.SocketException: Software caused connection abort: recv failed+
    +com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [19.11.12.3:141]. - cause: java.net.SocketException: Software caused connection abort: recv failed+
    at com.sun.messaging.jmq.jmsclient.ExceptionHandler.throwConnectionException(ExceptionHandler.java:274)
    at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException(ExceptionHandler.java:220)
    at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:241)
    at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:150)
    at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:92)
    at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:164)
    at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:135)
    at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:778)
    at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionNew(ConnectionInitiator.java:254)
    at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:208)
    at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:158)
    at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:816)
    at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:1529)
    at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:2327)
    at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:1024)
    at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:418)
    at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:60)
    at com.sun.messaging.BasicConnectionFactory.createConnection(BasicConnectionFactory.java:147)
    at com.sun.messaging.BasicConnectionFactory.createConnection(BasicConnectionFactory.java:132)
    at demo.JAMS.main(JAMS.java:31)
    Caused by: java.net.SocketException: Software caused connection abort: recv failed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    at com.sun.messaging.jmq.io.PortMapperTable.readLine(PortMapperTable.java:310)
    at com.sun.messaging.jmq.io.PortMapperTable.read(PortMapperTable.java:266)
    at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:235)
    +... 17 more+
    I also used imqadmin command and tried same credentials from console but i got same error
    Anyone please guide me what issue is actually?
    Is this server side issue? Is this access rights issue.
    Tried to google it but unable to find correct solutions

    >
    I also used imqadmin command and tried same credentials from console but i got same errorTry using imqcmd
    imqcmd query bkr -b 19.11.12.3:141
    (you will be prompted for user and password)
    Try running this command from your client machine and also from 19.11.12.3 (i.e. locally to the broker)
    This command simply displays a few lines of info about the broker, and is a simple way to confirm that you can connect to the broker.
    >
    Anyone please guide me what issue is actually?
    Is this server side issue? Is this access rights issue.
    Tried to google it but unable to find correct solutionsCan you confirm that the broker listening on 19.11.12.3:141 has started correctly? Have you looked at the broker log? If the broker has started successfully there should be a message something like "Broker "19.11.12.3:141" ready".
    Nigel

  • Connection to db fails from client if connecting with sqlplus user/ps@NAME

    Hi
    I have just installed Oracle client 11.2 on a linux server.
    When I connect with sqlplus apmr/******@apm
    I am getting:
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 29 11:11:17 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    BUT, if I am connecting with /nolog and then insert user/password --> it success!!!
    Could anyone solve this mystery ? :-)
    sqlplus /nolog
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 29 11:12:20 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> conn apmr_larisa@apm
    Enter password:
    Connected.
    Thanks
    Larisa

    884714 wrote:
    Thanks a lot for the response. I am getting the following error :
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection.Before asking you to get the help from your DBA, i would suggest to check couple of things like:
    1) Write a standalone program and check whether everytime you are getting connection. If answer is yes.
    2) Check whether in your web application do jdbc jar's are there (in lib folder) . If answer is yes. Check the version of jars. because the application first checks the dependant jars in application lib folder, if not found then it checks at classpath.
    So this might casuse a problem.
    If no luck after doing above steps, then i would suggest to ask the DBA, does DB goes down frequently? and show him that error. Because the error is pure say's SID is not up and running.

  • Connection Aborted over RMI

    Hi All,
    I am sending some data over an RMI call to store it in to a File.
    i.e client sends an objcet over RMI and server saves this object in to a File.
    but some time the this call is terminated before it reaches the server and socket conncetion is closed.
    The stack Trace of this exception is :
    at $Proxy5.storeInitialCondition(Unknown Source)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at com.pg.orion.basic.rmiservlet.DynamicProxy.invoke(DynamicProxy.java:346)
                    at $Proxy6.storeInitialCondition(Unknown Source)
                    at com.pg.orion.basic.simulation.adapter.SimulationAdapter.saveSnapshot(SimulationAdapter.java:1054)
                    at com.pg.orion.basic.simulation.adapter.SimulationAdapter.processSimulationEvent(SimulationAdapter.java:573)
                    at com.pg.orion.basic.simulation.adapter.SimulationAdapter.access$100(SimulationAdapter.java:44)
                    at com.pg.orion.basic.simulation.adapter.SimulationAdapter$1.run(SimulationAdapter.java:192)
                    at com.pg.orion.basic.threads.DefaultLoopThread.run(DefaultLoopThread.java:206)
                    at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Software caused connection abort: 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 java.io.BufferedOutputStream.flushBuffer(Unknown Source)
                    at java.io.BufferedOutputStream.write(Unknown Source)
                    at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
                    at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source)
                    at java.io.ObjectOutputStream.writeFatalException(Unknown Source)
                    at java.io.ObjectOutputStream.writeObject(Unknown Source)
                    at sun.rmi.server.UnicastRef.marshalValue(Unknown Source)
                    ... 16 moreI thought that this is because of the size of the data,but in my testing some times i am able to store big size data.
    Is there any Threshold of RMI or socket to write data?
    If any of You have any idea pls Lat me know.
    Thanks

    It is likely that the other end has closed the connection for some reason.
    I would check if the server side has thrown an exception or closed the connection.
    The main limit for RMI is the max memory the server process. Anything you send needs to fit comfortably into memory. (from all the client requests combined)

  • I need free network analyzer software for my mac. we are trying to monitor what software may be running which is causing our internet to fail, although the internet is still coming into our modem.what is recommended?

    My internet keeps 'tripping' at or around the same period time each day.  We have already replaced our modem from our internet provider and we bought a new airport extreme router. We do not believe these were the cause, although we have now ruled them out as a cause.  Everytime the internet fails, our internet provider company tells us that there is still plenty of signal coming into our house. There is something going on inside we believe, and a technician set up our Network Utility to run a continuous ping test to capture information about when it 'trips' againn.  Yesterday, it happened again, and when he checked the data out, he said he is sure there is something 'running in the background' on my IMac.  He advised me to download a free Network Analyzer so he could further investigate what is was that was causing the problem, so I need a free network analyzer software for my Mac. The issue has been going on for a long time, so it is not the new operating system, Lion. This morning, we changed the radio channel from 'auto' to 'manual' and set a new channel, hoping that might help. We are trying to find out what program may be running (even a tiny one in the background) which is causing our internet to fail, although the internet is still coming into our modem. What is free downloadable product is recommended?

    Will Activity Monitor and/or Network Utility, both already in the Utilities folder on your Mac, help in trying to diagnose the problem.
    If you are connecting via wifi what encryption are you using? If you're using the Exteme I doubt that you are using WEP, but worth checking as it seems Macs don't like it and work better using WPA.

  • Re:Software Connection abort:software write error.

    Hi Guys,
    I am developing a chess game portal in which a client and remote can play the chess game.while connecting the server and getting the values from the server After writing the data i am getting this error
    Software Connection abort:software write error.
    I am listing the coding for reference.Actually here i am establishing a connection with FICS server for chess movements.The commands are actually passed here to the "command toserver" method
    I am getting the error as above.The method also prints "This is that error" from that method.
    I will connect to FICS through the ConnectFICS() constructor 2 where i create the socket connection etc.,
    since i am very new to socket.kindly someone debug this code or correct the lines whereever necessary.
    // Decompiled by DJ v3.6.6.79 Copyright 2004 Atanas Neshkov Date: 7/19/2005 4:17:57 PM
    // Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: ConnectFICS.java
    package cChess.InfFICS;
    import java.io.*;
    import java.net.Socket;
    import java.util.StringTokenizer;
    import jregex.Matcher;
    import jregex.Pattern;
    // Referenced classes of package cChess.InfFICS:
    // ParseGame, ParseSeek, ParseStyle12
    public class ConnectFICS
    implements Runnable
    /* member class not found */
    class HandleLineRunnable {}
    public ConnectFICS()
    style = 12;
    seekInfoOn = false;
    interfaceVar = "SunNChessQueen";
    loginLock = new String("Login Lock");
    style12Line = "<12> rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR B -1 0 0 1 1 0 7 vpselva tjkumaresh 1 2 12 39 39 119 122 2 none (0:00) none 0";
    style12Status = false;
    moveInvalid = false;
    turnInvalid = false;
    clockPaused = false;
    moveOnPaused = false;
    clockResumed = false;
    reqClockResume = false;
    gameStatus = false;
    playerName = false;
    opponentReq = false;
    opponentDec = false;
    opponentDrawDec = false;
    opponentAcc = false;
    isoppAcceptedOption = false;
    isOpponent_propose = false;
    isProposeOption = false;
    told = false;
    said = false;
    gsaid = false;
    notListen = false;
    isTimeExpires = false;
    isAdjChallenge = false;
    isAdjIssue = false;
    isAdjAccept = false;
    playing = false;
    oppPlaying = false;
    removed = false;
    isGNumber = false;
    whitePlayer = "WhiteName";
    blackPlayer = "BlackName";
    public ConnectFICS(String s, String s1)
    this("cheapchess.com", s, s1, 5002);
    public ConnectFICS(String s, String s1, String s2, int i)
    style = 12;
    seekInfoOn = false;
    interfaceVar = "SunNChessQueen";
    loginLock = new String("Login Lock");
    style12Line = "<12> rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR B -1 0 0 1 1 0 7 vpselva tjkumaresh 1 2 12 39 39 119 122 2 none (0:00) none 0";
    style12Status = false;
    moveInvalid = false;
    turnInvalid = false;
    clockPaused = false;
    moveOnPaused = false;
    clockResumed = false;
    reqClockResume = false;
    gameStatus = false;
    playerName = false;
    opponentReq = false;
    opponentDec = false;
    opponentDrawDec = false;
    opponentAcc = false;
    isoppAcceptedOption = false;
    isOpponent_propose = false;
    isProposeOption = false;
    told = false;
    said = false;
    gsaid = false;
    notListen = false;
    isTimeExpires = false;
    isAdjChallenge = false;
    isAdjIssue = false;
    isAdjAccept = false;
    playing = false;
    oppPlaying = false;
    removed = false;
    isGNumber = false;
    whitePlayer = "WhiteName";
    blackPlayer = "BlackName";
    try
    sock = new Socket("freechess.org",5000);
    out = sock.getOutputStream();
    commandToServer(s1);
    commandToServer(s2);
    ReadThread = new Thread(this);
    ReadThread.start();
    catch(Exception exception)
    try
    sock.close();
    catch(IOException ioexception) { }
    System.out.println(" Error.. " + exception.getMessage());
    public void onLogin()
    commandToServer("set style " + style);
    commandToServer("set interface " + interfaceVar);
    public void handleApp(String s)
    try
    commandToServer(s);
    catch(Exception exception)
    exception.getMessage();
    public void handleAppMove(String s)
    try
    commandToServer(s);
    catch(Exception exception)
    exception.getMessage();
    private void handleLine(String s)
    if(handleLogin(s))
    return;
    if(handleStyle12(s))
    return;
    if(handleIllegalMove(s))
    return;
    if(handleWrongTurn(s))
    return;
    if(handleGameInfo(s))
    return;
    if(handlePersonalTell(s))
    return;
    if(handleSayTell(s))
    return;
    if(handleSeekAdded(s))
    return;
    if(handleSeeksCleared(s))
    return;
    if(handleSeeksRemoved(s))
    return;
    if(handleGameEnd(s))
    return;
    if(handleDraw(s))
    return;
    if(handleMatch(s))
    return;
    if(handleAdjournChallenge(s))
    return;
    if(handleAdjournIssue(s))
    return;
    if(handleGroupTell(s))
    return;
    if(handleNotListening(s))
    return;
    if(handleChannelRemoved(s))
    return;
    if(handleWrongChallenge(s))
    return;
    if(handleDecline(s))
    return;
    if(handleDrawDecline(s))
    return;
    if(handleAccept(s))
    return;
    if(handleClockPaused(s))
    return;
    if(handleClockResumed(s))
    return;
    if(handleWhenClockPaused(s))
    return;
    if(handleReqClockResume(s))
    return;
    if(handleChallengeCancelled(s))
    return;
    else
    return;
    private boolean handleLogin(String s)
    Matcher matcher = loginPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    processLine(s);
    return true;
    private boolean handleGameInfo(String s)
    Matcher matcher = gameinfoPattern.matcher(s);
    if(!matcher.find())
    return false;
    ParseGame parsegame = ParseGame.parseGameInfoLine(s);
    if(!processGameInfo(parsegame))
    processLine(s);
    System.out.println("GGame # : " + parsegame.getGameNumber());
    System.out.println("GWhite Time : " + parsegame.getWhiteTime());
    System.out.println("GPartner Game # : " + parsegame.getPartnerGameNumber());
    return true;
    protected boolean processGameInfo(ParseGame parsegame)
    return false;
    public final synchronized void setSeekInfoState(boolean flag)
    if(seekInfoOn == flag)
    return;
    } else
    seekInfoOn = flag;
    commandToServer("iset seekinfo " + (seekInfoOn ? "1" : "0"));
    commandToServer("iset seekremove " + (seekInfoOn ? "1" : "0"));
    return;
    private boolean handleSeeksCleared(String s)
    Matcher matcher = seeksClearedPattern.matcher(s);
    if(!matcher.find())
    return false;
    if(!processSeeksCleared())
    processLine(s);
    return true;
    protected boolean processSeeksCleared()
    return false;
    private boolean handleSeekAdded(String s)
    Matcher matcher = seekAddedPattern.matcher(s);
    if(!matcher.find())
    return false;
    ParseSeek parseseek = ParseSeek.parseSeekInfoLine(s);
    if(!processSeekAdded(parseseek))
    processLine(s);
    System.out.println("under handleSeekAdded");
    System.out.println("SAccepted : " + parseseek.canAcceptSeek());
    System.out.println("Sindex : " + parseseek.getSeekIndex());
    System.out.println("Shandle : " + parseseek.getSeekerHandle());
    return true;
    protected boolean processSeekAdded(ParseSeek parseseek)
    return false;
    private boolean handleSeeksRemoved(String s)
    Matcher matcher = seeksRemovedPattern.matcher(s);
    if(!matcher.find())
    return false;
    StringTokenizer stringtokenizer = new StringTokenizer(s, " ");
    stringtokenizer.nextToken();
    int ai[] = new int[stringtokenizer.countTokens()];
    for(int i = 0; i < ai.length; i++)
    ai[i] = Integer.parseInt(stringtokenizer.nextToken());
    if(!processSeeksRemoved(ai))
    processLine(s);
    return true;
    protected boolean processSeeksRemoved(int ai[])
    return false;
    private boolean handleIllegalMove(String s)
    Matcher matcher = illegalMovePattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("Wrong Move : " + s);
    moveInvalid = true;
    return true;
    public boolean wrongMove()
    if(moveInvalid)
    moveInvalid = false;
    return true;
    } else
    return false;
    private boolean handleWrongTurn(String s)
    Matcher matcher = notUrTurnPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("Wrong Turn : " + s);
    turnInvalid = true;
    return true;
    public boolean wrongTurn()
    if(turnInvalid)
    turnInvalid = false;
    return true;
    } else
    return false;
    private boolean handlePersonalTell(String s)
    Matcher matcher = personalTellPattern.matcher(s);
    if(!matcher.find())
    return false;
    username = matcher.group(1);
    String s1 = matcher.group(2);
    message = matcher.group(3);
    System.out.println("message is:" + message);
    handleMatchOption(message.trim());
    handleTimeExpired(message.trim());
    handleAcceptedOption(message.trim());
    handleGameNumber(message.trim());
    handleAdjournAccept(message.trim());
    told = true;
    if(!processPersonalTell(username, s1, message))
    processLine(s);
    return true;
    protected boolean processPersonalTell(String s, String s1, String s2)
    return false;
    public boolean opponentTold()
    if(told)
    told = false;
    return true;
    } else
    return false;
    private boolean handleTimeExpired(String s)
    Matcher matcher = timeExpiredPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("timeExpires " + s);
    isTimeExpires = true;
    return true;
    public boolean opponentTimeExpires()
    if(isTimeExpires)
    isTimeExpires = false;
    return true;
    } else
    return false;
    private boolean handleMatchOption(String s)
    System.out.println("called " + s);
    Matcher matcher = matchOptionPattern.matcher(s);
    if(!matcher.find())
    System.out.println("not matches");
    return false;
    } else
    tindex = Integer.parseInt(matcher.group(1));
    mindex = Integer.parseInt(matcher.group(2));
    cindex = matcher.group(3);
    rindex = Integer.parseInt(matcher.group(4));
    isProposeOption = true;
    return true;
    public boolean proposedOption()
    if(isProposeOption)
    isProposeOption = false;
    return true;
    } else
    return false;
    private boolean handleAdjournAccept(String s)
    System.out.println("adj..ed " + s);
    Matcher matcher = adjournAcceptPattern.matcher(s);
    if(!matcher.find())
    System.out.println("not adj...");
    return false;
    } else
    isAdjAccept = true;
    return true;
    public boolean adjAccepts()
    if(isAdjAccept)
    isAdjAccept = false;
    return true;
    } else
    return false;
    private boolean handleAcceptedOption(String s)
    System.out.println("called " + s);
    Matcher matcher = oppAcceptedOptionPattern.matcher(s);
    if(!matcher.find())
    System.out.println("no accepted option");
    return false;
    } else
    accTime = Integer.parseInt(matcher.group(1));
    accColor = Integer.parseInt(matcher.group(2));
    accAmount = matcher.group(3);
    accRate = Integer.parseInt(matcher.group(4));
    System.out.println("accepted option1: " + accTime);
    System.out.println("accepted option2: " + accColor);
    System.out.println("accepted option3: " + accAmount);
    System.out.println("accepted option4: " + accRate);
    isoppAcceptedOption = true;
    return true;
    public boolean isOpponentAcceptedOption()
    if(isoppAcceptedOption)
    isoppAcceptedOption = false;
    return true;
    } else
    return false;
    public int getOpponentAcceptedColor()
    return accColor;
    public int getOpponentAcceptedTime()
    return accTime;
    public String getOpponentAcceptedAmt()
    return accAmount;
    public int getOpponentAcceptedType()
    return accRate;
    private boolean handleGameNumber(String s)
    System.out.println("number " + s);
    Matcher matcher = gameNumberPattern.matcher(s);
    if(!matcher.find())
    System.out.println("not gamenumber");
    return false;
    } else
    gnumber = Integer.parseInt(matcher.group(1));
    System.out.println("game number: " + gnumber);
    isGNumber = true;
    return true;
    public boolean isGameNumber()
    if(isGNumber)
    isGNumber = false;
    return true;
    } else
    return false;
    public int getGameNumber()
    return gnumber;
    private boolean handleMatch(String s)
    Matcher matcher = matchPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("\ngot the match from opponent\n");
    oppname = matcher.group(1);
    opprate = matcher.group(2);
    proposed_color = matcher.group(3);
    String s1 = matcher.group(4);
    String s2 = matcher.group(5);
    String s3 = matcher.group(6);
    String s4 = matcher.group(7);
    proposed_time = matcher.group(8);
    proposed_rate = Integer.parseInt(matcher.group(9));
    System.out.println("match param1: " + oppname);
    System.out.println("match param2: " + opprate);
    System.out.println("match param3: " + proposed_color);
    System.out.println("match param4: " + s1);
    System.out.println("match param5: " + s2);
    System.out.println("match param6: " + s3);
    System.out.println("match param7: " + s4);
    System.out.println("match param8: " + proposed_time);
    System.out.println("match param9: " + proposed_rate);
    isOpponent_propose = true;
    return true;
    public boolean opponentProposed()
    if(isOpponent_propose)
    isOpponent_propose = false;
    return true;
    } else
    return false;
    public String getProposedString()
    return oppname + " " + opprate + " " + proposed_color + " " + proposed_time;
    public int getProposedColor()
    return !proposed_color.equals("white") ? 1 : 0;
    public String getProposedPlayer()
    return oppname;
    public int getProposedRate()
    return proposed_rate;
    private boolean handleAdjournChallenge(String s)
    Matcher matcher = adjournChallengePattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("\ngot the adj match from opponent\n");
    oppname = matcher.group(1);
    opprate = matcher.group(2);
    proposed_color = matcher.group(3);
    String s1 = matcher.group(4);
    String s2 = matcher.group(5);
    String s3 = matcher.group(6);
    String s4 = matcher.group(7);
    proposed_time = matcher.group(8);
    adjChallenge = matcher.group(9);
    System.out.println("match param1: " + oppname);
    System.out.println("match param2: " + opprate);
    System.out.println("match param3: " + proposed_color);
    System.out.println("match param4: " + s1);
    System.out.println("match param5: " + s2);
    System.out.println("match param6: " + s3);
    System.out.println("match param7: " + s4);
    System.out.println("match param8: " + proposed_time);
    System.out.println("match param10: " + adjChallenge);
    isAdjChallenge = true;
    return true;
    public boolean adjChallenged()
    if(isAdjChallenge)
    isAdjChallenge = false;
    return true;
    } else
    return false;
    public String getAdjOpponent()
    return oppname;
    private boolean handleAdjournIssue(String s)
    Matcher matcher = adjournIssuePattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("\ngot the adj issue\n");
    oppname = matcher.group(1);
    opprate = matcher.group(2);
    proposed_color = matcher.group(3);
    String s1 = matcher.group(4);
    String s2 = matcher.group(5);
    String s3 = matcher.group(6);
    String s4 = matcher.group(7);
    proposed_time = matcher.group(8);
    adjIssue = matcher.group(9);
    System.out.println("match param1: " + oppname);
    System.out.println("match param2: " + opprate);
    System.out.println("match param3: " + proposed_color);
    System.out.println("match param4: " + s1);
    System.out.println("match param5: " + s2);
    System.out.println("match param6: " + s3);
    System.out.println("match param7: " + s4);
    System.out.println("match param8: " + proposed_time);
    System.out.println("match param9: " + adjIssue);
    isAdjIssue = true;
    return true;
    public boolean adjIssued()
    if(isAdjIssue)
    isAdjIssue = false;
    return true;
    } else
    return false;
    private boolean handleStyle12(String s)
    style12Status = false;
    Matcher matcher = style12Pattern.matcher(s);
    if(!matcher.find())
    return false;
    ParseStyle12 parsestyle12 = ParseStyle12.parseStyle12Line(s);
    if(!processStyle12(parsestyle12))
    processLine(s);
    System.out.println("SAccepted : " + parsestyle12.getCurrentPlayer());
    System.out.println("SGame# : " + parsestyle12.getGameNumber());
    System.out.println("SWhite Player : " + parsestyle12.getWhiteName());
    if(!parsestyle12.getWhiteName().equals(null))
    whitePlayer = parsestyle12.getWhiteName() + " ";
    System.out.println("SBlack Player : " + parsestyle12.getBlackName());
    if(!parsestyle12.getBlackName().equals(null))
    blackPlayer = parsestyle12.getBlackName() + " ";
    style12Line = s;
    style12Status = true;
    System.out.println("style12 Status - " + style12Status);
    playerName = true;
    return true;
    public boolean getPlayersName()
    if(playerName)
    playerName = false;
    return true;
    } else
    return false;
    public String getStyle12()
    return style12Line;
    public boolean getStyle12Status()
    if(style12Status)
    style12Status = false;
    return true;
    } else
    return false;
    protected boolean processStyle12(ParseStyle12 parsestyle12)
    return false;
    private boolean handleSayTell(String s)
    Matcher matcher = sayPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    username = matcher.group(1);
    message = matcher.group(2);
    System.out.println("Message :" + message + "User: " + username);
    said = true;
    return true;
    public boolean opponentSaid()
    if(said)
    said = false;
    return true;
    } else
    return false;
    public void enableChannel(int i)
    commandToServer("ch " + i);
    private boolean handleNotListening(String s)
    Matcher matcher = notListeningPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("you are not listening the channel.");
    notListen = true;
    return true;
    public boolean notListening()
    if(notListen)
    notListen = false;
    return true;
    } else
    return false;
    private boolean handleWrongChallenge(String s)
    Matcher matcher = cannotChallengePattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("u cannot propose while u r playing a match.");
    playing = true;
    return true;
    public boolean isPlaying()
    if(playing)
    playing = false;
    return true;
    } else
    return false;
    private boolean handleChallengeCancelled(String s)
    Matcher matcher = challengeCancelledPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("ur propose cancelled");
    username = matcher.group(1);
    thirdUser = matcher.group(2);
    oppPlaying = true;
    return true;
    public boolean isOppPlaying()
    if(oppPlaying)
    oppPlaying = false;
    return true;
    } else
    return false;
    public String getThirdUser()
    return thirdUser;
    private boolean handleChannelRemoved(String s)
    Matcher matcher = channelRemovedPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("you are removed from the channel.");
    removed = true;
    return true;
    public boolean isRemoved()
    if(removed)
    removed = false;
    return true;
    } else
    return false;
    private boolean handleGroupTell(String s)
    Matcher matcher = gTellPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    username = matcher.group(1);
    roomNo = Integer.parseInt(matcher.group(2));
    message = matcher.group(3);
    System.out.println("Group Message :" + message + "User: " + username + "RoomNo: " + roomNo);
    gsaid = true;
    return true;
    public int getRoomNo()
    return roomNo;
    public boolean groupSaid()
    if(gsaid)
    gsaid = false;
    return true;
    } else
    return false;
    protected void processLine(String s)
    private boolean handleGameEnd(String s)
    Matcher matcher = gameEndPattern.matcher(s);
    if(!matcher.find())
    return false;
    gameNumber = Integer.parseInt(matcher.group(1));
    String s1 = matcher.group(2);
    String s2 = matcher.group(3);
    String s3 = matcher.group(4);
    String s4 = matcher.group(5);
    Reason = s3;
    Result = s4;
    System.out.println("\nGnum :" + gameNumber + "\nwname" + s1 + "\nbname" + s2 + "\nreason" + s3 + "\nresult" + s4);
    gameStatus = true;
    if(!processGameEnd(gameNumber, s1, s2, s3, s4))
    processLine(s);
    return true;
    protected boolean processGameEnd(int i, String s, String s1, String s2, String s3)
    return false;
    public boolean gameEnd()
    if(gameStatus)
    gameStatus = false;
    return true;
    } else
    return false;
    private boolean handleAccept(String s)
    Matcher matcher = AcceptPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    opponentName = matcher.group(1);
    System.out.println("Acceptor Name : " + opponentName + "\n" + "accepts -powered by selva,kumaresh");
    opponentAcc = true;
    return true;
    public boolean isOpponentAccepts()
    if(opponentAcc)
    opponentAcc = false;
    return true;
    } else
    return false;
    public String getAcceptorName()
    return opponentName;
    private boolean handleDecline(String s)
    Matcher matcher = DeclinePattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    opponentName = matcher.group(1);
    System.out.println("opponent Name : " + opponentName + "\n" + "decline -powered by selva,kumaresh");
    opponentDec = true;
    return true;
    public boolean isOpponentDecline()
    if(opponentDec)
    opponentDec = false;
    return true;
    } else
    return false;
    public String getDeclinesOppName()
    return opponentName;
    private boolean handleDrawDecline(String s)
    Matcher matcher = DrawDeclinePattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    opponentName = matcher.group(1);
    System.out.println("opponent Name : " + opponentName + "\n" + "decline ur draw -powered by selva,kumaresh");
    opponentDrawDec = true;
    return true;
    public boolean isOpponentDrawDecline()
    if(opponentDrawDec)
    opponentDrawDec = false;
    return true;
    } else
    return false;
    private boolean handleWhenClockPaused(String s)
    Matcher matcher = moveWhenClockPausedPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("don't move! clock paused");
    moveOnPaused = true;
    return true;
    public boolean isMoveWhenPaused()
    if(moveOnPaused)
    moveOnPaused = false;
    return true;
    } else
    return false;
    private boolean handleClockPaused(String s)
    Matcher matcher = ClockPausedPattern.matcher(s);
    if(!matcher.find())
    return false;
    } else
    System.out.println("clock paused");
    clockPaused = true;
    return true;
    public boolean isClockPaused()
    if(clockPaused)
    clockPaused = false;
    return true;
    } else
    return false;

    The problem is with commandto Server() method wherei
    get the errorDear joesiliconoyster,
    Usually if one is going to try and steal something it
    is often considered in good form not to go around
    shouting "I AM NO GOING TO STEAL SOMETHING".
    You will find that people who don't like thievery
    and/or shouting will not respond too well to that.
    Perhaps you could investigate hiring somebody to
    write code for you?
    Hava a happy day.Sorry all for myriad of typos. It is dawn and mr_sunshine needs his :coffee:.
    Should of course be "I AM NOW GOING TO STEAL SOMETHING" for example.
    Have a good day.

  • SXPG_COMMAND_EXECUTE - Recv failed:Connection reset by peer

    We are calling external commands in a batch job using the SAP supplied function module SXPG_COMMAND_EXECUTE.  However, if the external command takes longer than 2 minutes (120 seconds) to execute the call to the external command is terminated (from the SAP perspective) with the message Recv failed:Connection reset by peer.  The termination is precisely at 120 seconds.  The external command, however, continues to run as an u201Corphanu201D task and finishes normally.  However, due to the connection termination, SAP is no longer aware of it.
    Do you have any ideas where the termination is occurring and/or where the wait limit of 120 seconds is set?

    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname                   = 'ZTEST_BATCH'
          additional_parameters         = param1
          operatingsystem               = castserveropsys
          targetsystem                  = target
          stdout                        = 'X'
          stderr                        = 'X'
          terminationwait               = 'X'
        IMPORTING
          status                        = funcstatus
        TABLES
          exec_protocol                 = iserveroutput[]
        EXCEPTIONS
          no_permission                 = 1
          command_not_found             = 2
          parameters_too_long           = 3
          security_risk                 = 4
          wrong_check_call_interface    = 5
          program_start_error           = 6
          program_termination_error     = 7
          x_error                       = 8
          parameter_expected            = 9
          too_many_parameters           = 10
          illegal_command               = 11
          wrong_asynchronous_parameters = 12
          cant_enq_tbtco_entry          = 13
          jobcount_generation_error     = 14
          OTHERS                        = 15.

  • Lion Install Failed "The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance."

    Not a comforting message to see...
    Here are the errors just before the above message is emitted and the install ends.
    Jul 26 05:33:33 localhost OSInstaller[344]: PackageKit: Extracting file://localhost/Volumes/Mac%20OS%20X%20Install%20DVD/Packages/Essentials.pkg (destination=/Volumes/i7Mac/.OSInstallSandbox-tmp/Root, uid=0)
    Jul 26 05:34:51 localhost OSInstaller[344]: PackageKit: Got copier error 2 extracting to path ./usr/lib/zsh/4.3.11/zsh/zselect.so: Read-only file system
    Jul 26 05:34:51 localhost Unknown[329]: /SourceCache/AppleFSCompression/AppleFSCompression-37/Common/DataPool.c:135: Error: finished pool without filling it
    Jul 26 05:34:51 localhost Unknown[329]: /SourceCache/AppleFSCompression/AppleFSCompression-37/Common/commonUtils.c:360: Error: fh_pread -1
    Jul 26 05:34:51 localhost Unknown[329]: /SourceCache/AppleFSCompression/AppleFSCompression-37/Common/StreamCompressor.c :294: Error: pread failed for /Volumes/i7Mac/.OSInstallSandbox-tmp/Root//usr/lib/zsh/4.3.11/zsh/zselect.so: Undefined error: 0
    Jul 26 05:34:51 localhost Unknown[329]: /SourceCache/AppleFSCompression/AppleFSCompression-37/Common/StreamCompressor.c :928: Error: returning errno 22 from FinishStreamCompressorQueue
    Jul 26 05:35:33 localhost OSInstaller[344]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “Essentials.pkg”." UserInfo=0x7f83610395f0 {NSLocalizedDescription=An error occurred while extracting files from the package “Essentials.pkg”., NSFilePath=/Volumes/i7Mac/.OSInstallSandbox-tmp/Root, NSURL=Essentials.pkg -- file://localhost/Volumes/Mac%20OS%20X%20Install%20DVD/Packages/OSInstall.mpkg, PKInstallPackageIdentifier=com.apple.pkg.Essentials, NSUnderlyingError=0x7f8360d42420 "The operation couldn’t be completed. FinishStreamCompressorQueue error"} {
             NSFilePath = "/Volumes/i7Mac/.OSInstallSandbox-tmp/Root";
             NSLocalizedDescription = "An error occurred while extracting files from the package \U201cEssentials.pkg\U201d.";
             NSURL = "Essentials.pkg -- file://localhost/Volumes/Mac%20OS%20X%20Install%20DVD/Packages/OSInstall.mpkg";
             NSUnderlyingError = "Error Domain=BOMCopierFatalError Code=1 \"The operation couldn\U2019t be completed. FinishStreamCompressorQueue error\" UserInfo=0x7f8360d47220 {NSLocalizedFailureReason=FinishStreamCompressorQueue error, offset=2847022, type=BOMCopierFatalError, sourcePath=/Volumes/Mac OS X Install DVD/Packages/Essentials.pkg, destinationPath=/Volumes/i7Mac/.OSInstallSandbox-tmp/Root}";
             PKInstallPackageIdentifier = "com.apple.pkg.Essentials";
    Jul 26 05:35:33 localhost OSInstaller[344]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “Essentials.pkg”." UserInfo=0x7f83610395f0 {NSLocalizedDescription=An error occurred while extracting files from the package “Essentials.pkg”., NSFilePath=/Volumes/i7Mac/.OSInstallSandbox-tmp/Root, NSURL=Essentials.pkg -- file://localhost/Volumes/Mac%20OS%20X%20Install%20DVD/Packages/OSInstall.mpkg, PKInstallPackageIdentifier=com.apple.pkg.Essentials, NSUnderlyingError=0x7f8360d42420 "The operation couldn’t be completed. FinishStreamCompressorQueue error"}
    Jul 26 05:35:34 localhost OSInstaller[344]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
    If I boot to the "Recovery HD" I get a message "Installation Failed, Try re-intalling" Which would be a fine idea, but I can't because if I re-start installation from the hard drive I get the above errors. 
    I've burned the "InstallESD.img" to a DVD, but it also doesn't seem to work. Comes up as though I'm in the Reco

    Jen,
    Here's what I did to get Lion installed:
    Burn the installer to a DVD and install from there. It worked for me. Here's what you need to do:
    First you need another computer running at least 10.6.8.
    1. On the other computer go to 'App Store' (make sure you're logged in to the App Store with the AppleID you used on the troubled computer)
    2. Click on 'Purchased' in the 'App Store' window's toolbar
    3. If you are on 10.6.8, and haven't downloaded Lion on that computer just click "Install" to download the installation application.
    3. a, if the other computer is already running Lion, you'll need to re-download the installer.
    3. b. Hold down 'Option' when selecting 'Purchased' then you click "Install"
    4. When the Lion Installer starts up, just quit it. You want to work with the Installer application.
    5. Find the "Install Lion OS X" application in the 'Applications' folder.
    6. Hold down 'Control' and click on the application and select 'Show Package Contents'
    7. Find 'InstallESD.dmg' which is in the "Shared Support" folder and copy it to your desktop.
    8. Burn 'InstallESD.dmg' to a DVD ('Disk Utility' is simplest to do this).
    9. Put the new install DVD into the computer that has Lion partially installed and reboot holding down the "C" key.
    10. run the installer as normal, selecting your harddrive as the target.
    In my case, when it rebooted to the harddisk the Lion installer started AGAIN. If this happens, let it run. Then you should be done.
    Hope this helps.

Maybe you are looking for