End Of Stream while reading from HttpServletRequest's inputstream

Hi,
          I am trying to read from input stream got by invoking HttpServletRequest.getInputStream(). The first time it is successful until I read all data(End of stream). The second time I get End Of Stream on the very first read. The actual stream instance is of type weblogic.internal.servlet.ServletInputStreamImpl. Has anyone faced similar problems.
          

is it correct that before changing the direction of communication (read to write and vica-versa) it is sent "end-of-stream" signal?No it is not correct.
my colleague says that "end-of-stream" in normal is sent every time I switch direction.There is no such thing as 'switching direction' in TCP. It's a full-duplex protocol: you can send and receive at the same time. Therefore there is no such thing as a direction switch; therefore there is no result of a direction switch; therefore your colleague is talking through his hat. Your colleague should research and test his beliefs before handing out advice.
In TCP, EOS is received when the peer has closed the socket, or called Socket.shutdownOutput(), and not before. As your tests have already revealed.

Similar Messages

  • "error occured while reading from device"

    when trying to sync our itouches the device is initailly recongnized in itunes and will begin to sync , but never gets through the whole proccess - each time it gets to a different step, but always ends with error message "ipod cannot sync as an error occured while reading from device" or something close to that...any ideas or help please....
    i have checked the usb drivers...uninstalled and reinstalled itunes and removed the security software that I can find....

    It could be to either a problem with a "file" that is either one the iPod or on the computer that is trying to be read for syncing. I would in order:
    - Reset the iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore the iPod via iTunes. First from backup then to factory defaults/new iPod.

  • Error message, what does this mean: Itunes couldnt connect because an error occured while reading from the devise?!?!?! HELP

    I'm trying to connect my iPAD to my desktop but I receive an error: itunes couldnt connect because an error occured while reading from the devise?!?!?! HELP

    have you done a update for your itunes this can be the problem that it will not connect to you ipad so update you itunes and then try it again

  • HT4528 I can't seem to sync my iPhone with iTunes.  I keep getting this message:  iTunes could not connect to the iPhone because an error occurred while reading from this device.  What can I do?

    I can't seem to sync my iPhone to my computer; I keep getting this message:  "iTunes could not connect to the iPhone because an error occurred while reading from this device."  I get the same message with my iPad, even though they all share the same account.  What can I do?

    This could be caused by a USB connection issue. Make sure the iPhone is directly connected to the Mac using the USB cable it came with. Also, try disconnecting all other USB devices.
    If you haven't already try resetting the iPhone by holding the Home and Sleep/Wake buttons until you see an Apple logo as described here:http://docs.info.apple.com/article.html?artnum=305743

  • Message failing in SXMB_moni----Error while reading from the secure store

    Hi,
    The scenario is as below
    A file is picked up from a folder and processed to enrich it.This enriched file is then written back in a different folder.
    The message is failing in sxmb_moni while trying to write the file in the folder.
    The PI system is a system copy of another system and few of the configuration objects are transported through a tpz file to this PI system.The file receiver channel used to write this file is also transported through this tpz file.
    Below is the error seen in moni.:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Call Adapter --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIServer</SAP:Category><SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>Error while reading from the secure store: ERROR_U: No service user password found for Adapter Engine</SAP:AdditionalText><SAP:Stack>Error while reading access data (URL, user, password) for the Adapter Engine
    </SAP:Stack><SAP:Retry>M</SAP:Retry></SAP:Error>
    Below is Trace log:
    <Trace level="1" type="B" name="PLSRV_CALL_ADAPTER"></Trace><!-- ************************************ -->
    <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV"></Trace><!-- ************************************ -->
    <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL"></Trace><!-- ************************************ -->
    <Trace level="1" type="B" name="CL_XMS_PLSRV_IE_ADAPTER-ENTER_PLSRV">
    <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP"></Trace><!-- ************************************ -->
    <Trace level="1" type="T">error reading secstore:Error while reading from the secure store: ERROR_UNKNOWN: System-dependent data for entry  changed:  / (SECSTORE,031) </Trace>
    <Trace level="1" type="System_Error">Error while reading access data (URL, user, password) for the Adapter Engine  </Trace>
    </Trace>
    </Trace>
    <Trace level="1" type="System_Error">Error exception return from pipeline processing! </Trace>
    <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST"></Trace><!-- ************************************ -->
    Is this because  PI system is a system copy of another system ?
    Regards,
    Sneha

    Error while reading access data (URL, user, password) for the Adapter Engine
    Check out Michal's reply:
    Re: URL for Central Adapter Engine
    As you said there was a system copy it may be the case that some things were not configured properly

  • Error occured while reading from the device

    I need help!!! whenever i try to update my iphone to the new 1.1.1 version, i get an error message saying "error occured while reading from the device" the same message comes up when i try to restore it. i havent mod'd my phone in any way. does anyone know whats wrong or how to fix it?

    I have the same problem. Was a solution ever given ?

  • While reading from the pl/sql cursor i got "Invalid column index" exception

    Hi,
    I got the "Invalid column index" exception while reading from the cursor.
    Please advice.
    Thanks in advance
    siva

    I suppose one (or more) index in your query is in a bad state.
    Possible solutions: rebuild (with 'ALTER INDEX <index> REBUILD ...')
    drop and recreate (it's the same as above, but a little more long)

  • Error while reading from device

    I just upgraded from a 3gs to the iPhone 4 32GB. I upgraded to the newest iTunes. The phone is still using iOS 4.0.
    When syncing large movies that worked fine on the 3gs, I get the message "Attempting to copy to the "my phone name" failed. An error occured while reading from the device.
    Everything else synced fine, and some small homemade movies synced fine. Just the 2 that I had installed from "data discs" I got with DVDs won't sync. They play fine in iTunes.
    Any thoughts????
    Gene

    Problem solved... after reading around on the Internet I tried some ideas. The one that fixed the problem was the fact that I had a 6 foot usb extension cable on my system (not front facing usb ports). I plugged the iPhone data cable directly into the back of the PC and it fixed the issue.
    Thanks
    Gene

  • "An error occured while reading from this device"

    "An error occured while reading from this device" is the message I get whenever I try to sync my iPad to iTunes.
    The only way I can sync is to do a restore and then put everything back on it.
    Can anybody help?

    Make sure you also unisntall
    Bonjour,
    Apple Mobile Device Service,
    Quicktime
    and there's a couple of others. there are Apple support articles, but I'm sorry I don't have the articles linked. Also ensure you reboot after all of the uninstalls and reboot you iPad as well. This all fixed my laptop, but as I said, my desktop PC is still acting funny.
    As your laptop seems older, and the MB link is suspected on a particular group of newer motherboards, so I doubt your laptop motherboard is the common link.
    You might want to double check that its USB2 ports.

  • I am trying to sync iphone 5 to itunes but it says "iTunes could not connect to the iphone as an error occured while reading from the device " and the iphone is not seen on itunes........

    i am trying to sync iphone 5 to itunes but it says "iTunes could not connect to the iphone as an error occured while reading from the device " and the iphone is not seen on itunes........

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. And then reboot your computer.
    See if that fixes your problem.

  • DPM encountered an error while reading from the recovery point used for recovery.

    Hi Guys I'm getting this error:
    DPM encountered an error while reading from the recovery point used for recovery. Either the recovery point no longer exists or, if you
    selected a share for recovery, the path to its contents is missing from the recovery point.  (265)
    The DPM Server is on Windows 2012 DPM is 2012R2 4.2.1273.0
    The Server being backed up is 2012 R2 with DPM Agent 4.2.1273.0
    The Server has 3 Data Volumes (C: Drive) and D and E its the D and E drive that i get this error if i try and recover data from DPM.  the C Drive is fine.  the D and E Drive are different
    in that 1 De-dupe is enabled and 2 the Shadow Copies for these Volumes are stored on separate Disks F and G respectively.
    I've removed the Protection from drives D and E and reinstated it but every recovery point created
    brings up the same error message. I'm not sure where to go next do I need to Protect the Disks that have the Shadow copies on also? Many thanks in advance Gordon.

    Hi,
    It seems you are in a configuration where the Windows 2012 based DPM server does not understand how to read Windows 2012 R2 Dedup data structure which is what the DPM replica volume is.
    See the DPM supported and unsupported scenarios
    here under the deduplication issues section. 
    We have a fix in DPM2012 R2 UR5 that will protect the Windows 2012 R2 dedup volume in a non-dedup state on the DPM Server, but unfortunately that will not allow previous recovery points to be read.
    KB3021791-Description of Update Rollup 5 for System Center 2012 R2 Data Protection Manager
    Backup job for dedupe-enabled volume on Windows 2012 R2 fails. For example, Data Protection Manager backup might fail for following setup:
    Data Protection Manager2012 R2 is installed on Windows Server 2012.
    Data Protection Manager is protecting a dedupe-enabled volume on Windows Server 2012 R2.
    This also applied to restores as the above was for D2D2T backup that may fail as it needs to read the recovery point to back it up to tape.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.

  • Access Denied error while reading from filestream

    Hi Everyone.
    I have an intranet application that stores files in SQL filestream.
    On my dev machine, everything works like a charm.
    I'm able to upload and store files into SQL filestream (AjaxUpload) and able to downlaod them.
    On the live server, I'm able to upload files, delete them, but when I try to download the file from filestream, I get the following error:
    Access is denied
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.ComponentModel.Win32Exception: Access is denied
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [Win32Exception (0x80004005): Access is denied]
    System.Data.SqlTypes.SqlFileStream.OpenSqlFileStream(String path, Byte[] transactionContext, FileAccess access, FileOptions options, Int64 allocationSize) +1465594
    System.Data.SqlTypes.SqlFileStream..ctor(String path, Byte[] transactionContext, FileAccess access, FileOptions options, Int64 allocationSize) +398
    System.Data.SqlTypes.SqlFileStream..ctor(String path, Byte[] transactionContext, FileAccess access) +27
    quotes_GetFileStream.quotes_GetFileStream_Load(Object sender, EventArgs e) +740
    System.Web.UI.Control.LoadRecursive() +71
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048
    The application pool is set to integrated, V.4.0,  and I use a domain user for the identity authentication back to SQL.
    I gave that user DB_Owner rights to the SQL Database for that application.
    Even tried giving it all the SQL Server Roles, though i still get the above error.
    When I change the Identity username to mine (I have Domain Admin rights), everything works flawlessly on the live server.
    What rights am I missing to give that user so he can read from SQL filestream properly.
    Here is the block of code that gets the file from filestream and pushes it to the browser, maybe I'm missing something here (though once i modify the user it works great).
    Dim RecId As Integer = -1
    If Not IsNothing(Request.QueryString("ID")) And IsNumeric(Request.QueryString("ID")) Then
    RecId = CType(Request.QueryString("ID"), Integer)
    End If
    Dim ConString As String = ConfigurationManager.ConnectionStrings("ConnectionString").ToString
    Using Con As SqlConnection = New SqlConnection(ConString)
    Con.Open()
    Dim txn As SqlTransaction = Con.BeginTransaction()
    Dim Sql As String = "SELECT FileData.PathName() , GET_FILESTREAM_TRANSACTION_CONTEXT() as TransactionContext, [FileName], [FileExtension] FROM [QAttach] where RecId = @RecId"
    Dim cmd As SqlCommand = New SqlCommand(Sql, Con, txn)
    cmd.Parameters.Add("@RecID", Data.SqlDbType.Int).Value = RecId
    Dim Rdr As SqlDataReader = cmd.ExecuteReader()
    While Rdr.Read()
    Dim FilePath As String = Rdr(0).ToString()
    Dim objContext As Byte() = DirectCast(Rdr(1), Byte())
    Dim fname As String = Rdr(2).ToString()
    Dim FileExtension As String = Rdr(3).ToString()
    Dim sfs As SqlFileStream = New SqlFileStream(FilePath, objContext, FileAccess.Read)
    Dim Buffer As Byte() = New Byte(CInt(sfs.Length) - 1) {}
    sfs.Read(Buffer, 0, Convert.ToInt32(Buffer.Length))
    Response.Buffer = True
    Response.Charset = ""
    Response.Cache.SetCacheability(HttpCacheability.NoCache)
    Response.ContentType = FileExtension
    Response.AddHeader("content-disposition", "attachment;filename=" & fname)
    Response.BinaryWrite(Buffer)
    Response.Flush()
    Response.End()
    sfs.Close()
    End While
    End Using
    Thanks.
    Oren

    @William Bosacker:
    Please accept our apologies for any mistreatment.  While there's certainly no legal recourse for posts on an open forum like this, we do take steps to try to keep the forums a pleasant and friendly place to visit, and toward this end, two other moderators
    have already cleaned the thread and have begun to address the abuse.
    Not to defend the manner in which it was addressed, I must still point out that necro posting to a thread (this thread is from late 2013) and proposing your post as an answer are both generally discouraged. Again, I cannot condone the way in which it was
    presented, but I can understand why the other contributors thought something should be said.
    The recommended way to contribute information like this would be to create a new Discussion thread with content something like:
    "I was experiencing XYZ issue and while searching for a resolution I found this thread [link to old thread].  But after trying A, B, and C, I found that the following actually resolved my problem [code snippet].  I thought this might be helpful
    for anyone else with this issue... yada yada"
    In the case of this original thread, the issue was most certainly permission related.  While the underlying network permissions would certainly need to allow that user to access the server, the root problem may well have been within the SQL table permissions
    themselves.  The OP of the original thread really didn't provide enough context to know if they had the internal database permissions set correctly.
    The information you've provided essentially shows one way to set the table permissions, but it isn't necessarily the only way.  Its also possible that the issue could be resolved by modifying permission entries within the SQL manager rather than through
    a particular script file.  So while this information may indeed be helpful to someone in the future, it does not necessarily answer the question of this thread.  Only the OP has enough information to know if this can be applied to their situation;
    and since the thread is several years old and was originally closed by a moderator, there is very little chance that the OP will be back to respond.
    Hopefully this clears the air a little and will allow us all to get back to trying to help the VB development community within the guidelines of the forum.
    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

  • Live Stream QR reader from Webcam

    Hi
    i'm working on a QR reader from live stream webcam
    so i make this .....but i don't know why doesn't it stream contineously ?
    Solved!
    Go to Solution.
    Attachments:
    MyCAM1.vi ‏672 KB

    Hi,
    Just move your image display control inside the while loop.
    Also don't forget to create image buffers to feed your vision functions... Otherwise you may have some strange behavior.
    Regards

  • 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

  • CLIENT_OLE2 date formatting problem while reading from Excel

    I have installed webutil package and tested that everything works by running webutil_demo as well as WU_TEST_106 form. Then I had implemented reading from Excel sp. sheet using Oracle note 813535.1 (This note has OLE2 code sample on how to read an Excel file). Everything fine till now. The problem started when I have a date fiield to read from Excel. The field where the value is going to has format mask of 'DD-MM-RRRR'. When the date is displayed in the form, it shows '01-AUG-0009' instead of '01-AUG-2009'. I tried changing the date format to different formats in Excel but no go. I found one blog which stated that treat the date as number and use e.g. "cell_date_value:=to_date('01/01/1900','DD/MM/YYYY')+client_OLE2.get_num_property(cel,,'Value')+2" but it too did not change the display. Then I tried debugging and stepping through the code..the only thing I noticed that OLE2 function displayed the date with 2 digit year as 09 and when the code completed execution, the date went back to '01-AUG-0009'. Casting with 4 digit year at every step in the code is not helping to change final date display correctly. Any idea?!!!

    Hi,
    While reading the date column from excel, try using
         m_col_val := OLE2.get_char_property(Workcell,'Text');
    Instead of
         m_col_val := OLE2.get_char_property(Workcell,'Value');
    I think you problem will be solved...
    hello...i meant client_OLE2
    Regards
    Dora
    Edited by: Dora on Sep 16, 2009 11:05 AM

Maybe you are looking for

  • Error while creating Process flows in OWB 11gR2

    Hi I have never faced this before and thats why it baffles me. I am trying to create a new process flow module which has already been configured to the OWF_LOCATION(Oracle workflow location). I get Java exception error window with long list of detail

  • How to reestablish my computer?

    My hard drive damage. I did a copy of my complete computer with time machine into another disk before get it to repair. Now, I dont know how to reestablish all my info. into my computer from this copy. When I get into the time machine it appears I ma

  • Contract  Release Stragery

    Hi All, My Contract Release Strategy is based on duration .. When i save the Contract the release stragery trigeers... But if the Workflow is rejected at first level then the initiator should have the option to Re-trigger ( the option is available in

  • Import issues with iPhoto 6.0.6 on PB G4

    Hi!  I'm running iPhoto 6.0.6 on a Powerbook G4.  I import .jpg images from a USB stick, or CD, or over a network and it *appears* the images are in iPhoto (they show up in the main window in a new film roll)  However, when I remove the stick or CD o

  • HELP: Using my video iPod with iTrip/Mac OXS 10.3.9

    I just bought the new iPod and one of the main reasons i bought it was so that i could listen to music in my car. I bought iTrip along with the iPod but it isn't compatible. Someone suggested that i could use a cassette tape adapter but i dont have a