End of Stream

Hi,
How can I send an "End of Stream" down a stream without closing it?
Cheers
Rob

No doesn't seem to work in this case. I'm reading the stream with an app I've written to use the nio package's selectable channels. Below is the read method I'm using. The problem is that clientSocket.read(buff) is never returning -1 even though I can see that all the bytes have been read.
Basically it does the first pass, reads all the bytes into the buffer and then just hangs around waiting for the channel's interest ops to come back to OP_READ, but they never do. I'm sure I must be reading the socket or checking the buffer badly but I can't figure out where.
     private boolean read(SelectionKey key) throws IOException {
          int read =clientSocket.read(buff);
          if( read==-1) {
               buff.flip();
               in = charset.decode(buff).toString();
               System.out.println("Switch to write");
               return true;
          } else {
               System.out.println("More read ["+read+":"+buff.remaining()+"]");
               key.interestOps(SelectionKey.OP_READ);
               return false;
     }

Similar Messages

  • Encore DVD Error Message - "End of Stream has been reached"

    I have created a project In Encore 2. it has motion menus, subtitles and sound. When we go to preview the project it gives us this error
    "End of Stream has been reached"
    We have checked our assets and the audio and video are DVD standard.
    We did a check project and it found no errors with the project.
    We are running Windows XP SP2 on a network, 2GB memory, 200GB hard drive Dell OptiPlex Desktop
    Dose anyone know what we should do???

    The End of Stream Message can be solved by removing one or moor unwanted elements from the time line. in my case that was a jpg image that encore didnt liked.
    It is very difficult to find out witch element you need to remove, but that is the only solution.

  • End of Stream has been reached error CS4

    After transcoding the main video file during the build, Encore then prepares "Planning audio for movie" at which case the error "end of stream has been reached" pop up window appears and the burn subsequently fails. There are no errors within the project and I have burned the project successfully onto a DVD with no error in the past. The only changes this time around is a re encoding of the video file (Uncompressed AVI 1920 x 1280 max depth bit), a change in the video thumbnails for the chapter selection pages, and a tweeking of the chapter points. Because the video file is so large, I delete the previous AVI file and export again using the same name to create the approriate links. I have read that the sound compression is the main cause for this error, however, I have not done anything sound related between versions of the DVD. How can I fix this error from occurring?  Thanks in advance.

    Especially with muxed (Audio & Video), there is a slightly different Block Size for each stream, so what appears to match 100% in PrPro can be every so slightly longer (Audio), when Transcoded. That is why I always leave a touch of "silence" in my Audio.
    For my edits, I almost always start with a Dip-to-Black, from an 02 sec. bit of Black Video, and then end with another 02 sec. of Black Video. My Audio always ends, just before the end of that Black Video. This also makes things seem to flow better, between Timelines, as the user sees things Dip-to-Black, and unless they have a stopwatch going, do not know if a moment has elapsed, when the laser moves, and the next Timeline comes up from black. There is never a jolting "black flash."
    Good luck,
    Hunt

  • How can I set stream to end of stream?

    How can I set stream to end of stream?
    I don't want to close the socket.
    What I have to send that inputstream realizes
    that end of stream has been reached?

    Hi Diego Victor, thanks for the very quick response. Sorry I am delayed getting back to you.
    This made setting home page was easy.
    I can see from cor-els reply how to make a new tab have the sites I want so am trying that for now but still cannot work out how to make a new tab actually go go www.google.co.uk.
    I could not get there from Victors reply. I went to about:config but it said this could invalidate my warranty so nervous of that.
    Sorry if it is just me being a bit stupid but find technical stuff hard - just ask my boss as I work in IT!!

  • End of stream or off-line message?

    When you stop live streaming, is there a way to have the client player present an end of stream or off-line message?
    Right now when I stop streaming, the client plays the last part of the stream and then just buffers endlessly.

    something like this?
    conn = new NetConnection();
    conn.addEventListener(NetStatusEvent.NET_STATUS, onStatus);
    private function onStatus(e:NetStatusEvent):void {
       switch(e.info.code) {
       case "NetStream.Play.StreamNotFound":
       //some code
       break;
       case "NetStream.Play.Stop":
       //some code
       break;

  • Visual admin login (end of stream error)

    If I logon to visual administrator I am getting the following error during connection time(12%)
      Unable to logion to Hostname:
    End of stream reached unexpectedly during input from socket( 168.15.5.2 ,port =50004,localport =2825)
    beacuse of this problem I am not able to log onto visual adminstrator.
    I would be grateful for all your suggestion

    Hi,
    Check your server0.log file I think there is some issue with j2ee_admin password.Any ways check that log file it gives you enough info.
    Regards,
    Vamshi.

  • Error Message: IMW-00005: end-of-stream;

    I have a BC4J JSP application (Jdev 9.02) that allows images to be uploaded and stored internally as ORDSYS.ORDIMAGE type. I need to record the file name and directory of the original upload file. This data does not appear to be available through the default HtmlServices.getRequestParameters method. I have amended the code to make use of OrdHttpUploadRequest but as soon as I attempt to parse the data I get the following error:
    OrdHttpUploadRequest ordRequest = new OrdHttpUploadRequest(request);
    if (ordRequest.isUploadRequest()) {
    ordRequest.parseFormData();
    OrdHttpUploadFile mFile = ordRequest.getFileParameter("ImgImage");
    Error Message: IMW-00005: end-of-stream; client terminated request (or invalid Content-Length)
    Is there a workaround for this problem.

    You got this error because your code tried to parse the multipart request again. The multipart request had already been
    parsed by BC4J HtmlServices before your code. It can only be parsed once.
    There is no way to get OrdHttpUploadRequest object in user's code. This is a BC4J bug. We have fixed it in JDev903.
    To work around it, you may try the following:
    In DataHandlerComponent.jsp:
    <jbo:OnEvent name="update">
    <jbo:Row id="myrow" datasource="ds" rowkeyparam="jboRowKey" action="Update" />
    <%
    OrdImageDomain image = (OrdImageDomain) myrow.getAttribute("ImgImage");
    OrdHttpUploadFileSource fileSource = (OrdHttpUploadFileSource) image.getContentSource();
    OrdHttpUploadFile file = fileSource.getOrdHttpUploadFile();
    String filename = file.getOriginalFileName();
    %>
    richard

  • "End of Stream has been reached"

    "End of Stream has been reached"
    I get this message when trying to preview my project. I started this project in Encore DVD 1.5, and I get this error message when I'm editing it in the new Encore DVD 2.0 trial.
    Thanks in advance.

    Hello Jesse,
    I found a solution for you !
    I had the same problem : opening in encore dvd 2.0 trial a project made in 1.5. Trying to preview the menus, got the "end of stream" error.
    In my project, the problem was a sound, used on a menu, that was bad encoded : it was in 44.1 Khz instead of the "dvd standard" 48 khz. When previewing the menu in 1.5, encore dvd did a transcode. But the 2.0 version seemed to have problems with the transcoded sound, because I replaced it in the menu with a upsampled 48khz sound (out of encore, with a sound software) and, MIRACLE ! it works !!!
    My analysis of the problem is : when you preview a menu, Encore loads in the RAM the whole menus of your projects. Therefore, if you have only one menu bugging, it will affect all your preview !
    I recommend you to check that all you assets are to the dvd standards, and if it still bugs, try to delete the transcodes (in the folder : x:\your project\Sources\Transcodes OR on the C:\Documents and Settings\USER NAME\Local Settings\Temp\Sonic\Transcodes)

  • Minecraft server end of stream

    Haus-MacBook-Pro:Bukkit hau$ java -Xms1024M -Xmx1024M -jar craftbukkit.jar nogui
    161 recipes
    17 achievements
    12:02:16 [INFO] Starting minecraft server version Beta 1.8.1
    12:02:16 [INFO] Loading properties
    12:02:16 [INFO] Starting Minecraft server on 5.119.42.179:25564
    12:02:16 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1131-g86b7fa8-b1337jnks (MC: 1.8.1)
    12:02:18 [INFO] MLog clients using java 1.4+ standard logging.
    12:02:18 [INFO] Preparing level "world"
    12:02:18 [INFO] Default game type: 0
    12:02:18 [INFO] Preparing start region for level 0 (Seed: 2252740922174884433)
    12:02:19 [INFO] Preparing spawn area: 4%
    12:02:20 [INFO] Preparing spawn area: 48%
    12:02:21 [INFO] Preparing start region for level 1 (Seed: 2252740922174884433)
    12:02:21 [INFO] Preparing spawn area: 0%
    12:02:22 [INFO] Preparing spawn area: 60%
    12:02:25 [INFO] Loaded Essentials build 2.6.4 by: Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits
    12:02:25 [INFO] Essentials: Using config based permissions. Enable superperms in config.
    12:02:25 [INFO] Loaded EssentialsChat build 2.6.4 by: essentials team
    12:02:25 [INFO] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
    12:02:26 [INFO] Loaded EssentialsProtect build 2.6.4 by: essentials team
    12:02:26 [INFO] Loaded EssentialsSpawn build 2.6.4 by: essentials team
    12:02:26 [INFO] Server permissions file permissions.yml is empty, ignoring it
    12:02:26 [INFO] Done (0.837s)! For help, type "help" or "?"
    12:02:49 [SEVERE] java.lang.NullPointerException
    12:02:49 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:63)
    12:02:49 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:154)
    12:02:49 [SEVERE]     at net.minecraft.server.Packet254GetInfo.a(SourceFile:16)
    12:02:49 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    12:02:49 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:46)
    12:02:49 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
    12:02:49 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    12:02:49 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    12:02:49 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    12:02:49 [INFO] /5.119.42.179:54177 lost connection
    >

    Hello Jesse,
    I found a solution for you !
    I had the same problem : opening in encore dvd 2.0 trial a project made in 1.5. Trying to preview the menus, got the "end of stream" error.
    In my project, the problem was a sound, used on a menu, that was bad encoded : it was in 44.1 Khz instead of the "dvd standard" 48 khz. When previewing the menu in 1.5, encore dvd did a transcode. But the 2.0 version seemed to have problems with the transcoded sound, because I replaced it in the menu with a upsampled 48khz sound (out of encore, with a sound software) and, MIRACLE ! it works !!!
    My analysis of the problem is : when you preview a menu, Encore loads in the RAM the whole menus of your projects. Therefore, if you have only one menu bugging, it will affect all your preview !
    I recommend you to check that all you assets are to the dvd standards, and if it still bugs, try to delete the transcodes (in the folder : x:\your project\Sources\Transcodes OR on the C:\Documents and Settings\USER NAME\Local Settings\Temp\Sonic\Transcodes)

  • What is ASCII character for end of stream?

    I googled but failed to find the answer. Is it 004/EOT, 027/ETB, or something else?
    In socket, read() != -1 never be reached, which incurred my above question. I want to see what ascii is used to indicate end of stream.
    Thanks!

    You need to rethnk the way that you reason about behavior and how you ask questions.
    There must be an ASCII to indicate end of stream ... otherwise how [does it] detect ... end of stream?It looks to me like the question you are trying to ask is:
    "How does one socket tell another that it has reached an end of stream?"
    There's a mechanism there - youre just assuming its ASCII or that some sentinel value is sent.
    ASCII is a text encoding. Since youre talking about a communications protocol were talking
    binary. Theres no reason to call it ASCII.
    It could be somthing as simple as: I know how many bytes long the message is and ive read
    that many bytes.

  • IMW-00005:end-of-stream

    Hi,
    I did all the necessary to use intermedia into my web/struts application using jdeveloper 9.0.5.
    I installed intermedia to Oracle Database without problem then I build my project into jdeveloper.
    The exception occured on this line when parsing multipart data:
    OrdHttpUploadFormData formData = new OrdHttpUploadFormData( request );
    formData.parseFormData(); //Exception is here
    the error message is :
    oracle.ord.im.OrdHttpUploadException: IMW-00005: end-of-stream; client terminated request (or invalid Content-Length)
    Any help ?
    Thank you

    I have the same problem on JRun 3.0.

  • Messaging Server 4.15 and End-Of-Stream messages

    My SMTP log has an entry "[28/Mar/2002:14:26:01 -0700] mail smtpd[364]: Network Notice: Client End-Of-Stre
    am from 127.0.0.1 [127.0.0.1]" that appears over and over again. They appear every 10 minutes.
    The mail server appears to be sending and recieving mail properly. Clients appear to be working as well both with HTTP and POP3.
    Is this a normal message or is indicative of some type of problem?

    it's a normal message. What you're seeing the the stored process connecting to the smtp port to make sure it's responding. It's not sending any data down so smtp is closing the connection and reporting the "end of stream". The giveaway is that the connection is coming from the loopback address (127.0.0.1)

  • DataDirect DB2 drivers (jdbc) exception: end of stream on read

    Using the DataDirect version 3.4 drivers against V8.1 of DB2...
    Having trouble establishing a connection to DB2 with the com.ddtek.jdbc.db2.DB2Driver class:
    SQLException: [DataDirect][DB2 JDBC Driver]End of stream was detected on a read.
    The url is as follows:
    jdbc:datadirect:db2://sadbarkprodtest2:6789;databaseName=INFRA
    Used the default JDBC port number (which has been verified) and the user/password are set as arguments in the Connection initialization. Not sure why the exception is being thrown. Has anybody use had the same problem?
    /Matthew Young

    Running DB2 V8.1.5 on a Solaris machine (sparc)...
    On the client side I am using jdk 141_03 from Bea and the DataDirect JDBC drivers (version 3.4). Sample code looks as follows:
    public class Test {
      private String url = "jdbc:datadirect:db2://sadbarkprodtest2:6789;databaseName=INFRA";
      private String userid = "xxx";
      private String password = "xxx";
      public void connect() {
        try
          Class.forName("com.ddtek.jdbc.db2.DB2Driver");
          connection = DriverManager.getConnection(url,userid,password);
        catch (SQLException sqle) {
           sqle.printStackTrace();
        catch (Exception e) {
           e.printStackTrace();
      public static void main(String[] args) {
        Test test = new Test ();
        test.connect ();
    }I get the same "End of stream was detected on read" error with the Bea DB2 7.*,8.* drivers. Assuming the problem has something to do with the version of DB2.
    / thanks - Matthew

  • VA - End of stream is reached unexpectedly during input from Socket

    Hi All,
    When I try to connect to Visual Administrator I get the following error:
    "End of stream is reached unexpectedly during input from Socket"
    Administrator user is not locked (I can log on with this user to the portal).
    I tried to create Direct Connection and connect using other user with administrator permissions/roles - didn't help
    I tried to change administrator password in secure store  - didn't help either.
    If I restart the server, I can connect right after the restart (so restart does release something...)
    Portal version is: EP7 SP11.
    The machine is a test machine
    (Windows 2003 under VMWare with just 1.5MB memory).
    I have more than 5GB free in System/Portal partitions.
    My other systems are "real" machines with 2GB ram and I don't have this issue in other systems.
    Could it be memory problem?
    My settings are exactly as described in note 957355
    Regards,
    Omri

    Hi Mike,
    I cannot attach the log, but this is what I mainly get:
    <i>Cannot create new RemoteLoginContext</i>
    <i>#
    #1.5#C0002A00018800000000000101C6866D0004347EF23B0728#1183619741321#com.sap.engine.services.adminadapter.gui.tasks.LoginTask##com.sap.engine.services.adminadapter.gui.tasks.LoginTask#######Thread[Thread-2,5,main]##0#0#Error#1#/System/Server/VisualAdministrationTool#Java###Error while trying to login to <server>: Cannot create new RemoteLoginContext.
    [EXCEPTION]
    #1#com.sap.engine.services.security.exceptions.BaseLoginException: Cannot create new RemoteLoginContext.
         at com.sap.engine.services.security.remote.login.RemoteLoginContext.<init>(RemoteLoginContext.java:71)
         at com.sap.engine.services.adminadapter.gui.tasks.LoginTask.connectAction(LoginTask.java:96)
         at com.sap.engine.services.adminadapter.gui.tasks.LoginTask.run(LoginTask.java:79)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.io.EOFException: End of stream is reached unexpectedly during input from Socket[addr=/<ip>,port=50004,localport=4300]
         at com.sap.engine.services.rmi_p4.Connection.run(Connection.java:420)
         ... 1 more
    </i>
    Meanwhile, I opened OSS message.
    Regards,
    Omri

  • IMW-00005: end-of-stream  on JDEV 9i

    I'm trying to make an application using jdeve9i
    i'm working on windows2000 server
    the application simply takes a name and file using a file input from a jsp and then the jsp submits to another jsp that is suppost to insert a record in the dataabse using the data provided in the request
    the first jsp has the following code
    <jbo:FileUploadForm action="Docsave.jsp" >
    DocName: <INPUT TYPE="TEXT" NAME="docname"><br>
    File: <INPUT TYPE="FILE" NAME="file"><br>
    <INPUT TYPE="SUBMIT" TEXT="SUBMIT">
    </jbo:FileUploadForm>
    while the second one takes it and
    preform the following
    OrdHttpUploadFormData formData = new OrdHttpUploadFormData( request );
    formData.parseFormData();
    docname = formData.getParameter( "docname" );
    OrdHttpUploadFile photo = formData.getFileParameter( "file" );
    img = new OrdDocDomain();
    img.setContentSource(new OrdHttpUploadFileSource(photo));
    The problem comes in teh method formData.parseFormData();
    this method throws the error
    oracle.ord.im.OrdHttpUploadException: IMW-00005: end-of-stream; client terminated request (or invalid Content-Length)
         int oracle.ord.im.OrdMultipartInputStream.read().....
    please help its so urgent to end my application today

    I am using jdev version 9032 and oc4j version 9031 .
    Basically I have got a servelt that does the upload and then calls a jsp which has ApplicationModule tag in it at the top.
    So when it calls the jsp , I get this error .
    The code of upload :
    try {
    OrdHttpUploadFormData fd = HtmlServices.getOrdFormData((HttpServletRequest)request);
    // the 2 lines below call a bean which saves the data to database .
    PropertySetter.setProperties(submissionsBean, fd);
    submissionsBean.save();
    am.getTransaction().commit();
    fd.release();
    dispatcher = request.getRequestDispatcher("casehome.jsp");
    dispatcher.forward(request,response);
    }

Maybe you are looking for

  • BUG: ERR-1777 from Interactive Report on  Webkit browsers

    Using the [My Orders interactive report on page 1 of the Sample Application|http://apex.oracle.com/pls/otn/f?p=60385:1], entering a search term in the default search field and pressing return results in > ERR-1777: Page 1 provided no page to branch t

  • How do in app purchases show up on a bank statement?  I have U.S. bank?

    I purchased something off of an app and I accidentally used my credit card.  When my mom checks my bank account will it say the app I bought it from or just like iTunes $ 2.99

  • TS3274 My iPad screen has gone dark, but when I use internet it goes light please advise

    My iPad screen as gone. Funny greeny colour, everything including pictures are that colour, but when I use the internet it is normal. Please could you help. I've rebooted but no change

  • Invoicing Error

    Hi All, When i try to post an Invoice against a PO i get the following error. What could be the reason? Cross-company code transaction in PO item 4570297560 00010, company code 0700 Message no. M8393 Diagnosis You are entering the invoice for a purch

  • Creating new Source system problem

    Hi there, System: BW 3.5 client 010, want  to connect to R/3 4.6c Sandbox client 0101 we just refreshed our BW 3.5  sandbox with current production data. Now we want to create the source system via RSA1 to point to R/3 Sandbox. When we try to create