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.

Similar Messages

  • Java.io.EOFException

    Hello,
    I am getting the following error while calling a remote IF method of a stateless
    EJB.
    com.ibi.agent.TuxAgent : UnmarshalException : error unmarshalling arguments; nested
    exception is:
    java.io.EOFException
    com.ibi.agent.TuxAgent: error unmarshalling arguments; nested exception is:
    java.io.EOFException
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.io.EOFException
    java.io.EOFException
    <<no stack trace available>>
    Has anyone encountered this error while accessing the Remote IF methods. If so,
    what you did to resolve this problem? Any help would be greatly appreciated.
    - Aravind.

    Apurb,
    The problem is resolved.
    I tried to pass a hashtable of Tuxedo wrapper objects of type TypedFML. They were
    told to be implementing java.io.serializable.
    Then, when I tried to serialise/deserialise the object, i got an EOF Exception.
    So, I just passed a simple java type as parameter to my rmi call and made the
    EJB to handle the building of those wrapper classes.
    Thanks,
    Aravind.
    Apurb KUmar <[email protected]> wrote:
    Hi Aravind,
    These errors seem to be application errors. What are you trying to accomplish
    in the
    method?
    Aravind wrote:
    Hello,
    I am getting the following error while calling a remote IF method ofa stateless
    EJB.
    com.ibi.agent.TuxAgent : UnmarshalException : error unmarshalling arguments;nested
    exception is:
    java.io.EOFException
    com.ibi.agent.TuxAgent: error unmarshalling arguments; nested exceptionis:
    java.io.EOFException
    java.rmi.UnmarshalException: error unmarshalling arguments; nestedexception is:
    java.io.EOFException
    java.io.EOFException
    <<no stack trace available>>
    Has anyone encountered this error while accessing the Remote IF methods.If so,
    what you did to resolve this problem? Any help would be greatly appreciated.
    - Aravind.--
    Apurb Kumar
    Developer Relations Engineer
    BEA Support

  • UnmarshalException with nested EOFException on Naming.lookup()

    I have an RMI server object that creates its own RMI registry and binds, like this:
         Registry registry = LocateRegistry.createRegistry(1099);
         registry.bind("JournalReceiver", this);I run this from the command line to get it started. Everything looks good.
    My client is running as a webapp in Tomcat (on the same machine), and it executes this call:
            receiver = (RmiJournalReceiverInterface) Naming.lookup("JournalReceiver");and gets this error
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.io.EOFException
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Naming.java:84)It is clear that I'm reaching the registry, and if I modify the code to intentionally lookup the wrong name I get a "not bound error", so I'm pretty confident that my server object is indeed bound to that name. Beyond that, I'm lost.
    Any thoughts?
    jb

    OK - the problem was an incorrect codebase.
    My server object creates its own registry with
           Registry registry = LocateRegistry.createRegistry(1099);
         registry.bind("JournalReceiver", this);and I get the UnmarshalException with nested EOFException, as shown above.
    However, if I set up an outside registry with 'rmiregistry', and use
            Naming.rebind("JournalReceiver", this)then I get the UnmarshalException with nested ClassNotFoundException, which has shown up in several threads.
    So, following the advice given in those threads, I fix the codebase like this:
    java -Djava.rmi.server.codebase=file:/var/local/jb/RmiReceiver.jar \
       org.nsdl.RmiJournalReceiverand it works as advertised, even when I go back to my original lines of binding code.
    Thanks again for the help.
    jb

  • RMI - Unmarshell Exception - Nested Exception is java.io.EOFException

    Hi,
    I get the following error while executing my RMI client.
    The fact is that i dont get this everytime. When i make nearly 4000 RMI method calls then for the further method calls i get the exception as given below..
    *java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:*
    *     java.io.EOFException*My RMI Client Implementation is like this.
    - Create a static object of RMI Client
    m_objRmiServiceProxy = (IExposedInterface) Naming.lookup(ConnectionURL);And use the same object for all my further rmi server calls....
    can anyone tell me when we will get the above exception?
    What can be the possible cause for it ?
    Thanks...

    If you find an answer elsewhere please let me know, your problem seems to be very much akin to what my program is experiencing. Just one question, is your program affected by the error if you call the one remoteserver method consecutive times or if you call multiple methods in parallel?
    Edited by: Inusevs on Sep 10, 2008 6:24 AM
    Edited by: Inusevs on Sep 10, 2008 6:24 AM

  • Java.io.EOFException while returning a large object using RMI

    Hello
    I am having an issue with RMI which seems to be quite common (given the given the amount of matches in Google) but for which I can find a way out.
    In my application there 2 RMI objects , say OBJECT1 and OBJECT2. For OBJECT1 to get stuff from the database it gives a call to OBJECT2, which in turn fetches it from the DB and provides it back to OBJECT1.
    It is in such a call from OBJECT1 that i get the following exception.
    Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.io.EOFException
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:164)
    at CALL FROM OBJECT1
    ... 13 more
    Caused by: java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.readFully(ObjectInputStream.java:2571)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1824)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1759)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
    at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1835)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1759)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
    at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:146)
    ... 15 more
    The rows retrieved from the DB are stored in a user-defined array (serializable incl. all the subcomponents except for the primitive data fields) and the same is return back from OBJECT2.
    Interesting thing is that this exception occurs only when the number of rows retrieved by OBJECT2 is exceeds a certain limit, i.e. when the no. of rows are less the application works perfectly.
    Tried the following based on what was mentioned in different posts: Added following parameters to the JVM startup call.
    -Dsun.rmi.server.exceptionTrace=true - did not get any pointers
    -Dsun.rmi.log.debug=true
    -Dsun.rmi.transport.connectionTimeout=600000 - cause the time for the DB query was above the default time of 15 sec
    I am using Sun j2sdk1.4.2_13 for the application.
    Any pointers to resolve this issue would be greatly appreciated.

    ronpg wrote:
    The issue is solved by increasing the VM max. memory parameters!if you want to avoid issues like this in the future, check out RMIIO. it provides an api for a "streaming remote iterator" over rmi, so you wouldn't have too read all this data into memory at once (causing memory exhaustion issues).

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

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

  • 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

  • Java.io.EOFException: Unexpected end of ZLIB input stream

    Hi,
    I am reading .gz file in servlet and writing it in output stream. It works fine for smaller files. For larger file when I reading file and writing output I am getting exceptions as below in order.
    8/6/09 9:52:28:953 CDT] 00000029 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet /WEB-INF/pages/TilesTemplate/layouttemplate.jsp. Exception thrown : java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter(SRTServletResponse.java:489)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:170)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:163)
         at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:227)
    ---- Begin backtrace for Nested Throwables
    java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter(SRTServletResponse.java:489)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:170)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:163)
    *[8/6/09 9:52:28:625 CDT] 00000029 SystemErr R java.io.EOFException: Unexpected end of ZLIB input stream*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:157)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:109)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.FilterInputStream.read(FilterInputStream.java:110)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:325)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:223)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.InputStreamReader.read(InputStreamReader.java:208)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.BufferedReader.fill(BufferedReader.java:153)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.BufferedReader.readLine(BufferedReader.java:316)*
    *[8/6/09 9:52:28:656 CDT] 00000029 SystemErr R      at java.io.BufferedReader.readLine(BufferedReader.java:379)*
    *[8/*

    My suggestion would be to run your code as a plain old Java application. Why use a servlet environment to test the problem? There's just too many things going on. So first see if it works the same way in a Java application. If it does, or if it doesn't, you then know where to go next.

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

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

  • SOAP: call failed: java.io.EOFException

    Hi all,
    I have build a proxy to soap scenario that generates errors during runtime. The scenario
    consists of an ABAP program consuming a webservice through PI. The communication
    channel shows the following errorlog:
    - Message processing started
    - request entering
    - SOAP: call failed: java.io.EOFException: Connection closed by remote host.
    - Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.
    MessagingException: java.io.EOFException: Connection closed by remote host.
    Does anyone know the cause of this error?
    Thanks in advance.
    Regards,
    Ivo

    Hi Ravi,
    although I was able to reach the URL through a webbrowser, this problem was indeed caused by unavailability of the webservice. I just tried the connection without making any changes in PI and everything is working fine now.
    Case closed.
    Regards,
    Ivo

  • 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

  • Got java.io.EOFException error in Safari

    I got this error when trying to access My Ebay.
    Request failed.
    Got java.io.EOFException (Unexpected end of ZLIB input stream): http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&gbh=1
    I've fixed this problem by configuring the Proxy server to No Proxy in Firefox, but I don't know where to find that in Safari.
    Help please. Thanks.

    Safari is set to Web Proxies under the Network prefPane, and I've never make changes to it. But the Request failed error just started happening recently.

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

Maybe you are looking for

  • I cant get past the security questions on my pc

    I could not remember the answers to my security questions. so I tried to create new ones. The system would not let me. It kept telling me " wrong answer. PLEASE HELP ME!!!!! I cant buy music ( $18.00 in iTunes )

  • How to become a SUMO developer / contributor / supporter

    Very simply, I'm an EE/CE with TONS of experience in the industry. I would like to determine if you are looking for developers / contributors / supporters. How does one do this? Where do I make the request? I ask because of the feedback I'm hearing i

  • BlackBerry Browser Channel Push from SAP Portal

    I have posted the following on blackberry forums, not much success, maybe some portal person can suggest how to move forward. I've taken some standard blackberry java code that pushes a web page to a blackberry device, and executed from my java vm an

  • Available disk space irregularity

    Hi, I have 999,35 GB hard drive capacity in my iMac. This is what Get info told me about Macintosh HD: Capacity: 999.35 GB Available: 58.13 GB Used: 941,219,274,752 bytes I'm sure there is MUCH MORE available disk space than 58.13 GB! I've got used a

  • Re: Addition of filed in f-02

    Hi team,     I have a requirement regarding the lot number LOTKZ filed should appear in F-02 screen . we had devloped bdc and pulled the creen in sbdh.But how can we pull the same filed in f-02.Please do the need full. Regards, suma.