Server response late and redirecting to user defined page

Hi
Can any body tell how to know server response time
if perticular time reached it should redirect to userdefined page saying that server is busy pls try after some time
here i am using iplanet web server and ias application server

There is not much you can do if the server is too busy to handle your request. You may be able to configure the server to return a custom page.
In the case of a long running process you can do something the following
package com.test;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ServletTimeTest extends HttpServlet  {
     public void doGet(HttpServletRequest req, HttpServletResponse res) {
          try {
               //Create object to get results of sub-thread
               ServletTimeTestResults resultObject = new ServletTimeTestResults();
               //Create sub-thread
               Thread servletTimeTestThread =
                    new Thread(
                              new ServletTimeTestThread(
                                        resultObject, Thread.currentThread()));
               //start sub-thread
               servletTimeTestThread.start();
               //Wait ten seconds for sub-thread to finish processing
               try {
                    Thread.sleep(10000);
               } catch (InterruptedException ie) {
                    //sub-thread has finished in less than 10 seconds
                    System.out.println("Servlet sleep interrupted");
               //set the flag to make sure sub-thread stops processing
               resultObject.setStopProcessing(true);
               //check if sub-thread completed processing sucessfully
               if (resultObject.isProcessingComplete()) {
                    //if sub-thread did finish processing then return results from
                    //resultObject here.
                    System.out.println("Processing completed");
               } else {
                    //if sub-thread did not finish processing then redirect to
                    //error page here.
                    System.out.println("Processing IS NOT completed");
          } catch (Exception e) {
               e.printStackTrace();
package com.test;
* sub-processing thread.
* @author Tolmke
public class ServletTimeTestThread implements Runnable {
     //Object to facilitate inter-thread communication
     ServletTimeTestResults resultObject;
     //Callback handle to servlet thread
     Thread mainThread;
     public ServletTimeTestThread(
               ServletTimeTestResults resultObject,
               Thread mainThread) {
          this.resultObject = resultObject;
          this.mainThread = mainThread;
     public void run() {
          boolean wait = true;
          int count = 0;
          //main processing thread. Need to periodically check resultObject.isStopProcessing()
          //to determine if main thread wants to terninate sub-processing
          while ((wait) && (this.resultObject.isStopProcessing() == false)) {
               try {
                    Thread.sleep(1000);
                    System.out.println("In proecessing thread...................");
                    //count can be set to values greater or less than 10 seconds to test
                    //various scenarios
                    if (count++ > 3) {
                         wait = false;
               } catch (InterruptedException ie) {
                    ie.printStackTrace();
          }//End while
          //If servlet thread did not set falg indicating timed out then set
          //processing successfully completed lag.
          if (this.resultObject.isStopProcessing() == false) {
               this.resultObject.setProcessingComplete(true);
          //if servlet thread has not timed out then interrupt the
          //the thread from th esleep state.
         this.mainThread.interrupt();
     }//End run method
}//End class ServletTimeTestThread
package com.test;
* Object to facilitate communication between main servlet thread
* and a processing sub-thread.
* @author Tolmke
public class ServletTimeTestResults {
     //Flag indicating sucessful completion of processing
     private boolean processingComplete;
     //Flag indicating that sub-process should stop processing
     private boolean stopProcessing;
     public boolean isProcessingComplete() {
          return processingComplete;
     public void setProcessingComplete(boolean processingComplete) {
          this.processingComplete = processingComplete;
     public boolean isStopProcessing() {
          return stopProcessing;
     public void setStopProcessing(boolean stopProcessing) {
          this.stopProcessing = stopProcessing;
}

Similar Messages

  • Photoshop CS5 quits when asked to print an "user defined page"

    I own an iMac desktop and after updating to Yosemite, when trying to print with PS CS5 and image with "user defined" sizes,in my HP Officejet 6000, PS freezes and quits abruptly.  Erstwhile I used to do this w/o any problem.   Any ideas?  Thank you!

    Hi RaphaelJB,
    With such a specific symptom it's implied that you can print with other apps and with PS CS5 using regular size paper.
    The main points from this article I'd suggest are see if there are printer driver updates and try resetting the printing system.
    OS X Yosemite: Printing troubleshooting
    Regards,
    Nubz

  • PrintToPrinter print User defined page uncorrect

    Hi Experts.
    I have a CR2008 rpt file and using VS2008 to PrintToPrinter this rpt.
    This CR2008 set user-defined page and when I am using this PrintToPrinter method, I got a A4 page size in the Microsoft XPS Document Writer (not my user-defined page size).
    I'd like to know why this method can't support user-defined page size

    Hi RaphaelJB,
    With such a specific symptom it's implied that you can print with other apps and with PS CS5 using regular size paper.
    The main points from this article I'd suggest are see if there are printer driver updates and try resetting the printing system.
    OS X Yosemite: Printing troubleshooting
    Regards,
    Nubz

  • How do you add a user defined page size for a "standard" user

    I have been trying to add a User Defined Page size in the Adobe PDF Properties with a "Standard" AD account.  When I click add/modify, no error shows up on the screen but the page size does not show up in the drop down menu.  The only accounts that can add page sizes are "Admin" accounts, as far as I know.  Does anyone know a workaround?  PLEASE HELP!!!

    Firefox unable to store your password without username.
    *https://support.mozilla.org/en-US/kb/password-manager-remember-delete-change-passwords

  • When I want to DL an app and after I enter my ID and password , DL starts . But then a message shows up and want me to verify my payment info. And redirects me to that page . Every thing I do on that page it doesn't work and then I can't DL.

    When I want to DL an app and after I enter my ID and password , DL starts . But then a message shows up and want me to verify my payment info. And redirects me to that page . Every thing I do on that page it doesn't work and then I can't DL.

    Do this on your iTunes program on the computer instead. Your Credit Card used on the profile is probably maxed.

  • Find and Replace with User Defined Variable

    I am in the process of converting some legacy help content to RoboHelp HTML 9 in order to give it some more features and customization for our clients. I have been taking advantage of User Defined Variables in order to customize the content. Up to this point I have been manually going through each topic and replacing each instance of a word ("statements" for example) with a user defined variable saying the same thing but with the possibility of being changed later should the customer want to. Though we only have about 200 topics, this is still relatively time-consuming and I would like to automate this as much as possible.
    Is there any way to find and replace content with a User Defined Variable?

    Hi there
    If you open the Script Explorer pod I believe one of the sample scripts is a "UDV Converter" script. Perhaps you could give that a try.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Recon and provisioning of user-defined object class ICF Active Directory

    I have followed the documentation instructions for reconciliation of a user-defined object class in the ICF Active Directory connector. I am using OIM 11gR2 with the ICF Active Directory 11.1.1.5 connector patched to 11.1.1.5.0A. The procedure states to create the new object class in AD and then change the objectClass value in the Lookup.Configuration.ActiveDirectory lookup. In my case I am using the existing ObjectClass of contact, rather than a new object class. Just for completeness I am using a clone of the AD User Resource Object which I call AD User Contact and so my lookup name is Lookup.Configuration.ActiveDirCon.
    When I changed the ObjectClass from User to Contact, and ran the Active DirCon User Target Recon scheduled job, with Object Type also = contact. The first issue I noticed was that the connector wanted a different set of lookups, which is not in the documentation. It is looking for a lookup in my Configuration lookup where code key=contact Configuration Lookup (which I should have expected since there are code keys for User, Group, and organizationalUnit). I added a line to the lookup where code key=contact Configuration Lookup and the Decode=Lookup.ActiveDirCon.CM.Configuration and then I created a new lookup by that name, assigning the 5 values to be the Lookup.ActiveDirCon.UM.xxx lookups. I did not see any need to create a new set of Lookup.ActiveDirCon.CM.xxx lookups with the exact same values.
    I re-ran the scheduled job and it ran successfully, but did not generate any Recon Events, even though I had objects in the OU and I have that same OU in the Lookup.ActiveDirCon.OrganizationalUnits lookup (from the Org Lookup Recon). Everything looks good but getting no results. Looked at the log file from the ConnectorServer and it is building the query properly and executing it properly with the correct syntax, getting no errors, but the SearchAndReturnObjects method is returning zero results.
    Looking to see if anyone has successfully reconciled in user-defined or other non-User objectClass objects from Active Directory, and if so, can you provide Lookup configuration and Connector Server information so I can troubleshoot.
    I resolved this issue by changing the recon lookups to a blank lookup called Lookup.ActiveDirCon.CM.ReconAttrMap and only added in the parameters that are used by a Contact object. Only populate the ReconAttrMap with parameters that exist for the custom object.
    Edited by: Keith Smith AptecLLC on Mar 27, 2013 6:31 AM

    Oracle Support answered this question via SR

  • SQL Server 2012 installation and to default user database files to a particular path

    Hi, I am working on SQL Server 2012 installation on one of our test boxes and I would like to configure the sql server install binaries and all the system databases but for tempdb to be in my C and tempdb on a different drive and once all this is set up,
    whenever a developer creates a new database without specifying the path for the mdf & ldf files. They should be defaulted to a path like "D:/Data file" & "D:/Log file" for instance instead of being created on the C drive.
    Thanks in advance.........
    Ione

    Hi,
    You can of course set default location of database through management Studio please refer below link. Once you change default location even if you do not specify location it would take default one.
    http://sqlandme.com/2013/03/18/sql-server-changing-default-database-location-for-server/
    I would advise you not to keep files on C drive let it be dedicated system drive also its quite possible that SQL server service account would not have privilege on C drive so after you move tempdb SQL server would not come online as tempdb files cannot
    be created . Tempdb is always recreated after SQL Server starts so you just need to change location once using Alter database command
    See example mentioned in below link for how to do that
    http://msdn.microsoft.com/en-us/library/ms345408%28SQL.90%29.aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • 9144 with custom FPGA and SGL EtherCAT User-defined Variables?

    Hi,
    I currently have a small instrument driver (rs485) running on a 9144 chassis. The output values are communicated to the EtherCAT Master using FXP numbers. I would like to switch these FXP to SGL since I upgraded to LV 2012 SP1 with FPGA now supporting SGL numbers.
    Is this possible? I tried several times to create the SGL User-defined Variables in the project, but the date type is grayed out.
    Greetings from Munich,
    Götz
    Solved!
    Go to Solution.

    Unfortunately, SGL is not a supported data type for communication to/from a 9144. The available data types for user-defined I/O variables are:
    * Fixed Point
    * Signed Integers(Int8, Int16, Int32, Int64)
    * Unsigned Integers (UInt8, UInt16, UInt32, UInt64)
    * U32 Bit Field
    * Boolean
    More information regarding user-defined I/O variables can be found at:
    Programming EtherCAT I/O With FPGA Intelligence: Differences in the LabVIEW FPGA Programming API
    http://www.ni.com/white-paper/10618/en#toc4

  • [b]Printing User Defined Page NO Sequence[/b]

    Hi,
    I have report which has atleast 100 pages which is printed on weekly bases , The Problem is that before running this report user want to key in desired starting page No e.g if user key in in the parameter 5 then report should be started from page 5 to onward 5..6..7..8.. till end of report,similiarly if user key in 9 then report should be started from page 9 to onward 10..11..12..13.. till end of report.I have tried my best but enable to find its solution yet.I have tried format trigger but it set once the page No and set for all pages with the same number.
    Declare
    page_num number:=:pg;
    Begin
    srw.get_page_num(page_num);
    srw.set_field_num(0,page_num+1);
    End;
    It is too urgent if anybody has this solution I would be
    obliged.
    Thank You
    Khurram Siddiqui

    I do not know if this solution will exactly suit your purpose . You can use the pagestreaming feature of reports . Give 'pagestream=yes' in command line or url . You get a navigation enabled set of pages where user can enter the page number and go to the desired page .
    Please refer docs to know more about this feature .
    Thanks
    The Oracle Reports Team

  • Webform submit not sending info and redirecting to blank white page?

    On this page:
    http://www.creativeimage.com/hire-us.html
    We were able to send the form and collect the information on the back-end with relatively no problem, aside from slow loading time on all our computers. After a few times, we find we're not able to sucessfully submit the form. We get redirected to a blank page and no information is collected on the back end. I'm thinking it has to do with our IP address, but it's weird that there's no mention of an error, and weird because we have the captcha set. Is anyone else having this problem? Or rather, does anyone know what's going on?

    Hi,
    It could be some sort of conflict within the custom form and it's form action or scripts within the template. 
    I recommend creating a new blank page (w/o template) and inserting the form fresh to see if working.  This can help pinpoint what might be causing this and where. 
    Kind regards,
    -Sidney

  • Soa 11g and jdeveloper 11g user defined extension function

    I have developed a set of extension functions,
    in design time for the previous version, I can put the deployment file (jar file) that contains the extension functions in the %JDEV_HOME%\jdev\lib\ext directory and jdeveloper recognizes the set of extension functions if previously i have defined an xml descriptor with every one of the functions i need to include in the panel.
    Now, with the jdeveloper 11g i have tried the same, and jdev recognizes the functions, but when I am going to test one transformation that includes the extension function, the parser is not founding the jar file; the error (in spanish) is:
    XML-22045: (Error) Error de funcion de extension: No se ha encontrado la clase '
    Falta la clase: aac._shared.extensions.xsl.XmlW3cDomFunctions
    Clase Dependiente: oracle.xml.xpath.XSLExtFunctions
    Cargador: main:11.0
    Origen del Codigo: /C:/.extracted/jdevstudio1111/lib/xmlparserv2.jar
    Configuraci≤n: system property PCLMain.createExtensionManagerLoader()
    Esta carga se ha iniciado en main:11.0 mediante el mΘtodo loadClass().
    La clase que falta no esta disponible desde ningun origen de codigo o cargador del sistema.
    my dude is:
    + at design time, where can I put the jars with extension functions to make one transformation function used in a mediator component can works fine?
    + at runtime, where can I put those libraries? (in the previous version, we can put this libraries in the %APP_SERVER%\j2ee\home\applib, or create one shared library and reference it in the oracle.bpel.common shared library declaration of the server.xml configuration file).

    Hi,
    please post this question to the JDeveloper 11 forum. Please translate the messages into English as well
    JDeveloper and OC4J 11g Technology Preview
    Frank

  • Mac OS X Server File Shares and Active Directory Users

    About ready to pull my hair out on this one...
    We have a department that only uses Macs. At the moment, it's a hodgepodge of different setups. We were able to convince the department to standardize, and purchase a Mac Mini Server. To keep things a bit simpler, we are setting up their department shares on the server as well.
    To make my life simpler (or so I thought...) I decided to bind the OS X Server to our AD, and use the AD users/groups to allow access to the shares. The OS X Server app lists all of our AD user and groups, and I can apply them to the shares, however, when we try to access the share, it fails.
    I don't think the server is talking to our AD correctly.
    I can login to the Mac Server with my network account, my network account works for accessing Server.app, but nothing I've tried will allow our Mac or Windows clients to access the shares with the AD credentials. The log file comes up with:
    mccsrvrmac.mcc.local smbd[441]: check_account - [7]: [permission denied] pam_acct_mgmt
    Also seeing this:
    mccsrvrmac.mcc.local kdc[57]: Asked for LKDC, but there is none
    A bit of background: We added this Mac to the domain once before, realized that the HDDs weren't setup in a RAID config, so wiped it and reinstalled. I did remove the computer account before rebinding.
    Any help is appreciated!

    I figured this out. In Mountain Lion Server, it doesn't matter if you give the user rights to a shared file or folder, if the user doesn't have access the File Sharing service, they can't get it. I had to find the specific users in the Server app under the AD in the Users tab, and give them rights to the File Sharing service. I think you can do this for a whole AD group as well, but I haven't tried.

  • Determinations Server - response with and without decision report

    I'm trying to solve a problem where a decision report will be needed sometimes but not all the time.
    Is there a way to have to have the determinations server respond with 2 different responses for 1 request?, or send back the standard response without decision reports and write a response with decision reports to a log?
    The concern is that the decision reports will slow the processing of the entire application.

    Hi. It may not be exactly what you are looking for perhaps following link from developer's guide could help.
    Oracle Policy Automation Developer's Guide
    Process multiple determinations within the same Assess request
    The Determinations Server is able to process multiple determinations within the same Assess request. To do this you must:
    Design your rulebase to concurrently determine multiple outcomes.
    At runtime, construct your request to send all the entities you want to reason on, and all the outcomes that you want.
    Rulebase Design
    You can design a rulebase in such a way that it can make multiple determinations concurrently if the determinations are attributes or, less commonly, inferred relationships belonging to a non-singleton (and not the global) entity.
    Once the outcomes belong to an entity, it is possible to create multiple entities and infer the values for all entities at once.

  • How do I move some program files and redirect my user files from ssd C to drive E?

    Brand new HP Phoenix  h9-1183, Windows 7 64 bit SSD only 99.2 GB, data drive E: 2 TB.
    When tried to transfer files from old HP desktop to new Phoenix, I got the message that there was not enough space. When I took a closer look, I was surprised that only 99.0GB was assigned to the OS. I have been trying to figure out how to remove some of the programs that came with the computer (i.e. DVD Maker, Windows mail, Cyberlink Power DVd, Power2go etc.) from the C drive onto the E drive where there is more space. Also if I could move my library (documents, pictures, music, vide etc.) to E  drive that would give the OS drive more space for updates etc. I have been searching for the how to, but have discovered that the program files and user files which contain the library etc. should not be moved according to Microsoft and if they are they won't cover any service. Tried to contact them with my problem (and it seems this will become a bigger problem as more and more of the newer computers containing ssds are going this way with little space in the C: SSD) and I got the message to contact my computer manufacturer. Tried seeing on the HP help and support if there is a solution for this and saw nothing. So here I am with a new computer and I've spent a couple of weeks now trying to set things up and searching for a way to allow more hard drive space. I found this site ( http://www.youtube.com/watch?v=kKTNmoq2zXI&feature=fvwrel) on how to move user files from C onto new drive, but it only works for 1 folder (I moved my video folder and then when I tried to move my pictures, it got messed up and I had to do a restore. There must be a simple way to fix this; otherwise this computer is useless. Thanks for any help or suggestions!!
    Charlotte

    Hi,
    That's right, this is the installation process:
    C. Install and activate Norton Internet Security
    You can install and activate Norton from a CD or a downloaded file:If you do not want to join Norton Community Watch, uncheck the option. By default, this option is checked.
    Insert the CD into your computer's CD-ROM drive (if you are installing from a download, double-click the file you downloaded and proceed to step 2).
    Place a check in the box next to Norton Security Software, and click Next.
    When the installation is complete, find and open the Norton Security Software folder on your desktop.
    Double-click on the Install Norton Internet Security.exe icon to begin the installation.
    Click OK to begin the installation, or click Install Options to change where Norton installs, and then click Browse to locate the new location. ........
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • Is Apple going to fix the bugs?

    What a mess OS X Mavericks is.  I think the Apple Engineers got their chopsticks crossed. I was hoping the Apple Mac Pro would be different than Windows problems, guess I was wrong.  There are so many things wrong with this last upgrade!  I wish ther

  • New bookmarks are saving in the place of last deleted bookmark. How can I fix this?

    Hi, Newly saved bookmarks are showing up farther up the drop down window where I recently deleted bookmarks. How do get Safari to revert back to normal? Thanks.

  • Text Variable not working correctly

    In CS3 I could create a TEMPLATE (.indt) with the "creation date" text variable in it and when I opened it it would have the CURRENT DATE (the date the new file was generated from the template) . In CS4 it opens with the date the TEMPLATE was MADE an

  • Disputer suddenly stop after copy SQL data

    i had a problem doing a R3 copy from an old server to a new server. The old server currently running on 4.7x200 sr1 and sql 2000(SP3) on window 2000 server and the new server are using window 2003 server with the same SAP version (i want the new serv

  • Flash Pie Chart

    I have just created my first flash pie chart, previously the application was using svg charts. The pie chart appears on the page but there are no colours in the chart. Is there another step I need to complete Gus