No exception is thrown when my server socket dies

I have a server application running on sunOS 5.7.
To this I have both Windows and SunOS clients connected via TCP/IP. (Server built with jdk 1.2.2 and client with 1.3.0)
If the Server socket dies an exception is thrown in the windows clients but not in the sunOS client.
I need the exception to be thrown in the sunOS as well.
Is there anybody who knows how to get this done?
Thanks in advance.
/Henrik

You could poll the connection to see if its there.
If you want the client to register the event then have your client create a sort of listener of your own when it connects. By 'sort of listener' I mean extend the thread class and have it check the connection is not null every n seconds. If it is null then raise the exception yourself.
Would this do it?
Rob.

Similar Messages

  • Socket Exception when closing Server Socket Streams if Client closes first

    Hi
    I have 2 processes - a Server socket and a client socket. If I close the Client process first, and then try closing down the Streams on the Server process, I get a SocketException with message "Socket is closed" when I try and close the 2nd Stream. It does not matter on the order of the Stream being closed down, the exception is always thrown when I try and close the second stream. The code snippets are below:
    SERVER =======
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class ServerSocketTest {
    public static void main(String args[]) {
    try {
    ServerSocket ss = new ServerSocket(9999);
    Socket s = ss.accept();
    // Get refs to streams...
    InputStream is = s.getInputStream();
    OutputStream os = s.getOutputStream();
    // sleep to let client shutdown first...
    try {
    Thread.sleep(10000);
    } catch (InterruptedException e) {
    System.err.println(e);
    System.err.println("B4 inClose: isBound=" + s.isBound());
    System.err.println("B4 inClose: isClosed=" + s.isClosed());
    System.err.println("B4 inClose: isConnected=" + s.isConnected());
    System.err.println("B4 inClose: isInputShutdown=" + s.isInputShutdown());
    System.err.println("B4 inClose: isOutputShutdown=" + s.isOutputShutdown());
    s.getInputStream().close();
    System.err.println("After inClose: isBound=" + s.isBound());
    System.err.println("After inClose: isClosed=" + s.isClosed());
    System.err.println("After inClose: isConnected=" + s.isConnected());
    System.err.println("After inClose: isInputShutdown=" + s.isInputShutdown());
    System.err.println("After inClose: isOutputShutdown=" + s.isOutputShutdown());
    s.getOutputStream().close(); // will break here with SocketException!
    System.err.println("After outClose: isBound=" + s.isBound());
    System.err.println("After outClose: isClosed=" + s.isClosed());
    System.err.println("After outClose: isConnected=" + s.isConnected());
    System.err.println("After outClose: isInputShutdown=" + s.isInputShutdown());
    System.err.println("After outClose: isOutputShutdown=" + s.isOutputShutdown());
    s.close();
    } catch (Exception e) {
    System.err.println(e);
    CLIENT ======
    import java.net.Socket;
    public class ClientSocket {
    public static void main(String args[]) {
    try {
    Socket s = new Socket("localhost", 9999);
    try {
    // sleep to leave connection up for a while...
    Thread.sleep(2000);
    } catch (InterruptedException e) {
    System.err.println(e);
    s.close();
    } catch (Exception e) {
    System.err.println(e);
    The debug shows that isClosed() is set to 'true' after the first call to s.getInputStream().close(). The Sun API Socket class getOutputStream() has a call to isClosed() at the start of the method - it then throws the SocketException that I get. Why does the SocketImpl do this before I get a chance to call a.getOutputStream().close()?
    One final thing, the calls to s.isInputShutdown() and s.isOuputShutdown always seem to return false even if the Streams have had their .close() method called.
    Any ideas/help here greatly appreciated.
    Thanks
    Gaz

    Ok, I know what's going on now - I needed something to do on Friday afternoon anyhow!
    Basically if you call either getOutputStream.close() or getInputStream().close(), the underlying Sun implementation will close the Socket.
    Here's what's happening under the covers in the Sun code:
    s.getInputStream() is called on the Socket class.
    The Socket class holds a reference to the SocketImpl class.
    The SocketImpl class is abstract and forces sublclasses to extend it' s getInputStream() method.
    The PlainSocketImpl extends SocketImpl.
    PlainSocketImpl has a getInputStream() method that returns a SocketInputStream. When the stream is created for the first time, the PlainSocketImpl object is passed into the Constructor.
    The SocketInputStream class has a close() method on it. The snippet of code below shows how the socket is closed:
    <pre>
    * Closes the stream.
    private boolean closing = false;
    public void close() throws IOException {
         // Prevent recursion. See BugId 4484411
         if (closing)
         return;
         closing = true;
         if (socket != null) {
         if (!socket.isClosed())
              socket.close();
         } else
         impl.close();
         closing = false;
    </pre>
    So, it seems that out PlainSocketImpl is getting closed for us, hence the SocketException being thrown in Socket.getOutputStream() when I call it after Socket.getInputStream()/
    I've not had a look at the reason why the calls to s.isInputShutdown() and s.isOuputShutdown always seem to return false even if the Streams have had their .close() method called though - any thoughts appreciated.
    Thanks
    G

  • Exception is thrown when creating bean

              Hi, I have some questions about transaction.
              In my case, i call a stateful session bean through the stateless session bean.
              When the bean is created, following exception is thrown
              "javax.transaction.TransactionRolledbackException: Current server is the coordinator
              and transaction is not found. It was probably rolled back and forgotten already."
              The transaction attribute of the stateless session bean is "Required" and the
              one of stateful session bean is "NotSupported".
              I dont know what is happening, would anyone help me please.
              Thanks
              

    Try asking this in the interest.ejb group.
              Thanks.
              "Leo" <[email protected]> wrote in message news:3f7b7c21$[email protected]..
              >
              > Hi, I have some questions about transaction.
              > In my case, i call a stateful session bean through the stateless session bean.
              > When the bean is created, following exception is thrown
              >
              > "javax.transaction.TransactionRolledbackException: Current server is the coordinator
              > and transaction is not found. It was probably rolled back and forgotten already."
              >
              > The transaction attribute of the stateless session bean is "Required" and the
              > one of stateful session bean is "NotSupported".
              >
              > I dont know what is happening, would anyone help me please.
              >
              > Thanks
              >
              >
              

  • Exception is thrown when Memebr roles is used in XML JAZN

    Hi,
    I am trying to use the Member roles feature in the JAZN xml file. However, Once you run the application below exception is thrown.
    08/08/31 00:33:18 oracle.security.jazn.JAZNObjectNotFoundException
    08/08/31 00:33:18      at oracle.security.jazn.spi.xml.XMLRealmRole.init(XMLRealmRole.java:310)
    08/08/31 00:33:18      at oracle.security.jazn.spi.xml.XMLRoleManager.init(XMLRoleManager.java:186)
    08/08/31 00:33:18      at oracle.security.jazn.spi.xml.XMLRealm.init(XMLRealm.java:200)
    08/08/31 00:33:18      at oracle.security.jazn.spi.xml.XMLRealmManager.init(XMLRealmManager.java:167)
    08/08/31 00:33:18      at oracle.security.jazn.spi.xml.XMLJAZNProvider.parseDataFile(XMLJAZNProvider.java:403)
    08/08/31 00:33:18      at oracle.security.jazn.spi.xml.XMLJAZNProvider.getRealmManager(XMLJAZNProvider.java:480)
    08/08/31 00:33:18      at oracle.security.jazn.spi.GenericProvider.getRealmManager(GenericProvider.java:143)
    08/08/31 00:33:18      at oracle.security.jazn.JAZNConfig.getRealmManager(JAZNConfig.java:1014)
    08/08/31 00:33:18      at oracle.security.jazn.oc4j.JAZNUserManager.getUMType(JAZNUserManager.java:5156)
    08/08/31 00:33:18      at oracle.security.jazn.oc4j.JAZNUserManager.getUM(JAZNUserManager.java:5208)
    08/08/31 00:33:18      at oracle.security.jazn.oc4j.JAZNUserManager.<init>(JAZNUserManager.java:5245)
    08/08/31 00:33:18      at com.evermind.server.deployment.UserManagerConfig$JAZN.construct(UserManagerConfig.java:629)
    08/08/31 00:33:18      at com.evermind.server.deployment.UserManagerConfig.delegatee(UserManagerConfig.java:289)
    08/08/31 00:33:18      at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
    08/08/31 00:33:18      at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
    08/08/31 00:33:18      at com.evermind.server.XMLApplicationServerConfig.setPassword(XMLApplicationServerConfig.java:3011)
    08/08/31 00:33:18      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:95)
    08/08/31 00:33:18      at java.lang.Thread.run(Thread.java:595)
    Can anybody help me solving this problem?!

    Younis2,
    That was the important piece of information you needed to provide ;) I get the same exception if I try to do nested roles, but it doesn't prevent my application from starting - looks like it may be a bug - suggest you post a new thread with the word BUG in the title and give a really simple test case. I was able to reproduce quite simply by using tools->embedded oc4j preferences, and then editing the jazn configuration there to nest one role inside of another.
    John

  • Will Exception be thrown when Socket is disconnected?

    Hi
    I would like to know will Exception be guaranteedly thrown if the other side(client or server) disconnect.
    If not, how do I test the other side socket has been gone?
    Thanks a lot
    Matt

    When the remote end of a TCP/IP connection calls close() on its socket, the remote operating system sends a FIN packet to your operating system. After this, if you try to read or write to the socket, you get an end-of-file indication. The indication depends on the API you use; it can be an IOException, -1, null, etc; read the API doc for the method you use for reading and writing.
    A somewhat related question is: what if the peer computer crashes, or its Ethernet connector is unplugged. Then it can't send you a FIN or anything else. When you write to the peer, your operating system will send the data, and wait for a reply (ACK packet) for a while. The ACK doesn't arrive, so your OS will re-send, wait, re-send, and finally give up, after a minute or so. After that you'll get IOExceptions when you read or write to the socket.
    If the remote end crashes or is unplugged, and you read() from a socket, nothing happens. Your read() will patiently wait forever for data that will never arrive. For this reason, it is sometimes advisable to have a "heartbeat" in your protocol: send some dummy "are you there" message occasionally. That will trigger the send/wait-for-ACK/re-send/wait-for-ACK process, and after a minute your read()s and write()s will IOExcept to tell you the other end is gone.

  • SocketException thrown when reading from socket.

    I got a thread that listen on a socket for data with: while (LISTENING)
    new AAAcknowledgeThread(serverSocket.accept()).start();
    When the thread mentioned executes and tries to read from the socket with:
    BufferedReader in = new BufferedReader(
    new InputStreamReader(socket.getInputStream()));
    A SocketException is thrown with the following stacktrace:
    java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.InputStreamReader.fill(Unknown Source)
    at java.io.InputStreamReader.read(Unknown Source)
    at java.io.BufferedReader.fill(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at se.ericsson.era.psem.jms.plugins.AAServerSimulatorThread.run(AAServerSimulatorThread.java:67)
    Does anybody know what could cause my problem?

    If you are creating the Socket in another Thread then I don't think the thread you create can read from that InputStream/OutputStream. I remember doing something like this while transfering files through RMI. I was openning a File and passing the FileOutputStream to another thread that pulled the file through RMI. That thread couldn't write to the outputstream, and would throw an exception. When I let the thread open it up. It worked.
    charlie

  • Optimistic Concurrency exception ALWAYS thrown when field set to "Fixed"

    Hello,
    I'm concerned that there is a bug in the ODP.net interaction with the Entity Framework for Optimistic Concurrency Checking.
    I have a sequence field called tracker_id on a table that has a before insert trigger on it, which is updated to the next logical sequence number every time the record is updated. The tracker_id attribute in the object entity has had its "Concurrency Mode" set to "Fixed".
    The problem is that irrespective of whether a record has been updated in another session or not, the optimistic concurrency exception is always thrown. Please see message below:-
    "Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries."
    code below
    catch (OptimisticConcurrencyException ocex)
                    string message;
                    if (ocex.InnerException != null)
                        message = ocex.Message + "-" + ocex.InnerException.Message;
                    else
                        message = ocex.Message;
                    mm.ERRORCODE = "1";
                    mm.ERRORMESSAGE = "Record has been updated by another user - Full Message: " + message;
                    var poobject = ocex.StateEntries[0].Entity;
                    tasdb.Refresh(System.Data.Objects.RefreshMode.StoreWins, poobject);
                    tasdb.SaveChanges();
                }I have tried disabling the trigger on the table, but it still does the above.
    Many thanks in advance,
    Graeme
    Edited by: user4487499 on 09-May-2011 02:34

    The data for the newly created row doesn't get inserted into the database until the commit is executed, so the insert trigger isn't called.
    If you need to get the value without committing, then you should implement the trigger programmatically and drop the trigger from the database. The code below shows how you could do this.
    ViewObject insertVO = findViewObject("myView");
    Row newRow = insertVO.createRow();
    SequenceImpl seq = new SequenceImpl("MY_SEQ", insertVO.getDBTransaction());
    Long next = (Long)seq.getData();
    newRow.setAttribute("primaryAttribute", new Number(next));
    ...You will need to replace MY_SEQ and primaryAttribute with the correct values for your example, but this should acheive what you want.

  • Exception is thrown when using JEditorPane to display html

    Hello,
    I have this basic browser to display some pages from our intranet. Here's the code for it:
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JEditorPane;
    import javax.swing.JScrollPane;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.io.IOException;
    public class BrowserPanel extends JPanel {
    private JEditorPane pane = null;
    // Constructors
    public BrowserPanel() {
    pane = new JEditorPane();
    pane.setEditable(false);
    JScrollPane sp = new JScrollPane(pane);
    sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    setLayout(new BorderLayout());
    add(sp, BorderLayout.CENTER);
    // Methods
    public void setContent(String str) {
    StringBuffer sb = new StringBuffer(500);
    sb.append("http://local.com/cgi-bin/search.pl?arg=");
    sb.append(str);
    try {
    URL url = new URL(sb.toString());
    pane.setPage(url);
    } catch (MalformedURLException e) {
    System.err.println("Malformed URL: " + e);
    } catch (IOException e) {
    System.err.println("IOException: " + e);
    On some of the pages I get text all scrambled and the following exception comes up:
    java.lang.ArrayIndexOutOfBoundsException
    at javax.swing.text.html.TableView$RowView.layoutMajorAxis(TableView.java:1393)
    at javax.swing.text.BoxView.layout(BoxView.java:580)
    at javax.swing.text.BoxView.setSize(BoxView.java:265)
    at javax.swing.text.BoxView.paint(BoxView.java:283)
    at javax.swing.text.html.TableView$RowView.paint(TableView.java:1315)
    at javax.swing.text.html.TableView.paint(TableView.java:740)
    at javax.swing.text.BoxView.paintChild(BoxView.java:104)
    at javax.swing.text.BoxView.paint(BoxView.java:294)
    at javax.swing.text.html.BlockView.paint(BlockView.java:240)
    at javax.swing.text.BoxView.paintChild(BoxView.java:104)
    at javax.swing.text.BoxView.paint(BoxView.java:294)
    at javax.swing.text.html.BlockView.paint(BlockView.java:240)
    at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1170)
    at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:523)
    at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:657)
    at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:636)
    at javax.swing.JComponent.paintComponent(JComponent.java:395)
    at javax.swing.JComponent.paint(JComponent.java:687)
    at javax.swing.JComponent.paintChildren(JComponent.java:498)
    at javax.swing.JComponent.paint(JComponent.java:696)
    at javax.swing.JViewport.paint(JViewport.java:668)
    at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
    at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
    at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:124)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    Many thanks for any clues on how to make it work.
    cheers,
    --JavanT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    you should specify that this is an HTML veiwer explicitly, by writting something similar to this,
    editor.setContentType("text/html");
    kit = (HTMLEditorKit) editor.getEditorKit();
    editor.setEditorKit(kit);
    doc = (HTMLDocument) kit.createDefaultDocument();
    editor.setDocument(doc);

  • Can't open HTTP server socket on port 50000 in dispatcher

    We get the following message in the console_log for the dispatcher.
    ID000544: Error starting service http. Can't start the service due to java.io.IO
    Exception: Can't open HTTP server socket on port 50000
    [ServiceManager]: ID000544: Error starting service http. Can't start the service
    due to java.io.IOException: Can't open HTTP server socket on port 50000
    [Framework -> criticalShutdown] Service http startup error!
    Anyone have any ideas what might be the problem?
    Thanks,
    Keith

    Hello Keith,
    this errors occurs when the port http 50000 is already taken. Please could you check if this port on your machine is free or an other dispacther instance is already started on same machine. You can change the port in sap j2ee config tool (dispatcher-> services->http)
    Best Regards,
    Fabrice

  • JUnit - How to assert exception is thrown?

    If I use JUnit how do I assert an exception is thrown when I pass invalid parameters to a method I am testing? For example if I pass a username to a method that I know will cause the method to throw an InvalidUsernameException how do I assert this?

    public void testBadParameter() {
      try {
        objectUnderTest.myMethod(badParameter);
        fail("Foo!");
      } catch (ExcpectedException e) {
        //ok
    }

  • Which exception is thrown?

    Which exception is thrown when a native method breaks?
    For example: when a native method cannot access some device.
    Is it RunTimeException, or just plain Exception, or perhaps something else?
    Thanks.

    The native - C - code is yours. If it encounters an
    error, it is up to you to decide how to deal with it.No. Im using someone elses native methods.
    Chances are, if you are trying to write a wrapper
    around someone elses code...Exactly! :)
    ... you will find the code
    throws C++ exceptions. You have to catch them and
    deal with them.I know that. That is why I posted a question here. Question is: What is that exception?
    One likely way to "deal with them" is to define for
    yourself the exceptions you would like to see in
    java, and have the native methods construct and throw
    those java exceptions. The JNI interface includes
    ways of throwing exceptions while in native code.I don't know that. If you could provide some example it would be most appreciated.
    Thanks.

  • Populating OUT parameters when TOO_MANY_ROWS exception is thrown

    When I was trying to write code to test out today's PL/SQL challenge quiz, the behavior appears to depend on the table being queried. I can't figure out what attribute of the table drives the behavior (or if there is a different explanation for the behavior).
    The quiz is testing what happens when a procedure does a SELECT INTO an OUT parameter and a TOO_MANY_ROWS exception is thrown. The intent is to show that even though the behavior is technically undefined, what actually happens is that the OUT parameter is populated with the first row that is selected (obviously, you would never write code that depends on this behavior-- this is solely an academic exercise). The demonstration code works as expected
    CREATE TABLE plch_emp ( emp_name VARCHAR2(100) );
    INSERT INTO plch_emp VALUES ('Jones');
    INSERT INTO plch_emp VALUES ('Smith');
    COMMIT;
    CREATE OR REPLACE PROCEDURE plch_get
      (out_name OUT plch_emp.emp_name%TYPE) IS
    BEGIN
      SELECT emp_name
      INTO out_name
      FROM plch_emp
      ORDER BY emp_name;
    EXCEPTION
      WHEN OTHERS THEN
        dbms_output.put_line('A:' || out_name);
    END;
    What will be displayed after executing the following block:
    DECLARE
      l_name plch_emp.emp_name%TYPE;
    BEGIN
      plch_get(l_name);
      dbms_output.put_line('B:' || l_name);
    END;
    /and outputs
    A:Jones
    B:JonesWhen I replicate the logic while hitting the EMP table, the PLCH_EMP table, and the newly created EMP2 table, however, I get different behavior for the EMP and EMP2 tables. The procedure that queries PLCH_EMP works as expected but the OUT parameter is NULL when either EMP or EMP2 are created. Any idea what causes the behavior to differ?
    select *
      from v$version;
    create table emp2
    as
    select *
      from emp;
    create or replace procedure p1( p_out out varchar2 )
    is
    begin
      select emp_name
        into p_out
        from plch_emp
       order by emp_name;
    exception
      when others then
        dbms_output.put_line( 'P1 A:' || p_out );
    end;
    create or replace procedure p2( p_out out varchar2 )
    is
    begin
      select ename
        into p_out
        from emp
       order by ename;
    exception
      when others then
        dbms_output.put_line( 'P2 A:' || p_out );
    end;
    create or replace procedure p3( p_out out varchar2 )
    is
    begin
      select ename
        into p_out
        from emp2
       order by ename;
    exception
      when others then
        dbms_output.put_line( 'P3 A:' || p_out );
    end;
    declare
      l_ename varchar2(100);
    begin
      p1( l_ename );
      dbms_output.put_line( 'P1 B:' || l_ename );
      p2( l_ename );
      dbms_output.put_line( 'P2 B:' || l_ename );
      p3( l_ename );
      dbms_output.put_line( 'P3 B:' || l_ename );
    end;
    SQL> select *
      2    from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>
    SQL> create table emp2
      2  as
      3  select *
      4    from emp;
    Table created.
    SQL>
    SQL> create or replace procedure p1( p_out out varchar2 )
      2  is
      3  begin
      4    select emp_name
      5      into p_out
      6      from plch_emp
      7     order by emp_name;
      8  exception
      9    when others then
    10      dbms_output.put_line( 'P1 A:' || p_out );
    11  end;
    12  /
    Procedure created.
    SQL>
    SQL> create or replace procedure p2( p_out out varchar2 )
      2  is
      3  begin
      4    select ename
      5      into p_out
      6      from emp
      7     order by ename;
      8  exception
      9    when others then
    10      dbms_output.put_line( 'P2 A:' || p_out );
    11  end;
    12  /
    Procedure created.
    SQL>
    SQL> create or replace procedure p3( p_out out varchar2 )
      2  is
      3  begin
      4    select ename
      5      into p_out
      6      from emp2
      7     order by ename;
      8  exception
      9    when others then
    10      dbms_output.put_line( 'P3 A:' || p_out );
    11  end;
    12  /
    Procedure created.
    SQL>
    SQL> declare
      2    l_ename varchar2(100);
      3  begin
      4    p1( l_ename );
      5    dbms_output.put_line( 'P1 B:' || l_ename );
      6
      7    p2( l_ename );
      8    dbms_output.put_line( 'P2 B:' || l_ename );
      9
    10    p3( l_ename );
    11    dbms_output.put_line( 'P3 B:' || l_ename );
    12
    13  end;
    14  /
    P1 A:Jones
    P1 B:Jones
    P2 A:
    P2 B:
    P3 A:
    P3 B:
    PL/SQL procedure successfully completed.Justin

    Billy  Verreynne  wrote:
    So we can then reasonably assume that the test or environment itself somehow interferes with the results? After all, the very same cursor is executed and the same PL/SQL engine uses that cursor interface.Clearly, there is something in my environment that is wonky. It just bugs me that I can't figure out what that variable is.
    Your test was done as a single anonymous PL/SQL block. Which means each proc that was called referenced the same variable/memory - are there perhaps PL/SQL optimisation enabled for the database or session? Or any other settings that could influence the test? Have you tried calling the procedures directly from SQL*Plus using a bind var and not via an anon block and a local var in that block?I have. And the results were the same
    SQL> var ename varchar2(100);
    SQL> exec p1( :ename );
    P1 A:Jones
    PL/SQL procedure successfully completed.
    SQL> exec p2( :ename );
    P2 A:
    PL/SQL procedure successfully completed.
    SQL> exec p3( :ename );
    P3 A:
    PL/SQL procedure successfully completed.
    As a sanity test - what happens when proc P3 for example is changed to a catersian join/union of emp2 and plch_emp? Do the test results change? Or you can change it as follows:
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace procedure p5( p_out out varchar2 )
      2  is
      3  begin
      4    --// force a value into p_out using a successful fetch
      5    select emp_name
      6      into p_out
      7      from plch_emp
      8     where rownum = 1;
      9    --// force an error and determine if p_out was overwritten
    10    select ename
    11      into p_out
    12      from emp2
    13     order by ename;
    14  exception
    15    when others then
    16      dbms_output.put_line( 'P5:' || p_out );
    17* end;
    18  /
    Procedure created.
    SQL> exec p5( :ename );
    P5:Jones
    PL/SQL procedure successfully completed.
    Of course, you can also put this one down to using an operating system like Windows as a poor database server and not as a magnificent client gaming platform... Well, sure. But you can probably only play World of Warcraft so long before you need to write some PL/SQL.
    Justin

  • Exception thrown when start OC4J

    Sometimes, I got the folloowing exceptions when I started OC4J.
    Exception Description: Several [9] SessionLoaderExceptions were thrown:
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:
    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate --> [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor --> [Databas
    eTable(descriptor)])
    at oracle.toplink.exceptions.SessionLoaderException.finalException(Sessi
    onLoaderException.java:89)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.ja
    va:156)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Sess
    ionManager.java:219)
    at org.springframework.orm.toplink.LocalSessionFactory.loadDatabaseSessi
    on(LocalSessionFactory.java:320)
    at org.springframework.orm.toplink.LocalSessionFactory.createSessionFact
    ory(LocalSessionFactory.java:258)
    at org.springframework.orm.toplink.LocalSessionFactoryBean.afterProperti
    esSet(LocalSessionFactoryBean.java:51)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:937)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:334)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:146)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:316)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:146)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:316)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:146)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.
    preInstantiateSingletons(DefaultListableBeanFactory.java:277)
    at org.springframework.context.support.AbstractApplicationContext.refres
    h(AbstractApplicationContext.java:310)
    at org.springframework.web.context.support.AbstractRefreshableWebApplica
    tionContext.refresh(AbstractRefreshableWebApplicationContext.java:133)
    at org.springframework.web.context.ContextLoader.createWebApplicationCon
    text(ContextLoader.java:230)
    at org.springframework.web.context.ContextLoader.initWebApplicationConte
    xt(ContextLoader.java:156)
    at org.springframework.web.context.ContextLoaderListener.contextInitiali
    zed(ContextLoaderListener.java:48)
    at com.celeres.pago.presentation.servlet.SpringContainerLoaderListener.c
    ontextInitialized(SpringContainerLoaderListener.java:33)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
    java:668)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    435)
    at com.evermind.server.Application.getHttpApplication(Application.java:6
    95)
    at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
    a:676)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:528)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:231)
    at com.evermind.server.http.HttpServer.setSites(HttpServer.java:247)
    at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:150)
    at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServe
    r.java:1959)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
    a:1294)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
    uncher.java:93)
    at java.lang.Thread.run(Thread.java:534)
    SessionLoaderExceptions:

    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:Looks like your VM is throwing the following Error. Most likely you have not compiled your classes correctly, possibly the class that defines your Mapping Workbench amendment methods. If the print the stack trace on one of the exceptions nested in the SessionLoaderException, it would probably show the class with issues in the caused by stack.

  • Exception Thrown When a Scheduled Task Runs for Many Hours

    In the Oracle documentation here (http://download.oracle.com/docs/cd/E10391_01/doc.910/e10367/toc.htm#CACGBDAD) it states that the below exception can get thrown when a scheduled task runs for many hours (on OAS) and can be ignored:
    Primary Server went down going to get a fresh object elsewhere in the cluster.
    com.evermind.server.rmi.RMIConnectionException: LRU connection
    Just want to find out from other users that get this error (If there is any), have you found the scheduled task actually completes, then the error is thrown or what?
    I just don't feel comfortable that one of our tasks is completing properly due to this exception occuring and causing the task to stop midway through processing...

    Hi,
    I've had trouble with scheduling PowerShell scripts in the past as well. You can try running your script in the SYSTEM context by launching a cmd prompt this way, just to verify that the issue isn't related to the account itself:
    http://myitforum.com/cs2/blogs/jmarcum/archive/2010/08/25/150872.aspx
    This method does require PSExec, there's a link to the tool in the post if you don't already have it on hand.
    You can also start PowerShell as SYSTEM and play around if you need to:
    http://blogs.technet.com/b/ben_parker/archive/2010/10/28/how-do-i-run-powershell-exe-command-prompt-as-the-localsystem-account-on-windows-7.aspx?Redirected=true
    Not the best answer, but hopefully it helps shed a little light on the issue.
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Exception when upgrading server?

    I am trying to diagnose a problem with my application which is a simple applet Swing GUI and servlet middle tier. The application was recently moved to a faster server and from a WinNT to Win2000 Server environment. The webserver was also upgraded from Netscape Enterprise version 4.1 to version 6.1. Suddenly I am now experiencing an Exception when the servlet tries to deserialize the Vector being sent from the client.
    The GUI code for servlet connections and the servlet receiving code are pasted below. The EOFException stack trace is also below.
    Please respond if you have any suggestions on solutions, work arounds, or any ideas that might narrow down the OS, Webserver, network, or code.
    This exception is thrown at random times. Two successive calls with the exact same parameters may fail for one call but not the other.
    To rule out the webserver, I have re-installed it and the error still occurs.
    Originally JRE 1.4 was used by the upgraded webserver, however, I have switched back to JRE 1.3.1. Still no help.
    I am beginning to wonder if Win2000Server might need to be re-installed.
    Any comments are appreciated.
    Thank you!
    Server Environment
    Win2000 Server SP4
    Dell Poweredge 2500 (1.4Ghz dual )with 1 GB RAM
    Netscape Enterprise Server 6.1 SP6
    https
    JRE 1.3.1_06
    //******  CLIENT SIDE  ******//
    import java.io.*;
    import java.net.*;
    public class Comm
        public Comm( String anHTTPAddress ) throws MalformedURLException, Exception
                this.url = new URL( anHTTPAddress );
                this.uc = this.url.openConnection();
                this.uc.setDoOutput( true );
                this.uc.setDoInput( true );
                this.uc.setAllowUserInteraction( false );
         this.uc.setUseCaches( false );
           this.uc.setRequestProperty( "Content-Type", "application/octet-stream" );
        public void sendObject(java.util.Vector anObject)     throws IOException
         ObjectOutput out = new ObjectOutputStream( uc.getOutputStream() );
         out.writeObject( anObject );
         out.flush();
         out.close();
        public Object readObject() throws ClassNotFoundException, IOException
         ObjectInput in = new ObjectInputStream( uc.getInputStream() );
         Object returnObject = in.readObject();
            in.close();
         return returnObject;
        private URL url;
        private URLConnection uc;
    //******  SERVER SIDE  ******//
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.Vector;
    public class MyServlet extends HttpServlet
        public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
         ObjectInput objectIn      = null;
         ObjectOutput objectOut      = null;
         String operation      = null;
         Vector results           = null;
         Vector msgVector      = null;
         try {
              objectIn = new ObjectInputStream( new BufferedInputStream(req.getInputStream()) );
    // --->  this point is never reached -- see error below
              msgVector = (Vector)objectIn.readObject();
              objectOut      = new ObjectOutputStream( res.getOutputStream() );
               * Process the input to produce results
              res.setContentType("application/octet-stream");
              results = new Vector(); // where the result is placed
         catch(Exception e) {
              e.printStackTrace();
              results = new ErrorMessage(); // error message vector!
         objectOut.writeObject( results );
         objectOut.flush();
         objectOut.close();     
    //some snipping
    //******  ERROR  ******//
    java.io.StreamCorruptedException: Caught EOFException while reading the
    stream header
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:840)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:163)
         at MyServlet.doPost(MyServlet.java:25)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    com.netscape.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:894)
         at
    com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:461)

    Timing could not have been worse for the upgrade. Of course it would have to be a microsoft problem.
    patches for patches....
    http://support.microsoft.com/default.aspx?scid=kb;en-us;831167&Product=ie600

Maybe you are looking for