Page keeps looping through processRequest method

I am not sure why this is happening, but whenever I added a pageContext.setForwardUrl call to my process request method it winds up in an endless loop. If I put a single breakpoint in this method and comment out that last line it will only stop there once and I can load the page. As soon as I uncomment it and run the page it hits my breakpoint 20+ times and I finally get a javax.servlet.ServletException. Any ideas as to what may be causing this? This is the first time I have tried this and it seems pretty straight-forward.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
int custAcctId = 0; //14041;
int custAcctSite = 0; //1440;
String siteUseCode = pageContext.getParameter("SiteUseCodeMeaning");
String custAccountId = pageContext.getParameter("CustAccountId");
String custAcctSiteId = pageContext.getParameter("CustAcctSiteId");
String tabName = pageContext.getParameter("TabName");
String lclnLevelCode = "Site";
if (tabName == null)
tabName = "Credit";
if (siteUseCode != null && siteUseCode.indexOf("Ship") > 0){
lclnLevelCode = "Ship-to";
} else if(siteUseCode != null && siteUseCode.indexOf("Bill") > 0){
lclnLevelCode = "Bill-to";
if (custAcctSiteId != null && !"".equals(custAcctSiteId))
custAcctSite = Integer.parseInt(custAcctSiteId);
if (custAccountId != null && !"".equals(custAccountId))
custAcctId = Integer.parseInt(custAccountId);
LocalizationExtAMImpl amExt = (LocalizationExtAMImpl )pageContext.getApplicationModule(webBean);
amExt.initCustSiteTabs( lclnLevelCode, tabName, "US", custAcctId, custAcctSite);
amExt.initCustSiteInfo(custAcctId);
amExt.initSiteTabInfo(lclnLevelCode);
// forward to the correct localization page based on the site usage
String fwdUrl = null;
if ("Bill-to".equalsIgnoreCase(lclnLevelCode)){
fwdUrl = "OA.jsp?page=/oracle/apps/ar/cusstd/localizationExt/webui/BillToLocalizationsPG";
} else if ("Ship-to".equalsIgnoreCase(lclnLevelCode)){
fwdUrl = "OA.jsp?page=/oracle/apps/ar/cusstd/localizationExt/webui/ShipToLocalizationsPG";
} else {
fwdUrl = "OA.jsp?page=/oracle/apps/ar/cusstd/localizationExt/webui/SiteLocalizationsPG";
pageContext.setForwardURL(fwdUrl,null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,true,OAWebBeanConstants.ADD_BREAD_CRUMB_YES,OAWebBeanConstants.IGNORE_MESSAGES);
Thanks,
Greg

I got it working:
All three pages share a single controller class and it was a circular reference. I added some logic to add a parameter to my forwardURL that allowed me to check for it and break out of that loop. Your suggestion pointed me in the right direction, thanks!
Greg

Similar Messages

  • Reports included in the page keep looping without retrieving any results

    We are facing an issue related to the behaviour of Siebel Analytics when more than 1 answer are included in a dashboard page. When a report is generated, the other reports included in the page keep looping without retrieving any results, but if I manually click on 'cancel' link, the reports successfully appear with consistent data. This behaviour is not stable since sometimes the page works fine, sometimes not, but it's not clear what it depends on. Can anybody please let me know if this behaviour is a known bug.

    Hi Deb,
    Could you please explain me in more detail?
    The problem is we are able to see the old reports that we were already moved into Q environment. The newly moved 5 reports are giving this error message.
    Please help
    Thanks
    Sri

  • Problem passing a value to a loop through a method?

    I am simply trying to design a program that will offer a pop up menu and prompt the user to enter a digit 1-4. If the user enters a 1,2, or 3 I want the menu to pop up again. If the user enters a 4, I want the program to end.
    I have created stubs for a few of these methods. However, I want to have a working version of the menu method.
    When I run the program the program executes the start_program method stub and then the menu method executes and up pops the menu. However, when I type in a number, the menu disappears never to return...Unless I type in "4" and then the menu pops up again and upon typing "4" again, the program exits.
    I am not sure if I have a poorly constructed loop or if I am improperly returning the value of the variable "number" back to the main method. Here is my code...I appreciate any and all help. Thanks,Ed
    package YMCA;
    import javax.swing.JOptionPane;
    public class YMCA {
    * This is the first phase of our YMCA interface. This phase utilizes a menu and various methods.
    public static void main(String[] args) {
    int number;
    //call start_program method
    start_program();
    //call menu method
    number = menu();
    //while loop to process user number input
    while (number != 4);
    {if (number == 1)
    //call modify_member method
    modify_member();
    else if (number == 2)
    //call modify_registration method
    modify_registration();
    else if (number == 3)
    // call report method
    report();
    //in case of error
    else
    System.out.println("Enter a valid selection");
    //send control back to menu method
    menu();
    //call exit_program method
    exit_program();
    System.exit(0);
    //start_program method
    public static void start_program(){
    System.out.println ("The program has begun");
    //menu method
    public static int menu(){
    String menuOutput, snumber;
    int number;
    menuOutput = "Moon Area YMCA \n" +
    "\n" +
    "1. Add/Modify Member Information \n" +
    "2. Add/Modify Class Registrations \n" +
    "3. Report Section \n" +
    "4. Exit the System \n" +
    "\n" +
    "Please Make Your Selection> \n";
    snumber = JOptionPane.showInputDialog(null, menuOutput);
    //convert string to integer
    number = Integer.parseInt(snumber);
    return number;}
    //modify_member method
    public static void modify_member(){
    System.out.println("Member Information method has been executed.");
    //modify_registration method
    public static void modify_registration(){
    System.out.println("The class registrations method has been executed.");
    //report method
    public static void report(){
    System.out.println("The report method has been executed");
    //exit_program method
    public static void exit_program(){
    System.out.println("The exit program has been executed");
    }

    hi
    here is your working program
    import javax.swing.JOptionPane;
    public class YMCA {
    * This is the first phase of our YMCA interface. This phase utilizes a menu and various methods.
    public static void main(String[] args) {
    int number;
    //call start_program method
    start_program();
    //call menu method
    number = menu();
    //while loop to process user number input
    while (number != 4)
    {if (number == 1)
    //call modify_member method
    modify_member();
    else if (number == 2)
    //call modify_registration method
    modify_registration();
    else if (number == 3)
    // call report method
    report();
    //in case of error
    else
    System.out.println("Enter a valid selection");
    //send control back to menu method
    menu();
    //call exit_program method
    exit_program();
    System.exit(0);
    //start_program method
    public static void start_program(){
    System.out.println ("The program has begun");
    //menu method
    public static int menu(){
    String menuOutput, snumber;
    int number;
    menuOutput = "Moon Area YMCA \n" +
    "\n" +
    "1. Add/Modify Member Information \n" +
    "2. Add/Modify Class Registrations \n" +
    "3. Report Section \n" +
    "4. Exit the System \n" +
    "\n" +
    "Please Make Your Selection> \n";
    snumber = JOptionPane.showInputDialog(null, menuOutput);
    //convert string to integer
    number = Integer.parseInt(snumber);
    return number;}
    //modify_member method
    public static void modify_member(){
    System.out.println("Member Information method has been executed.");
    //modify_registration method
    public static void modify_registration(){
    System.out.println("The class registrations method has been executed.");
    //report method
    public static void report(){
    System.out.println("The report method has been executed");
    //exit_program method
    public static void exit_program(){
    System.out.println("The exit program has been executed");
    }

  • How Do I get SSIS To Stop Looping Through Excel Rows After Last Populated Record?

    I have a package that loops through many excel files. Each Excel File has about 5000 rows. My problem is that after the 5000th row SSIS keeps looping through all the rows after the last row. There are nothing in these rows. This is a complete bottleneck
    of my package because it takes forever when doing this. How do I stop this?
    Thanks

    Another way is to specify the range in select statement which can be done in two ways
    http://getsetsql.blogspot.in/2012/01/using-ssis-load-data-to-excel-sheet-at.html
    http://sqlserversolutions.blogspot.in/2009/02/selecting-excel-range-in-ssis.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Flash export of slideshow keeps looping, hyperlinks not working.

    I have made an intro page for a website using Keynote 3 <http://web.mac.com/archstanton1862/iWeb/Tricktrial/Welcome.html> I can't figure out why the page keeps looping. It should go through it's transitions and then stop. Right? Also, the ENTER hyperlink is supposed to go to <http://web.mac.com/archstanton1862/iWeb/Trickracing1/Menu.html> but it instead goes to www.apple.com/startpage What's the deal? I have loop slideshow "unchecked" in the playback options. I used iWeb Enhancer 1.0.1 to embed the flash animation html, and it worked awesome. It just keeps looping and the hyperlink is wrong. Is what I'm wanting to do even possible? HELP!!

    Looks like everything's working to me. I was having this same problem, but never got around to uploading the flash to the site because it keeps looping for me, too. But your's seems to be fine--did you do anything to correct this, or did it seem to fix itself?!
    Bryan

  • Link for Create Sub-Accounts Tool keeps looping back to Overview Page

    Hello,
    I need to create an email sub account but the link for the "Create Sub-Accounts Tool" just keeps looping back to the over view page. Where is the tool actually located?
    Thank you in advance for your time and attention.

    Ok, after *much* more fiddling around this place ( It was a trial just to get logged in -eeeesh!  ) I finally found a link for it here that seems to work:
    https://www22.verizon.com/residentialhelp/fiosinternet
    but after going through all of the steps, I got:
    "We have encountered an unexpected error, Please call customer service or try again later." 
    Oh and live chat is not available.

  • Want new tab to open to home page and why does firefox not have a simple check box in the options because I can't keep going through a long procedure each time

    I want new tab to open to home page and why does firefox not have a simple check box in the options because I can't keep going through the long tedious procedure each time I install firefox. It is something that should be in the options tab , and I want to know why it isn't. I am totally frustrated with firefox and getting ready to switch.

    You can use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Loop through all fields in a (2 page) form?

    Is it possible to do it in one go?
    suppose you have fields in 2 pages.. (2 subforms)
    would you have to write a script that would check for all fields in page 1
    and another to check for all fields in subform 2?
    or can you just loop through the parent of the 2 subforms?.. (the aim would be to check that all required fields have been filled in or are not equal to their default value)
    thank you in advance

    You can certainly write a script that'll find all fields on all pages and perform some action on them.
    I've included a sample form which contains two pages with fields on them. At the top of the first page, there's a "Find Fields" button which, when pressed, populates the list box next to it with the names of each field found across all pages. Clicking on an item in the list box will then set focus to that field.
    The script uses a recursive function called GetFieldNames in a Script Object called "Utils". In the function, lines 21 - 25 are as follows:
    else if (oNode.className == "field")
    // oNode is a field
    sFieldNames += (sFieldNames.length > 0 ? "\n" : "") + oNode.name;
    If you wanted to verify that all mandatory fields were filled, you could change them to this:
    else if (oNode.className == "field")
    // oNode is a field
    if (oNode.mandatory == "error" && (oNode.rawValue == null || oNode.rawValue.length == 0))
      sFieldNames += (sFieldNames.length > 0 ? "\n" : "") + oNode.name;
    That would find only fields that are required and haven't been filled accross all pages.
    Stefan
    Adobe Systems

  • Loop through user text fields on a page

    I am new to APEX and I have searched for an answer to this problem, but was not able to find one.
    I have a page which has about 40 text boxes for user input. I would like to find a way to loop through all of the text boxes on the page when the user submits the form. I want to check the contents of each text box and filter out any characters that are not alpha or numeric. I would like to do this in one process. Is this possible? If so, how would I access the text boxes and remove the unwanted input? Could you please show me an example?
    Thanks for any guidance on this.

    Hi,
    I did not test this, but could something like after submit process work
    DECLARE
    l_temp VARCHAR2(32000);
    BEGIN
      FOR C IN
      (SELECT item_name
      FROM apex_application_page_items
      WHERE display_as   = 'Text Field'
      AND application_id = :APP_ID
      AND page_id        = :APP_PAGE_ID
      LOOP
        -- Do stuff e.g. remove character  Ö
        l_temp := REPLACE(v(c.item_name),'Ö');
        APEX_UTIL.SET_SESSION_STATE (
          p_name  => c.item_name,
          p_value => l_temp
      END LOOP;
    END;Br,Jari
    Edited by: jarola on Mar 4, 2010 5:26 PM

  • Help looping through page items

    Hello,
    I'm new to InDesign scripting and I need a way to programmatically loop through the items on a page of a document and get all of the text frame IDs (Using javascript). Once I find a match of the text frame I am looking for, I will need to update its contents. Is there an easy way to do this?
    Thanks in advance!
    - Lloyd

    Hey!
    var myTextFrames = app.activeDocument.textFrames;
    var myTextFramesNo = myTextFrames.length;
    Now myTextFramesNo holds number of text frames in document and myTextFrames holds text frame objects. Now you can run through text frames and set contents for each of them like this:
    myTextFrames[0].contents = "My Frame Contents";
    That's for start
    tomaxxi
    http://indisnip.wordpress.com/

  • Error in Running a Page in Jdeveloper through VPN

    I am having an issue running a Hello World Page in JDeveloper9i through VPN. When I try to run a page, web browser is trying to open
    the page based on the Host Name or IP Address used to refer to Embedded OC4J.
    It would be really great if you could help me to resolve this issue.
    Thanks
    Edited by: user2014196 on May 18, 2009 6:40 PM
    Edited by: user2014196 on May 18, 2009 7:11 PM

    The exact error is I cannot view the HelloWorld Page.
    I can access the database through VPN. I checked the Application Login/pwd and Responsibility name and Key. Everything is correct.
    There are four options to select from embedded OC4J, I tried all the four options but the HelloWorld page is not displaying.
    I got this exception when i selected Default Local IP Address in Embedded OC4J.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection) at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:988) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) ## Detail 0 ## oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862) at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) ## Detail 0 ## java.sql.SQLException: Io exception: The Network Adapter could not establish the connection at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334) at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3675) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352) at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:536) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1194) at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1121) at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:664) at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:736) at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:575) at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:240) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187) at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946) at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:703) at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:232) at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1773) at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2460) at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2398) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2257) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2072) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1976) at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:2494) at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1304) at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:384) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:210) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:169) at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148) at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1147) at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1008) at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:977) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:944) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:931) at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570) at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:873) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:858) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:827) at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:686) at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:846) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:351) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862) at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) ## Detail 0 ## java.sql.SQLException: Io exception: The Network Adapter could not establish the connection at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334) at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3675) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352) at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:536) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1194) at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1121) at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:664) at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:736) at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:575) at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:240) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187) at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946) at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:703) at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:232) at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1773) at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2460) at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2398) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2257) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2072) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1976) at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:2494) at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1304) at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:384) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:210) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:169) at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148) at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1147) at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1008) at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:977) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:944) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:931) at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570) at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:873) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:858) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:827) at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:686) at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:846) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:351) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)
    Is there any settings do I need to set when accessing Jdeveloper through VPN???

  • Looping through inbox items on timer event is really slow...?

    Hi,
    I have an issue with a email sync event that I am running.  Essentially, I am given a date (the received date of the last email synced) via another process and then need to return all the emails in the user's inbox the where receivedDate > this given
    date.
    I have a timer object than triggers my sync event every 15 mins.  I also have a button that allows the user to manually activate the sync - this basically changes the timer to 3 secs and so it fires the sync event.
    If the sync event is fired manually as per above, it loops through everything quite quickly (~12,000 emails in 30 secs) and I can stored the sender/recipient and received time data I require from these in a list of objects, which I sync later on in a background
    process.  During this loop the main UI freezes up, which is fine since I show a progress bar so the user knows how long they need to wait, and a large sync like this should only occur on their first sync theoretically.  If the first sync event is
    fired without the manual input - so still called from the same timer event, but just on the normal 15 min event, not the shortened 3 sec one - then it runs differently.  The sync takes a lot lot longer, and the UI doesn't freeze up.
    I presume this might be because it is fired slightly differently and does not hog up the main thread, but rather shares it with normal Outlook operations.  Maybe the operations are being run on a background thread and then keep having to jump into the
    main thread to access the email items...?  Either way, I'm not quite sure how this is happening since the only difference is the user pressing a button that changes the timer.interval.  The code that is run is the same, and the button press doesn't
    trigger the actual sync itself.
    Is there a way I can force this first sync to always run solely in the main thread, it can freeze up Outlook and show the progress bar until it is done?  Ideally any subsequent syncs would then be run with no progress bar and no freezing up of the UI.
    Many thanks,
    Tom

    Hello Tom,
    > Maybe the operations are being run on a background thread and then keep having to jump into the main thread to access the email items...?
    You shouldn't use another threads when dealing with the Outlook object model. Office applications use the single threaded apartment (STA) model and don't support multithreading. All calls made from another threads are marshalled by Outlook to the main
    thread. However, you can use a low-level code (Extended MAPI) to access the data from secondary threads. For example, you can use Redemption which is based on Extended MAPI.
    >  it loops through everything quite quickly (~12,000 emails in 30 secs)
    Instead of looping over all items in the folder I'd recommend using the
    Find/FindNext
    or
    Restrict methods of the Items class. You can read more about them in the following articles:
    How To: Use Find and FindNext methods to retrieve Outlook mail items from a folder (C#, VB.NET)
    How To: Use Restrict method to retrieve Outlook mail items from a folder
    You can use the System.Windows.Forms.Timer class which uses the main thread for invoking the Tick event. The .NET
    Framework Class Library provides three different timer classes: System.Windows.Forms.Timer, System.Timers.Timer, and System.Threading.Timer. Each of these classes has been designed and optimized for use in different situations. The Comparing
    the Timer Classes in the .NET Framework Class Library article examines the three timer classes and helps you gain an understanding of how and when each class should be used.
    Also you may find the
    AdvancedSearch method of the Application class helpful. Pay special attention to the fact that the search is performed in another thread. You don’t need to run another thread manually since the
    AdvancedSearch method runs it automatically in the background. See
    Advanced search in Outlook programmatically: C#, VB.NET for more information.

  • Can't navigate to a page when using a class method

    I am working on windows phone 8.1 universal app where I have created a class method and placed it in the NavigationHelper_LoadState method of one of the  pages in my app. My navigation is as follows, I click on a link on my Mainpage and that takes me
    to the page in question,  where I have placed the class method in LoadState.
    The class method checks the authentication state of the user. If the user is not logged in, it is supposed to take him to a separate login page (SHDSignIn from the snippet below).
    The problem I am running into is that when I hit that part of the code in my class method, it just steps through the redirect code but doesn't take me to the login page but rather takes me to the  page that was clicked from mainpage.
    From the troubleshooting I have done up to this point seems like an issue probably because I am calling the method from NavigationHelper_LoadState and the system doesn't like it?? Can someone please explain and also provide a workaround for this?
    Here is my code for the class function:
    public async void SHDAuthState(string errormessage, ProgressBar myprogressbar, TextBlock mytextblock, TextBlock myservernetworkerror)
    //Get the values for the userID and password from the settings....
    string shdLoggedInValue = (string)appRoamingSettings.Values["shdLoggedIn"];
    //If not logged in, redirect to the SHD sign in page...
    if (shdLoggedInValue != "Yes")
    this.rootFrame.Navigate(typeof(SHDSignIn));
    //Getting the cookie if it has expired..
    else
    //Get the cookie value...
    string myCookieValue = (string)appRoamingSettings.Values["MyCookie"];
    //Get the original cookie obtain time....
    long CookieObtainedTimeValue = (long)appRoamingSettings.Values["CookieObtainedTime"];
    //Convertig date/time back to DateTime object....
    origCookieObtainedTime = DateTime.FromBinary(CookieObtainedTimeValue);
    currentDateTime = DateTime.Now;
    //Check to see if cookie has expired....
    cookieTimeElasped = currentDateTime - origCookieObtainedTime;
    cookieTimeElapsedMins = cookieTimeElasped.TotalMinutes;
    // 2 days = 2880 mins but we give a margin of 1 minute
    //Get a new cookie if it has expired and save to settings
    if (cookieTimeElapsedMins >= 2879)
    // Start showing the progress bar...
    mycontrols.progressbarShow(myprogressbar, mytextblock);
    //Get the values for the userID and password from the settings....
    string UserIDValue = (string)appRoamingSettings.Values["UserID"];
    string PasswordValue = (string)appRoamingSettings.Values["Password"];
    //Update the requestData string before sending.....
    requestData = "{" + string.Format(RegisterRequestData, UserIDValue, PasswordValue) + "}";
    string registerResults = await SHDAPI(registerUrl, requestData, errormessage);
    if (registerResults != null)
    // Get the cookie and the time and save it to settings
    var shdCookie = JsonConvert.DeserializeObject<SHDHelper.SHDObject>(registerResults).RegistrationCookie;
    //Save cookie to the app settings
    appRoamingSettings.Values["MyCookie"] = shdCookie;
    // build the UI
    // Stop showing the progress bar...
    mycontrols.progressbarNoShow(myprogressbar, mytextblock);
    else
    // Stop showing the progress bar...
    mycontrols.progressbarNoShow(myprogressbar, mytextblock);
    //Show the error message...
    myservernetworkerror.Visibility = Windows.UI.Xaml.Visibility.Visible;
    Also, I have the rootFrame defined as follows in my class:
    Frame rootFrame = Window.Current.Content as Frame;
    I am calling the class method from the LoadState method as follows
    SHD_helper.SHDAuthState(errorMessage, pgbar, pgText, ServerNetworkError);
    thanks
    mujno

    that is correct.  I wanted to keep the login page redirect inside my class method so that I could do the check every time someone came to pages that require authentication. I wanted it in the LoadState method so I can do a check there, redirect
    them to login page or just get a cookie and then pass that cookie to page to build the UI for the page
    I can do what you are suggesting and have actually tried it but then I have to track which page to take the user to after they log in...
    I have multiple clicks in the appbar  and pages from where the user can come to these authentication-bound pages..
    Suggestions?
    Also, what am I doing wrong in my class method that it doesn't navigate to the login page in the LoadState method?
    Thanks 
    mujno

  • Looping through Multiline list in Workflow

    We have a Workflow that sends an email with an Office document (ie., Excel) as an attachment to each Executing Service Engineer on service items that are relevant for planning. In an attempt to do that we loop through a multiline list, which is used to hold the relevant service items for processing.
    1.     We created an activity step Initialize work items count to store the number of service work items, e.g. Work_items_count
    2.     We use a loop step (loop until) to keep looping while work_items_count has a value greater than zero.
    3.     Within the loop, we use another activity step Get install item ibase components that processes the first item of the multiline container element Work_items and returns the ibase components for the Executing Service Engineer. After processing has completed, we delete the item from Work_items and decrement the counter work_items_count by 1.
    4.     As part of the final steps in the loop, an Excel document is created from a template using a standard object method WF_DOC-CREATE. The document is than converted to an SOFM object using standard object method WF_DOC-CREATE_SOFM, and than an email is generated with the SOFM object as an attachment using standard object method SELFITEM-SENDTASKDESCRIPTION.
    The problem that’s occurring is that on the second loop pass, the status for activity step Get install item ibase components is set to ready expecting user intervention. I know that it’s a dialogue step, but why than does it execute seamlessly on the first loop pass? I’ve set the agent assignment on the Workflow and on the task to General task so that anybody can execute it so I don’t think it’s an agent assignment problem.
    Does anyone have any suggestions? Do i need to use dynamice parallel processing in this case?

    We have a Workflow that sends an email with an Office document (ie., Excel) as an attachment to each Executing Service Engineer on service items that are relevant for planning. In an attempt to do that we loop through a multiline list, which is used to hold the relevant service items for processing.
    1.     We created an activity step Initialize work items count to store the number of service work items, e.g. Work_items_count
    2.     We use a loop step (loop until) to keep looping while work_items_count has a value greater than zero.
    3.     Within the loop, we use another activity step Get install item ibase components that processes the first item of the multiline container element Work_items and returns the ibase components for the Executing Service Engineer. After processing has completed, we delete the item from Work_items and decrement the counter work_items_count by 1.
    4.     As part of the final steps in the loop, an Excel document is created from a template using a standard object method WF_DOC-CREATE. The document is than converted to an SOFM object using standard object method WF_DOC-CREATE_SOFM, and than an email is generated with the SOFM object as an attachment using standard object method SELFITEM-SENDTASKDESCRIPTION.
    The problem that’s occurring is that on the second loop pass, the status for activity step Get install item ibase components is set to ready expecting user intervention. I know that it’s a dialogue step, but why than does it execute seamlessly on the first loop pass? I’ve set the agent assignment on the Workflow and on the task to General task so that anybody can execute it so I don’t think it’s an agent assignment problem.
    Does anyone have any suggestions? Do i need to use dynamice parallel processing in this case?

  • Looping through javabean array in jsp?

    Hello,
    In my servlet, I created an ArrayList of objects and pass these to a jsp page using:
    req.setAttribute("bean", uploadList);
    The ArrayList contains objects of the FileBean class, with a getIndex, and getDate methods.
    Could any possibly demonstrate how to loop through the ArrayList in the jsp and display the FileBean object values in a html table?
    To display the values of a javabean in jsp pages I normally have to use for example, requestScope.bean.getMethod();
    Thanks

    No, that would be requestScope.bean.attributename, if your getter method has the same name as the attribute you are getting.
    To loop through an array you have to use the c:forEach tag. Check google for "jstl foreach example", there are loads of examples.

Maybe you are looking for

  • INcoming Excises Invoice Query

    SELECT DISTINCT (T0.[DocNum]) AS 'INVOICE NUMBER', T0.[DocDate] AS 'INVOICE DATE',T0.[CardName], T1.[ItemCode] AS 'PART NO', T1.[Dscription] AS 'PART DESCRIPTION', T1.[Quantity], T1.[Price], T1.[LineTotal] AS 'BASE AMOUNT', (SELECT sum(TaxSum) FROM I

  • Moving entire catalog to bigger external drive

    ...or any different drive external or internal... A friend just had major problems moving his v3 files. He had one top folder for all Lightroom. He keeps his catalog and photos on an external and now needs to increase the capacity of the external. So

  • How To Restore Purchased Music From iTunes After Other Computer Crashed?

    Hi, I need help recovering some music that I lost when my other laptop crashed .. Can the iTunes Store staff check my past purchased items and restore them all for me ?

  • How to clear open items?

    when i click the process open items button for clearing out standings in (f-28) after raise the sales invoice , message seems after click the process open items " the entry(2222 company code) missing table t043g).... let me know what happen and what

  • CSS giving different results when defined locally, and when defined using an include file.

    In my experimental photo album page I originally defined the styles in a separate .CSS file. However this appeared to be incompatible with the requirement to have the session_start (); statement at the start of the file, so I then defined the styles