PeerGoneException with java.io.EOFException

Weblogic is producing the following
Tue Aug 14 13:09:56 GMT+01:00 2001:<I> <JDBC Pool> Connection for pool "oraclePo
ol" created.
Tue Aug 14 13:12:27 GMT+01:00 2001:<I> <RJVM> Signaling peer -715024684232709023
0S IP address:[7001,7001,7002,7002,7001,-1] gone: weblogic.rjvm.PeerGoneExcep
tion:
- with nested exception:
[java.io.EOFException]
Tue Aug 14 13:12:27 GMT+01:00 2001:<I> <RJVM> Signaling peer -916751307238374769
8S IP address not given:[7001,7001,7002,7002,7001,-1] gone: weblogic.rjvm.PeerGoneExcep
tion:
- with nested exception:
[java.io.EOFException]
Tue Aug 14 13:12:28 GMT+01:00 2001:<I> <Cluster> Adding server -9167513072383747
698SIP address not given:[7001,7001,7002,7002,7001,-1] to cluster view
Tue Aug 14 13:12:30 GMT+01:00 2001:<I> <Cluster> Adding server -7150246842327090
230SIPaddress not given:[7001,7001,7002,7002,7001,-1] to cluster view
From the clustered environment. Recycling just one of the cluster elements seems
to stop the errors but only temporarily, the errors are not consistently appearing.
Any ideas?

Hi All,
Got everything working fine.
I added all the required following jars from the soa 11g suite where the bpel process is deployed.
fabric-common.jar
soa-infra-mgmt.jar
wsclient_extended.jar
Regards,
Sanjay

