Timeout for cfstoredproc

Hi. Is there a way to set timeout for the tag
<CFSTOREDPROC>? I mean, for cfquery, it has a parameter
timeout in seconds. How about for CFSTOREDPROC?
I tried using
<cfset startproc = GetTickCount()>
<cfsetting requesttimeout = "20" />
<CFSTOREDPROC PROCEDURE="fsdfsd" DATASOURCE="sfsds">
cfprorparams here.........
</CFSTOREDPROC>
<cfset proc_execute = GetTickCount() - startproc >
proc_execute returns about 30,000 ms which is 30 s. But the
timeout needs to end it in 20 s. It seems requesttimeout doesn't
include the time it took for the stored procedure executing. That
is why I'm looking for a timeout in cfstoredproc. Any suggestions?
I don't wanna go to the Oracle server and set the timeout settings.
I want it done in Coldfusion. Thanks.

There is no timeout attribute for cfstoredproc. Since all the
processing is occurring inside the database there is no way for us
to time it out. Also, since we do not know the DBMS in advance we
could not use any DBMS specific means. If Oracle SQL lets you set
it inside the SP, that is your way to go.
RequestTimeout/page timeouts only cover the time CF is in
control of the thread.

Similar Messages

  • Setting timeout for all the web test scripts in the solution

    Hello,
    I have around 16 web test scripts (using VSTS 2010 ultimate version) in my project (in a solution). By default the timeout set for each request is 60 sec. I need to increase the timeout to 180 sec. Currently, I am clicking on each request and modifying
    the timeout parameter from the Properties window.
    Is there any common setting for timeout available which would be acting across all the scripts?
    Thanks.

    Hello,
    We only can set Timeouts for a separate request in Visual Studio Web Test. There is no way to set Timeout for all requests in VS IDE. But you can write you own logic code using
    Timeout Property in a web test plugin to set Timeout for all requests in a web test.
    About how to write a web test plugin, please see:
    How to: Create a Web Performance Test Plug-In
    Best regards,
    Amanda Zhu <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • Hi I have two questions. I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users? How is the session timeout set? Thanks, YS

     

    <i>I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users?</i>
    Um, there is no such thing as NAS4.1.
    I'm assuming that you mean NAS4.0 (maybe NAS4.0sp1?). If so, then the session timeouts are specified in the session section of the NTV configuration files.
    AFAIK, you can specify session timeouts on a per user basis.

  • Set a timeout for "read from text file"

    I Need to read from a text file on a remote pc and use the read from text file function to do this. It wotks but sometimes this pc is down causing long wait times in my vi.
    Is there a way to set a timeout for the read from text file function, or is there an other solution?
    Thank you

    You could check that the path is valid first before you attempt to read the file.  hen put the file read in a True-False case structure based on the results of the check.  You can use the function "Check if File or Folder Exists"  It checks whether a file or folder exists on disk at a specified path. This VI works with standard files and folders as well as files in LLB files.   The function is found in the File I/O --> Advanced File Functions palette.
    Tom

  • Timeout for content

    Hello
    9iAS with Portal 9.0.2 in Sun Solaris
    I am working with Oracle Reports Builder and Oracle Portal.
    I've saved my reports with JSP extension.
    So, I've made some portlets with these reports into PEOPLE_APP db provider.
    Now, when I run my pages with these portlets, some times (most of times) the following error appears instead of the report:
    Timeout for content=[any_number]
    I've already researched in OTN and Metalink forums, I've changed my zone.properties and http.conf files, but it didn't resolve my problem.
    So, what else I need to do in order to solve my problem? Any other ideas?
    Thanks.
    P.S: We've sent lots of questions with no satisfactory response from Oracle.
    We've noticed that Oracle provided extremely poor support.
    Maybe this isn't a good solution. Maybe there isn't a solution, at least in this way.
    Take a look in some fragments of messages, found in OTN and Metalink forums:
    "I've increased the timeout but that doesn't help.
    It's also very strange that after rebooting the server in Portal 3.0.8/ias1.0.2.1 my pages appeared in 10-20 seconds and now in Portal 3.0.9/ias1.0.2.2 it takes two to four minutes. And this slow performance is only while retrieving the page for the first time. The second time I retrieve a page it's there in a few seconds.
    So, I do not think it has anything to do with the provider's timeout...."
    "But maybe it's the Portal-schema itself which causes this problem. I heard someone saying that he missed indexes after a Portal-upgrade --> maybe this is my problem too, although i didn't have any error-messages in the upgrade-logfiles...."
    "Unfortunately we did not yet solve these timeout problems. Oracle is currently studying several logfiles and traces.
    At first we thought that we had the timeout problems only after starting up the server. But now we noticed that the timeouts are repeated after 5 to 7 days. For some reason it looks as if Portal is refreshing the cache at that moment, but we can not find anywhere a refreshperiod of 120 hours or so..."
    "Having wrestled with these Timeout errors for months with no satisfactory response from Oracle, I came across someone's solution yesterday and, for me, it worked immediately. Please keep in mind before doing this that it is in direct opposition to what the new "Troubleshooting Issues in Oracle9iAS Portal Architecture and Performance (3.0.9.8.2)" whitepaper states....."
    "After many many performance problems and timeouts issues which Oracle provided extremely poor support we finally learned that all of our problems where related to the same things - Oracle has not tuned this product before shipping it. Numerous little bugs and coding errors were a small part of the fixes. The real problem is that all the indexes have subscriber id as the first column which is always set to one and is not used in the majority of querys which makes these indexes useless for performance... (http://metalink.oracle.com/metalink/plsql/ml2_gui.startup)"
    "Sr. Oracle how long do I need to wait for real solutions? (http://metalink.oracle.com/metalink/plsql/ml2_gui.startup)"

    You must have registered some provider for your portlets. Go to adminstration screens of portal. Goto edit provider from there and increase the portlet timeout.
    Also change the time out value in your provider.xml for the corresponding JSPs.

  • Timeouts for Portlets

    I get timeouts for some of my portlets on a Page that I have
    built. I want to know whether increasing the Provider timeout
    will stop this problem and where does it get its default seeting
    from. If it is hard coded does it override the settings from
    zone.properties file.

    thanks candance...but I hardly believe that this is the only spot, since I am getting this weird "timeout for content", do you know what's up with that?

  • Timeout for  "new BufferedReader (new InputStreamReader (System.in));"

    BufferedReader in = new BufferedReader (new InputStreamReader (System.in));
    String message = in.readLine();  The above code waits infinitely until the user enter the data from the command line and presses enter key.
    The following code can provide a timeout to the above waiting (it works fine).
    But is there a SIMPLER WAY to provide timeout for above waiting, something like setSoTimeout(int milliseconds) method in DatagramSocket, Socket and ServerSocket classes*?*
    http://www.coderanch.com/t/232213/threads/java/implement-timeout-threads
    =>
    import java.util.Timer;  
    import java.util.TimerTask;  
    import java.io.*; 
    public class test{  
    private String str = "";  
         TimerTask task = new TimerTask(){  
                 public void run(){  
              if( str.equals("") ){  
                   System.out.println( "you input nothing. exit..." );  
                   System.exit( 0 );  
         public void getInput() throws Exception{  
              Timer timer = new Timer();  
              timer.schedule( task, 10*1000 );  
              System.out.println( "Input a string within 10 seconds: " );  
              BufferedReader in = new BufferedReader(  
                   new InputStreamReader( System.in ) );  
              str = in.readLine();  
              timer.cancel();  
              System.out.println( "you have entered: "+ str );   
         public static void main( String[] args ){  
              try{  
                   (new test()).getInput();
              }catch( Exception e ){  
                   System.out.println( e );  
              System.out.println( "main exit..." );  
    }

    No. System.in doesn't have a timeout API. Sockets do.

  • Timeout for content after installation

    Hi all!
    Running w2000, 9i DB and 9ias, I finally managed to install the portal. Took a while.
    ( used the step-by-step guide ). But now after the installation, I get the following errors when opening the /pls/portal30 homepage.
    Portal Community Portlet Timed Out
    Error: Timeout for content=15032
    Error: Timeout for content=15032
    Error: Timeout for content=15032
    Error: Timeout for content=15482
    Upon clicking the Login link, I get the following error:
    You cannot login because there is no configuration information stored in the enabler configuration table. (WWC-41439)
    I have tried to change the JServ settings to solve the timeout problem, but it doesn't help.
    my current zone.properties settings are:
    init.timeout=240000
    servlet.page.initArgs=stall=60
    servlet.page.initArgs=requesttime=240
    Have anyone seen this before?
    all help greatly appreciated.
    JServ log output are appended below.
    regards
    Rune Engseth
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=34 Starting servlet, millis=1022588257108
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=34 Starting Retrieval of Meta-Data time=1022588257108
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=34 mTimeOut=10000000 for page
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=26 username is null
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=26 content-fetcher7 starting on page
    [28/05/2002 14:17:37:199 CEST] page/DEBUG: active=26 Query String=_mode=3
    [28/05/2002 14:17:54:504 CEST] page/DEBUG: active=34 After connecting to Page Meta, millis=17396
    [28/05/2002 14:17:54:754 CEST] page/DEBUG: active=26 content-fetcher7 Finished working on page, size=null, millis=17555, id=null
    [28/05/2002 14:17:54:754 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher7
    [28/05/2002 14:17:54:754 CEST] page/DEBUG: active=34 Finishing servlet, millis=17646
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=34 Starting servlet, millis=1022588275005
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=34 Starting Retrieval of Meta-Data time=1022588275005
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=34 mTimeOut=10000000 for page
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=26 username is null
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=26 content-fetcher6 starting on page
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=26 Query String=_mode=3
    [28/05/2002 14:17:55:095 CEST] page/DEBUG: active=26 Computed character set from response "x-oracle/portal-page; charset=UTF-8" as "UTF-8"
    [28/05/2002 14:17:55:095 CEST] page/DEBUG: active=26 content-fetcher6 Before reading the data stream page, millis=90
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=26 content-fetcher6 xxx Characters=3522 page, millis=100
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 After connecting to Page Meta, millis=100
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 Processing data 3.0.8
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 Computed character set from response "x-oracle/portal-page; charset=UTF-8" as "UTF-8"
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 x-oracle-portal-expires header derives to: Wed, 29 May 2002 21:37:55 GMT
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 setting up cache output stream subID is 1
    [28/05/2002 14:17:55:185 CEST] page/DEBUG: active=26 content-fetcher6 xxx Characters=5000 page, millis=180
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=26 content-fetcher6 xxx Characters=3924 page, millis=190
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=34 Starting a Page
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=26 content-fetcher6 Finished working on page, size=12446, millis=190, id=null
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher6
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=34 mTimeOut=15000 for 11
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=34 Adding portlet to queue 11
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 12
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 12
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 13
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 13
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 14
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 14
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 16
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 16
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 17
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 17
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 18
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 18
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=26 username is PUBLIC
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=26 content-fetcher5 starting on 11
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=26 Query String=_portlet_id=1&_provider_id=807692&_node_id=80769&_reference_path=11_FAVORITES_807692&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=27 username is PUBLIC
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=27 content-fetcher4 starting on 12
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=27 Query String=_portlet_id=2&_provider_id=807696&_node_id=80769&_reference_path=12_COMPORTLET_TECHNEWS_807696&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=28 username is PUBLIC
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=28 content-fetcher3 starting on 13
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=28 Query String=_portlet_id=2&_provider_id=807692&_node_id=80769&_reference_path=13_RECENTOBJECTS_807692&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=29 username is PUBLIC
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=29 content-fetcher2 starting on 14
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=29 Query String=_portlet_id=1&_provider_id=807693&_node_id=80769&_reference_path=14_FOREIGNAPPS_807693&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=30 username is PUBLIC
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=30 content-fetcher1 starting on 16
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=30 Query String=_portlet_id=16&_provider_id=807692&_node_id=80769&_reference_path=16_CREATE+PAGES_807692&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=31 username is PUBLIC
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=31 content-fetcher0 starting on 17
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=31 Query String=_portlet_id=3&_provider_id=807697&_node_id=80769&_reference_path=17_CREATESITES_807697&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:235 CEST] page/DEBUG: active=32 content-fetcher24Closing cached HTTP connection, host/port changed
    [28/05/2002 14:17:55:235 CEST] page/DEBUG: active=32 username is PUBLIC
    [28/05/2002 14:17:55:235 CEST] page/DEBUG: active=32 content-fetcher24 starting on 18
    [28/05/2002 14:17:55:235 CEST] page/DEBUG: active=32 Query String=_portlet_id=10&_provider_id=807692&_node_id=80769&_reference_path=18_CREATEOBJECTS_807692&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 Computed character set from response "text/html; charset=UTF-8" as "UTF-8"
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 content-fetcher5 Before reading the data stream 11, millis=591
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 content-fetcher5 xxx Characters=1150 11, millis=591
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 content-fetcher5 Finished working on 11, size=1150, millis=591, id=null
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher5
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=34 Writing portlet to browser 11
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=34 Done Writing 11
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 Computed character set from response "text/html; charset=UTF-8" as "UTF-8"
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 content-fetcher24 Before reading the data stream 18, millis=3034
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 content-fetcher24 xxx Characters=2 18, millis=3034
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 content-fetcher24 Finished working on 18, size=2, millis=3034, id=null
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher24
    [28/05/2002 14:18:10:247 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 Timeout occurred, label=13 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher3
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher3
    [28/05/2002 14:18:10:247 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 Timeout occurred, label=12 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher4
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher4
    [28/05/2002 14:18:10:257 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 Timeout occurred, label=16 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher1
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher1
    [28/05/2002 14:18:10:257 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 Timeout occurred, label=14 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher2
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher2
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Writing portlet to browser 12
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Done Writing 12
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Writing portlet to browser 13
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Done Writing 13
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Writing portlet to browser 14
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Done Writing 14
    [28/05/2002 14:18:10:267 CEST] page/DEBUG: active=34 Writing portlet to browser 16
    [28/05/2002 14:18:10:267 CEST] page/DEBUG: active=34 Done Writing 16
    [28/05/2002 14:18:10:707 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=26 Timeout occurred, label=17 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher0
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher0
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Writing portlet to browser 17
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Done Writing 17
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Writing portlet to browser 18
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Done Writing 18
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Finishing servlet, millis=15702

    I've had the same problem. You can solve it by modifying the timeout-period for the provider. Surf to the portal-homepage- administration- edit provider.

  • Setting timeout for SOAP requests in a webservice client

    I am trying to set the timeout for a synchronous SOAP request sent to a Web Service deployed on weblogic 8.1 SP2. I tried setting timeout thru bindinginfo setTimeout() and also javax.xml.rpc.Stub _setProperty(). Both of them seem to be not working. I set the value to as low as 1 sec but i still donot get a timeout. Other properties/method from these two classes work fine though (like endpointaddress property in javax.xml.rpc.Stub and setVerbose flag to true in BindingInfo).
    Can someone please help.
    Thanks in Advance
    srini

    Our application calls the webservice provided by another company over the internet using the ssl. We use the wsdl url of the webservice on the destination while creating the port. If the destination is not available statement which creates the port blocks for around 4 minutes.
    I think the first network call gets the wsdl from the remote server. Thus we encounter delays before getting the stub created. How can I timeout such a calls.
    try {
    port = (new ServiceName_Impl(remoteWsdlURL)).getServiceNameSoap();
    } catch (IOException e) {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • JCO Timeout for SAP Business Connector 4.7

    Environment :
      Windows 2000, SAP Business Connector (BC) 4.7
    General Description :
      SAP BC is used to invoke BAPI's in the SAP R/3 system.
    Issue :
      Some BAPI's are taking some time to return response depending on user load. Need to provide a timeout for RFC calls invoked by SAP BC using JCO.
      Following is the entry in the rfc trace log file when BC starts up ...
    000000  -
      2005-05-12 11:07:20 EDT
    000001  [B2B-SAP.0011.0001] [JNI-LAYER] RFC.nativeSetTraceLevel()                with rc = RFC_OK   leave, [SUCCESS]
    000002  [B2B-SAP.0002.0022] Log level set to 10
    000003  [B2B-SAP.0002.0025] Registered SAP package trace with core trace
    000004  [B2B-SAP.0002.0014] Starting SAP services
    000005  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.setProperty(jco.jdsr.comp_name, SAP BC server0023 5555)
    000006  [B2B-SAP.0003.0001] Loading native libraries
    000007  [B2B-SAP.0003.0002] JCO version: 2.1.4 (2004-10-20) sapjcorfc 2.1.4 (2004-10-20)
    000008  [B2B-SAP.0003.0004] jRFCLibrary info: 2.1.4 (2004-10-20)(C:\sapbc47\Server\packages\SAP\code\libs\sapjcorfc.dll)
    000009  [B2B-SAP.0003.0003] RfcLibrary version:
    This RFC library belongs to the SAP R/3 Release *** 640,0,41  *** MT-SL
    Versions of SAP internal libraries:
      dptr:    2
      ni  :   37
      cpic:    3
      rfc :    3
    00000A  [B2B-SAP.0011.0001] MiddlewareRFC.setProperty(jco.middleware.wait_for_request_time, 1)
    00000B  [B2B-SAP.0002.0016] Loaded SAP server configurations
    00000C  [B2B-SAP.0002.0015] SAP services started
    00000D  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setAbapDebug(false), current state false
    00000E  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setTrace(true), current state false
    00000F  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setAbapDebug(false), current state false
    000010  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setMaxWaitTime(30000)
    000011  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setConnectionTimeout(600000)
    000012  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setTimeoutCheckPeriod(30000) on pool SERVER-300&USER_RFC&300&EN
    000013  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.PoolManager.addPool:
          name = SERVER-300&USER_RFC&300&EN,
          connection = USER_RFC|300|EN|AS=[11.12.7.296|00|]G0|,
          pool_size = 10,
          max_wait_time = 30000,
          pooled_connection_timeout = 600000,
          timeout_check_period = 30000
    000014  [B2B-SAP.0005.0003] Pool changed: SERVER-300&USER_RFC&300&EN containing 0 connection(s)
    007E72  [B2B-SAP.0006.0001] Executing invoke for ZBAPI_TEST_Service on SERVER-300
    007E73  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.execute (ZBAPI_TEST_Service) on handle [2]
    Questions :
       1) Is there a SAP BC configuration parameter for RFC execution timeout ??
       2) Any other way of enforcing the RFC time out ??
       3) If there is a way to set timeout on JCO.Client.execute method ??
    I really appreciate your help !!

    I have tried changes the connection timeout value but if doesnot affect the time RFC. Following is from SAP BC adapter  guide ..
    Delay (minutes) until an unused connection to a SAP
    System is timed out (default: 5)
    I think I need similar setting as that for RFC connection !!

  • Set request timeout for distributed cache

    Hi,
    Coherence provides 3 parameters we can tune for the distributed cache
    tangosol.coherence.distributed.request.timeout      The default client request timeout for distributed cache services
    tangosol.coherence.distributed.task.timeout      The default server execution timeout for distributed cache services
    tangosol.coherence.distributed.task.hung      the default time before a thread is reported as hung by distributed cache services
    It seems these timeout values are used for both system activities (node discovery, data re-balance etc.) and user activities (get, put). We would like to set the request timeout for get/put. But a low threshold like 10 ms sometimes causes the system activities to fail. Is there a way for us to separately set the timeout values? Or even is it possible to setup timeout on individual calls (like get(key, timeout))?
    -thanks

    Hi,
    not necessarily for get and put methods, but for queries, entry-processor and entry-aggregator and invocable agent sending, you can make the sent filter or aggregator or entry-processor or agent implement PriorityTask, which allows you to make QoS expectations known to Coherence. Most or all stock aggregators and entry-processors implement PriorityTask, if I correctly remember.
    For more info, look at the documentation of PriorityTask.
    Best regards,
    Robert

  • How to avoid a timeout for a long-running query

    Hello,
    in my application I insert some rows in a temporary table on submit in a PL/SQL block on the page 1. Then I read these rows from the table on the page 2. Unfortunately the insert takes too long time, because I also have to make some other SELECTs etc in that block. That's why the application hits the Apache timeout for mod_plsql and HTTP error between pages 1 and 2.
    I have found some threads about this topic in this forum. There are some suggestions with meta refresh tag etc. I understand, that I have to implement some kind of processing page between the pages 1 and 2 to show a waiting message etc. But I could not find any ready "cook book" for such implementation.
    Could you please help me?
    Thanks in advance
    Andrej
    P.S. This application don't use AJAX code, so I would prefer a solution without AJAX.

    Hello Chris,
    I am not sure, how to implement this approach. So I would start on the page 1 a job (dbms_scheduler or dbms_job), which would create a temporary table in the background. The application should branch to the page 3 with a message "Please wait...". I have to poll the results of the job and branch to the page 2, when the job is ready and I can select from the created temporary table. So far I like this way very much.
    Could you please give me more details about the page 3 (polling page)? I have the following questions now:
    1. I assume I have to set the meta refresh tag on this page. But in which PL/SQL block can I poll for the running job (on load process?).
    2. How can I branch from this page to another page? If I only use refresh tag, how can I branch to another page only on the special condition (ready flag)?
    Thanks in advance
    Andrej

  • Set TimeOut for SwingWorker

    nice day,
    1/ how can I get real Html size in kB with intention to set as maxValue to ProgressMonitor
    2/ how can I set/synchronize current valueOfDownLoadedHtml in kB to ProgressMonitor throught downloading Html content
    3/ how can I set TimeOut for this Tast, (maybe ... could I use Timer)
    import java.awt.BorderLayout;
    import java.awt.Insets;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.URL;
    import java.net.URLConnection;
    import java.nio.charset.Charset;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.ProgressMonitor;
    import javax.swing.SwingWorker;
    public class ProgressMonitorDemo extends JPanel implements ActionListener, PropertyChangeListener {
        private static final long serialVersionUID = 1L;
        private ProgressMonitor progressMonitor;
        private JButton startButton;
        private JTextArea taskOutput;
        private Task task;
        private int sizeIn_kB = 0;
        class Task extends SwingWorker<Void, Void> {
            private String str;
            int progress = 0;
            public Task(String str) {
                this.str = str;
            @Override
            public Void doInBackground() {
                if (str.equals("Loads")) {
                    addBackgroundLoadsData();
                    setProgress(0);
                    while (progress < sizeIn_kB && !isCancelled()) {
                        progress += sizeIn_kB;
                        setProgress(Math.min(progress, sizeIn_kB));
                return null;
            @Override
            public void done() {
                if (str.equals("Loads")) {
                    Toolkit.getDefaultToolkit().beep();
                    startButton.setEnabled(true);
                    progressMonitor.setProgress(0);
        public void addBackgroundLoadsData() {
            InputStream in = null;
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            String charset ="";
            try {
                String UrlString = "http://java.sun.com/";
                URL url = new URL(UrlString);
                URLConnection conn = url.openConnection();
                sizeIn_kB = conn.getContentLength();
                charset = conn.getContentEncoding();
                conn.setRequestProperty("Accept-Charset", charset);
                in = conn.getInputStream();
                int len;
                byte[] buf = new byte[1024];
                while ((len = in.read(buf)) > 0) {
                    bos.write(buf, 0, len);
                in.close();
                String charEncoding = Charset.defaultCharset().name();
                //String fileEncoding = System.getProperty("file.encoding");
                //System.out.println("File Encoding: " + fileEncoding);
                //System.out.println("Char Encoding: " + charEncoding);
                //System.out.println("Char Encoding: " + Charset.availableCharsets());
                charEncoding = "cp1250";
                String groupImport = new String(bos.toByteArray(), charEncoding);
                conn = null;
            } catch (IOException ioException) {
                ioException.printStackTrace();
                JOptionPane.showMessageDialog(null, ioException.getMessage(), "Htlm error", JOptionPane.ERROR_MESSAGE);
            } catch (StringIndexOutOfBoundsException ioException) {
                ioException.printStackTrace();
                JOptionPane.showMessageDialog(null, ioException.getMessage(), "InputStream error", JOptionPane.ERROR_MESSAGE);
        public ProgressMonitorDemo() {
            super(new BorderLayout());
            startButton = new JButton("Start");
            startButton.setActionCommand("start");
            startButton.addActionListener(this);
            taskOutput = new JTextArea(5, 20);
            taskOutput.setMargin(new Insets(5, 5, 5, 5));
            taskOutput.setEditable(false);
            add(startButton, BorderLayout.PAGE_START);
            add(new JScrollPane(taskOutput), BorderLayout.CENTER);
            setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
        @Override
        public void actionPerformed(ActionEvent evt) {
            progressMonitor = new ProgressMonitor(ProgressMonitorDemo.this, "Running a Long Task", "", 0, 100);
            progressMonitor.setProgress(0);
            task = new Task("Loads");
            task.addPropertyChangeListener(this);
            task.execute();
            startButton.setEnabled(false);
        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            if ("progress" == null ? evt.getPropertyName() == null : "progress".equals(evt.getPropertyName())) {
                int progress = (Integer) evt.getNewValue();
                progressMonitor.setProgress(progress);
                String message = String.format("Completed %d%%.\n", progress);
                progressMonitor.setNote(message);
                taskOutput.append(message);
                if (progressMonitor.isCanceled() || task.isDone()) {
                    Toolkit.getDefaultToolkit().beep();
                    if (progressMonitor.isCanceled()) {
                        task.cancel(true);
                        taskOutput.append("Task canceled.\n");
                    } else {
                        taskOutput.append("Task completed.\n");
                    startButton.setEnabled(true);
        private static void createAndShowGUI() {
            JFrame frame = new JFrame("ProgressMonitorDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JComponent newContentPane = new ProgressMonitorDemo();
            newContentPane.setOpaque(true);
            frame.setContentPane(newContentPane);
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    See the session-descriptor element of weblogic.xml deployment descriptor:
    http://download.oracle.com/docs/cd/E21764_01/web.1111/e13712/weblogic_xml.htm#i1071981

  • Set timeout for completion of each thread

    i have a requirement where i need to start n threads and set timeout for completion of each thread.
    if the thread is not executed successfully(because of timeout ) i have to enter in audit table that it failed because of timeout
    if executed successfully update audit table with success.
    can some one give me solution for this using ThreadPoolExecutor available jdk1.5

    Add a scheduled task to time out the task (when it would time out). Keep the Future and cancel it if the task completes successfully.
    final Future future = executor.schedule(new TimeoutTask(), timeoutMS, TimeUnit.MILLI_SECONDS);
    executor.execute(new Runnable() {
      public void run() {
          try {
             task.run();
          } finally {
             future.cancel(true);
    });

  • Set timeout for dynamic web service call in wls

    Hi,
    I have a dynamic client using Call interface to invoke 3rd party web service. How can I set the timeout for the call? I know there is a property to set for static client.
    Thanks

    Have you checked out the stub properties:
    weblogic.wsee.transport.connection.timeout
    weblogic.wsee.transport.read.timeout
    http://edocs.beasys.com/wls/docs92/webserv/client.html#wp228628

Maybe you are looking for

  • Backing up and restoring site definitions

    Losing your site definitions in Dreamweaver can be a disaster, but it does happen sometimes. The best way to prepare for such an eventuality is to back up your site definitions on a regular basis. Creating a backup You can back up all your site defin

  • My MacBook turns on by itself as soon as I attach the AC adaptor

    Hi guys! My black MacBook has developed a strange self consciousness... Each time I attach the AC cord, and even with lid still closed (!!!), it turns on by itself, then a black screen with something like "non system disk, replace and hit a key" appe

  • Download to excel - class not found error

    hi all i m trying to provide a feature in my project called download to excel. I have written the code and referenced appropriate jars still on deployment i get the no class def found error. Pls help. regards vln

  • Problem use c for API

    Hi i use berkeley db .my operating system is unix freebsd and c for api. i use gcc compiler for compile program. my program is like this #include <db.h> #include <stdio.h> int main() DB *dbp ; u_int32_t flags; int ret; ret =db_create(&dbp, NULL,0); /

  • Export Workspace Batch Scheduler

    Hi, I was wondering if there is anyway to export the log information from the Workspace Batch Scheduler.  I know you can export batches for command line scheduling, but I'm wondering if there was a way to export the actual information from the batch