Skip to Content
author's profile photo Former Member
Former Member

Session expires very soon for Create Resource on Demand

Hi,

I am downloading data from a table using the on-demand resource streaming technique in NW 2004s in HTML format. If the report remains open for about 10 mins and i click on the DownloadURL, I am getting the "HTTP 500 Internal Server Error". Even on refreshing the browser, i can't see the result. I need to run the report again to download the data. What can I do to avoid this error?

Regards,

Smriti.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 06:07 AM

    Hi,

    Increase the time out period.

    Go to the properties of the application select redefined

    Expiration Time

    and specify a value.

    Regards

    Ayyyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The data is not huge and nor is any issue there with conversion. The data comes up correctly for sometime but after couple of minutes if one clicks on the URL, the session expires.

      For download of data i have used the framework given in an exmple at the following link:

      https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0&

      The only change is in the following method, where i am using WDResourceType as TXT

      public com.sap.tc.webdynpro.progmodel.api.IWDInputStream getTextResourceOnDemandCalc(IPrivateGenericDownload.ITextElement element)

      {

      //@@begin getTextResourceOnDemandCalc(IPrivateGenericDownload.ITextElement)

      IWDInputStream TextOnDemandStream = null;

      try {

      TextOnDemandStream =

      WDResourceFactory.createInputStream(toText(tableDataNode, tableHeaderNames,tableAttributeNames).getBytes("UTF-8"));

      } catch (UnsupportedEncodingException e) {

      wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);

      }

      initializeOnDemandTextResource();

      // Return Text on-demand input stream

      return TextOnDemandStream;

      //@@end

      }

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.