Exiting an application when a runtime error occurs

Hi all,
I have a web applet that allows a users to calculate statistics on weather data in a database, based on some input that the user provides (eg. Date range, geographic region, etc.). Here's what the applet does:
1. Accepts user inputs
2. Pulls appropriate data from the database
3. Calculates stats
4. Returns a chart to the user
What I want to do is gracefully stop execution when an error is found (eg. No data found based on user inputs, can't connect to DB, user input too stringent, etc.). I thought of two ways to do this:
1. Use try/catch blocks everywhere, and propogate them up to the main program, which exits in its own catch.
2. Have some listener monitor for calls to our log4j fatal() method calls, and exit immediately after any fatal() methods are called.
Number 2 would be nice, since once set up, it only requires us appropriately logging in the code.
How do other people deal with this issue of stopping execution when a specific situation arises?
Thanks so much!

gamemusicmaker wrote:
I have a web applet that allows a users to calculate statistics on weather data in a database, based on some input that the user provides (eg. Date range, geographic region, etc.). Here's what the applet does:I assume you mean Java Applet?
What I want to do is gracefully stop execution when an error is found (eg. No data found based on user inputs, can't connect to DB, user input too stringent, etc.). I thought of two ways to do this:You don't really want to stop the execution. You want to tell the user that there is something wrong. And possibly to try again. Or if that's not possible, you display the fatal error message.
1. Use try/catch blocks everywhere, and propogate them up to the main program, which exits in its own catch.Well, you'll have to use try/catch blocks anyways at least for the checked exceptions. Unless you want your program to become really brittle, you do need error handling. Not just "oops, something went wrong. I'll just stop everything instead of providing an error message".
2. Have some listener monitor for calls to our log4j fatal() method calls, and exit immediately after any fatal() methods are called.That seems like a very weird way of handling erroneous situations.

Similar Messages

  • Portal Runtime Error occurred when trying to create iView using template.

    Hi,
    When I tried to create an iView by Content Management through "Existing iView Templates", the Portal runtime error occurred.
    (However, when I tried to create an iView through "Deployed Portal Archive" or "Web Dynpro Java Application", it was successful)
    If you know the same error and the way to solve, please help me.
    Best Regards,
    Daisuke Ikari
    It occurred below system environment.
    Version: NetWeaver 7.0 SPstack18
    OS: Windows 2003 Server SP2
    RDBMS: Oracle 10.2.0.2
    And the error log is below.
    08:29_26/03/09_0002_6759950
    [EXCEPTION]
    java.lang.NoSuchMethodError: com.sapportals.portal.pcd.gl.PcdSearchControls.addExplicitAttributeCheck(Lcom/sapportals/portal/pcd/gl/IPcdAttribute;)V
         at com.sap.portal.pcm.iviewserver.cache.TemplatesCacheSrv.getPCDCatalog(TemplatesCacheSrv.java:184)
         at com.sap.portal.pcm.iviewserver.cache.TemplatesCacheSrv.refresh(TemplatesCacheSrv.java:589)
         at com.sap.portal.pcm.iviewserver.cache.TemplatesCacheSrv.getTemplates(TemplatesCacheSrv.java:646)
         at com.sapportals.admin.templateselection.panes.InitPane.getCatalogList(InitPane.java:206)
         at com.sapportals.admin.templateselection.panes.InitPane.initTemplateList(InitPane.java:122)
         at com.sapportals.admin.templateselection.panes.InitPane.processInput(InitPane.java:59)
         at com.sapportals.admin.wizardframework.core.WizardInstance.doPost(WizardInstance.java:350)
         at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:174)
         at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:99)
         at com.sapportals.admin.wizardframework.AbstractDynamicWizard.doContent(AbstractDynamicWizard.java:98)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
         at com.sapportals.appdesigner.appdesignerfw.TabContentComponent.doOnNodeReady(TabContentComponent.java:110)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:368)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

    Thanks for your help. Here is the xml
    <PAREVAHRS>
    <P_PROJECT_TYPE>Food Equipment</P_PROJECT_TYPE><P_PRJ_CATEGORY>Qualification</P_PRJ_CATEGORY><P_CPM_ID>658</P_CPM_ID><P_FROM_DATE>2007/03/01 00:00:00</P_FROM_DATE><P_TO_DATE>2007/03/31 00:00:00</P_TO_DATE>
    <LIST_G_PROGRAM>
    <G_PROGRAM>
    <PROGRAM_CODE>0180</PROGRAM_CODE>
    <PROGRAM_NAME>Food Equipment</PROGRAM_NAME>
    <LIST_G_MGR>
    <G_MGR>
    <PROJ_MGR>Lamoreaux, Mr. David</PROJ_MGR>
    <LIST_G_PRJ>
    <G_PRJ>
    <PROJECT_NUMBER>249400</PROJECT_NUMBER>
    <LONG_NAME>KM-60, 100 &amp; 150 BAH, ICE MAKE 249400</LONG_NAME>
    <CUSTOMER_NUMBER>22460</CUSTOMER_NUMBER>
    <CUSTOMER_NAME>HOSHIZAKI AMERICA, INC.</CUSTOMER_NAME>
    <LIST_G_TSKEXP>
    <G_TSKEXP>
    <TASK_NUMBER>PO01START</TASK_NUMBER>
    <EXP_TYPE>100 Labor - Chargeable</EXP_TYPE>
    <EXP_DATE/>
    <QTY>9.25</QTY>
    <REV>0</REV>
    </G_TSKEXP>
    </LIST_G_TSKEXP>
    <PRJREV>0</PRJREV>
    <PRJQTY>9.25</PRJQTY>
    </G_PRJ>
    The PRJREV and PRJQTY is at the same level and they are either zero or non null values.
    - Vasu -

  • I am mac user and want to create Object in VBA macro. when i write "set objwrd=createObject("Word.Application")"- it returns "runtime error "492" can't create object". now what it alternative to create object for word in excel macro???

    I am mac user and want to create Object in VBA macro. when i write "set objwrd=createObject("Word.Application")"… it returns "runtime error "492" can't create object". now what it alternative to create object for word in excel macro???

    Any help here...
    http://support.microsoft.com/kb/288117
    http://www.macworld.com/article/1154785/welcomebackvisualbasic.html

  • Acrobat PDFMaker Office COM Addin for Microsoft Office 365 does not work. When I check the cox for COM Add-ins, it unchecks it. "A runtime error occurred during the loading of the COM Add-in." I use Adobe X Professional. The Add-in worked fine in Office 2

    I recently upgraded to Microsoft 365 Home and use Outlook 2013. The Acrobat PDFMaker Addin worked fine in Office 2010. Now, I get an error message: Not loaded. A runtime error occurred during the loading of the COM Add-in.
    I use Adobe Acrobat X Professional.
    I have restarted Outlook, restarted my computer, and nothing changes.
    Does anyone have a solution?
    Steve

    I do not think that AA X is compatible with the newest versions of OFFICE and such. Your only choice is to print to the Adobe PDF printer or use the MS plugins to create PDFs.

  • A C-runtime error occured (bad allocation) from xmlViewService

    Hi There,
    I have a .NET code which calls OBI webservice xmlViewService. I observed xmlViewService.executeXMLQuery works fine when there are records between 0 - 80000, but when records go beyond 80000-100000 it fails & returns an exception "A C-runtime error occured (bad allocation)".
    I tried gradually increasing the maxRowsPerPage from 10 to 100000 but in vain.
    Below is the code am using:
    sawSessionService = new SAWSessionService(obieeWebServiceUrl);
    sawSessionService.Timeout = obieeTimeout;
    XmlViewService xmlViewService = new XmlViewService(obieeWebServiceUrl);
    xmlViewService.Timeout = obieeTimeout;
    SAWSessionParameters sawSessionParms = CreateSawSessionParameters();
    AuthResult logonResult = sawSessionService.logonex(obieeUserId, obieePassword, sawSessionParms);
    sessionID = logonResult.sessionID;
    ReportRef reportRef = new ReportRef();
    reportRef.reportPath = request.ReportPath;
    XMLQueryExecutionOptions xmlQueryOptions = new XMLQueryExecutionOptions();
    xmlQueryOptions.async = false;
    xmlQueryOptions.refresh = false;
    xmlQueryOptions.maxRowsPerPage = 100000; //10;
    xmlQueryOptions.presentationInfo = true;
    xmlQueryOptions.type = "";
    ReportParams reportParams = new ReportParams();
    QueryResults queryResults = new QueryResults();
    queryResults = xmlViewService.executeXMLQuery(reportRef, XMLQueryOutputFormat.SAWRowsetSchemaAndData, xmlQueryOptions, reportParams, sessionID);
    Please help me solving the issue. Highly Appreciate any help.
    Thanks - harry
    Edited by: 887426 on Sep 26, 2011 12:45 AM

    Hi Harry,
    We face this issue, when the criteria returns lot of data. Is the issue resolved for you now? If yes, can you share your solution.
    Thanks,
    madhu

  • C-runtime error occured "Out of Memory"

    Cannot display the selected records when an end user clicks the (>*) button next to the record count. Instead of displaying all the records based on the prompted selection criteria, the record count (28,338) is shown by itself without the data after a few minutes of waiting. Above the record count and selected prompts, "!error: A C-runtime error occurred (Out of Memory)" is shown twice. No data.
    So long as the end user does not click the (>*) button next to the record count, everything works okay. End user can download the entire set of selected records to a tab-delimited .csv file without any problem. End user can also scroll thru the 28,338 records, one page at a time. Using more restrictive selection criteria, I can view several thousand records at a time. No problem until the (>*) button is clicked when 28,338 records are requested.
    We recently doubled the memory on our desktops from 1GB to 2GB. No help attempting to display all records.
    Problem reproduced at will in both OBIEE 10.1.3.3.2 and 10.1.3.4.1 environments using either IE 8.0 or Firefox 3.6 on Windows XP Pro.
    How can we reconfigure our environment to display the 28,338 records on a desktop without running Windows XP out of memory?

    The C:\OracleBIData\tmp directory on the desktop appears empty before, during and after the query.
    In addition in Windows Task Manager, the Networking tab for the Local Area Connection shows a steady, but less than 0.5%, activity stream for the duration. CPU use and paging is also minimal.
    Edited by: bobatx on Dec 23, 2010 10:04 AM

  • Not Loaded. A runtime error occurred during the load of the COM add-in.

    Hey All!
    I am relatively new to Hyperion, and need some help. I recently purchased a new laptop, and I am trying to reinstall Smart View 11.1.2.1 on my home system, but I continue to run into difficulties. I launch the Smart View installer by right-clicking and selecting "Run as Administrator," and everything seems to install successfully. However, when I open Excel or any Microsoft Office product, the Smart View tab is unavailable, and when I Manage my COM add-ins, the pop-up box reads "Load Behavior: A runtime error occurred during the loading of the COM add-in."
    I have looked into my registries, and everything seems to be in order. I have changed my load behavior back to 3 as well. Any ideas? Are there any compatibility issues I need to consider? Thanks for your help!
    Craig

    PLEASE do not do this! You are storing up trouble for the future that will be so much harder to unpick.
    1. It does not solve the problem. Whatever the problem was, this is not the solution! If the issue is multiple DLLs, you need to delete the duplicates and register the correct ones, not make even more copies. If the problem is permissions, you need to sort that one out.
    2. If it appears to solve the problem, then the problem (something to do with permissions) needs to be solved at source, not kludged round like this.
    3. If there is an unresolved problem on the system, it is more likely that the next upgrade will not go well.
    4. Uninstaller cannot remove the copies you made manually. The same thing applies to upgrades! You risk getting mixed versions afterwards.
    My first steps to resolve this problem would be:
    1. Uninstall the SmartView client. You must be an administrator to do this -- try to be the same administrator that installed it.
    2. Clean up. Make sure the files are all deleted. Search the whole box for old files (HsTBar.xla, HsAddin.dll etc.) possibly left over from an old installation -- you might have upgraded into a different location at some time in the past and left orphaned files hanging around. Get rid.
    3. Reboot. Log in as a local administrator.
    4. Open Excel and visit the Add-Ins dialog and remove any entries for SmartView.
    5. Install SmartView client from a local copy of SmartView.exe -- make sure you have the correct version.
    That solves 99% of problems like this. If you have to register the DLLs manually, it suggests that your 'administrator' account doesn't have the full rights you think it has. DON'T kludge it by copying DLLs into your profile!
    Thanks.

  • B2C webshop - A runtime error occurred

    Dear all,
    Our B2C webshop is down and giving the error
    "A runtime error occurred - Contact the administrator  - Start application"
    I have restarted the application but still getting the same error not sure what happend.

    Hi Mark,
    From the logs I could see the below entries. It shows some issue with Product cateloguage. Please advice.
    Feb 25, 2009 2:28:55 PM                     bctracing.isa.runtime [SAPEngine_Application_Thread[impl:3]_29] Debug: [(J2EE1979100)ID2023208650DB02706280855622221063End|?][actionxecution]='end' [actionclass]='com.sapmarkets.isa.isacore.action.ShopReadAction' [path]='/b2c/readshop' [forward]='/catalog/ISAEntry.do' [exectime]='15171'
    Feb 25, 2009 2:28:55 PM                     bctracing.isa.runtime [SAPEngine_Application_Thread[impl:3]_29] Debug: [(J2EE1979100)ID2023208650DB02706280855622221063End|?][actionxecution]='begin' [actionclass]='com.sapmarkets.isa.catalog.actions.ISAEntryAction' [path]='/catalog/ISAEntry'
    Feb 25, 2009 2:28:55 PM                     bctracing.isa.runtime [SAPEngine_Application_Thread[impl:3]_29] Debug: [(J2EE1979100)ID2023208650DB02706280855622221063End|?][jcofuncionexecution]='begin' [funcname]='CRM_PCAT_IMS_IDXCAT_GETLIST' [ashost]='crmdb' [sysid]='PCR'
    Feb 25, 2009 2:28:55 PM                     bctracing.isa.runtime [SAPEngine_Application_Thread[impl:3]_29] Debug: [(J2EE1979100)ID2023208650DB02706280855622221063End|?][jcofunctionexecution]='end' [funcname]='CRM_PCAT_IMS_IDXCAT_GETLIST' [ashost]='crmdb' [sysid]='PCR' [exectime]='110'
    Feb 25, 2009 2:28:55 PM                     bctracing.isa.runtime [SAPEngine_Application_Thread[impl:3]_29] Debug: [(J2EE1979100)ID2023208650DB02706280855622221063End|?][actionxecution]='end' [actionclass]='com.sapmarkets.isa.catalog.actions.ISAEntryAction' [path]='/catalog/ISAEntry' [forward]='/b2c/error.jsp' [exectime]='532'

  • Saw: C-runtime error occured (bad allocation)

    We are running into an issue with the Prod Web Server, wherein it is suddenly stops once in a while and does not restart unless we reboot. We seem to have two issues going on
    1) What brings down the server in the first place?
    From the logs it looks like 3 of th last 4 times it failed, it was due to the Drifted Accounts report. The specific error is below. It seems that somehow this report is triggering the saw server to fail (no impact on the analytics server).
    Type: Error
    Severity: 25
    Time: Wed Oct 29 09:54:49 2008
    File: project/webcube/cubecache.cpp Line: 249
    Properties: RptPath-/shared/IRIT/45 - Service/Report #8 - Accounts Summary Report;DashPath-/shared/IR Core Service Dashboard/_portal/IR Core Service 1. Summary Reports;DashPagePath-/shared/IR Core Service Dashboard/_portal/IR Core Service 1. Summary Reports/Drifted Accounts;SID-vff5to3ductfhfrtgvc2oi8vtq;ThreadID-3428;HttpCommand-Dashboard;RSP-d:dashboard~p:u673vcdbvpa7b12p~r:anokhgbsd4jnr317;RemoteIP-10.201.0.48;User-Administrator;HttpArgs-_scid='*YuesJlTN7Y'
    Location:
    saw.cube.cache.processCube
    saw.views.pivottable.displayer
    saw.views.dashboard
    saw.subsystem.portal
    saw.httpserver.request
    saw.rpc.server.responder
    saw.rpc.server
    saw.rpc.server.handleConnection
    saw.rpc.server.dispatch
    saw.threadPool
    saw.threads
    A C-runtime error occured (bad allocation)
    2) What prevents the service from restarting unless the server is rebooted.
    If we try to restart the saw service we see the foll error message
    Type: Error
    Severity: 42
    Time: Mon Oct 20 10:02:16 2008
    File: project/webcomm/socket.cpp Line: 338
    Properties: ThreadID-5800
    Location:
    saw.rpc.server.initialize
    saw.sawserver
    saw.sawserver.initializesawserver
    saw.threads
    Port 9710 is in use on the local system. [Socket:512]
    Any experience with or insight into this error is appreciated.
    Thanks,
    TL

    Have you tried patch 7140673 - OBI PRESENTATION SERVER CRASH IN PIVOT TABLE

  • Runtime error occurs when using DropdownByKey

    I run into a runtime error when I use the DropDowByKey with fixed value set: the value seletedKey = "001" in DropDownByKey "DDBK_APP_STATE" does not exist in the value list and is not initial either. But I have already added the value pair of the selectedKey using
         "NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
              NAME = 'APP_STATE'
              VALUE_SET = LT_VALUESET )." and I can select it from view. But when I use the attribute bound to the dropdownbykey in select statement as where condition and bind result into table. Before the screen reflash , the error occurs.

    I have two dropdownbykeys, DROP1(bound to attribute APP_AGENT),DROP2( bound to attribute APP_STATE). Selecting the first will change the content of the other.
    The code in the onSelect event of the drop1, which will change the select list of DROP2:
      DATA:NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
      DATA: LT_VALUESET TYPE WDY_KEY_VALUE_TABLE,
          L_VALUE     TYPE WDY_KEY_VALUE.
      NODE_INFO = WD_CONTEXT->GET_NODE_INFO( ).
      NODE_INFO = NODE_INFO->GET_CHILD_NODE( 'NODE_SEARCH' ).
       "**************************set value set for drop down***************
        DATA lo_nd_node_search TYPE REF TO if_wd_context_node.
        DATA lo_el_node_search TYPE REF TO if_wd_context_element.
        DATA ls_node_search TYPE wd_this->element_node_search.
        DATA lv_app_agent LIKE ls_node_search-app_agent.
        DATA lv_app_state LIKE ls_node_search-app_state.
      navigate from <CONTEXT> to <NODE_SEARCH> via lead selection
        lo_nd_node_search = wd_context->get_child_node( name = wd_this->wdctx_node_search ).
      get element via lead selection
        lo_el_node_search = lo_nd_node_search->get_element(  ).
            lo_el_node_search->get_attribute(
          EXPORTING
            name =  `APP_STATE`
          IMPORTING
            value = lv_app_state ).
      get single attribute
        lo_el_node_search->get_attribute(
          EXPORTING
            name =  `APP_AGENT`
          IMPORTING
            value = lv_app_agent ).        -
    get the value of DROP1
      clear the selected value of drop down
        lo_el_node_search->set_attribute(
          EXPORTING
            name =  `APP_STATE`
            value = '' ).----
    I want to clear the selected value of DROP2
    IF lv_app_agent IS INITIAL.
      L_VALUE-VALUE = 'SUBMIT'.
        CLEAR L_VALUE-KEY .
        INSERT L_VALUE INTO TABLE LT_VALUESET.
      NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
              NAME = 'APP_STATE'
              VALUE_SET = LT_VALUESET ).
      exit.
    ENDIF.
    CASE lv_app_agent .----
    there are 2 cases
      WHEN 'SUPP_APP'.
        L_VALUE-VALUE = 'APPROVE'.
        L_VALUE-KEY = '1'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
        L_VALUE-VALUE = 'INITIAL'.
        L_VALUE-KEY = '0'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
      WHEN OTHERS.
        L_VALUE-VALUE = 'APPROVE'.
        L_VALUE-KEY = '1'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
        L_VALUE-VALUE = 'INITIAL'.
        "CLEAR L_VALUE-KEY.
        L_VALUE-KEY = '000'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
        L_VALUE-VALUE = 'REJECT'.
        L_VALUE-KEY = '2'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
    ENDCASE.
    NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
              NAME = 'APP_STATE'
              VALUE_SET = LT_VALUESET ).
    Then in the another method, I will fetch the value of attribute APP_STATE. I can successfully get the value and put it into where clause and get result. But I will get a runtime error then.

  • Why Application doesnt stop when a runtime exception occurs

    Hi All,
    When we are writing a program and if it throws a Runtime Exception occurs it halts. Right? But if we are deploying an application in any server and id the app throws a Runrime Exception, the application doesnt halts?
    What is the logic behind this? What must be the appserver playing a role in this situation?
    Regards
    Naveen

    It's up to the programmer. With a simple stand alone program there's generally no point in it continuing past a runtime error, because if there's a runtime error you need to fix the program and try again.
    On the other hand a server is likely to be running a number of fairly independant activities. For example there may be a program error in one servlet, for one web page, but the rest of the site may be fine. So it's more sensible to log the error, report an error to the user, and continue.
    Also with threading a runtime error typically kills only the one thread, not the rest of the application.
    You can chose to catch any kind of exception (except for the very rare JVM errors).

  • A Runtime Error occured when viewing topics

    Hi,
    I got the following message when I'm trying to view one topic
    with hyperlink :
    "A Runtime Error has occurred. Do you wish to Debug?
    Line 2393
    Error : Access is denied"
    When I click No, the entire topic displayed but the hyperlink
    didn't work.
    When I try to test the same topic in the CHM, the hyperlink
    work well.
    I'm using a lot Ctrl+W to made QA on my conditional topic and
    I will like to solve this problem.
    Can someone may help me?
    Thanks!
    TW_MaryseC

    TW_MaryseC
    It sounds like your topic has some javascript in it, is that
    the case?
    If you are not sure, try this. Create a new topic with the
    same filename except add _new. Keep cutting and pasting bits of the
    content from the problem file and previewing it in the same way you
    are now until the error occurs. Then you will know what to look at
    and be able to resolve it or post back.
    You say "I'm using a lot Ctrl+W to made QA on my conditional
    topic..." Ctrl+W is simply a means of previewing a topic. I think
    what you are saying here is that you then select a condition to
    test the topic is working. But you get the problem before you
    select any condition in the preview so I am not sure what you are
    saying here. Please clarify.
    Avalynn
    Whilst you are getting a runtime error it is a different one
    so it would have been better to create a new post rather than
    hijack this one. It's difficult to answer two people's problems in
    one thread.
    It sounds like you have a javascript function in the body of
    your topic but you do not have anything in the head section to say
    where the javascript file is located. Could that be the case?
    The trial version should allow you to see your topics
    although there is a limit to the number. How many topics do you
    have?
    Also are you generating the CHM file to your hard disk?

  • When releasing PO error  occured Express Document " Update Terminated"

    hi all
         i am getting a strange problem ,
    while doing release of PO(purchase order) by t.code ME29N, i am able to release  and SAVE it properly with out any error.
    But when returning back to ME22N t.code to see that PO .
    i am getting this error :
    Note : - this error is coming for a particular TYPE of PO's and with
                in that TYPE all PO are not giving ERROR,
                Please tell me what can be reason,
    Express Document "Update Terminated"
    Runtime Error          POSTING_ILLEGAL_STATEMENT                           
           Occurred on     15.07.2008 at   11:03:24                                                                               
    Statement "CALL DIALOG" is not allowed in this form.                                                                               
    What happened?                                                                               
    Error in ABAP application program.                                                                               
    The current ABAP program "SAPLSTXW " had to be terminated because one of the
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.                      
    Information on where terminated                                                                               
    The termination occurred in the ABAP program "SAPLSTXW " in "DISPLAY_OTF".
    The main program was "RSM13000 ".                                                                               
    The termination occurred in line 82 of the source code of the (Include)  
    program "LSTXWU02 "                                                     
    of the source code of program "LSTXWU02 " (when calling the editor 820). 
    The program "SAPLSTXW " was started in the update system.                                                                               
    000710                                                                           
    000720     if ( sy-binpt = false and                                             
    000730        ( ( cl_gui_object=>www_active = true or                            
    000740            itcpp-tdscreen = 'ITS' ) or                                    
    000750          ( cl_gui_object=>javabean = true and                             
    000760            itcpp-tdscabap = false ) ) ).                                  
    000770                                                                           
    000780       perform cc_display_pdf.                                             
    000790                                                                           
    000800     else.                                                                 
    000810                                                                               
    >       call dialog 'DISPLAY_OTF'                "ABAP-List-Preview         
    000830              exporting otf itcpp 0                                        
    000840            importing itcpp.                                               
    000850                                                                           
    000860     endif.                                                                
    shall i concern this with BASIS person , coz every PO not having this problem,
    i think it is related to time taken by SERVER for UPDATE is more then this error comes .
    OR is there any technical issue related to ABAP.
    regards
    sachin

    This problem will be caused by an output which will be triggered when releasing the PO. Check the messages in the PO for which one is causing the update error.
    Regards,
    John.

  • Java iview runtime error occuring in EP

    Dear Friends ,
    We are currently getting java iview runtime error while trying to
    access EP logon screen through one of our application server.
    We are not facing any errors while trying to access the same logon
    screen through the other 2 application servers.
    Please look into this issue.
    Regards
    Gaurav

    Hi,
    Check whether is there any network problem between application server and CI.
    This problem generally comes when there is a problem between connection of UME.
    Thanks
    Anil

  • Peoplesoft Application Server Administration Booting Error Occurs

    Hi all,
    Sometimes when I boot the process, the domain started and sometimes these error will occurred.
    I've checked the services are all started, database are connected and the environment variables are set correctly but I don't know why these error occurs again.
    Advised needed.
    Thanks
    Booting server processes ...
    exec PSWATCHSRV -o ".\LOGS\stdout" -e ".\LOGS\stderr" -A -- -ID 59674 -D ORCL -S
    PSWATCHSRV :
         process id=8908 ...Started.
    exec PSAPPSERV -o ".\LOGS\stdout" -e ".\LOGS\stderr" [email protected] -- -D ORCL -S PSAPPSERV :
    CMDTUX_CAT:1685: ERROR: Application initialization failure
    tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error handler

    OS: 64 bit , Windows
    Peopletool ver: 8.52
    APPSRV.LOG :
    PSADMIN.5224 (0) [09/19/12 08:55:57](0) Begin boot attempt on domain HR84
    PSAPPSRV.6400 (0) [09/19/12 08:56:08](0) PeopleTools Release 8.52 (WinX86) starting. Tuxedo server is APPSRV(99)/2
    PSAPPSRV.6400 (0) [09/19/12 08:56:08](0) Cache Directory being used: C:\Users\L31004\psft\pt\8.52\appserv\HR84\CACHE\PSAPPSRV_2\
    PSAPPSRV.6400 (0) [09/19/12 08:56:08](1) GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library PSORA (200,0)
    PSAPPSRV.6400 (0) [09/19/12 08:56:08](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database ORCL with user PS.
    PSAPPSRV.6400 (0) [09/19/12 08:56:08](0) Server failed to start
    PSADMIN.5224 (0) [09/19/12 08:56:16](0) End boot attempt on domain HR84
    PSADMIN.5224 (0) [09/19/12 09:31:14](0) Begin boot attempt on domain HR84
    PSAPPSRV.7036 (0) [09/19/12 09:31:25](0) PeopleTools Release 8.52 (WinX86) starting. Tuxedo server is APPSRV(99)/2
    PSAPPSRV.7036 (0) [09/19/12 09:31:25](0) Cache Directory being used: C:\Users\L31004\psft\pt\8.52\appserv\HR84\CACHE\PSAPPSRV_2\
    PSAPPSRV.7036 (0) [09/19/12 09:31:25](1) GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library PSORA (200,0)
    PSAPPSRV.7036 (0) [09/19/12 09:31:25](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database ORCL with user PS.
    PSAPPSRV.7036 (0) [09/19/12 09:31:25](0) Server failed to start
    PSADMIN.5224 (0) [09/19/12 09:31:32](0) End boot attempt on domain HR84
    PSADMIN.5224 (0) [09/19/12 09:49:13](0) Begin boot attempt on domain HR84
    PSAPPSRV.9144 (0) [09/19/12 09:49:23](0) PeopleTools Release 8.52 (WinX86) starting. Tuxedo server is APPSRV(99)/2
    PSAPPSRV.9144 (0) [09/19/12 09:49:23](0) Cache Directory being used: C:\Users\L31004\psft\pt\8.52\appserv\HR84\CACHE\PSAPPSRV_2\
    PSAPPSRV.9144 (0) [09/19/12 09:49:23](1) GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library PSORA (200,0)
    PSAPPSRV.9144 (0) [09/19/12 09:49:23](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database ORCL with user PS.
    PSAPPSRV.9144 (0) [09/19/12 09:49:23](0) Server failed to start
    PSADMIN.5224 (0) [09/19/12 09:49:31](0) End boot attempt on domain HR84
    PSADMIN.5224 (0) [09/19/12 09:50:25](0) Begin boot attempt on domain HR84
    PSAPPSRV.5228 (0) [09/19/12 09:50:35](0) PeopleTools Release 8.52 (WinX86) starting. Tuxedo server is APPSRV(99)/2
    PSAPPSRV.5228 (0) [09/19/12 09:50:36](0) Cache Directory being used: C:\Users\L31004\psft\pt\8.52\appserv\HR84\CACHE\PSAPPSRV_2\
    PSAPPSRV.5228 (0) [09/19/12 09:50:36](1) GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library PSORA (200,0)
    PSAPPSRV.5228 (0) [09/19/12 09:50:36](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database ORCL with user PS.
    PSAPPSRV.5228 (0) [09/19/12 09:50:36](0) Server failed to start
    PSADMIN.5224 (0) [09/19/12 09:50:43](0) End boot attempt on domain HR84
    PSADMIN.5224 (0) [09/19/12 09:52:07](0) Begin boot attempt on domain HR84
    PSAPPSRV.7732 (0) [09/19/12 09:52:18](0) PeopleTools Release 8.52 (WinX86) starting. Tuxedo server is APPSRV(99)/2
    PSAPPSRV.7732 (0) [09/19/12 09:52:18](0) Cache Directory being used: C:\Users\L31004\psft\pt\8.52\appserv\HR84\CACHE\PSAPPSRV_2\
    PSAPPSRV.7732 (0) [09/19/12 09:52:18](1) GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library PSORA (200,0)
    PSAPPSRV.7732 (0) [09/19/12 09:52:18](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database ORCL with user PS.
    PSAPPSRV.7732 (0) [09/19/12 09:52:18](0) Server failed to start
    PSADMIN.5224 (0) [09/19/12 09:52:26](0) End boot attempt on domain HR84
    stderr :
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=193
    stdout : empty

Maybe you are looking for