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)

Similar Messages

  • Rmi - connection aborted:socket write error

    Weblogic 5.1 is running on my localhost and a remote object successfully registered on the weblogic. There is an applet trying to establish a connection and after the client is registered in the client list I get the following exception
    Thu Jan 25 11:29:06 PST 2001:<E> <ServletContext-General> Servlet failed with Ex
    ception
    java.net.SocketException: Connection aborted by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
    at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:88)
    at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutput
    StreamImpl.java:121)
    at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(Servlet
    OutputStreamImpl.java:444)
    at weblogic.servlet.ClasspathServlet.sendResource(ClasspathServlet.java:
    114)
    at weblogic.servlet.ClasspathServlet.doGet(ClasspathServlet.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:105)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:742)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:686)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:247)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    And the java console shows this message:
    java.lang.NoClassDefFoundError
    at weblogic/rmi/extensions/BasicRequest.init (BasicRequest.java)
    at weblogic/rmi/extensions/BasicRequest.<init> (BasicRequest.java:18)
    at weblogic/rmi/extensions/AbstractRemoteObjectReference.getRequest (AbstractRemoteObjectReference.java:71)
    at weblogic/jndi/internal/RemoteContextFactoryImpl_WLStub.getContext (RemoteContextFactoryImpl_WLStub.java:77)
    at weblogic/jndi/WLInitialContextFactoryDelegate.newRemoteContext (WLInitialContextFactoryDelegate.java:316)
    at weblogic/jndi/WLInitialContextFactoryDelegate.newContext (WLInitialContextFactoryDelegate.java:242)
    at weblogic/jndi/WLInitialContextFactoryDelegate.getInitialContext (WLInitialContextFactoryDelegate.java:205)
    at weblogic/jndi/Environment.getContext (Environment.java:122)
    at weblogic/jndi/Environment.getInitialContext (Environment.java:105)
    at weblogic/rmi/Naming.getContext (Naming.java:225)
    at weblogic/rmi/Naming.lookup (Naming.java:67)
    at AppletTest.init (AppletTest.java:30)
    at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
    at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
    at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
    at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
    at com/ms/applet/AppletPanel.run (AppletPanel.java)
    at java/lang/Thread.run (Thread.java
    Can someone help solve this problem.
    Thansk in advance,
    Nirmal R.

    The point where the failure occurs in in the initialization of the transaction framework, so I would guess that you do not have the plug-in for the applet.
    Nirmal R wrote:
    Weblogic 5.1 is running on my localhost and a remote object successfully registered on the weblogic. There is an applet trying to establish a connection and after the client is registered in the client list I get the following exception
    Thu Jan 25 11:29:06 PST 2001:<E> <ServletContext-General> Servlet failed with Ex
    ception
    java.net.SocketException: Connection aborted by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
    at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:88)
    at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutput
    StreamImpl.java:121)
    at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(Servlet
    OutputStreamImpl.java:444)
    at weblogic.servlet.ClasspathServlet.sendResource(ClasspathServlet.java:
    114)
    at weblogic.servlet.ClasspathServlet.doGet(ClasspathServlet.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:105)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:742)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:686)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:247)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    And the java console shows this message:
    java.lang.NoClassDefFoundError
    at weblogic/rmi/extensions/BasicRequest.init (BasicRequest.java)
    at weblogic/rmi/extensions/BasicRequest.<init> (BasicRequest.java:18)
    at weblogic/rmi/extensions/AbstractRemoteObjectReference.getRequest (AbstractRemoteObjectReference.java:71)
    at weblogic/jndi/internal/RemoteContextFactoryImpl_WLStub.getContext (RemoteContextFactoryImpl_WLStub.java:77)
    at weblogic/jndi/WLInitialContextFactoryDelegate.newRemoteContext (WLInitialContextFactoryDelegate.java:316)
    at weblogic/jndi/WLInitialContextFactoryDelegate.newContext (WLInitialContextFactoryDelegate.java:242)
    at weblogic/jndi/WLInitialContextFactoryDelegate.getInitialContext (WLInitialContextFactoryDelegate.java:205)
    at weblogic/jndi/Environment.getContext (Environment.java:122)
    at weblogic/jndi/Environment.getInitialContext (Environment.java:105)
    at weblogic/rmi/Naming.getContext (Naming.java:225)
    at weblogic/rmi/Naming.lookup (Naming.java:67)
    at AppletTest.init (AppletTest.java:30)
    at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
    at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
    at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
    at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
    at com/ms/applet/AppletPanel.run (AppletPanel.java)
    at java/lang/Thread.run (Thread.java
    Can someone help solve this problem.
    Thansk in advance,
    Nirmal R.

  • Attempting to use SSL over RMI from a web application to a RMI server

    Hi,
    I am attempting to use SSL over RMI to a server. The client is the web
    application that is hosted on WebLogic and that attempts to connect to the
    server. There is no client or server verification at either the client or
    the server end. The code works outside of WebLogic 7/8 but has the following
    issues when running the web application inside weblogic:
    java.rmi.ConnectException: Connection refused to host: gkhanna1; nested
    exception is:
    java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
    at java.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95)
    at
    sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
    actory.java:20)
    at
    sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
    actory.java:115)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:79)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.initConnection(NTLMConne
    ctionClient.java:59)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.getUsers(NTLMConnectionC
    lient.java:197)
    at com.hyperion.css.CSSAPIImpl.getUsers(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at jsp_servlet._jsp._app1.__app1signin._jspService(__app1signin.java:133)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1058)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :401)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :445)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :306)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5445)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:780)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3105)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    The code at the client that initiates the connection:
    socketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket) socketFactory.createSocket(host, port);
    socket.setEnabledCipherSuites(CIPHERS);
    socket.setEnableSessionCreation(true);
    Any ideas?
    Thanks

    I don't see anything that indicates SSL was directly a factor in the
    failure.
    From the exception stack it looks like a more basic connectivity issue,
    maybe the URL for the
    RMI server is incorrect for some reason or the server was down.
    It looks like you are doing something like this:
    SSL client -> WLS server with servletA, servletA RMI client
    (com.hyperion.css) -> RMI server
    The connection failure appears to be the connection from servletA RMI client
    to the RMI server.
    Is that a correct picture?
    Tony
    "Gaurav Khanna" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am attempting to use SSL over RMI to a server. The client is the web
    application that is hosted on WebLogic and that attempts to connect to the
    server. There is no client or server verification at either the client or
    the server end. The code works outside of WebLogic 7/8 but has thefollowing
    issues when running the web application inside weblogic:
    java.rmi.ConnectException: Connection refused to host: gkhanna1; nested
    exception is:
    java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
    at java.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95)
    at
    sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
    actory.java:20)
    at
    sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
    actory.java:115)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:79)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.initConnection(NTLMConne
    ctionClient.java:59)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.getUsers(NTLMConnectionC
    lient.java:197)
    at com.hyperion.css.CSSAPIImpl.getUsers(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at jsp_servlet._jsp._app1.__app1signin._jspService(__app1signin.java:133)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1058)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :401)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :445)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :306)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5445)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:780)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3105)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    The code at the client that initiates the connection:
    socketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket) socketFactory.createSocket(host, port);
    socket.setEnabledCipherSuites(CIPHERS);
    socket.setEnableSessionCreation(true);
    Any ideas?
    Thanks

  • 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) ?

  • "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!!!

  • 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.

  • Database connection loosed over night

    Hi,
    I am testing a J2EE application on Sun Java System Application Server Platform Edition 8.2 (build b06-fcs).
    The application uses JNDI, which uses a connection pool to access a MySQL database. The deployment of the applications .ear file works fine, and the connection of the bean works correctly the rest of the day. But on the next day when I try to use the bean from the client application, I get a Local Transport Exception:
    System Exception
    javax.resource.spi.LocalTransactionException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.io.EOFException
    STACKTRACE:
    java.io.EOFException
         at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1905)
         at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2351)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2862)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2988)
         at com.mysql.jdbc.Connection.setAutoCommit(Connection.java:4913)
    ...The ping of the connection pool is still working, at it seems that nothing has changed since yesterday.
    Does anybody have any ideas what causes this "overnight" problem?
    Thanks in advance,
    Istvan

    Appserver pools DB connections and your connection expires over night. You should try setting "Connection Validation" checkbox and validate it against some existing table in your DB, see:
    http://docs.sun.com/app/docs/doc/819-4712/6n6rit5is?a=view
    If this doesn't help you might want to try changing your application to reconnect upon failure. Last thing to try would be plugging in different mysql JDBC driver.

  • Load balancing over rmi requests

    On a cluster of ias10g (9041), Is it possible that all requests over RMI use a "virtual" hostname and port which directs them to a load balancing mechanism which then determines which of the operational OC4J instances should process this request?

    Does anyone know anything on this question?

  • Com.evermind.server.http.HttpIOException: Connection aborted by peer: socke

    Hi
    I get an this stack on the server side while doing a forward using RequestDispatcher.
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
    at com.evermind.server.http.EvermindServletOutputStream.flushBuffer(EvermindServletOutputStream.java:81)
    at com.evermind.server.http.EvermindHttpServletResponse.flushBuffer(EvermindHttpServletResponse.java:1818)
    at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:52)
    The funniest part is, i get this exception while i submit the request second time i get this error.. First time it works fine. :)
    ANy solution on this would be greatly appreciated.
    Thanks
    Manju

    Hi!
    I posted a TAR on metalink for this "read timed out" problem. This is the answer I got:
    apparently the messages that you listed seem refer to a problem in reading request data from the client - so the HttpIOException is triggered.
    I have made a little research on HttpIOException in request-reading context. There are only
    two situations in which HttpIOException can be raised without an causing IOExce
    ption, and I think none of them applies. So we'd have some kind of IOException t
    hat causes the HttpIOException. It might well be a SocketException, because the
    text "Read timed out" is as far as I know the standard text for SocketException
    if the socket's SoTimeout has been reached.
    In fact there is a configuration parameter for OC4J (though undocumented), which allows you to set the Socket's SoT
    imeout -- and the default is 15000 (measured in milliseconds). The name is "orac
    le.j2ee.http.socket.timeout", and it should be available in OC4J 9.0.3.1 and hig
    her (I am definitely sure that it exists in OC4J 9.0.4.1).
    So can you please add something like "-Doracle.j2ee.http.socket.timeout=120000" to the startup comma
    nd for your standalone OC4J container to increase the timeout from 15 seconds to
    2 minutes?
    It helped us, although some requests time out "normally" instead.
    /jonas

  • 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.

  • 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.

  • SocketException: Connection aborted/reset by peer

    Hi all,
    I get the below exception sometimes.
    What I want to learn is: what is the difference between Connection aborted by peer and Connection reset by peer and in which condition do they occur?
    java.net.SocketException: Connection aborted by peer: socket write error
         at java.net.SocketOutputStream.socketWrite(Native Method)
         at java.net.SocketOutputStream.write(Unknown Source)

    My understanding is that "Connection reset by peer" occurs on a read. A "Connection aborted by peer" occurs on a write. The former is more common and typically occurs when the connection is lost in the middle of a read or a write and is thus an unexpected event. i.e. The connection is not closed after a point where is might be expected to be closed.

  • [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.

  • Axis2.AxisFault: Connection aborted by peer

    Hi,
    I developed a web service cliente using axis2 but I'm getting this error:
    org.apache.axis2.AxisFault: recv failed: Connection aborted by peer
    Does anyone know what this means?
    thanks in advance,
    Manuel Leiria

    Bijush.p.Jose <bijushjose@yahoo,com> wrote:
    when i started servlets program in weblogic 6.1, i am getting Connection
    aborted by peer: socket write errorThats because the client you used (most prob browser) prematurely terminated connection
    with the server (most prob you hit ESC in the browser).
    Tarkeshwar

  • TNSNames - Connect database over HTTP protocol - Webservices

    Hi,
    I just want to know whether I can connect oracle over HTTP protocol instead of TCP/IP protocol in TNSNames.ORA. I'm trying to connect Oracle database which is out of network (over internet). Is this possible? If yes, how secure it is? Can I use HTTPS for secure connection?
    Here is some background, previously we had two different databases within our network and we used database link to connect to the other database. Now, the database is going out of our network (seperated as different company). And we still need to use that database and we don't want to connect to database via NAT IP address.
    We are looking for some solution probably HTTP protocol connection in TNSNames.ORA (if possible) or webservices. Regarding webservices in Oracle, I can see some documents that uses UTL_DBWS and Oracle XML DB to handle this. I'm not sure how to expose webservice from Oracle 10g database. Also, how secure is the Oracle webservice?
    Appreciate any help on this.
    Thanks
    Kumar

    Once more, missleading advices. It is not me who pursues the 'Hollier than thou' attitude, it is you who put yourself in the target.
    You cannot connect directly to Oracle using the HTTP
    protocol or HTTPS protocol.Yes you can, OraDAV has been available since Oracle 8i, as I have previously mentioned this was the first use of the Listener as an application server and supports protocols such as http and ftp. This feature is not widespreaded used because either people don't know about it or becuase it is easier to manage a regular Application Server. This was used about 6 or 7 years ago for the iFS feature. Today the OraDAV protocol is used for the Oracle Portal application to easy the life of non-technical people who contribute with contents to the portal. One more platform where OraDAV is used is in the Oracle XE, it supports the XE web administrator console and is the point of access of APEX.
    If you could this would have been documented.
    Did you read the documentation?Have you? It would not be the first time you recommend something you don't do.
    Ref.
    * FTP, HTTP(S), and WebDAV Access to Repository Data.
    * Managing Network Connections
    * Configuring and Using mod_oradav
    -- ~ Madrid
    http://hrivera99.blogstpot.com

Maybe you are looking for