Similar Messages

  • How to deal with java.io.EOFException error in Java application?

    Recently a java application called Jin stopped working on my iMac under 10.6.8. On startup it gives a java.io.EOFException error. When I boot from a full backup on external hard disk, the program still works fine. It has run without problem for at least two years.
    This program logs onto an online chess community called ICC (see chessclub.com) using a non-http protocol.
    I have tried everything I can think of to repair the problem, including:
    -- Reinstalling both Jin and Java
    -- Playing with Java Preferences, in particular trying both 32-bit and 64-bit versions
    -- Discarding a couple .plist files associated with Java and Jin
    -- Repairing permissions
    -- Replacing /usr/share/java/Tools with version from backup disk (I created a Smart Folder to find files recently changes, and these were the only java files that came up
    I've run out of ideas. It seems to me that some obscure Java support file has been corrupted, but I have no idea what or where.
    Is it a good idea to replace the entire /Library folder from backup, or is that going to cause a problem?
    I have a very bad feeling about replacing /System from backup.

    Please enable the following debug
    CA server
    /atg/epub/DeploymentServer
    loggingDebug=true
    /atg/deployment/DeploymentManager
    loggingDebug=true
    loggingThreadDebug=true
    Agent Servers
    /atg/epub/DeploymentAgent
    loggingDebug=true
    recreate and attach the full logs
    ++++
    Thanks
    Gareth
    Please mark any update as "Correct Answer" or "Helpful Answer" if that update helps/answers your question, so that others can identify the Correct/helpful update between many updates.

  • Weblogic.rjvm.PeerGoneException: ; nested exception is: java.io.EOFException

    Hi,
    We are working with Weblogic 6.1.
    The system was quite stable, but a couple of days ago some batch process suddenly
    started to fail, with no apparent reason, there was no change in the system neither
    in the code.
    The following exception is received:
    Stopped, RemoteException weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException
    We have also noticed that other jobs had failed before due to some memory problems,
    but using the Weblogic Console; Monitoring; Performance, then when some jobs had
    some memory problems forcing the garbage collection the batches worked properly.
    Maybe these 2 problems have no relation between one an other, but they appeared
    at the same time.
    Any help will be appreciated.
    Thanks and best regards.

    Hi,
    We are working with Weblogic 6.1.
    The system was quite stable, but a couple of days ago some batch process suddenly
    started to fail, with no apparent reason, there was no change in the system neither
    in the code.
    The following exception is received:
    Stopped, RemoteException weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException
    We have also noticed that other jobs had failed before due to some memory problems,
    but using the Weblogic Console; Monitoring; Performance, then when some jobs had
    some memory problems forcing the garbage collection the batches worked properly.
    Maybe these 2 problems have no relation between one an other, but they appeared
    at the same time.
    Any help will be appreciated.
    Thanks and best regards.

  • MulticastMonitor -- Failed with IOException java.io.EOFException

    Hello,
              I have upgraded Weblogic Server 8.1 Sp4 with Weblogic Server 8.1 Sp5 and JDK 1.4.2_12.
              With the Sp5 the cluster seems work, but if i try to use the MulticastMonitor utility i have the following exception :
              Failed with IOException java.io.EOFException
              With the SP4 the utility works and the cluster also.
              What's happening?
              Best Regards
              Alberto
              Edited by pisanoa at 02/25/2007 12:09 PM

    Hello,
              I have upgraded Weblogic Server 8.1 Sp4 with Weblogic Server 8.1 Sp5 and JDK 1.4.2_12.
              With the Sp5 the cluster seems work, but if i try to use the MulticastMonitor utility i have the following exception :
              Failed with IOException java.io.EOFException
              With the SP4 the utility works and the cluster also.
              What's happening?
              Best Regards
              Alberto
              Edited by pisanoa at 02/25/2007 12:09 PM

  • Java.io.EOFException while deploying RPD in OBIEE Cluster using Mbean

    I am using oracle.biee.admin:type=BIDomain.BIInstance.ServerConfiguration,biInstance=coreapplication,group=Service to deploy RPD on a clustered environment with 3 servers, I get the following error, it works fine on a single host, any clue ?
    Connecting using URL: service:jmx:t3://xxxxxxx/jndi/weblogic.management.mbeanservers.domainruntime ...
    Transaction addAvayaRepository failed with error: ; nested exception is:
    java.io.EOFException, review log to fix issue and re-execute.
    weblogic.rjvm.PeerGoneException: ; nested exception is:
    java.io.EOFException
            at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
            at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
            at javax.management.remote.rmi.RMIConnectionImpl_1036_WLStub.invoke(Unknown Source)
            at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:918)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.security.Security.runAs(Security.java:61)
            at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:916)
            at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:1017)
            at com.avaya.reporting.bi.config.MBeanTransaction.invoke(MBeanTransaction.java:374)
            at com.avaya.reporting.bi.config.MBeanTransaction.invoke(MBeanTransaction.java:349)
            at com.avaya.reporting.bi.config.MBeanTransaction.doDomainCall(MBeanTransaction.java:314)
            at com.avaya.reporting.bi.config.MBeanTransaction.lockDomain(MBeanTransaction.java:290)
            at com.avaya.reporting.bi.config.MBeanTransaction.execute(MBeanTransaction.java:200)
            at com.avaya.reporting.bi.config.MBeanConfigExecutor.execute(MBeanConfigExecutor.java:147)
            at com.avaya.reporting.bi.config.RunBIConfig.runXmlTransaction(RunBIConfig.java:127)
            at com.avaya.reporting.bi.config.RunBIConfig.runConfig(RunBIConfig.java:99)
            at com.avaya.reporting.bi.config.RunBIConfig.main(RunBIConfig.java:84)
    Caused by: java.io.EOFException
            at weblogic.rjvm.t3.MuxableSocketT3.endOfStream(MuxableSocketT3.java:345)
            at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:827)
            at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:761)
            at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:958)
            at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:889)
            at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)
            at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
            at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

    Thanks for your replies !!
    In any of the RPD deployments I'm getting the same error , not for some particular RPD .
    FYI , yesterday (before this issue) I had a issue with starting presentation services , so as adviced in forum I replaced the files sawguidstate and sawguidstate.atrin the location:
    <Instance_Home>\instances\<instance_name>\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\catalog\<project>\root\system\mktgcache\<name>
    with the same files from a backup or from another working OBIEE 11g (11.1.5)instance.
    plese refer : Re: Unable to start presentation services , in OBIEE 11g
    Is this causing the deployment issue ?

  • Getting "java.io.EOFException" while reading a file

    I am getting this error when trying to upload a file through the html form to the server.
    I am using Struts form and the FormFile to get the file contents. After getting the file contents I write to a file in the server path. This works perfectly with WebSphere4.0.
    When I deploy my application in Websphere 6.0 cluster environment I get the following error.
    java.io.EOFException
         at java.io.DataInputStream.readFully(DataInputStream.java(Compiled Code))
         at java.io.DataInputStream.readInt(DataInputStream.java(Compiled Code))
         at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java(Inlined Compiled Code))
         at java.io.ObjectInputStream.readInt(ObjectInputStream.java(Compiled Code))
         at com.ibm.ws.webcontainer.httpsession.HttpSessDRSBuffWrapper.readExternal(HttpSessDRSBuffWrapper.java(Compiled Code))
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at java.util.Hashtable.readObject(Hashtable.java(Compiled Code))
         at sun.reflect.GeneratedMethodAccessor1637.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at com.ibm.ws.drs.message.DRSCacheMsgImpl.readExternal(DRSCacheMsgImpl.java(Compiled Code))
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at com.ibm.ws.drs.message.DRSMessageHelper.extractDCM(DRSMessageHelper.java(Compiled Code))
         at com.ibm.ws.drs.ha.DRSAgentClassEvents$2.run(DRSAgentClassEvents.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Any help is appreciated.
    Thanks
    Ganesh...

    while((obj=input.readObject())!=null)and what's this test for? Where does it say that readObject() can return null? Is it really the correct test for what you're testing for?

  • ExecTask - java.io.EOFException: Unexpected end of ZLIB input stream

    BOXI 3.1 FP 7 deployed on AIX environment with all the lang packs. Trying to install SP2 on AIX, when it comes to deploying the war files, AnalyticalReporting, the install encounters error. This error appears to be with size of the war file.  Anyone came across this issue?
    2010-03-30 10:10:00,633   Target - Target "expand_and_package" started.
    2010-03-30 10:10:00,634   Delete - Deleting directory /export/home/Business_Objects/global/deployment/workdir/tomcat55/resources/web/AnalyticalReporting
    2010-03-30 10:10:00,798    Mkdir - Created dir: /export/home/Business_Objects/global/deployment/workdir/tomcat55/resources/web/AnalyticalReporting
    2010-03-30 10:10:00,828    Mkdir - Created dir: /export/home/Business_Objects/global/deployment/workdir/tomcat55/resources/AnalyticalReporting
    2010-03-30 10:19:32,016 *ExecTask - java.io.EOFException: Unexpected end of ZLIB input stream
    2010-03-30 10:19:32,016 ExecTask -      at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java(Compiled Code))
    2010-03-30 10:19:32,017 ExecTask -      at java.util.zip.InflaterInputStream.read(InflaterInputStream.java(Compiled Code))
    2010-03-30 10:19:32,017 ExecTask -      at java.util.zip.ZipInputStream.read(ZipInputStream.java(Compiled Code))
    2010-03-30 10:19:32,017 ExecTask -      at sun.tools.jar.Main.extractFile(Main.java(Compiled Code))
    2010-03-30 10:19:32,017 ExecTask -      at sun.tools.jar.Main.extract(Main.java(Compiled Code))
    2010-03-30 10:19:32,025 ExecTask -      at sun.tools.jar.Main.run(Main.java:228)
    2010-03-30 10:19:32,025 ExecTask -      at sun.tools.jar.Main.main(Main.java:944)
    2010-03-30 10:19:32,051 ExecTask - Result: 1
    2010-03-30 10:19:32,162     Echo - Adding 'webiApplet/**' to the content to bundle with AnalyticalReporting's war file
    2010-03-30 10:19:32,302      Jar - error while reading original manifest: Error opening zip file /export/home/Business_Objects/global/deployment/workdir/tomc
    at55/application/AnalyticalReporting.war
    2010-03-30 10:19:35,354      Jar - Building jar: /export/home/Business_Objects/global/deployment/workdir/tomcat55/application/AnalyticalReporting.war
    2010-03-30 10:20:29,036      Zip - Building zip: /export/home/Business_Objects/global/deployment/workdir/tomcat55/resources/AnalyticalReporting.zip
    2010-03-30 10:23:58,561    Mkdir - Created dir: /export/home/Business_Objects/global/deployment/workdir/tomcat55/resources/web/AnalyticalReporting/WEB-INF
    2010-03-30 10:23:58,564     Copy - Copying 1 file to /export/home/Business_Objects/global/deployment/workdir/tomcat55/resources/web/AnalyticalReporting/WEB-I
    NF
    2010-03-30 10:23:58,597   Delete - Deleting directory /export/home/Business_Objects/global/deployment/workdir/tomcat55/resources/AnalyticalReporting
    2010-03-30 10:35:00,636   Target - Target "expand_and_package" finished.

    Hi,
    Don't know which of this factors solved the problem:
    1. Error server:
    AIX 5.2
    jdk 1.3.17 (minimum from docu: 1.3.11)
    $ORACLE_HOME wasn't in the begining of $PATH
    2. success server:
    AIX 5.3
    jdk 1.4.02
    $ORACLE_HOME is now in the begining of $PATH
    cheers Lao De

  • SOAP: call failed: java.io.EOFException: Connection closed by remote host

    Hi folks,
    my friday crusher:
    We have a sync RFC-PI-SOAP scenario.
    All is working fine in Dev system.
    After moving into Test following error is displayed as the SOAP response message:
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
    <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.EOFException: Connection closed by remote host.</SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Also Channel Monitoring says:
    Message-Verarbeitung fehlgeschlagen. Grund: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.EOFException: Connection closed by remote host.
    Couldn´t find any hints in SDN and the web to this issue.
    Does anyone of you has made experiences with that problem?
    Maybe it´s a system parameter for time out SOAP connections....?
    Many thanks for your help
    -and-
    have a great weekend!
    Cheers
    André

    Very strange!
    But I have the solution:
    I have looked into channel monitoring / RWB again.
    There I saw, this PI is using two clusters on two application servers.
    Everytime the SOAP call is executed through the frist cluster, all was fine.
    But no SOAP call was successfully executed by the second cluster.
    Fortuity? No!
    The second cluster node / app server wasn´t registered for internet access in the used proxy server.
    So it wasn´t an PI issue.
    Now, all is fine & I´m happy!
    Thanks @all for helping!
    Cheers,
    André

  • FRM-92100 java.io.EOFException

    Hi,
    I'm having an issue after upgrate to Developer 6 Path 17. Disconnected from Oracle Applications after user login with error:
    FRM-92100
    Details...
    Java Exception:
    java.io.EOFException
    at java.io.DataInputStream.readUnsignedByte(Compiled Code)
    at oracle.forms.engine.Message.readDetails (Compiled Code)
    at oracle.forms.engine.Message.readDetails (Compiled Code)
    at oracle.forms.net.StreamMessageReader.run (Compiled Code)
    any help would be appreciated.
    Thanks.
    Carlos

    Hi,
    frm-92100 is a generic error and it happens when the network connection is lost.
    There is a lot of documentation on Metalink about that. Take a look at Note 216639.1
    Monica

  • How to control tcp connection with java tcp socket programing ??

    Hi,
    I am connecting a server as using java socket programming.
    When server close the connection (socket object) as using close() method ,
    I can not detect this and My program continue sending data as if there is a connection with server.
    How to catch the closing connection ( socket ) with java socket programming.
    My Client program is as following :
    import java.io.PrintWriter;
    import java.net.Socket;
    public class client
      public client()
       * @param args
      public static void main(String[] args)
        Socket socket=null;
        PrintWriter pw=null;
        try
                          socket = new Socket("localhost",5555);
                          pw = new PrintWriter(socket.getOutputStream(),true);
                          int i=0;
                          while (true)
                            i++;
                            pw.println(i+". message is being send.");
                            Thread.sleep(5000);
        } catch (Exception ex)
                          ex.printStackTrace();
        } finally
                          try
                            if(pw!=null)pw.close();
                            if(socket!=null)socket.close();
                          } catch (Exception ex)
                            ex.printStackTrace();
                          } finally
    }

    I changed the code as following. But I couldn't catch the EOFException when I read from the socket. How can I catch this exception ?
    import java.io.BufferedReader;
    import java.io.EOFException;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.PrintWriter;
    import java.net.Socket;
    import java.net.UnknownHostException;
    public class client
      public client()
       * @param args
      public static void main(String[] args)
        Socket socket=null;
        PrintWriter pw=null;
        BufferedReader bufIn=null;
        InputStreamReader inRead=null;
        InputStream in=null;
        try
                          socket = new Socket("localhost",5555);
                          in = socket.getInputStream();
                          inRead = new InputStreamReader(in);
                          bufIn = new BufferedReader(inRead);
                          pw = new PrintWriter(socket.getOutputStream(),true);
                          int i=0;
                          while (true)
                            i++;
                            try
                              bufIn.readLine();
                              pw.println(i+". message is being send.");
                              System.out.println(i+". message has been send");
                            } catch (Exception ex2)
                              System.out.println(ex2.toString());
                              System.out.println(i+". message could not be send");
                            } finally
                            Thread.sleep(5000);
        } catch (EOFException ex)
                          ex.printStackTrace();
        } catch (InterruptedException ex)
                          ex.printStackTrace();
        } catch (IOException ex)
                          ex.printStackTrace();
        } finally
                          try
                            if(pw!=null)pw.close();
                            if(socket!=null)socket.close();
                          } catch (Exception ex)
                            ex.printStackTrace();
                          } finally
    }

  • Java.io.EOFException in Object file transfer

    Greetings,
    I am having a problem sending a file across a network. At one point it was working, however I am not sure where along the way it became broken.
    Stack Trace:
    java.io.EOFException
    at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
    at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Sour
    ce)
    at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
    at java.io.ObjectInputStream.<init>(Unknown Source)
    at WBServer.unpackVectors(WBServer.java:283)
    at fileListener.run(WBServer.java:374)
        public void getWBContent(String hid) throws java.rmi.RemoteException //<- Send all object vectors and relevant integers...
            setPageNum(pageCount-1);
            HID=hid;
            packVectors(null);
            new Thread() {
                public void run(){
                   try{javax.swing.SwingUtilities.invokeLater(
                   new Runnable(){
                       public void run(){
                            try{ //Yes...
                                java.net.Socket s = new java.net.Socket(HID, 1113); //<- Make a network port
                                java.io.BufferedWriter sos = new java.io.BufferedWriter(new java.io.OutputStreamWriter(s.getOutputStream())); //<-Open a stream
                                sos.write("vectordata.dat"); //<-Send the name of the file
                                sos.close(); //<- Close the stream
                                s.close(); //<- Close the port
                                String anchor = getClass().getResource("WBServer.class").getPath();
                                java.net.Socket ns = new java.net.Socket(HID, 1113); //<- Open a new port to the same place
                                java.io.FileInputStream fio = new java.io.FileInputStream(anchor.substring(0, anchor.lastIndexOf('/')+1)+"vectordata.dat"); //<- Open the file to stream
                                //java.io.DataInputStream dia = new java.io.DataInputStream(fio); //<- Open the stream to read
                                java.io.BufferedInputStream bia = new java.io.BufferedInputStream(fio);
                                java.io.BufferedOutputStream boa = new java.io.BufferedOutputStream(ns.getOutputStream());//<- Open the data stream for the port
                                int read=0; //<- Byte Read Counter
                                byte[] fbuffer = new byte[1024]; //<- Byte Read Buffer
                                boolean EOF=false;
                                while(!EOF){ //<- Until we reach the end of the stream...
                                    try{read=bia.read(fbuffer);
                                    boa.write(fbuffer, 0, read);} //<- ...send the number of bytes stored in the buffer at the time.
                                    catch(java.io.EOFException e){ EOF=true;}
                                boa.flush(); //<- Make sure the stream is cleared
                                boa.close(); //<- Close the port's stream
                                bia.close(); //<- Close the reading stream
                                fio.close(); //<- Close the file's stream
                                ns.close(); //<- Close the port...
                            catch(Exception e)
                            {SimpleFormatter sf = new SimpleFormatter();
                             LogRecord tempLog = new LogRecord(Level.WARNING, "File Send Error: "+e.toString());
                             sf.format(tempLog);
                             logFile.publish(tempLog);}
                    catch(Exception e)
                    {SimpleFormatter sf = new SimpleFormatter();
                     LogRecord tempLog = new LogRecord(Level.WARNING, "Error running getWBContent() send file thread: "+e.toString());
                     sf.format(tempLog);
                     logFile.publish(tempLog);}
                }}.start();
        public void packVectors(String filePath) {   //This function writes all the objects in memory to a file for transport.
            String anchor = getClass().getResource("WBServer.class").getPath();
            if(filePath==null){filePath=anchor.substring(0, anchor.lastIndexOf('/')+1)+"data/vectordata.dat";}
            System.out.println("From packVectors(): "+filePath);
            java.io.File ovFile = new java.io.File(filePath); //Setup out data file
            try{if(!ovFile.exists()){ovFile.createNewFile();}else{ovFile.delete(); ovFile.createNewFile();} //If it's not there...make one. If it is, delete it and make a new one.
            java.io.ObjectOutputStream oojStream = new java.io.ObjectOutputStream(new java.io.FileOutputStream(ovFile)); //Ready the writer for writingness.
            oojStream.writeObject(PageHolder); //Pages to file...
            oojStream.writeObject(ImgPage); //Images for the Pages to file...
            oojStream.writeObject(WBStack); //Current object stack to file...
            oojStream.writeInt(objCount); //Current object count to file...
            oojStream.writeInt(pageCount); //Current page count to file...
            oojStream.writeInt(pageCount-1); //Current page number to file...
            oojStream.flush(); //<-Commit final write operations...
            oojStream.close();} //<- Close the file...
            catch(Exception e)
            {SimpleFormatter s = new SimpleFormatter();
             LogRecord tempLog = new LogRecord(Level.WARNING, "Persistence save error: "+e.toString());
             s.format(tempLog);
             e.printStackTrace();
             logFile.publish(tempLog);}
        public void unpackVectors(String filePath) {   //This function reads objects from a file that was previously written by packVectors().
            String anchor = getClass().getResource("WBServer.class").getPath();
            if(filePath==null){filePath=anchor.substring(0, anchor.lastIndexOf('/')+1)+"data/vectordata.dat";}
            System.out.println("From unpackVectors(): "+filePath);
            java.io.File ivFile = new java.io.File(filePath); //Setup the file to read from.
            try{if(!ivFile.exists()){ //If the file doesn't exist, we're screwed...
                SimpleFormatter s = new SimpleFormatter();
                LogRecord tempLog = new LogRecord(Level.WARNING, "Persistence load error: File vectordata.dat does not exist!");
                s.format(tempLog);
                logFile.publish(tempLog);
            }else{
                java.io.ObjectInputStream iojStream = new java.io.ObjectInputStream(new java.io.FileInputStream(ivFile)); //Ready the reader for readingness...
                PageHolder = (java.util.Vector)iojStream.readObject(); //Pages from file...
                ImgPage = (java.util.Vector)iojStream.readObject(); //images for Pages from file...
                WBStack = (java.util.Vector)iojStream.readObject(); //Current object stack from file...
                objCount = iojStream.readInt(); //Current object count from file...
                pageCount = iojStream.readInt(); //Current number of pages from file...
                pageNum = iojStream.readInt();//iojStream.readInt(); //Current page number from file...
                iojStream.close();}} //Close the file...
            catch(Exception e)// We screwed up somewhere.....
            {SimpleFormatter s = new SimpleFormatter();
             LogRecord tempLog = new LogRecord(Level.WARNING, "Persistence load error: "+e.toString());
             s.format(tempLog);
             e.printStackTrace();
             logFile.publish(tempLog);}
    class fileListener extends Thread {
        public fileListener(WBServer wb) //<-Constructor
            try{ms = new java.net.ServerSocket(1113);} //<- Listener socket
            catch(Exception e){e.toString();}
            server = wb; //<- Referencial variable back to the server
        public fileListener(WBServer wb, int port) //<- Constructor with port
            try{ms = new java.net.ServerSocket(port);} //<- Listener socket
            catch(Exception e){e.toString();}
            server = wb; //<- Referencial variable back to the server
        public void run() {
            String filepath; //<- Holder for file path operations...
            while(!disconnect) {
                try{java.net.Socket cs = ms.accept(); //<- Accept incoming request.
                server.fileStat = 1;
                java.io.BufferedReader str = new java.io.BufferedReader(new java.io.InputStreamReader(cs.getInputStream())); //<- Open communications with client
                String checkStr = str.readLine(); //<- Grab the file name from the client
                System.out.println(checkStr);
                String anchor = getClass().getResource("fileListener.class").getPath();
                if(checkStr.equalsIgnoreCase("vectordata.dat"))
                {filepath=anchor.substring(0, anchor.lastIndexOf('/')+1)+"data/"+checkStr;}
                else{filepath=anchor.substring(0, anchor.lastIndexOf('/')+1)+"scans/"+checkStr;}
                System.out.println(filepath);
                str.close(); //<- Close communications with client
                cs.close(); //<- Close socket
                //System.out.println("Recieved File Name: "+filepath);//Debugging
                java.io.File inFile = new java.io.File(filepath); //<- Make a file in memory on the host computer with the specified name.
                inFile.createNewFile(); //<- Create an empty file of that name within the local file system
                java.net.Socket ds = ms.accept(); //<- Accept incoming request
                java.io.FileOutputStream fos = new java.io.FileOutputStream(inFile); //<- Open file stream for writing...
                java.io.BufferedInputStream bis = new java.io.BufferedInputStream(ds.getInputStream()); //<- Open communications with client for data/
                byte[] fbuffer = new byte[1024]; //<- Byte read buffer
                int read=0; //<- Byte read counter
                server.fileStat = 2;
                while((read=bis.read(fbuffer))!=-1){ //<-Until we reach the end of the stream...
                    fos.write(fbuffer, 0, read); System.out.print(read+":");}// <- ...write the buffer to the file.
                fos.flush(); //<- Clear the file stream
                fos.close(); //<- Close the file stream
                bis.close(); //<- Close the data stream from the client
                if(checkStr.equalsIgnoreCase("vectordata.dat"))
                {server.fileStat = 3; // ...otherwise, we show loading...
                 server.unpackVectors(null);
                 server.sendRefresh(true);
                 server.fileStat=0;}
                else //If it's the sych data, unpack it and load the data
                {server.fileStat = 3; // ...otherwise, we show loading...
                 server.passImage(inFile); //<-Load the file into the image vector...
                 server.sendRefresh(true); //<- Ensure that the client updates properly
                 server.fileStat=0;}
                ds.close(); //<- Close the client socket
                catch(Exception e){e.toString();}
            //System.out.println("Listener Shutdown");//Debugging
            try{ms.close();} catch(Exception e){e.toString();} //<- Close the listening socket
        public boolean disconnect = false; //<- Flag for killing the "file server" prematurely
        private static WBServer server; //<- Referencial variable to the whiteboard server
        private java.net.ServerSocket ms; //<- Listener socket
    }I'm stumped as to where it is going wrong. I know that packVectors() and unpackVectors() both work, as they are used in a local save function. I suspect the problem lies between the getWBContent(String hid) and the fileListener class, but I am not certain where. Any help would be appreciated.

    First, you are expecting read(buffer,offset,count) to throw an EOFException. It doesn't, it returns -1 at EOF.
    Second, you are using a Writer to write binary data (resulting from serialization). This will corrupt it. Use an OutputStream.
    Third, what I really don't get is why would you (i) write local data to a file and (ii) start a new thread to (iii) read it back and (iv) send it over not one but two sockets, when you could just return the data as the result of the remote method without the file, the thread, or the Sockets.
    And in any case this sort of thing is most definitely not what SwingtUtilites.invokeLater() is for. (What it is for is updating Swing components and ensuring it all happens in the Swing thread, being the only correct way to write Swing code as Swing is not thread-safe by design.) If your server has a Swing GUI, which doesn't seem likely, it will stall for the duration of all this I/O. If it doesn't, why start the Swing thread at all?
    Just define a serializable object that contains all the data you are passing to writeObject()/writeInt() and return it as the result of the remote method.
    You will save yourself a lot of latency and code in the process, and you could reduce all this to about six lines of code, something like:
    return new WBContent(
    PageHolder, //Pages to file...
    ImgPage, //Images for the Pages to file...
    WBStack, //Current object stack to file...
    objCount, //Current object count to file...
    pageCount, //Current page count to file...
    pageCount-1 //Current page number to file...
    ); where WBContent is a serializable class with the appropriate members and constructor, and is the return type of getWBContent().

  • Domino Gateway Crash with Java.io.EOF Exception

    All,
    My client has IDM 7.1 provisioning to Domino 6.5.4. It has been working fine untill last friday. Since then the gateway is crashing with Java.io.EOF Exception while trying to provision. The code has not changed and per some of the previous threads in this forum, I checked if they had any configuration changes in the Domino gateway server or at the domino side - like virus scan etc. However the answer was no.
    I would really appreciate any help on this.
    Thanks,
    Biju.
    Here is the last few lines in the gateway trace before it crashes:
    27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,247): Enter: doDominoInitialization
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,271): NotesIniFileDir: D:\IDM\gateway\notes.ini
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,279): NotesInstallDir: D:\notes
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,291): Domino Enabled
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,303): Updated PATH: ;D:\notes;
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,310): NOTESNTSERVICE Successfully set
    03/27/2009 00.20.25.406000 [4924] (../../../../src/wps/agent/connect/main.cpp,327): Exit: doDominoInitialization
    03/27/2009 00.20.25.406000 [2752] (../../../../src/wps/agent/connect/ntsvc.cpp,95): Service::svc
    03/27/2009 00.20.25.437000 [2752] (../../../../src/wps/agent/connect/server.cpp,269): starting up server daemon PORT 9278
    03/27/2009 00.20.25.875000 [2752] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
    03/27/2009 00.20.25.875000 [2752] (../../../../src/wps/agent/connect/RASecureConnection.cpp,64): RASecureConnection: new connection handler
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 68 bytes
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 47, 64 wrapped up rawlength 63
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,273): Rightbefore decrypt:
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,69): RAEncryptor::Decrypt3DES: input length (56) moded to 7
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 0 pad: 4
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,422): Enter: MakeChallengeResponse
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,474): MakeChallengeResponse(in,out):
    (5C,2F) (CC,56)
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,476):  (26,E3) (D7,65)
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,497): MakeChallengeResponse Key:
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,507): Exit: MakeChallengeResponse
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 16 pad: 4
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 36 bytes
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 16, 32 wrapped up rawlength 32
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,273): Rightbefore decrypt:
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,69): RAEncryptor::Decrypt3DES: input length (24) moded to 3
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 0 pad: 4
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,571): Session key :
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 16036 bytes
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 16012, 16032 wrapped up rawlength

    Workflow Trace:
                                  <List>
                                    <String>defaultPasswordExp</String>
                                    <String>365</String>
                                  </List>
                                </List>
                              </ResultRows>
                            </ResultTable>
                          </ResultItem>
                          <ResultItem type='error' status='error'>
                            <ResultError throwable='com.waveset.util.WavesetException'>
                              <StackTrace>com.waveset.util.WavesetException:
    ==> java.io.EOFException:
         at com.waveset.adapter.AgentResourceAdapter.getResponseBytes(AgentResourceAdapter.java:924)
         at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:955)
         at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:940)
         at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:934)
         at com.waveset.adapter.AgentResourceAdapter.doCreateOrUpdateRequest(AgentResourceAdapter.java:1289)
         at com.waveset.adapter.DominoResourceAdapter.doCreateOrUpdateRequest(DominoResourceAdapter.java:1072)
         at com.waveset.adapter.AgentResourceAdapter.createAccounts(AgentResourceAdapter.java:266)
         at com.waveset.adapter.ResourceAdapterBase.createAccount(ResourceAdapterBase.java:832)
         at com.waveset.adapter.ResourceAdapterProxy.createAccount(ResourceAdapterProxy.java:213)
         at com.waveset.provision.ProvisionContext.doResource(ProvisionContext.java:2103)
         at com.waveset.provision.ProvisionContext.processOp(ProvisionContext.java:592)
         at com.waveset.provision.ThreadContext.processContext(ThreadContext.java:330)
         at com.waveset.provision.ThreadContext.launchThreads(ThreadContext.java:239)
         at com.waveset.provision.ProvisionContext.doResources(ProvisionContext.java:280)
         at com.waveset.provision.Provisioner.reProvision(Provisioner.java:2226)
         at com.waveset.provision.Provisioner.reProvision(Provisioner.java:1416)
         at com.waveset.provision.WorkflowServices.reProvision(WorkflowServices.java:2791)
         at com.waveset.provision.WorkflowServices.call(WorkflowServices.java:789)
         at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
         at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
    Wrapped exception:
    java.io.EOFException
         at java.io.DataInputStream.readFully(DataInputStream.java:204)
         at java.io.DataInputStream.readInt(DataInputStream.java:380)
         at com.waveset.adapter.RASecureConnection.ReceivePrivateThread(RASecureConnection.java:540)
         at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
         at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
    </StackTrace>
                              <ResultError throwable='java.io.EOFException'>
                                <StackTrace>java.io.EOFException
         at java.io.DataInputStream.readFully(DataInputStream.java:204)
         at java.io.DataInputStream.readInt(DataInputStream.java:380)
         at com.waveset.adapter.RASecureConnection.ReceivePrivateThread(RASecureConnection.java:540)
         at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
         at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
    </StackTrace>
                              </ResultError>
                            </ResultError>
                          </ResultItem>
                        </WavesetResult>
                      </ResourceResult>

  • Using Document form varable results in failed unmarshalling message java.io.eofexception

    Hi,
      I'm on LiveCycle ES 8.2. For PDF submit forms from workspace, I assigned the servername for submit as URL:
    http://adobe1234:8080/workspace-server/submit.
    We are using Document Form variable for this process. The reason is the forms will be digitally signed at each stage and we dont want to loose their signatures if forms go next stage.
    This works perfect when I submit the form.
    Now, we will be moving all the existing instances to new server and I want this URL to be server independent.
    I take off this URL and kept it blank and try to submit from workspace. Nothing happens if I click submit and the form stays at the same place.
    I see the following error in the log file:
    2012-03-29 15:07:17,541 ERROR [org.jgroups.protocols.UDP] failed unmarshalling message
    java.io.EOFException
              at java.io.DataInputStream.readShort(Unknown Source)
              at org.jgroups.Message.readFrom(Message.java:630)
              at org.jgroups.protocols.TP.bufferToMessage(TP.java:973)
              at org.jgroups.protocols.TP.handleIncomingPacket(TP.java:829)
              at org.jgroups.protocols.TP.access$400(TP.java:45)
              at org.jgroups.protocols.TP$IncomingPacketHandler.run(TP.java:1296)
              at java.lang.Thread.run(Unknown Source)
    I have to avoid using this URL in the form as I will be moving my system to new domain & DNS and for any existing process instances, if they try to submit the form, that will error out as the URL is pointing to another server.
    Your help is highly appreciated.
    Thanks,
    kc

    I don't think I read your first post thoroughly. I see now you are setting the URL to prevent the form from appearing altered. I don't use digital signatures, but can see the potential problem. My first thought was to put JavaScript in the form to set the URL, but that would likely cause the same problem. I probably can't be of much help with no experience using the digital signatures. Our forms are considered 'Signed' if a logged in user clicks approve. Have you deleted the Form Bridge and readded? There may be differences with the one in ES2.
    I think you are also saying you can't set the URL server side before rendering the form because processes will launch under one domain then get changed later.
    If you were able to use JavaScript to determine which URL to submit to, you could put that code in the Form Bridge code and I would think that would submit. The form is not being altered by the code. This is assuming the code snippet I copied out of the form bridge is really what is called.
    /** Invoke the standard Submit action */
    function submitAction(doc, url, type) {
        if ( BRIDGE_SUBMIT_URL  != null ) url  = BRIDGE_SUBMIT_URL;
        if ( BRIDGE_SUBMIT_TYPE != null ) type = BRIDGE_SUBMIT_TYPE;
        if ( type == null ) type = "PDF";
        if (url != null) {
            setFocus(null);  // force current field focus out in 8.1 + readers (null op in previous versions)
    //      doc.submitForm({cURL: url, bEmpty: true, cSubmitAs: type, cCharset: "utf-8"});   
            doc.submitForm({cURL: url, cSubmitAs: type});   

  • UnmarshalException - java.io.EOFException

    I am getting the following exception while trying to lookup an API.
    java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.io.EOFException
    What is the reason for getting this exception?

    Type of remote object not match with parameter object.
    Please specific more exception trace.

  • Applet can not read from servlet because of java.io.EOFException

    Hi all,
    i try to communicate my applet with a servlet. i examine lots of codes from internet and i did lots of things to get a working sample but i couldn't sucess on this work for 2 days so if anyone can help me i will be very happy.
    Anyway, here is the code snippets :
    1- Applet side code to send data (serializabed object) to servlet :
       // Opening connection...
       URL urlServlet = new URL("http", "81.214.190.3", 8080, "/pwta/pwtax");
       URLConnection connection = urlServlet.openConnection();
       // Setting attributes...
       connection.setDoInput(true);
       connection.setDoOutput(true);
       connection.setUseCaches(false);
       connection.setDefaultUseCaches(false);
       connection.setRequestProperty("Content-Type",
                                                                  "application/octet-stream");
       OutputStream outputStream = connection.getOutputStream();
       ObjectOutputStream objectOutputStream = new ObjectOutputStream (outputStream);
       objectOutputStream.writeObject(islem);
       objectOutputStream.flush();
       objectOutputStream.close();
       // Receiving result from servlet...
      // Exception is thrown at line 71! Detail is written at bottom of message!
      InputStream inputStream = con.getInputStream(); // line 71 is here!!!
      ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
      returnValue = (Sonuc) objectInputStream.readObject();
      objectInputStream.close();
      inputStream.close();
    2- Server side code which read data and sendit after processing  to   applet  :
    // Reading requirement... Implementation is done in doPost() method!
        InputStream in = request.getInputStream();
        ObjectInputStream inputFromApplet = new ObjectInputStream(in);
        Islem islem = (Islem) inputFromApplet.readObject();
        inputFromApplet.close();
        // Doing the required job!
       setMapperAndDoTheJob(islem);
       // Writing the result to user...
       OutputStream outstr = response.getOutputStream();
       ObjectOutputStream oos = new ObjectOutputStream(outstr);
       oos.writeObject(sonuc);
       oos.flush();
       oos.close();
    //  *************************************************************************When i run my applet the following exception is thrown :
    java.io.EOFException
    at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
    at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
    at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
    at java.io.ObjectInputStream.<init>(Unknown Source)
    at tr.com.proksis.pwta.domain.PWTAProcessor.transferProcess(PWTAProcessor.java:71)
    Best Regards,
    eRoHaN

    get it working using a text transfer before you use and object transfer

Maybe you are looking for

  • It happened again!!!   iPhoto stops deleting photos!

    It happened again! As I reported in other threads in this forum, I have been experiencing deletion problems with iPhoto. This problem has been reported by many other users in different threads. To my knowledge, there has been no official fix / answer

  • My ipad was stolen now i found it and now it requested me of that person id and i dont have what do i have to do

    my ipad was stolen now i found it and now it requested me of that person

  • Safe Mode screen flickers

    Is it normal for an iMac, when in Safe Mode, to flicker when scrolling through Mail?  I don't know if this is related, but I'm trying to run the computer in Safe Mode for a while because, out of Safe Mode, the computer will randomely shut down...sudd

  • Purchased music/cd skips?

    I just downloaded my music selections, created a playlist, and burned them onto a cd. I used a Maxwell CD-R Music Pro, 80 min., 700MB. The songs play fine on my computer, but when I play them in my home cd player; they skip in different places during

  • Smart View Excel Add-in for Hyperion Enterprise 6.5

    Hi All, I'm trying add a data source connection directly in Connection Manager and my data source provider is Hyperion Enterprise. In the Install manual it mentions the following URL syntax for Hyperion Enterprise http://<servername>/heofficeprovider