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.

Similar Messages

  • 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

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

  • Persistent socket connection - socket write error

    I'm connecting to a server using sockets. My application acts like a client, sending requests, and also like a server, listenning for notifications. I was using a client socket for the first task (send a message when required) and a server socket for the second (permanently listen for incoming messages). This needs to be some kind of persistent connection.
    It happens now I'm required to send and receive using the same port. The only way I found to do this is to have a single socket (client) bound to a certain port. It connects to the server and one thread keeps listenning for incoming messages (by reading the input stream) while another process is launched whenever I need to send a message (by writing to the socket's output stream). The socket is created only once (when the application starts) and its output/input streams reused whenever needed.
    This works well for a while. However, when I try to send a message after some idle time (lets say 20 minutes) strange things happen. The first attempt to send a message returns success (although nothing is actually received by the server). The second attempt returns java.net.SocketException: Software caused connection abort: socket write error. I don't understand this behaviour. Can there be a timeout? I only write to the socket after testing if it's connected.. So why is this failing? Also, any other ideas on how to send and receive using the same port? A different and better approach maybe..
    Thanks in advance

    Socket.isConnected just tells you whether you have personally called Socket.connect() or new Socket(host, port,...). It doesn't tell you anything about the state of the connection.
    You should certainly issue periodic application 'pings' at suitable intervals, and many application protocols do this. For example, Java RMI reuses connections that are less than 15 seconds old but only if they pass a ping test.
    In general however you can't insist on a persistent connection over TCP/IP, especially if you have this kind of hardware in the circuit. What you can do is recognize when the connection has been lost and form a new one. The network is going to fail somewhere some time and your program has to be robust against that.

  • Seeburger sFTP receiver adapter error: Socket Write Error, EOF Received

    Hello experts,
    We have a sFTP to sFTP scenario for which we are getting below error every time the scenario is executed.
    Error Messages are as follows:
    Put File: Could not connect to remote host, Reason: Unexpected termination; software caused connection abort; socket write error[unknown cause].
    Sometimes below error occurs :
    Put File: Could not connect to remote host, Reason: EOF received from remote side [unknown cause].
    Every time after restart of sFTP adapter on XI box, failed messages are sent successfully to receiver sFTP server.
    There is no error for sender sFTP channel. This error occurs only for the receiver sFTP channel.
    On receiver sFTP side, we are using Public key-private key authentication.
    Can anyone please let me know what could be the cause of connection failure. ?
    Thanks a lot in advance!
    (I searched many threads on SDN but could not find anything relevant to this particular situation, so posting a separate question.)
    Minal

    Thanks Naveen for the reply..
    I missed to mention that we are working on XI3.0 with SP19 and seeburger sFTP is 1.7.4
    Looks like key exchange is working properly as after every restart of adapter all failed messages are processed successfully..
    It is observed that if there is an idle time of 8-10 hours between last data transfer and current data transfer then this error occurs.
    We have increased connection timeout and transmission timeout parameters also for sFTP properties in visual admin.
    Thanks,
    Minal
    Edited by: Minal Vaidya on Oct 5, 2011 8:46 AM

  • Random "socket write error"

    Hello,
    We are running CF 9.01 standard on IIS 6 (Windows server 2003) on mutiple servers.
    I've noticing a few instances of these errors on every server, almost on a daily bases:
    10/28 13:32:26 error Error while reading header HTTPREFERER
    java.net.SocketException: Software caused connection abort: socket write error
          at java.net.SocketOutputStream.socketWrite0(Native Method)
          at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    NOTE: the header name can be anything, but the stack always starts like this.
    A few times, yesterday for example, a server can suddenly show tons of these errors and then it becomes unresponsive, with queued CFM requests. Only a restart of the service frees this condition.
    Our CFM pages perform a lot of CFHTTP calls, 99% of the time to localhost; in any case the local network is very solid. At the same time CFM is having these issues other pages, for example .NET pages, work perfectly.
    any insight? this problem is affecting our production website. thanks!

    I think, this is nothing to do with Oracle or Ur applications.
    It is totally N/W issue. Contact the N/W support.

  • What's the common reason for socket write errors?

    I just encountered some problem in my recent programming work.
    The error message is something like "java.net.SocketException: Software caused connection abort: socket write error", strangely enough, sometimes it can work without the error, but sometimes, the error occurs with the same test case.
    I just want to know what's the mainly reason of this error?
    Thanks a lot.

    After checking the codes, I realized that it is because when I return a String object from an function and send it to the other end through socket, sometimes the other end receive a "null" object, and because I have to use the instance method of the object, so the error occured.
    But I am confused why I send a string to socket, but sometimes I got a "null" object at the other end, I am sure the string I send is actually not "null" the the send side?

  • Connection reset by peer: socket write error

    Anybody can help me?
    I run vdbench to test our NAS server, but it always failed with "
    Slave localhost-0 aborting: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
    Error:         Windows System Error code: 64: ",  how to solve this fail ?
    conf file:
    fsd=fsd,anchor=Y:\dir,count=(11,15),depth=10,width=2,files=1,size=(10k,20,100k,20,160k,20,8m,20,10m,10,1g,5,2g,5)
    fwd=fwd1,fsd=(fsd11,fsd12,fsd13,fsd14,fsd15),rdpct=85,xfersize=(10k,22,100k,22,160k,22,8m,22,10m,12),fileio=random,fileselect=random,threads=5
    rd=rd1,fwd=fwd1,operations=read,fwdrate=max,format=yes,elapsed=10,interval=1
    logfile.html:
    14:22:49.510 Vdbench distribution: vdbench50401
    14:22:49.510
    14:22:49.526 input argument scanned: '-fcifs'
    14:22:49.526 java.vendor                   Sun Microsystems Inc.
    14:22:49.526 java.home                     C:\Program Files\Java\jre6
    14:22:49.526 java.vm.specification.version 1.0
    14:22:49.526 java.vm.version               16.3-b01
    14:22:49.526 java.vm.vendor                Sun Microsystems Inc.
    14:22:49.526 java.specification.version    1.6
    14:22:49.526 java.class.version            50.0
    14:22:49.526 user.name                     zcuser1002
    14:22:49.526 user.dir                      C:\Users\zcuser1002\Desktop\Y-vdbench-1021
    14:22:49.526 java.class.path               C:\Users\zcuser1002\Desktop\Y-vdbench-1021\;C:\Users\zcuser1002\Desktop\Y-vdbench-1021\classes;C:\Users\zcuser1002\Desktop\Y-vdbench-1021\vdbench.jar
    14:22:49.526 os.name                       Windows Server 2008 R2
    14:22:49.526 os.arch                       amd64
    14:22:49.526 os.version                    6.1
    14:22:49.526 sun.arch.data.model           64
    14:22:49.557 'fsd=fsd,count=(start,count)' added fsd11 Y:\dir11
    15:08:57.031       2704    0.0  0.00   0.9 4.42   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
    15:08:58.030       2705  343.0 386.6   8.5 4.36   0.0    0.0  0.00  343.0 386.6  0.00 42.22  42.22  129071   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
    15:08:59.031       2706   15.0 983.4   0.0 3.41   0.0    0.0  0.00   15.0 983.4  0.00  1.85   1.85  129160   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
    15:09:51.406 localhost-0: anchor=Y:\dir15: Created 420 of 1024 files (41.02%)
    15:10:02.202       2707  12143 31.35   8.0 6.25   0.0    0.0  0.00  12143 31.35  0.00  1513 1513.9  130736   0.0  0.00   0.0  0.00  65.0 59795  65.0 202.8  67.0 44969   0.0  0.00   0.0  0.00   0.0  0.00
    15:10:02.234       2708    0.0  0.00   8.6 8.40   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
    15:10:02.249       2709    0.0  0.00  43.7 37.5   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00  27.0  4268   0.0  0.00   0.0  0.00   0.0  0.00
    15:10:02.265       2710    0.0  0.00   0.0 0.00   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
    15:10:02.296       2711    0.0  0.00 100.0 81.2   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
    15:10:02.312       2712    0.0  0.00   0.0 0.00   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
    15:10:02.312 localhost-0: 15:10:02.218 op: write  lun: Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file lba:   1484652544 0x587E0000 xfer:   131072 errno: Windows System Error code: 64: ??¡§????????????
    15:10:02.327 localhost-0: 15:10:02.234 op: write  lun: Y:\dir14\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file lba:   1971847168 0x75880000 xfer:   131072 errno: Windows System Error code: 64: ??¡§????????????
    15:10:02.343       2713    0.0  0.00 100.0 74.9   0.0    0.0  0.00    0.0  0.00  0.00  0.00   0.00       0   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00   0.0  0.00
    15:10:02.343
    15:10:02.343 **********************************************************
    15:10:02.343 Slave localhost-0 aborting: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
    Error:         Windows System Error code: 64: ??¡§????????????
    lba:           1484652544
    xfersize:      131072
    blocks_done:   11327
    bytes_done:    1484652544
    open_for_read: false
    15:10:02.343 **********************************************************
    15:10:02.343
    15:10:18.013 Exception from slave: localhost-0
    15:10:18.013
    15:10:18.013 common.failure():
      java.net.SocketException: Connection reset by peer: socket write error
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
    at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
    at java.io.ObjectOutputStream.reset(Unknown Source)
    at Vdb.SlaveSocket.putMessage(SlaveSocket.java:277)
    at Vdb.CollectSlaveStats.<init>(CollectSlaveStats.java:121)
    at Vdb.Reporter.run(Reporter.java:183)
    localhost-0.stdout.html:
    stdout/stderr for slave=localhost-0
    14:22:50.072 14:22:50.072 SlaveJvm execution parameter:  '-m localhost'
    14:22:50.072 14:22:50.072 SlaveJvm execution parameter:  '-n localhost-10-141104-14.22.49.432'
    14:22:50.072 14:22:50.072 SlaveJvm execution parameter:  '-l localhost-0'
    14:22:50.072 14:22:50.072 SlaveJvm execution parameter:  '-p 5570'
    14:22:50.072 14:22:50.072 SlaveJvm positional parameter: 'SlaveJvm'
    14:22:50.118 14:22:50.118 successfully connected to master localhost
    14:22:50.118 14:22:50.118 Connection to localhost using port 5570 successful
    14:22:50.571 14:22:50.571 execute(): ls -l Y:\dir11
    14:22:50.618 14:22:50.618 execute(): ls -l Y:\dir12
    14:22:50.633 14:22:50.633 execute(): ls -l Y:\dir13
    14:22:50.664 14:22:50.664 execute(): ls -l Y:\dir14
    14:22:50.680 14:22:50.680 execute(): ls -l Y:\dir15
    14:22:50.711 14:22:50.711 Configuration interpretation took 0.45 seconds
    Link to Run Definitions:         <A HREF="#_225912260">format_for_rd1 For loops: None</A>
                                     <A HREF="#_156265924">rd1 For loops: None</A>
    14:22:50.852 14:22:50.852 Beginning of run setup
    14:22:50.852 14:22:50.852 **********************
    14:22:50.852
    14:22:50.852
    14:22:51.538 14:22:51.538 Completed the creation of the directory list for Y:\dir11: 2046 directories.
    14:22:56.811 14:22:56.811 Memory total Java heap:   77.438 MB; Free:   32.782 MB; Used:   44.655 MB;
    14:22:56.874 14:22:56.874 checkMemory()
    14:22:56.874 14:22:56.874 Memory total Java heap:   77.438 MB; Free:   52.364 MB; Used:   25.074 MB;
    14:23:03.426 14:23:03.426 Generated     1024 file names; total anchor size: 130.841g
    14:23:03.426 14:23:03.426 Writing control file for anchor=Y:\dir11 at start of run.
    14:23:03.457 14:23:03.441 Completed control file for anchor=Y:\dir11 at start of run.  dirs: 2046/2046 files: 1024/88 sizes: 130.841g/8.721g/0/0.0
    14:23:03.457 14:23:03.441 During anchor creation for anchor=Y:\dir11 there were 2046 directories and 88 files
    14:23:03.551 14:23:03.551 Completed the creation of the directory list for Y:\dir12: 2046 directories.
    14:23:08.902 14:23:08.902 Memory total Java heap:   77.438 MB; Free:   24.149 MB; Used:   53.288 MB;
    14:23:08.964 14:23:08.964 checkMemory()
    14:23:08.964 14:23:08.964 Memory total Java heap:   77.438 MB; Free:   50.640 MB; Used:   26.798 MB;
    14:23:15.579 14:23:15.579 Generated     1024 file names; total anchor size: 130.841g
    14:23:15.579 14:23:15.579 Writing control file for anchor=Y:\dir12 at start of run.
    14:23:15.594 14:23:15.594 Completed control file for anchor=Y:\dir12 at start of run.  dirs: 2046/2046 files: 1024/74 sizes: 130.841g/7.092g/0/0.0
    14:23:15.594 14:23:15.594 During anchor creation for anchor=Y:\dir12 there were 2046 directories and 74 files
    14:23:15.688 14:23:15.688 Completed the creation of the directory list for Y:\dir13: 2046 directories.
    14:23:21.210 14:23:21.210 Memory total Java heap:   74.688 MB; Free:   19.725 MB; Used:   54.963 MB;
    14:23:21.273 14:23:21.273 checkMemory()
    14:23:21.273 14:23:21.273 Memory total Java heap:   76.562 MB; Free:   48.176 MB; Used:   28.386 MB;
    14:23:28.168 14:23:28.168 Generated     1024 file names; total anchor size: 130.841g
    14:23:28.168 14:23:28.168 Writing control file for anchor=Y:\dir13 at start of run.
    14:23:28.184 14:23:28.184 Completed control file for anchor=Y:\dir13 at start of run.  dirs: 2046/2046 files: 1024/84 sizes: 130.841g/8.886g/0/0.0
    14:23:28.184 14:23:28.184 During anchor creation for anchor=Y:\dir13 there were 2046 directories and 84 files
    14:23:28.262 14:23:28.262 Completed the creation of the directory list for Y:\dir14: 2046 directories.
    14:23:33.785 14:23:33.785 Memory total Java heap:   74.250 MB; Free:   17.213 MB; Used:   57.037 MB;
    14:23:33.863 14:23:33.863 checkMemory()
    14:23:33.863 14:23:33.863 Memory total Java heap:   72.812 MB; Free:   42.829 MB; Used:   29.983 MB;
    14:23:40.976 14:23:40.976 Generated     1024 file names; total anchor size: 130.841g
    14:23:40.976 14:23:40.976 Writing control file for anchor=Y:\dir14 at start of run.
    14:23:40.976 14:23:40.976 Completed control file for anchor=Y:\dir14 at start of run.  dirs: 2046/2046 files: 1024/87 sizes: 130.841g/8.778g/0/0.0
    14:23:40.976 14:23:40.976 During anchor creation for anchor=Y:\dir14 there were 2046 directories and 87 files
    14:23:41.054 14:23:41.054 Completed the creation of the directory list for Y:\dir15: 2046 directories.
    14:23:46.296 14:23:46.296 Memory total Java heap:   74.062 MB; Free:   42.390 MB; Used:   31.672 MB;
    14:23:46.374 14:23:46.374 checkMemory()
    14:23:46.374 14:23:46.374 Memory total Java heap:  101.000 MB; Free:   68.809 MB; Used:   32.191 MB;
    14:23:52.958 14:23:52.958 Generated     1024 file names; total anchor size: 130.841g
    14:23:52.958 14:23:52.958 Writing control file for anchor=Y:\dir15 at start of run.
    14:23:52.989 14:23:52.973 Completed control file for anchor=Y:\dir15 at start of run.  dirs: 2046/2046 files: 1024/96 sizes: 130.841g/8.995g/0/0.0
    14:23:52.989 14:23:52.973 During anchor creation for anchor=Y:\dir15 there were 2046 directories and 96 files
    14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd11,operation=read:    20.0
    14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd12,operation=read:    20.0
    14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd13,operation=read:    20.0
    14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd14,operation=read:    20.0
    14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd15,operation=read:    20.0
    14:23:53.051 14:23:53.051 Started 8 threads for fwd=format,fsd=fsd11
    14:23:53.114 14:23:53.114 Started 8 threads for fwd=format,fsd=fsd12
    14:23:53.161 14:23:53.161 Started 8 threads for fwd=format,fsd=fsd13
    14:23:53.207 14:23:53.207 Started 8 threads for fwd=format,fsd=fsd14
    14:23:53.270 14:23:53.270 Started 8 threads for fwd=format,fsd=fsd15
    14:23:53.270 14:23:53.270 Started 40 FwgThreads
    14:23:53.270 14:23:53.270 Waiting for task synchronization
    14:23:53.270 14:23:53.270 task_wait_start_complete() end
    <a name="_225912260"></a><i><b>14:23:53.971 Starting RD=format_for_rd1</b></i>
    14:23:54.002 14:23:54.002 task_run_all(): 41 tasks
    14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir15 mkdir complete.
    14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir11 mkdir complete.
    14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir13 mkdir complete.
    14:23:54.066 14:23:54.066 Message to master: anchor=Y:\dir14 mkdir complete.
    14:23:54.066 14:23:54.066 Message to master: anchor=Y:\dir12 mkdir complete.
    14:24:24.685 14:24:24.685 Message to master: anchor=Y:\dir14: Created 130 of 1024 files (12.70%)
    14:24:56.311 14:24:56.311 Message to master: anchor=Y:\dir12: Created 130 of 1024 files (12.70%)
    14:25:40.473 14:25:40.464 Message to master: anchor=Y:\dir13: Created 140 of 1024 files (13.67%)
    14:32:52.125 14:32:52.125 Message to master: anchor=Y:\dir12: Created 140 of 1024 files (13.67%)
    14:33:30.374 14:33:30.374 Message to master: anchor=Y:\dir12: Created 160 of 1024 files (15.63%)
    14:34:33.842 14:34:33.842 Message to master: anchor=Y:\dir14: Created 170 of 1024 files (16.60%)
    14:35:49.810 14:35:49.810 Message to master: anchor=Y:\dir14: Created 180 of 1024 files (17.58%)
    14:36:34.451 14:36:34.451 Message to master: anchor=Y:\dir14: Created 190 of 1024 files (18.55%)
    14:38:13.437 14:38:13.437 Message to master: anchor=Y:\dir14: Created 200 of 1024 files (19.53%)
    14:39:01.966 14:39:01.966 Message to master: anchor=Y:\dir11: Created 210 of 1024 files (20.51%)
    14:39:57.837 14:39:57.837 Message to master: anchor=Y:\dir15: Created 220 of 1024 files (21.48%)
    14:41:51.763 14:41:51.763 Message to master: anchor=Y:\dir13: Created 220 of 1024 files (21.48%)
    14:42:31.156 14:42:31.156 Message to master: anchor=Y:\dir14: Created 240 of 1024 files (23.44%)
    14:45:32.607 14:45:32.607 Message to master: anchor=Y:\dir15: Created 260 of 1024 files (25.39%)
    14:46:44.611 14:46:44.611 Message to master: anchor=Y:\dir11: Created 270 of 1024 files (26.37%)
    14:47:53.707 14:47:53.707 Message to master: anchor=Y:\dir14: Created 280 of 1024 files (27.34%)
    14:48:25.032 14:48:25.032 Message to master: anchor=Y:\dir12: Created 280 of 1024 files (27.34%)
    14:48:56.946 14:48:56.946 Message to master: anchor=Y:\dir13: Created 290 of 1024 files (28.32%)
    14:50:40.869 14:50:40.868 Message to master: anchor=Y:\dir11: Created 300 of 1024 files (29.30%)
    14:51:22.062 14:51:22.062 Message to master: anchor=Y:\dir15: Created 330 of 1024 files (32.23%)
    14:53:55.390 14:53:55.390 Message to master: anchor=Y:\dir14: Created 350 of 1024 files (34.18%)
    14:56:20.897 14:56:20.897 Message to master: anchor=Y:\dir14: Created 360 of 1024 files (35.16%)
    14:58:08.513 14:58:08.513 Message to master: anchor=Y:\dir11: Created 360 of 1024 files (35.16%)
    14:59:34.933 14:59:34.933 Message to master: anchor=Y:\dir12: Created 360 of 1024 files (35.16%)
    15:02:15.234 15:02:15.234 Message to master: anchor=Y:\dir13: Created 370 of 1024 files (36.13%)
    15:02:48.482 15:02:48.482 Message to master: anchor=Y:\dir14: Created 380 of 1024 files (37.11%)
    15:04:27.359 15:04:27.359 Message to master: anchor=Y:\dir13: Created 380 of 1024 files (37.11%)
    15:05:57.406 15:05:57.406 Message to master: anchor=Y:\dir15: Created 390 of 1024 files (38.09%)
    15:07:18.982 15:07:18.982 Message to master: anchor=Y:\dir11: Created 390 of 1024 files (38.09%)
    15:08:15.419 15:08:15.419 Message to master: anchor=Y:\dir11: Created 410 of 1024 files (40.04%)
    15:08:50.624 15:08:50.624 Message to master: anchor=Y:\dir13: Created 410 of 1024 files (40.04%)
    15:09:51.406 15:09:51.406 Message to master: anchor=Y:\dir15: Created 420 of 1024 files (41.02%)
    15:10:02.202 15:10:02.202 file_write error2: 64
    15:10:02.202 15:10:02.202 file_write error2: 64
    15:10:02.202 15:10:02.202 handle: 0000000000000B38
    15:10:02.202 15:10:02.202 seek:   0000000075880000
    15:10:02.202 15:10:02.202 handle: 0000000000000BC0
    15:10:02.202 15:10:02.202 length: 0000000000020000
    15:10:02.202 15:10:02.202 seek:   00000000587E0000
    15:10:02.202 15:10:02.202 buffer: 0000000034430000
    15:10:02.202 15:10:02.202 length: 0000000000020000
    15:10:02.202 15:10:02.202 buffer: 000000002E3E0000
    15:10:02.234 15:10:02.234
    15:10:02.234 15:10:02.234 Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
    15:10:02.234 15:10:02.234 Error:         Windows System Error code: 64: ??¡§????????????
    15:10:02.234 15:10:02.234 lba:           1484652544
    15:10:02.234 15:10:02.234 xfersize:      131072
    15:10:02.234 15:10:02.234 blocks_done:   11327
    15:10:02.234 15:10:02.234 bytes_done:    1484652544
    15:10:02.234 15:10:02.234 open_for_read: false
    15:10:02.234 15:10:02.234
    15:10:02.234 java.lang.RuntimeException: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
    15:10:02.234 Error:         Windows System Error code: 64: ??¡§????????????
    15:10:02.234 lba:           1484652544
    15:10:02.234 xfersize:      131072
    15:10:02.234 blocks_done:   11327
    15:10:02.234 bytes_done:    1484652544
    15:10:02.234 open_for_read: false
    15:10:02.234  at Vdb.common.failure(common.java:308)
    15:10:02.234  at Vdb.ActiveFile.writeError(ActiveFile.java:611)
    15:10:02.234  at Vdb.ActiveFile.writeBlock(ActiveFile.java:458)
    15:10:02.234  at Vdb.FwgThread.doSequentialWrite(FwgThread.java:327)
    15:10:02.234  at Vdb.OpCreate.doOperation(OpCreate.java:51)
    15:10:02.234  at Vdb.OpFormat.doOperation(OpFormat.java:91)
    15:10:02.234  at Vdb.FwgThread.run(FwgThread.java:157)

    'Socket write error' is merely the master finding out that the slave aborted unexpectedly.
    It it the '64' you have to worry about.
    Windows system error code 64:
    (It appears that the Vdbench translation from number to text may have some language issues and therefore can not properly print it).
    ERROR_NETNAME_DELETED
    64 (0x40)
    The specified network name is no longer available.

  • JCOM throwing SocketException: Connection reset by peer: socket write error

    I have an ejb which is calling a simple ActiveX component using JCOM.
    Ocassionally the ejb loses the ability to connect to the ActiveX component. Any attempt to call a method results in a java.net.SocketException: Connection reset by peer: socket write error.
    However the ActiveX component continues to run correctly. I can still connect to it using a vb test client. This is using com to connect, not DCOM as used by JCOM(JIntegra).
    The application server and the ActiveX component are running on the same server.
    Any suggestions as to why the JIntegra DCOM request could be failing?
    Thanks,
    Greg.

    I have an ejb which is calling a simple ActiveX component using JCOM.
    Ocassionally the ejb loses the ability to connect to the ActiveX component. Any attempt to call a method results in a java.net.SocketException: Connection reset by peer: socket write error.
    However the ActiveX component continues to run correctly. I can still connect to it using a vb test client. This is using com to connect, not DCOM as used by JCOM(JIntegra).
    The application server and the ActiveX component are running on the same server.
    Any suggestions as to why the JIntegra DCOM request could be failing?
    Thanks,
    Greg.

  • Urgent helep: socket write error

              Hi All,
              My application is continuously writing the following error message to the domain
              log of WLS eventhough app is running ok
              javax.servlet.ServletException: Connection aborted by peer: socket write error
                   <<no stack trace available>>
              My major concern is that,it will fill up the heap soon.
              Did anybody run into similar issue?
              Thanks in advance.
              RC
              

    Please do not cross-port.
              RC wrote:
              > Hi All,
              > My application is continuously writing the following error message to the domain
              > log of WLS eventhough app is running ok
              >
              > javax.servlet.ServletException: Connection aborted by peer: socket write error
              > <<no stack trace available>>
              >
              > My major concern is that,it will fill up the heap soon.
              > Did anybody run into similar issue?
              > Thanks in advance.
              >
              > RC
              Rajesh Mirchandani
              Developer Relations Engineer
              BEA Support
              

  • Oracle Application Server crashes due to Socket Write Error

    I am using Oracle Application Server 9.0.3. Simple JSP application is running on it. We are using the application server connection pooling functionality. Following errors are occuring on it frequently and it causes the application server crash.
    First application response gets slow and eventually application server gets lock and it wont respond and we have to restart the application server. Our application is in production mode and we need to solve this issue immediately.
    ----------------Error1---------------------
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:249)
         at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:424)
         at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:341)
         at com.evermind.server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:490)
         at com.evermind.server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:415)
         at schedule.schedulehome._jspService(_schedulehome.java:542)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:479)
    ------------Error2---------------------
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:249)
         at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:424)
         at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:341)
         at com.evermind.server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:490)
         at com.evermind.server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:415)
         at schedule.schedulehome._jspService(_schedulehome.java:557)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:479)

    I am using Oracle Application Server 9.0.3. Simple JSP application is running on it. We are using the application server connection pooling functionality. Following errors are occuring on it frequently and it causes the application server crash.
    First application response gets slow and eventually application server gets lock and it wont respond and we have to restart the application server. Our application is in production mode and we need to solve this issue immediately.
    ----------------Error1---------------------
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:249)
         at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:424)
         at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:341)
         at com.evermind.server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:490)
         at com.evermind.server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:415)
         at schedule.schedulehome._jspService(_schedulehome.java:542)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:479)
    ------------Error2---------------------
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:249)
         at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:424)
         at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:341)
         at com.evermind.server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:490)
         at com.evermind.server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:415)
         at schedule.schedulehome._jspService(_schedulehome.java:557)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:479)

  • Socket write error - WL4.5.1

    Hi
    I have multiple clients accessing EJBs deployed on WebLogic4.5.1
    When I run the clients concurrently, the server throws the following
    exception and closes the client connection. This occurs with ServicePacks 7
    and 9!!! Can you please help me?
    Regards,
    Madhavi.
    The exception -
    Tue Nov 07 10:33:04 MST 2000:<E> <RJVM> java.net.SocketException: blocking
    winsock call in progress: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at java.net.SocketOutputStream.write(Compiled Code)
    at weblogic.socket.MBuf.writeTo(Compiled Code)
    at weblogic.socket.JVMSocketT3.sendMsg(Compiled Code)
    at weblogic.rjvm.ConnectionManager.sendMsg(Compiled Code)
    at weblogic.rjvm.SlidingWindow.sendMsg(Compiled Code)
    at weblogic.rjvm.RJVMImpl.send(Compiled Code)
    at weblogic.rjvm.RJVMImpl$OutStream.flushAndSendRaw(Compiled Code)
    at weblogic.rjvm.RJVMImpl$OutStream.flushAndSend(Compiled Code)
    at weblogic.rjvm.RJVMImpl$OutStream.sendOneWay(RJVMImpl.java:887)
    at
    weblogic.rmi.extensions.AbstractRemoteObjectReference$BasicOutgoingRequest.s
    endOneWay(AbstractRemoteObjectReference.java:335)
    at weblogic.rmi.extensions.BasicRequest.sendOneWay(BasicRequest.java:36)
    at
    weblogic.rmi.internal.DGCServer_WLStub.renewLease(DGCServer_WLStub.java:121)
    at weblogic.rmi.internal.DGCClientImpl$HeartBeat.execute(Compiled Code)
    at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)

    YEAHHH
    God bless these forums !!! thats been bugging me for ages - youve no idea , so my code that works now looks like :
    public class SSLSocketClient {
    public static void main(String[] args) throws Exception {
    System.setProperty
    ("javax.net.ssl.trustStorePassword", "Passw0rd");
    System.setProperty ("javax.net.ssl.trustStore", "trust.store");
    Security.addProvider((Provider)Class.forName
    ("com.sun.crypto.provider.SunJCE").newInstance());
    java.security.Security.addProvider
    (new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty ("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
         try {
    System.setProperty
    ("javax.net.ssl.keyStoreType", "pkcs12");
    System.setProperty
    ("javax.net.ssl.keyStorePassword", "Passw0rd");
    System.setProperty
    ("javax.net.ssl.keyStore", "b2b_ssltestweb.p12");
         SSLSocketFactory factory =
              (SSLSocketFactory)SSLSocketFactory.getDefault();
         SSLSocket socket =
              (SSLSocket)factory.createSocket("b2b-dev.fmr.com", 443);
    /* now handshare is complete and god to go */
    Thanks for your help ejp,
    joe

  • Simple Webserver SocketException: socket write error

    I'm stuck and need some help solving this problem.
    When I try to get the 404 message with the webserver, I get this in the output console:
    "HttpRequest - java.net.SocketException: Connection reset by peer: socket write error"
    I have found the part that makes the problem, but I can't find a solution.
    I hope someone can help me with this!
                try
                    outputStream.writeBytes(entityBody);
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public final class WebServer
        public static void main(String[] args) throws Exception
            //Port number
            int port = 8080;
            // Establish the listen socket.
            ServerSocket webSocket = new ServerSocket(port);
            // Process HTTP service requests in an infinite loop.
            while(true)
                // Listen for a TCP connection request
                Socket tcpSocket = webSocket.accept();
                HttpRequest httpRequest = new HttpRequest(tcpSocket);
                Thread thread = new Thread(httpRequest);
                thread.start();
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class HttpRequest implements Runnable
        final static String CRLF = "\r\n";
        private Socket socket;
        private String path = "public_html/";
        public HttpRequest(Socket socket)
            this.socket = socket;
        public void run()
            try
                processReguest();
            catch(Exception ex)
                System.err.println(ex);
        private void processReguest() throws Exception
            // Get a reference to the socket's input and output streams.
            InputStreamReader inputReader = new InputStreamReader(socket.getInputStream());
            DataOutputStream outputStream = new DataOutputStream(socket.getOutputStream());
            BufferedReader buffReader = new BufferedReader(inputReader);
            String requestLine = buffReader.readLine();
            System.out.println();
            System.out.println(requestLine);
            String headerLine = null;
            while((headerLine = buffReader.readLine()).length() != 0)
                System.out.println(headerLine);
            // Extract the filename from the request line
            StringTokenizer tokens = new StringTokenizer(requestLine);
            tokens.nextToken();
            String fileName = tokens.nextToken();
            //Prepend a "." so that the file request is within the current directory
            fileName = path + "." + fileName;
            //Open the request file
            FileInputStream fileInputStream = null;
            boolean fileExists = true;
            try
                fileInputStream = new FileInputStream(fileName);
            catch(FileNotFoundException ex)
                fileExists = false;
            //Construct the response message.
            String statusLine = null;
            String connection = null;
            String contentLength = null;
            String contentTypeLine = null;
            String entityBody = null;
            String contentType = contentType(fileName);
            if(!requestLine.startsWith("GET") && !requestLine.startsWith("HEAD"))
                statusLine = "HTTP/1.0 405 Method Not Allowed" + CRLF;
                contentLength = "Content-Length: 0" + CRLF;
                connection = "Connection: close" + CRLF;
                contentTypeLine = "Content-type: " + "text/html" + CRLF;
                entityBody = "<HTML><HEAD><TITLE>405 - Method Not Allowed</TITLE></HEAD><BODY>405 - Method Not Allowed</BODY></HTML>";
                fileInputStream = null;
                fileExists = false;
            else if(fileExists && !contentType.equals("application/octet-stream"))
                statusLine = "HTTP/1.0 200 OK" + CRLF;
                contentTypeLine = "Content-type: " + contentType(fileName) + CRLF;
                connection = "Connection: close" + CRLF;
                contentLength = "Content-Length: " + Integer.toString(fileInputStream.available()) + CRLF;
            else if(fileExists && contentType.equals("application/octet-stream"))
                statusLine = "HTTP/1.0 415 Unsupported Media Type" + CRLF;
                contentLength = "Content-Length: 0" + CRLF;
                connection = "Connection: close" + CRLF;
                contentTypeLine = "Content-type: " + "text/html" + CRLF;
                entityBody = "<HTML><HEAD><TITLE>415 - Unsupported Media Type</TITLE></HEAD><BODY>415 - Unsupported Media Type</BODY></HTML>";
                fileInputStream = null;
                fileExists = false;
            else
                statusLine = "HTTP/1.0 404 Bad Request" + CRLF;
                contentLength = "Content-Length: 0" + CRLF;
                connection = "Connection: close" + CRLF;
                contentTypeLine = "Content-type: " + "text/html" + CRLF;
                entityBody = "<HTML><HEAD><TITLE>404 - Not Found</TITLE></HEAD><BODY>404 - Not Found</BODY></HTML>";
            // Send the status line
            outputStream.writeBytes(statusLine);
            // Send the connection status
            outputStream.writeBytes(connection);
            // Send the Content-Length
            outputStream.writeBytes(contentLength);
            // Send the content type line
            outputStream.writeBytes(contentTypeLine);
            //Send a blank line to indicate the end of the header lines.
            outputStream.writeBytes(CRLF);
            // Send the enity body
            if(fileExists)
                //Den här funkar??
                sendBytes(fileInputStream, outputStream);
                fileInputStream.close();
            else
                try
                    outputStream.writeBytes(entityBody);
                catch(SocketException ex)
                    System.out.println(ex);
            socket.close();
            inputReader.close();
            outputStream.close();
            buffReader.close();
        private void sendBytes(FileInputStream fileInputStream, DataOutputStream outputStream) throws IOException
            //Construct a 1k buffer to hold bytes on their way to the socket
            byte[] buffer = new byte[1024];
            int bytes = 0;
            // Copy request file inte socket's output stream
            while((bytes = fileInputStream.read(buffer)) != -1)
                outputStream.write(buffer,0, bytes);
        private String contentType(String fileName)
            if(fileName.endsWith(".htm") || fileName.endsWith(".html"))
                return "text/html";
            else if(fileName.endsWith(".jpg") || fileName.endsWith(".jpeg"))
                return "image/jpeg";
            else if(fileName.endsWith(".gif"))
                return "image/gif";
            else if(fileName.endsWith(".png"))
                return "image/png";
            else if(fileName.endsWith(".txt"))
                return "text/plain";
            return "application/octet-stream";
    }

    You've told the client that the content length is zero bytes so I presume it closes the connection as soon as it finishes receiving headers. It depends what client you're using of course but that seems reasonable behaviour...

  • Socket write error

    Java.net.SocketException; connection reset by peer. socket write error
    Java.SQLException; cannot open anymore tables.
    I am getting this error when i'm using Tomcat 3.3 server. I am using servlet classes and access database.This error comes in 1-2 days and then it shows an sql exception that it cannot open any more tables. I am using an access database thru an ODBC datasource.
    The problem is solved when tomcat is restarted.
    If anybody knows the solution pl.let me know, anita

    Thanks 4 ur response. I am connecting to the database through JDBC which in turn uses an ODBC data source. The connection has been declared as global and is thus supposed to exist till the servlet is not destroyed.
    We r using an access D/B which is inturn accessed through ODBC.
    So it is not restarted or disturbed.
    Pl. help

  • "endpoint" encountered a socket write error.

    Blazesds: 3.0.0.544
    Flex:flex sdk 3
    Sever-side: 1. managing the accepted MessageClient.
    2. broadcasting the received message to every client.
    3. all the communication via streaming channel.
    After several about 20 clients connected to the server, a warning message popped out.
    'Endpoint with id'my-streaming-amf' is closing the streaming connection to FlexClient with id'xxxx' because endpoint encountered a socket write error, possibly due to an unreponsive FlexClient.
    Actually, nobody closed the client.
    My question is when the session was destroyed.
    a. no session timeout, caused the channel was lasted for about 2 seconds before it was interrupted.
    b. all the test was done in the inner network(LAN).
    c. this issue can be reproduced all the time.

    This is the warning that is at a point being given:
    Endpoint with id 'xxx-streaming-amf' is closing the streaming connection to FlexClient with id '3CFBFCA1-DC1D-FEDF-A70D-A08A520892CF' because endpoint encountered a socket write error, possibly due to an unresponsive FlexClient.
    Tried debugging things, but it seems as certain clients fail to completely subscribe to messages from the server and the Login remote call also seems to never even get to the server. Because of this, the loading dialog that is displayed during the authentication process, never gets removed ( since no reseponse from the server ever comes back ). This is really frustrating and there is no information anywhere that could shed some light on this problem.

Maybe you are looking for

  • After Effects CC still can't launch on Mavericks

    This seems to be a common issue but mine looks a bit different Probably because of my lack of experience in mac or Adobe products!!! Ok, my problem started from a window popped up saying "Install CUDA 5.0 or later and restart computer" or something l

  • Firefox tabs hang when there is 3 or more

    I have 3 homepages on Firefox, and they have been loading fine for the past few months. This morning when I opened Firefox, the tabs began to load but then froze. I had to end the process, restarted my computer and tried again. I had a couple success

  • Synching Calendars

    Since updating my iPhone 5 to 8.1, I am unable to sync Calendars to my MBP 10.9.5. Usual fixes not resolved problem. Any suggestions would be greatly appreciated.

  • FF wont play video in html5 page - Safari, Chrome and Opera do.

    cant get FF to play the video whilst Safari, Chrome and Opera are OK My browser is 9.0.1 on OSX 10.5.8 on an intel mac pro

  • Layers in CS4

    New to CS4 and not well versed in HTML.  Sometime back in an older version of DW I used layers to position photos and text on a web page.  I now have CS4 and cannot figure out how to create a layer.  Help menu says to simply Click on Insert>Layout Ob