Javax.io.IOException : write Error

i got this problem while communicate in serial port
wat is the solution and why it is coming?
at first everything is work fine and sometime receiving data from serial port gives this error message.

Hi, I'm writing app, which saves images to RS.
public void saveImage(String path) {
        RecordStore rs = null;    // Record store
        String RECORD_STORE = path; // Name of record store
        addImageName(path);
        try {
            rs = RecordStore.openRecordStore(RECORD_STORE, true );
            rs.addRecord(data, 0, data.length);
            System.out.println("data lenght : " + data.length);
            System.out.println("writing finished");
            rs.closeRecordStore();
        catch (Exception e) {
        dpy.setCurrent(l);
    }this works...this methos saved even 25kB...

Similar Messages

  • Java.io.IOException: write error

    Can any one tell me whats the problem .
    Can any one Tips for handling this error

    You received and error writing a file. Either you have no permission if you are trying to write from an applet or there is something invalid in the way you set it up.

  • Win2K - Infra Install - DB Config Asstn fails "write error"

    I'm trying to install the 9iAS Release 2 infrastrukture on a 1.4 Ghz P4 with 1.5 gigabytes of ram and enough disk. The machine already has 9iR2 database on it.
    It installs the software, but fails when it tries to run the database configuration assistant. The logfile is shown below, along with a full description of the command being run.
    Win2K is very happy (nothing in the logs indicating disk errors), and the error is consistent through a number of attempts.
    Did anybody see anything like this before?
    Eirik Lygre
    [email protected]
    +++++++++++++++
    Logfile content:
    Launched configuration tool Oracle Database Configuration Assistant
    Command which is being spawned is C:\Program Files\Oracle\jre\1.1.8\bin/jrew.exe [more ... se below]
    Configuration tool Oracle Database Configuration Assistant failed
    java.io.IOException: write error
    java.io.IOException: write error
         at java.io.FileOutputStream.write(Compiled Code)
         at java.io.BufferedOutputStream.write(Compiled Code)
         at oracle.sysman.assistants.dbca.backend.CloneDBUnjarringStep.unjar(Compiled Code)
         at oracle.sysman.assistants.dbca.backend.CloneDBUnjarringStep.executeImpl(CloneDBUnjarringStep.java:173)
         at oracle.sysman.assistants.dbca.backend.Step.execute(Compiled Code)
         at oracle.sysman.assistants.dbca.backend.Host$ModeRunner.run(Compiled Code)
         at java.lang.Thread.run(Thread.java:466)
    Result code for launching of configuration tool is 1
    +++++++++++++
    Full command line (truncated in the log file above, and reformatted for readability)
    Command which is being spawned is C:\Program Files\Oracle\jre\1.1.8\bin/jrew.exe -DORACLE_HOME="C:\oracle\orainfra" -DJDBC_PROTOCOL="thin"
    -classpath ";C:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;
    C:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;
    C:\oracle\orainfra\jlib\ewt3.jar;
    C:\oracle\orainfra\jlib\kodiak.jar;
    C:\oracle\orainfra\jlib\ewtcompat-3_3_15.jar;
    C:\oracle\orainfra\lib\xmlparserv2.jar;
    C:\oracle\orainfra\jdbc\lib\classes111.zip;
    C:\oracle\orainfra\classes;
    C:\oracle\orainfra\jlib\gss-1_1.zip;
    C:\oracle\orainfra\jlib\oembase-9_0_2.jar;
    C:\oracle\orainfra\jlib\srvm.jar;
    C:\oracle\orainfra\assistants\jlib\assistantsCommon.jar;
    C:\oracle\orainfra\jlib\share.jar;
    C:\oracle\orainfra\jlib\swingall-1_1_1.jar;
    C:\oracle\orainfra\assistants\dbca\jlib\dbca.jar;
    C:\oracle\orainfra\jlib\help3.jar;
    C:\oracle\orainfra\jlib\oracle_ice5.jar;
    C:\oracle\orainfra\jlib\netcfg.jar;
    C:\oracle\orainfra\jlib\ojmisc118.jar;
    C:\oracle\orainfra\lib\vbjorb.jar;
    C:\oracle\orainfra\lib\vbjtools.jar;
    C:\oracle\orainfra\lib\vbjapp.jar;"
    oracle.sysman.assistants.dbca.Dbca
    -progress_only
    -createDatabase
    -templateName Oracle9iAS_Repository_Database.dbc
    -gdbname iasdb.prosjekt2.evita.no
    -sid iasdb
    -datafileJarLocation C:\oracle\orainfra\assistants\dbca\templates
    -datafileDestination C:\oracle\orainfra\oradata
    -responseFile NO_VALUE
    -characterset WE8MSWIN1252
    -passwordDialog false Protected value, not to be logged
    -obfuscatedPasswords false
    +++++++++++++

    Hi
    Sorry, its a complete re-build for you!!
    I Had similar problems with the oracle installs where config assistants using jrew located in c:\program files... would not run.
    Usually this is not a problem as they can be run outside of the installer. It seems to be a problem installer 2.x on well used Windows installations. However, it does not seem that the issue can be worked round for the 9iAS R2 Infrastructure as some of the other config assistants run and create major authentication problems. A completely fresh install of W2K Sp2 seems to be the only answer.
    Best of Luck
    Richard

  • Javax.servlet.jsp.JspException: Error: IOException while writing to client!

    Hi
    I have deployed a WAR file successfully on
    standalone( win os) / 10AS server Rel2 ( Linux )
    But some times I get this Error ONLY on 10AS server Rele 2
    "javax.servlet.jsp.JspException: Error: IOException while writing to client!"
    Plz can some body tell me why am i getting this error.
    Is this a J2ee Container Problem?
    with regards
    Karthik

    Hi Form
    Plz some body explain me why am i getting this error not so frequently
    with regards
    Karthik

  • "java.io.IOException: Write Channel Closed" starting AdminServer from WLST

    Hi,
    I am trying to start the admin server through WLST.
    Per "Oracle® Fusion Middleware WebLogic Scripting Tool Command Reference 11g Release 1 (10.3.2)" I tried it both ways - online and offline.
    When online
    wls:/nm/ClassicDomain> startServer('AdminServer','ClassicDomain','t3://10.110.90.156:7002','weblogic','<password>','/u0/app/oracle/product/middleware/user_projects/domains')
    I am getting
    Starting server AdminServer ...
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 412, in startServer
    at com.certicom.tls.record.WriteHandler.write(Unknown Source)
    at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEStarting server AdminServer ...
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 412, in startServer
    at com.certicom.tls.record.WriteHandler.write(Unknown Source)
    at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
    at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
    at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
    at java.io.BufferedWriter.flush(BufferedWriter.java:236)
    at weblogic.nodemanager.common.DataFormat.writeCommand(DataFormat.java:243)
    at weblogic.nodemanager.client.NMServerClient.sendCmd(NMServerClient.java:320)
    at weblogic.nodemanager.client.NMServerClient.sendServer(NMServerClient.java:265)
    at weblogic.nodemanager.client.NMServerClient.start(NMServerClient.java:94)
    at weblogic.management.scripting.NodeManagerService.nmStart(NodeManagerService.java:368)
    at weblogic.management.scripting.LifeCycleHandler.startSvr(LifeCycleHandler.java:887)
    at weblogic.management.scripting.WLScriptContext.startSvr(WLScriptContext.java:384)
    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:597)
    java.io.IOException: java.io.IOException: Write Channel Closed
    and the node manager log shows:
    WARNING: Uncaught exception in server handlerjava.io.IOException: Bad properties data format
    java.io.IOException: Bad properties data format
    at weblogic.nodemanager.common.DataFormat.readProperties(DataFormat.java:44)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:537)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    And if I try it offline
    wls:/offline> startServer('AdminServer','ClassicDomain','t3://10.110.90.156:7002','weblogic','<passwd>','/u0/app/oracle/product/middleware/user_projects/domains');
    I am getting a big stack below. Can anybody through an idea?
    Thank you
    Anatoliy
    Offline stack:
    Starting weblogic server ...
    WLST-WLS-1273604718586: <May 11, 2010 3:05:19 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32 from BEA Systems, Inc.>
    WLST-WLS-1273604718586: <May 11, 2010 3:05:20 PM EDT> <Info> <Management> <BEA-140013> </u0/app/oracle/product/middleware/user_projects/domains/config/config.xml not found>
    WLST-WLS-1273604718586: <May 11, 2010 3:05:20 PM EDT> <Info> <Management> <BEA-141254> <Generating new domain directory in /u0/app/oracle/product/middleware/user_projects/domains>
    ...WLST-WLS-1273604718586: <May 11, 2010 3:05:27 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    WLST-WLS-1273604718586:
    WLST-WLS-1273604718586: There are 1 nested errors:
    WLST-WLS-1273604718586:
    WLST-WLS-1273604718586: weblogic.management.ManagementException: Failure during domain creation
    WLST-WLS-1273604718586: at weblogic.management.internal.DomainDirectoryService.generateDomain(DomainDirectoryService.java:229)
    WLST-WLS-1273604718586: at weblogic.management.internal.DomainDirectoryService.ensureDomainExists(DomainDirectoryService.java:152)
    WLST-WLS-1273604718586: at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:72)
    WLST-WLS-1273604718586: at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
    WLST-WLS-1273604718586: at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
    WLST-WLS-1273604718586: at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:749)
    WLST-WLS-1273604718586: at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:488)
    WLST-WLS-1273604718586: at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446)
    WLST-WLS-1273604718586: at weblogic.Server.main(Server.java:67)
    WLST-WLS-1273604718586: Caused by: com.bea.plateng.domain.script.ScriptException: The domain location must have write permission.
    WLST-WLS-1273604718586: at com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:723)
    WLST-WLS-1273604718586: at com.bea.plateng.domain.script.ScriptParserClassic$StateMachine.processWrite(ScriptParserClassic.java:575)
    WLST-WLS-1273604718586: at com.bea.plateng.domain.script.ScriptParserClassic$StateMachine.execute(ScriptParserClassic.java:431)
    WLST-WLS-1273604718586: at com.bea.plateng.domain.script.ScriptParserClassic.parseAndRun(ScriptParserClassic.java:150)
    WLST-WLS-1273604718586: at com.bea.plateng.domain.script.ScriptParserClassic.doExecute(ScriptParserClassic.java:112)
    WLST-WLS-1273604718586: at com.bea.plateng.domain.script.ScriptParser.execute(ScriptParser.java:73)
    WLST-WLS-1273604718586: at com.bea.plateng.domain.DomainInfoHelper.executeSilentScript(DomainInfoHelper.java:858)
    WLST-WLS-1273604718586: at com.bea.plateng.domain.DomainInfoHelper.createDefaultDomain(DomainInfoHelper.java:1762)
    WLST-WLS-1273604718586: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    WLST-WLS-1273604718586: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    WLST-WLS-1273604718586: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    WLST-WLS-1273604718586: at java.lang.reflect.Method.invoke(Method.java:597)
    WLST-WLS-1273604718586: at weblogic.management.internal.DomainDirectoryService.generateDomain(DomainDirectoryService.java:224)
    WLST-WLS-1273604718586: ... 8 more
    WLST-WLS-1273604718586:
    WLST-WLS-1273604718586: >
    WLST-WLS-1273604718586: <May 11, 2010 3:05:27 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    WLST-WLS-1273604718586: <May 11, 2010 3:05:27 PM EDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    WLST-WLS-1273604718586: <May 11, 2010 3:05:27 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    WLST-WLS-1273604718586: Stopped draining WLST-WLS-1273604718586
    WLST-WLS-1273604718586: Stopped draining WLST-WLS-1273604718586 .............................................Could not connect to the server to verify that it has started. The error returned is: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://10.110.90.156:7002: Destination unreachable; nested exception is:
            java.net.ConnectException: Connection refused; No available router to destination] Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 432, in startServer
    File "<iostream>", line 618, in raiseWLSTException
    WLSTException: Error occured while performing startServer : Could not start the server, the process might have timed out or there is an Error starting the server. Please refer to the log files for more details.

    Hi,
    Thank you for the quick response.
    I tried that, I can connect so wls:/offline> nmConnect('weblogic','password','10.110.90.156','5556','ClassicDomain','/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain');
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    wls:/nm/ClassicDomain>
    but on
    nmStart(serverName="AdminServer",domainDir="/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain")
    Starting server AdminServer ...
    Error Starting server AdminServer: weblogic.nodemanager.NMException: Exception while starting server 'AdminServer'
    wls:/nm/ClassicDomain> nmStart(serverName="AdminServer",domainDir="/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain")
    Starting server AdminServer ...
    Error Starting server AdminServer: weblogic.nodemanager.NMException: Exception while starting server 'AdminServer'
    wls:/nm/ClassicDomain>
    And the AdminServer log shows security authentication error. Wondering why since I am not entering password when I do nmStart?
    Do you have an idea?
    Thank you
    Anatoliy

  • Java.io.IOException: Write failed

    Hi, I posted this question a while back in the JDBC forum because the exception occurs when I call DriverManager.getConnection(), but got no bites because my stack trace doesn't reflect any JDBC errors. This is such a strange problem. It occurs internal to the getConnection method. The connection object is still returned and my web-app works fine other than our log file being filled with the same exception. This problem only occurs on our SunONE server and not on Tomcat, which I test on. Any clues as to what it means and why it occurs. Thanks
    java.io.IOException: Write failed
         at com.iplanet.ias.web.connector.nsapi.NSAPIConnector.write(NSAPIConnector.java:507)
         at com.iplanet.ias.web.connector.nsapi.NSAPIResponseStream.write(NSAPIResponseStream.java:74)
         at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:760)
         at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:774)
         at com.iplanet.ias.web.connector.nsapi.NSAPIResponse.flushBuffer(NSAPIResponse.java:55)
         at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:733)
         at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:325)
         at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1919)
         at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1668)
         at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1213)
         at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:520)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

    Wow, just found out what it means. I have a javascript window.close() called after clicking the link to my app. This exception occurs when the response is not completed its write. Sorry to waste your time. ahaha

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

  • Javax.mail.MessagingException: 451 Error while writing spool file??

    Hi all friends,
    Can any one plz tell me why Iam getting below error when Iam trying to send mail with attachment.Iam using Java Mail API.
    javax.mail.MessagingException: 451 Error while writing spool file
    Plz tell me what are the reasons behind it.
    Regards
    Bikash

    The problem here is that the SMTP server was unable to write its spool file.
    The error is probably on the OS side of things and has nothing to do with email except that the lack of the system resource is causing email to fail.
    Have the server admin take a look at his error log to find out why the the user that smtp is running as could not write the file.

  • 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
              

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

  • Web Service error: javax.xml.soap.SOAPException: Error parsing envelope:

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    dbws-callout-utility 10.1.3.1
    JPublisher 10g Release 10.2
    Generating command:
    ./jpub -u reklaam/pswd -proxywsdl=http://auster.mbp.ee:8082/Service.asmx?WSDL -endpoint=http://auster.mbp.ee:8082/Service.asmx -dir=tmp -plsqlpackage=adserver -omit_schema_names -proxyopts=jaxrpc,noload
    loading:
    loadjava -u reklaam/pswd -r -v -f -genmissing plsql_proxy.jar
    executing script files and granting
    dbms_java.grant_permission('REKLAAM', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' );
    dbms_java.grant_permission('REKLAAM', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );
    dbms_java.grant_permission('REKLAAM', 'SYS:java.net.SocketPermission', '*', 'connect,resolve' );
    dbms_java.grant_permission('REKLAAM', 'SYS:java.util.PropertyPermission', '*', 'read,write' );
    dbms_java.grant_permission( 'REKLAAM', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );
    Now when I execute ws procedure I got exception:
    ORA-29532: Java call terminated by uncaught Java exception: java.rmi.RemoteException: java.rmi.RemoteException:Error parsing envelope: most likely due to an invalid SOAP message.; nested exception is:
    javax.xml.soap.SOAPException: Error parsing envelope: most likely due to an invalid SOAP message.
    ORA-06512: at "REKLAAM.ADSERVER", line 29
    ORA-06512: at line 13
    udump trace file:
    java.rmi.RemoteException: java.rmi.RemoteException:Error parsing envelope: most likely due to an invalid SOAP message.; nested exception is:
    javax.xml.soap.SOAPException: Error parsing envelope: most likely due to an invalid SOAP message.
    at genproxy.runtime.ServiceSoap12_Stub.createClientFromObject(genproxy.runtime.ServiceSoap12_Stub:270)
    at genproxy.ServiceSoap12Client.createClientFromObject(ServiceSoap12Client.java:40)
    at genproxy.ServiceSoap12ClientJPub.createClientFromObject(ServiceSoap12ClientJPub.java:144)
    What's wrong?

    I have exactly the same issue, do anyone have some good suggestions ?

  • Stalling action-instance: with message: javax.ejb.TransactionRolledbackLocalException: Invocation error.; CausedByException is:

    Suddenly the server has started throwing an exception. I don't know what would have caused it. I also reverted all the changes from when the error started. The action stalls but it completes the process.
    Below are the logs
    2009-07-03 13:05:17,349 ERROR [com.adobe.workflow.AWS] stalling action-instance: 21772 with message: javax.ejb.TransactionRolledbackLocalException: Invocation error.; CausedByException is:
    Invocation error.
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:247)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy201.finalizeCompleteProcess(Unknown Source)
    at com.adobe.workflow.engine.SynchronousBranch.updateBranchInstanceStatus(SynchronousBranch. java:709)
    at com.adobe.workflow.engine.SynchronousBranch.execute(SynchronousBranch.java:887)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBea n.java:2773)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncContinueBranchCommand(ProcessEngineBM TBean.java:2528)
    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:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy202.asyncContinueBranchCommand(Unknown Source)
    at com.adobe.workflow.engine.ProcessCommandControllerBean.doOnMessage(ProcessCommandControll erBean.java:144)
    at com.adobe.workflow.engine.ProcessCommandControllerBean.onMessage(ProcessCommandController Bean.java:99)
    at sun.reflect.GeneratedMethodAccessor547.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:475)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:101)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerI nvoker.java:1379)
    at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
    at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904 )
    at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)
    at org.jboss.mq.SpySession.run(SpySession.java:333)
    at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
    at java.lang.Thread.run(Thread.java:595)
    ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:152)
    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:342)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:212)
    at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:363)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy169.doSupports(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:109)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:91)
    at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 5)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.sendInvocationResponse(ServiceClient.java:147)
    at com.adobe.workflow.engine.PEUtil.completeLongLivedJob(PEUtil.java:1156)
    at com.adobe.workflow.engine.ProcessEngineCMTBean.finalizeCompleteProcess(ProcessEngineCMTBe an.java:1163)
    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:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy201.finalizeCompleteProcess(Unknown Source)
    at com.adobe.workflow.engine.SynchronousBranch.updateBranchInstanceStatus(SynchronousBranch. java:709)
    at com.adobe.workflow.engine.SynchronousBranch.execute(SynchronousBranch.java:887)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBea n.java:2773)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncContinueBranchCommand(ProcessEngineBM TBean.java:2528)
    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:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy202.asyncContinueBranchCommand(Unknown Source)
    at com.adobe.workflow.engine.ProcessCommandControllerBean.doOnMessage(ProcessCommandControll erBean.java:144)
    at com.adobe.workflow.engine.ProcessCommandControllerBean.onMessage(ProcessCommandController Bean.java:99)
    at sun.reflect.GeneratedMethodAccessor547.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:475)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:101)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerI nvoker.java:1379)
    at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
    at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904 )
    at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)
    at org.jboss.mq.SpySession.run(SpySession.java:333)
    at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: com.adobe.idp.jobmanager.common.JobManagerException: ALC-EMP-001-000: com.adobe.idp.dsc.provider.ProviderRuntimeException: Error in sending results
    at com.adobe.idp.jobmanager.ejb.JobManagerBean.completeJob(JobManagerBean.java:531)
    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:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy214.completeJob(Unknown Source)
    at com.adobe.idp.jobmanager.service.JobManagerService.completeJob(JobManagerService.java:115 )
    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:585)
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
    ... 116 more
    Caused by: ALC-EMP-001-000: com.adobe.idp.dsc.provider.ProviderRuntimeException: Error in sending results
    at com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl.sendResults(Em ailResultHandlerImpl.java:363)
    at com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl.handleSuccess( EmailResultHandlerImpl.java:83)
    at com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl.handleSuccess( EmailResultHandlerImpl.java:72)
    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:585)
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:342)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:212)
    at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:363)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy169.doSupports(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:132)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:91)
    at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 5)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    at com.adobe.idp.jobmanager.ejb.JobManagerBean.processResponseCallBackInfo(JobManagerBean.ja va:1395)
    at com.adobe.idp.jobmanager.ejb.JobManagerBean.completeJob(JobManagerBean.java:511)
    ... 143 more
    Caused by: java.lang.NullPointerException
    at com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl.sendResults(Em ailResultHandlerImpl.java:194)
    ... 194 more

    hi experts,
        Am using Store Content - EMCDocumentumContentRepositoryConnector service in LC ES2 process. It gets stalled saying with the message:
    "javax.ejb.TransactionRolledbackLocalException
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:262)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
    at $Proxy223.finalizeCompleteProcess(Unknown Source)"
    I have configured the path and credentials properly but still i encounter this issue.
    Guys can you help me in this regard.?  Thanks
    Balaji

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

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

  • ADF FACES: ServletException and socket write error

    Using EA17.
    I have (an unfortunately) very complex page that uses a lot of partialTriggers to control components that render based on the state of other components. There are probably a dozen or so components that come and go. There are also a lot of panelGroup components to hold all the optional components and many of the controlling components are autoSubmit radio buttons. There is virtually no code (logic) in my backing bean. All the control work is being done in the .jspx page.
    The exception below occurs after changing a couple of values that make components appear/disappear.
    For starters, what would cause a socket write error from the servlet?
    I know that this is a fairly vague request, but trying to produce a simple test case to reproduce this will be pretty difficult. So, I'm wondering if anyone has seen anything like this? Or has any suggestions on what to poke at??
    Thanks.
    P.S. And worst of all - it's not consistent. I can go through the same series of value/page updates and it will work one time and not the next. :-(
    P.P.S. This error does not occur using Firefox as the browser. This does happen on IE 6. Unfortunately, that's the browser I have to use for internal applications. Maybe this additional information (that it appears to be browser related) will help track down the problem.
    05/07/30 15:47:43 origRenderView failed!
    05/07/30 15:47:43 javax.faces.FacesException: javax.servlet.ServletException: Connection reset by peer: socket write error
    05/07/30 15:47:43      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
    05/07/30 15:47:43      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:146)
    05/07/30 15:47:43      at com.fhm.mwb.ui.view.FHMViewHandler.renderView(FHMViewHandler.java:159)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    05/07/30 15:47:43      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    05/07/30 15:47:43      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
    05/07/30 15:47:43      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/07/30 15:47:43      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:310)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:183)
    05/07/30 15:47:43      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:670)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:378)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:869)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:288)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:120)
    05/07/30 15:47:43      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
    05/07/30 15:47:43      at java.lang.Thread.run(Thread.java:534)
    05/07/30 15:47:43 Caused by: javax.servlet.ServletException: Connection reset by peer: socket write error
    05/07/30 15:47:43      at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:753)
    05/07/30 15:47:43      at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:700)
    05/07/30 15:47:43      at qaFollowup2e_jspx._jspService(qaFollowup.jspx:232)
    05/07/30 15:47:43      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:343)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:543)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:441)
    05/07/30 15:47:43      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    05/07/30 15:47:43      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
    05/07/30 15:47:43      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:672)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:378)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:300)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:36)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:207)
    05/07/30 15:47:43      at oracle.oc4j.security.OC4JAccessController.doPrivilegedWithException(OC4JAccessController.java:186)
    05/07/30 15:47:43      at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:85)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
    05/07/30 15:47:43      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    05/07/30 15:47:43      ... 20 more

    Thanks for the information on this.
    What I can't understand is why the first request hasn't finished. I specifically tried waiting several seconds between clicking on various components. From all visual cues (from IE) the previous request has completed and the screen has redrawn. So, the requests shouldn't be overlapping. Is there possibly something happening with the ADF javascript that could be making this happen?
    When the error occurs, the page fails to update properly (i.e., the components that should now be visible due to a change in a radio button selection are not rendered). This leaves the application in an inconsistent state and the page can be filled out improperly by the end user.
    I know that's a long winded way of saying "it doesn't seem innocuous, since the application state gets messed up because of the error."
    Let me know if there's anything I can do to work around this.
    Thanks Adam.

Maybe you are looking for

  • LDAP vs local login for remote access

    Hi Team, I am evaluating the best means for single factor authentication for remote access (client to site or SSL VPN). The options I see are creating local usernames and password or integration with Active Directory via LDAP. What are the pros and c

  • Problem with printing pages on my site...

    See one of the newsletters on my website at http://www.jonbarron.org/newsletters/06-23-2008.php. Now try printing or "print preview" that same page. You will see when you view it in print preview or print it out it only prints the 1st page and then s

  • How to set a new SCSI number for a second drive?

    How to set a new SCSI number for a second drive? Walter

  • Not getting the Parameter Form in Multi-tier Enviroment.

    Hi all, I am using Forms 6i and Reports 6i. The reports run fine in Client Server mode. It asks for the desired parameters based on which I am building the dynamic query. But in 3-tier env., it just skips parameter form. What is happening I don't kno

  • Title bar vanishes in gnome when chaning sound preferences

    Hi all, A very strange problem occured to me today. In System -> Preferences -> Sound -> Sounds when I toggle "Play alerts and sound effects" the titlebar of all windows are gone! Also keyboard shortcuts don't work anymore at this point. The xsession