Socket Timeout when reading from post stream

I get the following error when a servlet tries to read an object from the post stream.
Is there a way to set any timeout values on, say a socket, or static variable on
any weblogic SocketImpl..?
Appreciate any help.
Thanks-
Rama
java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:124)
at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:97)
at java.io.ObjectInputStream.read(ObjectInputStream.java:1835)

Was successful in setting the duration parameter in the HTTP tab of the server.
However, when accessing the app (servlet) via iPlanet proxy, it still fails. I have
to check on similar settings on that side.
Do you have hints for me ?
Thanks for your posting, Dave.
Rama
"Dave Martin" <[email protected]> wrote:
>
Rama:
Try changing the Post Timeout Secs option under the HTTP tab for your server
in the
WebLogic Admin console. You could bump out the Duration on the HTTP connection
while
you're at it. Not sure if these will have a side effect on what you want
to change,
but worth a shot.
"Rama Raghavan" <[email protected]> wrote:
I get the following error when a servlet tries to read an object from the
post stream.
Is there a way to set any timeout values on, say a socket, or static variable
on
any weblogic SocketImpl..?
Appreciate any help.
Thanks-
Rama
java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:124)
at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:97)
at java.io.ObjectInputStream.read(ObjectInputStream.java:1835)

Similar Messages

  • How new objects are instantiated when reading from object stream?

    Hi,
    How the serializable API instantiates new objects when reading from stream?
    First it needs to create a new instance of a class and then fill its' fields with a serialized data. But not all serializable classes have empty constructor (as it have java beans) to make simple call of Class.newInstance(). Is there any way to create a virgin instance of any class?
    Ant�n

    I found the way, but it is not a solution:
    Constructor serializableConstructor = sun.reflect.ReflectionFactory.getReflectionFactory().newConstructorForSerialization( Class instanceClass, Constructor superClassEmptyConstructor );
    Object obj = serializableConstructor.newInstance();This "magic" method creates an empty constructor for a serializable class from empty constructor of any superclass. The limitation is that a first non-serializable superclass must have an empty constructor.
    As this magic method locates in a package sun.** I think this will not work with other JREs.

  • How to timeout when reading from a URL ?

    I have the following method that gets html from a URL :
    StringBuffer Read_From_Url(String URL_Or_File_Path,boolean Print_Stack_Trace)
        StringBuffer sb=new StringBuffer();
        BufferedReader in=null;
        try
            in=new BufferedReader(new InputStreamReader(new URL(URL_Or_File_Path).openStream()));
            String inputLine;
            while ((inputLine=in.readLine()) != null) sb.append(inputLine+"\n");
            in.close();
        catch (Exception e) { if (Print_Stack_Trace) e.printStackTrace(); }
        finally
          try
            if (in!=null)
              in.close();
              in=null;
          catch (Exception ex) { if (Print_Stack_Trace) ex.printStackTrace(); }
        return sb;
      }It usually works fine, but for for some urls, it will be stuck forever, for instance try this one : www.conform.com.cn
    I tried to read that url from a browser, it will keep the browser in the fetch mode forever, never return a page.
    My question is : how to tell my method to timeout after 30 seconds if it can't get anything from that url ?
    Frank

    If you RTFM, you will see
    http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html#setReadTimeout(int)
    there's also one for ConnectTimeout
    Also, I have created a class called Timeout that calls a TimeOutCmd after the alloted time has expired. Generally, my timeout command is to close the stream I'm waiting on, which will release the thread and cause an IOException
    package tjacobs.io;
    public class TimeOut implements Runnable {
         private long mWaitTime;
         private boolean mRunning = true;
         private Thread mMyThread;
         private TimeOutCmd mTimeOutCmd;
         public static final int DEFAULT_WAIT_TIME = 30 * 1000; // 30 Seconds
         public static final int NO_TIMEOUT = -1;
         public static interface TimeOutCmd {
              public void timeOut();
         public TimeOut(TimeOutCmd cmd) {
              this(cmd, DEFAULT_WAIT_TIME);
         public TimeOut(TimeOutCmd cmd, int timeToWait) {
              mWaitTime = timeToWait;
              mTimeOutCmd = cmd;
         public void stop() {
              mRunning = false;
              mTimeOutCmd.timeOut();
              if (mMyThread != null) mMyThread.interrupt();
          * reset the TimeOut
         public void tick() {
              if (mMyThread != null)
                   mMyThread.interrupt();
         public void run () {
              mMyThread = Thread.currentThread();
              while (true) {
                   try {
                        Thread.sleep(mWaitTime);
                        stop();
                   catch (InterruptedException ex) {
                        if (!mRunning) {
                             return;
    }

  • Lightroom encountered an error when reading from its preview cache. helping a friend..

    Im not a lightroom user. even though I have some version 4. I use acdsee pro 6. but my friend has the 5.6 CC version but has a language issue so im trying to help me. basically will guide him over the phone.
    he was editing a wedding, the computer crashed. he rebooted, lightroom came with the preview cache error. he rebooted again..same issue. he did a repair but to no avail. he tried installing an older version in parralel but no success.
    what exactly does he need to do. im not a light room user. I use PS CS6 but not LR.
    anybody can help to help him. I did read some posts and it noted about thumbnail previews and removing or erasing/renaming
    1- where is this file located please?
    2-are there many of these ? and how do I know which is the one he needs to choose?
    thank you for your help.

    See answer at Re: "Lightroom encountered and error when reading from its preview cache and needs to quit"

  • Call failed. Error: An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected.

    Hi All,
    I am trying to add a new task to a Tasks list called CATasks. The list was created via Visual Studio “Add > New Item > List” process and not by custom code. The code I am using to add a task is shown below.
    What I have noticed is if I use my code to add a Task to a Task List created by Visual studio “Add > New Item > List” process, I get an error. Error message when adding an item:
    Call failed. Error: An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected.
    But if I create the same list using custom code I don't get an error.
    Am I missing something in my custom code or is this a bug?
    I hope you can help.
    CEStar
    App.js Code:
    function createItem() {
    var call = jQuery.ajax({
    url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/?$select=Title,CurrentUser/Id&$expand=CurrentUser/Id",
    type: "GET",
    dataType: "json",
    headers: {
    Accept: "application/json;odata=verbose"
    call.done(function (data, textStatus, jqXHR) {
    var userId = data.d.CurrentUser.Id;
    addItem(userId);
    call.fail(function (jqXHR, textStatus, errorThrown) {
    failHandler(jqXHR, textStatus, errorThrown);
    function addItem(userId) {
    var due =
    new Date();
    due.setDate(due.getDate() + 7);
    var call = jQuery.ajax({
    url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getByTitle('CATasks')/Items",
    type: "POST",
    data: JSON.stringify({
    "__metadata": { type:
    "SP.Data.CATasksListItem" },
    Title: "Sample Task",
    AssignedToId: userId,
    DueDate: due
    headers: {
    Accept: "application/json;odata=verbose",
    "Content-Type":
    "application/json;odata=verbose",
    "X-RequestDigest": jQuery("#__REQUESTDIGEST").val()
    call.done(function (data, textStatus, jqXHR) {
    var div = jQuery("#message");
    div.text("Item added");
    call.fail(function (jqXHR, textStatus, errorThrown) {
    failHandler(jqXHR, textStatus, errorThrown);
    function failHandler(jqXHR, textStatus, errorThrown) {
    var response = JSON.parse(jqXHR.responseText);
    var message = response ? response.error.message.value : textStatus;
    alert("Call failed. Error: " + message);
    Create List Custom Code:
    function createList() {
    var call = jQuery.ajax({
    url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists",
    type: "POST",
    data: JSON.stringify({
    "__metadata": { type:
    "SP.List" },
    BaseTemplate: SP.ListTemplateType.tasks,
    Title: "CATasks"
    headers: {
    Accept: "application/json;odata=verbose",
    "Content-Type":
    "application/json;odata=verbose",
    "X-RequestDigest": jQuery("#__REQUESTDIGEST").val()
    call.done(function (data, textStatus, jqXHR) {
    var message = jQuery("#message");
    message.text("List added");
    call.fail(function (jqXHR, textStatus, errorThrown) {
    var response = JSON.parse(jqXHR.responseText);
    var message = response ? response.error.message.value : textStatus;
    alert("Call failed. Error: " + message);

    Hi,
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thanks 
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Lightroom encountered and error when reading from it preview cache and needs to quit

    A power outage caused my Lightroom 5.2 to shut down without closing.  When I powered back up and opened lightroom it gives me an error "Lightroom encountered and error when reading from it preview cache and needs to quit" and then it says it will try to fix it the next time it opens. I have opened it 20 times and it is not fixing it. I removed the program completely and upgraded to 5.5 AND it is still giving me the same error.  Is my catalog corrupt or something? I had it set to automatically load the most currently used catalog, so it is not allowing me to open or start a new catalog either. HELP!!!

    Search the forum, this has been answered many times.

  • I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."

    I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."  It hasn't, what should I do? Thanks Shawn (Irish Se7en) .

    Can you try to rename (not delete!) the folder named "YOUR_CATALOG_NAME Previews.lrdata" and restart Lightroom?

  • "Lightroom encountered and error when reading from its preview cache and needs to quit"

    I keep receiving this error every time I open LR, "Lightroom encountered and error when reading from its preview cache and needs to quit" and the app won't open. It said LR would try and fix this error next time I opened it but the error remains. I tried uninstalled and installing the app and the error remains.
    Any Ideas here? Is there another app that may be telling it where to look for the cache and it no longer there? I was using a ramdisk for a bit but ditched it. Not sure if that has something to do with it but it seems suspect.
    Your thoughts?
    --Kenny Brandon Wilson

    Talked to Adobe support this morning, this is their response in case anyone else is looking for help. I'm running a Windows 7 box, LR 5.6.
      Gokul: Click on start and type %appdata%, then open roaming folder.
      Edward: ok
      Gokul: Open Adobe folder.
      Gokul: Open Lightroom folder.
      Gokul: Open Lightroom folder> Preferences.
      Edward: ok
      Gokul: Rename Lightroom 5 Preferences.agprefs file as Lightroom 5 Preferences.agprefsOLD.
      Edward: OK
      Gokul: Please check if you can launch Lightroom without any error.
      Edward: it shows me a welcome screen and is asking me to select my country
      Edward: aka, register the software
      Gokul: You can skip and launch it.
      Edward: LR catalog not found
      Gokul: Please select the catalog.
      Edward: my original catalog?
      Gokul: Yes.
      Edward: testing integrity of catalog
      Edward: loaded just fine
      Gokul: Okay.
      Gokul: Please check if you can re-launch it again.
      Edward: yes, it worked!
      Gokul: Excellent!
      Gokul: Since your preferences were corrupted you were facing issue so we renamed the preferences file to reset it.
      Edward: aha....ok
    All of my import/export presets were intact along with develop user presets. I'm happy as a clam for my $10/month!

  • LR encountered an error when reading from its preview cache and needs to quit.

    I have the 30 day trial version of Lightroom.  I was able to use it for one week, but the past 1.5-2 weeks, it has been locked up and giving this error message.  How do I resolve the problem?  And how do I reset the 30 day free trial?  I would like to have time using the product, before deciding on the annual contract.
    "LR encountered an error when reading from its preview cache and needs to quit.  Lightroom will attempt to fix this problem the next time it launches."
    Thank you.

    Delete the preview cache from the Lightroom folder in your Pictures folder if you used the default placement. It has the extension .lrdata.
    You cannot reset the trial period.

  • I keep receiving this error every time I open LR, "Lightroom encountered and error when reading from its preview cache and needs to quit" and the app won't open. It said LR would try and fix this error next time I opened it but the error remains. I tried

    I keep receiving this error every time I open LR, "Lightroom encountered and error when reading from its preview cache and needs to quit" and the app won't open. It said LR would try and fix this error next time I opened it but the error remains. I tried uninstalled and installing the app and the error remains. I have windows 8. Can anyone please help???

    Use Windows Explorer to open the folder containing your catalog. The normal location is Pictures\Lightroom. Locate a folder with the extension .lrdata and delete that folder. Then you should be able to start Lightroom again, and Lightroom will begin building and new previews folder. Do not delete anything else.

  • It says Lightroom encountered an error when reading from a previous cache and needs to quit. Light room will attempt to to fix the problem the next time it launches.

    how do i fix this. It says Lightroom encountered an error when reading from a previous cache and needs to quit. Light room will attempt to to fix the problem the next time it launches.

    Have a look at this thread.
    Lightroom encountered an error when reading from its preview cache and needs to quit.  Lightroom will attempt to fix this problem the next time it launches"."

  • Error Launching LR 5: "Lightroom encountered an error when reading from its preview cache and..."

    Error Launching LR 5: "Lightroom encountered an error when reading from its preview cache and needs to quit.  Lightroom will attempt to fix this problem the next time it launches."
    I've tried renaming my catalog.lrcat file.  I've copied over my most recent backup of the catalog.lrcat and that didn't work either.

    On Mac:
    PS - to open the previews "folder" (a "package" is just a "special" folder) on Mac, ctrl-click and choose "Show package contents.." - same way you open any other special folder, like .app or .lrplugin..
    Rob

  • Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same eror message

    Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same error message.  Says Lightroom will attempt to fix the problem the next time it launches but that is not happening.  How do it fix this?

    Delete the preview cache using your operating system. It is a folder whose name ends with Previews.LRDATA. Do not delete the Lightroom catalog, which ends with .LRCAT

  • Lightroom 5 is not opening it gives me an error message there is an error when reading from its preview cache and needs to quite

    lightroom 5 is not opening it gives me an error message there is an error when reading from its preview cache and needs to quite
    it also says it will attempt to to fix the next time it opens it doesn't do anything

    Check this thread. Your Previews Cache files are corrupted.
    Re: preview cache?

  • Lightroom encountered an error when reading from its preview cache and needs to quit.  Says Lightromm will attempt to fix the problem the next time it launches, but on every re-launch I get the same message.  Any clue as to how to fix this problem?

    I recently updated my HP laptop's OS from WIndows8 to WIndows8.1.  When I went attempted to open Lightroom5 I got the following message:
    "Lightroom encountered an error when reading from its preview cache and needs to quit. "
    "Lightroom will attempt to fix the problem the next time it launches"
    Every time I relaunch I  get the same message.  I'd like to understand what might be causing the problem so I can remedy and get back to my photo editing. Any clue as to how to fix this problem would be greatly appreciated.
    JPM

    reset your preferences, Resetting (or 'Trashing') the Lightroom Preferences file - Lightroom Forums

Maybe you are looking for

  • Ideas for a database for my app

    I'm thinking about writing a small app for myself. Basically it will be a type of journal program, with some customizations to suit my needs. Basically, it would be a journal program with some slider bars or drop down boxes to help me categorize the

  • HOW TO - Insert large number of rows fast

    I have a tables A , B and C and I select some data from A, B and C using some complex criteria. Table A B and C has 10mil rows. final rows to be insert into table D is about 3mil. Currently the rows are inserted one at a time and there are 3 mil inse

  • How to assign repairs procedure to the item category relevant for repairs ?

    I would like to know the steps to set up the following in the Customizing. Thanks for your input. "The repairs procedure has Set of rules according to which actions are generated in the repair order. It is assigned in Customizing to the item categori

  • CFHTTP with https not working after server IP change (CF 10, Windows Server 2008 R2)

    Hi, We noticed that a call to https://www.googleapis.com/ via CFHTTP stopped working after our sysadmin switched the IP of our web server. The error from ColdFusion is: JSON parsing failure at character 1:'C' in Connection Failure After researching,

  • BPM Enterprise - Create domain Fails

    Hello all I am new to BPM Enterprise I am using BPM Enterprise 10.3.1.0 I am using WebLogic server 10.3 (R3) Databas Oracle 11g I run the configuration wizard to create the directory service and configure the engine. It works fine, but when it reachs