Preventing runtime errors from clicking cancel

          String input;
          double number1;
          double number2;
          double number3;
          double number4;
                  input = JOptionPane.showInputDialog("Enter a number:  ");
                     number1 = Double.parseDouble(input);
                     input = JOptionPane.showInputDialog("Enter a number:  ");
                     number2 = Double.parseDouble(input);
                     input = JOptionPane.showInputDialog("Enter a number:  ");
                     number3 = Double.parseDouble(input);
                     input = JOptionPane.showInputDialog("Enter a number:  ");
                     number4 = Double.parseDouble(input);
                     JOptionPane.showMessageDialog(null, number1 + "\n" +
                                                                  number2 + "\n" +
                                                                  number3 + "\n" +
                                                                  number4);
     How do i set it so if the user hits "Cancel" on ANY of the input dialog messages, the console does not display a runtime error message?

          String input;
          double number1 = 0;
          double number2 = 0;
          double number3 = 0;
          double number4 = 0;
                  input = JOptionPane.showInputDialog("Enter a number:  ");
                  // Prevents a runtime error for clicking "Cancel"
                  if( input != null ) {
                     number1 = Double.parseDouble(input);
                     input = JOptionPane.showInputDialog("Enter a number:  ");
                     number2 = Double.parseDouble(input);
                     input = JOptionPane.showInputDialog("Enter a number:  ");
                     number3 = Double.parseDouble(input);
                     input = JOptionPane.showInputDialog("Enter a number:  ");
                     number4 = Double.parseDouble(input);
                     JOptionPane.showMessageDialog(null, number1 + "\n" +
                                                                  number2 + "\n" +
                                                                  number3 + "\n" +
                                                                  number4);
}I tried that, but it only works for the first input dialog box.

Similar Messages

  • HT1349 iTunes will not start on my PC. I get a runtime error from the Visual C== runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    iTunes will not start on my PC. I get a runtime error from the Visual C++ runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    Click here and follow the instructions.
    (99035)

  • Runtime error from Microsoft Visual C++ R6034

    When installing latest iTunes update in Windows 7 I get Runtime error from Microsoft Visual C++ R6034.
    Suggestions?

    FYI, if you are sufficiently computer literate to follow the instructions in the Youtube link, Edgar's suggested fix is much easier/quicker than a complete uninstall/reinstall.
    Nice job Edgar!

  • I am getting intermittent error messages "Runtime Error" when clicking on links

    Now and then, and I can't tell what causes it, I click on a link and get a page that gives me the incomprehensible message below with "Runtime Error" as the tab. I did recently click on a link that gave me a blue screen with messages that shut down my computer, but I have run a virus checker since then that found nothing. I also recently upgraded from windows xp to windows 7. I have never seen the problem before then.
    Server Error in '/' Application.
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>

    Hello babs313,
    What operating system are we working with?
    What make / model of the computer are we using?
    Try running the Mr Fix iT application on this troubleshooting article and post back your results.
    Error message when you run Windows Defender: "Error Code 0x800106ba"
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Portal Runtime Error on clicking work item in UWL.

    Hi
    I can see the workitems displayed in the UWL. But when I click on any of the items it shows a Portal Runtime Error
    with an Exception Id like this  : 02:48_13/04/10_0030_6207450.
    Can anyone help me out with this ? Does this error have anything to do with the ITS ?
    Also, how can I view the log file ?

    Thanks Koti.
    I have got the log file although the version of the portal that I use is probably different from yours. ( It didnt have 'System management'.)
    Well, the log file says something like this :
    " Exception in SAP Application Integrator occured: Unable to parse template "
    I still suppose this has something to do with the ITS , because when i test service for its I get an error message like :
    "Template interpretation failed. Template does not exist"
    But when I test service for the webgui it opens up without any problems.
    Any more suggestions ?

  • Portal Runtime Error while clicking on value selector

    Hi,
    I am facing problem while clicking on value selector on Picklist search iview and also any lookup table value selector.
    If I assign the same role to my portal user(Admin rights) working fine...but if I assign it to end users...not accessible on popup and giving portal runtime error.
    Currently i have assigned standard "eu_role" to the end users...Do I need to give any special permissions to some of end users?
    Appreciate all your help in this regard.
    Thanks,
    Pooja

    System Administration > Permission > Security Zones >
       com.sap.pct.mdm.appl.masterviews > high_safety >
       com.sap.pct.mdm.appl.masterviews > low_safety >
    com.sap.pct.mdm.tech.systems > high_safety
    com.sap.pct.mdm.tech.wizards > high_safety
    give Read / Write and End User access to the custom role/standard role that has to access MDM Views.
    Regards,
    Nitin

  • Portal runtime error, when click on ESS MSS

    Dear Gurus,
    Whenever I click on any link of MSS, it gives me runtime error. Please see the screenshot.
    Portal runtime error
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID 03:38_14/05/14_0019_13493050
    See log file for details about this exception
    Screen shot
    - SSO steps configured
    - ESS/MSS roles given in both of ABAP and JAVA side
    ITS, connector and WEB AS test successfully (screen shot maintaned below)
    Only Alias defined : SAP_R3_HumanResources
    Detalied Error Log;
    Failed to invalidate cached entry for user a368ecb2db6411e3a030000000cde33a Exception:java.rmi.RemoteException: Cannot clear ICM server cache by [a368ecb2db6411e3a030000000cde33a] etag.; nested exception is:
    com.sap.bc.proj.jstartup.icmadm.IcmAdmException: interface disabled
    [EXCEPTION]
    java.rmi.RemoteException: Cannot clear ICM server cache by [a368ecb2db6411e3a030000000cde33a] etag.; nested exception is:
    com.sap.bc.proj.jstartup.icmadm.IcmAdmException: interface disabled
    at com.sap.engine.services.httpserver.server.CacheManagementInterfaceImpl.clearCacheByEtag(CacheManagementInterfaceImpl.java:33)
    at com.sap.netweaver.rtmf.serverimpl.users.RTMFUser.clearICMCache(RTMFUser.java:231)
    at com.sap.netweaver.rtmf.serverimpl.users.RTMFUser.doLogout(RTMFUser.java:296)
    at com.sap.netweaver.rtmf.serverimpl.users.UserList.removeUser(UserList.java:123)
    at com.sap.netweaver.rtmf.serverimpl.services.UserManagerService.doLogout(UserManagerService.java:590)
    at com.sap.netweaver.rtmf.serverimpl.services.UserManagerService.activeActionMethod(UserManagerService.java:100)
    at com.sap.netweaver.rtmf.serverimpl.services.UserManagerService.onMessageArrived(UserManagerService.java:71)
    at com.sap.netweaver.rtmf.serverimpl.services.UserManagerService.onUserMessageArrived(UserManagerService.java:698)
    at com.sap.netweaver.rtmf.messagingimpl.messages.RTMFMessageDispatcher.sendMessageToService(RTMFMessageDispatcher.java:45)
    at com.sap.netweaver.rtmf.serverimpl.core.MessageDispatcher.sendMessageToService(MessageDispatcher.java:46)
    at com.sap.netweaver.rtmf.serverimpl.core.MessageDispatcher.handleRequest(MessageDispatcher.java:72)
    at com.sap.netweaver.rtmf.serverimpl.core.dispatch.dispatchers.SendDispatcher.dispatch(SendDispatcher.java:37)
    at com.sap.netweaver.rtmf.serverimpl.core.RTMFCore.handleSendRequest(RTMFCore.java:190)
    at com.sap.netweaver.rtmf.serverimpl.core.RTMFCore.handleRequest(RTMFCore.java:154)
    at com.sap.netweaver.rtmf.serverimpl.server.RTMFServer.handleRequest(RTMFServer.java:89)
    at com.sap.netweaver.rtmf.servlet.ServletWrapper.doPost(ServletWrapper.java:54)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: com.sap.bc.proj.jstartup.icmadm.IcmAdmException: interface disabled
    at com.sap.bc.proj.jstartup.icmadm.IcmAdm.getInstance(IcmAdm.java:77)
    at com.sap.engine.lib.http.cache.CacheAdmin.getInstance(CacheAdmin.java:53)
    at com.sap.engine.lib.http.cache.CacheAdmin.invalidateCacheEntries(CacheAdmin.java:30)
    at com.sap.engine.services.httpserver.server.CacheManagementInterfaceImpl.clearCacheByEtag(CacheManagementInterfaceImpl.java:29)
    ... 56 more
    LOG OVERVIEW

    After implementing the PCUI_GP , ESS is not empty anoymore but it is giving error like this ;
    Detailed Error ;
    Detailed Exception Chain
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session O8h94DN06FMAxZD*frJ44w--szntRnBBZbpD5Fsc0H8XnA--/pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.areagroup_overview/com.sap.pct.erp.ess.overview/sap.com/pcui_gp~xssutils/XssMenu/base/. The causing exception is nested. RID=50ba7f52dc4311e3bf72000000cde33a
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:663)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:349)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:325)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:62)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.service(DispatchHandlerForRequestManager.java:39)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.service(DispatchHandlerForRequestManager.java:46)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToAppContext(ExecutionContextDispatcher.java:68)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:53)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:244)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$Runner.callRequestManager(JavaApplicationProxy.java:1244)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$Runner.callEmbeddedApplication(JavaApplicationProxy.java:1122)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$StartCommand.doExecute(JavaApplicationProxy.java:1575)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$AbstractCommand.execute(JavaApplicationProxy.java:1488)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$Runner.execute(JavaApplicationProxy.java:1028)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy.execute(JavaApplicationProxy.java:859)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy.start1(JavaApplicationProxy.java:637)
      at com.sap.tc.webdynpro.portal.pb.impl.JavaApplicationProxyAdapter.create(JavaApplicationProxyAdapter.java:166)
      at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1661)
      at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:408)
      at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:638)
      at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:1087)
      at com.sap.portal.pb.PageBuilder$PhaseListenerImpl.doPhase(PageBuilder.java:2091)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:251)
      at com.sap.tc.webdynpro.clientserver.phases.PortalDispatchPhase.execute(PortalDispatchPhase.java:50)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:97)
      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:515)
      at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:58)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1671)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1485)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:894)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:357)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:325)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
      at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
      at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
      at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
      at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
      at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
      at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
      at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: com.sap.tc.webdynpro.services.exceptions.ApplicationFaultException: wdDoInit: exception thrown in this user coding area
      at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:164)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
      at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:258)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:590)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1457)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:660)
      ... 78 more
    Caused by: com.sap.tc.webdynpro.progmodel.context.DictionaryException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
      at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getScalarType(DictionaryHandler.java:378)
      at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getDataType(DictionaryHandler.java:126)
      at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:438)
      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:1002)
      at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:294)
      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:974)
      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:978)
      at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:67)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:205)
      at com.sap.tc.webdynpro.progmodel.components.Component.getCustomControllerInternal(Component.java:668)
      at com.sap.tc.webdynpro.progmodel.components.Component.getController(Component.java:597)
      at com.sap.tc.webdynpro.progmodel.components.Component.getController(Component.java:552)
      at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.getPublicInterface(DelegatingComponent.java:275)
      at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdGetBackendConnectionsController(InternalFPMComponent.java:190)
      at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:204)
      at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:105)
      at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:161)
      ... 84 more
    Caused by: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
      at com.sap.tc.webdynpro.services.datatypes.core.DictionarySetup$1.fillSldConnection(DictionarySetup.java:51)
      at com.sap.dictionary.runtime.ProviderFactory.internalResolveLogicalNameToJCODestination(ProviderFactory.java:437)
      at com.sap.dictionary.runtime.ProviderFactory.resolveLogicalNameToJCODestination(ProviderFactory.java:361)
      at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:198)
      at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:161)
      at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:96)
      at com.sap.dictionary.runtime.DdDictionaryPool.makeDictionary(DdDictionaryPool.java:75)
      at com.sap.dictionary.runtime.DdDictionaryPool.makeDictionary(DdDictionaryPool.java:63)
      at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:230)
      at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getScalarType(DictionaryHandler.java:370)
      ... 100 more
    Caused by: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:153)
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:161)
      at com.sap.tc.webdynpro.services.sal.sl.core.SystemLandscapeInternal.getJCOClientConnectionUnMapped(SystemLandscapeInternal.java:64)
      at com.sap.tc.webdynpro.services.datatypes.core.DictionarySetup$1.fillSldConnection(DictionarySetup.java:32)
      ... 109 more
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to load client to connect to SLD. Please check your SLD connection settings using the Visual Admin.
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory$1.run(SystemLandscapeFactory.java:626)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getClient(SystemLandscapeFactory.java:619)
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.readJCODestinationFromSLD(JCOClientConnection.java:458)
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:396)
      at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:237)
      at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:222)
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:84)
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:151)
      ... 112 more
    Caused by: com.sap.sldserv.exception.SldServiceRuntimeException: Getting CIMClient failed: com.sap.sldserv.exception.SldServiceRuntimeException: Destination SLD_Client not found. Destinations are defined in the Destination service.. Please check that destination SLD_Client is maintained correctly.
      at com.sap.sldserv.SldApplicationService.getCimClient(SldApplicationService.java:93)
      at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory$1.run(SystemLandscapeFactory.java:623)
      ... 120 more
    Caused by: com.sap.sldserv.exception.SldServiceRuntimeException: Destination SLD_Client not found. Destinations are defined in the Destination service.
      at com.sap.sldserv.SldApplicationService.getCimClient(SldApplicationService.java:75)
      ... 121 more

  • ESS Leave Request - Portal Runtime Error when the "Cancel" button is hit

    We have configured the Leave Request application, created a custom workflow, created security roles, and we are now testing in our quality environment. 
    We are encountering a very strange "Portal runtime error" which we cannot resolve - When you come into the Leave Request application, and then, without completing the request, just hit the "Cancel" button, the runtime error is generated.
    We have run a trace of authorizations and everything has come up clean.  Everything is configured, and there are no problems actually creating, approving and posting requests. 
    Any ideas?

    Hi,
    please check whether the user is authorized to cancel the request.
    and take a look at this WS12300111
    Regards
    Manohar

  • Runtime Error from Microsoft Visual C++

    "the application has requested the runtime to terminate it in an unusual way. Please contact the application support team for more information."
    The Runtime Error happens when I am playing with InstanceManager addinstance buttons. The error usually happens when I make a change to the script and or the buttons position in the hierarchy and then hit Save or when I switch view from Design View to Preview PDF.
    The New Form message occurs seemingly randomly after I make a change to the document, Save it, close it, come back later and try to open it.
    Anyone know the solution? Thanks

    FYI, if you are sufficiently computer literate to follow the instructions in the Youtube link, Edgar's suggested fix is much easier/quicker than a complete uninstall/reinstall.
    Nice job Edgar!

  • Runtime error when click some pages

    Hello everyone,
    I had created lots of pages in portal ,
    most of them works fine, but when I click some pages,
    there occured runtime error.
    And these pages can be preview .
    The error message as follow:
    "Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    The exception was logged. Inform your system administrator..
    Exception id: 04:58_07/06/06_0132_12780850
    See the details for the exception ID in the log file" .
    Is there anybody know the reason and the way to solve problem?
    Thanks & Regards,
    Jianguo Chen

    Have you looked at defaulttrace.trc file for the following id "Exception id: 04:58_07/06/06_0132_12780850".
    You can find the LOG file at
    <DRIVE:>\usr\sap\<SID>\<INSTANCE>\j2ee\cluster\server<ID>\log
    Do send me the file as well along with James and I will see if I can help too.
    regards,
    Piyush
    ps: please mark all useful answers.

  • I connected my ipod touch to pc to sync, accepted updates, got error msg, clicked cancel and now ipod is unresponsive - black screen, tried sleep/wake

    I have just connected my ipod touch to my pc to sync when itunes said there were updates.  I accepted but when they were running I got an error message saying if I continued all my data would be lost - I clicked cancel and now my ipod is completely unresponsive.  I have a black screen, it won't switch on, I tried putting it in its dock and nothing!  I tried holding wake & on button and nothing! When I connect to pc it is as if it isn't there!  Can you please help, getting very frustrated now x

    - Try placing the iPod in DFU mode and then try to restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Next connect to another computer to help determine if you have an iPod or computer problem.

  • Runtime error from null value

    I have a request to create a Function Module that will be assigned to an Action Box, which when executed will copy long text for Quality Notification tasks.  I have the module created and working, but after my code is executed a runtime error happens due to a null value being passed to a method in the SAP program QM07_UPDATE_ACTIONBOX.  It looks to me like it is trying to perform some kind of cleanup tasks, and is trying to delete a node tree that does not exist.  My code did nothing with any kind of node tree, so I am not sure how to avoid this runtime error.  My code works as desired, except for this error that occurs after my code is processed.  Any assistance would be greatly appreciated!  Below are more details from the error received...
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "QM07_UPDATE_ACTIONBOX" "(FUNCTION)", nor was it propagated by a RAISING clause.  Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing') access a component (variable: "TREE_ACTIONBOX").   An object reference must point to an object (an instance of a class) before it can be used to access components.  Either the reference was never set or it was set to 'NULL' using the CLEAR statement.
    Information on where terminated
        Termination occurred in the ABAP program "SAPLQM07" - in "QM07_UPDATE_ACTIONBOX".  The main program was "SAPLIQS0 ".
        In the source code you have the termination point in line 39 of the (Include) program "LQM07U12".  The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in procedure "QM07_UPDATE_ACTIONBOX" "(FUNCTION)", but it was neither handled locally nor declared in the RAISING clause of its signature.
        The procedure is in program "SAPLQM07 "; its source code begins in line 1 of the (Include program "LQM07U12 ".
       28 * bei Tree werden Knoten und Items gelöscht bei Table Control wird
       29 * nur g_control_tab neu aufgebaut
       30   if g_tree = c_x.
       31 *---- Löschen der bestehenden Knoten und Items
       32
       33 * Tabelle der Knotenschlüssel erzeugen
       34     loop at g_node_tab into l_node.
       35       append l_node-node_key to l_dnodes_tab.
       36     endloop.
       37
       38 * Items
    >>>>>     call method tree_actionbox->delete_all_items_of_nodes
       40       EXPORTING
       41         node_key_table          = l_dnodes_tab
       42       EXCEPTIONS
       43         failed                  = 1
       44         cntl_system_error       = 2
       45         error_in_node_key_table = 3
       46         dp_error                = 4.

    Yes, I have searched the notes.  I used the keywords suggested in the dump...
    If the error occures in a non-modified SAP program, you may be able to find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following keywords:
    "OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
    "SAPLQM07" or "LQM07U12"
    "QM07_UPDATE_ACTIONBOX"

  • Runtime error from LT03/LT06 after System upgrade

    Hi All,
    Currently we are upgrading our system from 4.7 to eec6.
    Not we are getting a runtime error while executing LT03/LT06 txns...
    the error is - Runtime error GETWA_NOT_ASSIGNED...
    Program - SAPLLPRI
    Include - LLPRIF00.
    Row 525.
    Module name - PROTO_TAB_READ.
    Please suggest me...if there is any SAP note .to be appied.
    Thnx
    RK

    Please search yourself for applicable SAP notes before asking others.
    Thread locked.
    Thomas

  • C program: Runtime error from GetStaticMethodId()

    I am new to Java and need help with .....
    I want to call a java method (native) from legacy C code.
    The java code has to return a Hashtable to the C code.
    My java works and I wrote another java file to call it. That
    also works fine and I can display my new Hashtable in
    the calling java code.
    However in my calling C code I get a runtime error when
    executing mid2 = GetStaticMethodId() // mid2 returns 0
    I believe the problem is in the method signature. If I
    make it an int method, it runs and returns an int
    but I want a hashtable to be returned.
    Using javah RMHash, produces RMHashData.h with nothing useful in it.
    My environment is: NT, jdk1.3, VIsual Studio cl.
    I hope someone can help me.
    Sample java code: This runs OK stand alone or called
    from another piece of java code.
    import java.util.Hashtable;
    import java.io.*;
    import java.util.*;
    public class RMHashData
    public RMHashData()
    public static Object getMasterData()
    Hashtable hash = new Hashtable(20);
    int rtnInt = 6;
    hash.put ("1050", new String("AAAAAA"));
    hash.put ("1051", new String("BBBBB"));
    hash.put ("1052", new String("CCCCCCCCC"));
    return hash;
    public static void main(String[] args)
    int RtnInt;
    Hashtable RtnHash;
    RtnHash = (Hashtable)RMHashData.getMasterData();
    Sample C code: (I had to retype this so cut out superfluous code)
    #include <stdio.h>
    #include <jni.h>
    main()
    JNIEnv *env;
    JavaVM *jvm;
    JavaVMOption options[4];
    JavaVMInitArgs vm_args;
    jint res;
    jclass cls;
    jmethodID mid, mid2;
    jstring jstr;
    jvalue result;
    jobjectArray args;
    char classPath[256];
    char libraryPath[256];
    vm_args.version = JNI_VERSION_1_2;
    /* set the options to pass to the VM */
    sprintf(classPath, "%s", "-Djava.class.path=c:\\data\\java_dev\\src");
    sprintf(libraryPath, "%s", "-Djava.library.path=c:\\jdk131\\lib");
    options[0].optionString = classPath;
    options[1].optionString = libraryPath;
    vm_args.options = options;
    vm_args.nOptions = 2;
    vm_args.ignoreUnrecognized = JNI_FALSE;
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm, (void **) &env, &vm_args);
    cls = (*env)->FindClass(env, "RMHashData");
    // *** Getting the main method works
    mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
    // *** Getting this method FAILS
    mid2 = (*env)->GetStaticMethodID(env, cls, "getMasterData", "()[Ljava/lang/Object;");
    if (mid2 == 0) // ***** mid2 is 0
    fprintf(stderr, "Can't find Prog.getMasterData\n");
    return 1;
    result.l = (*env)->CallStaticObjectMethod (env,cls, mid, args);
    // Then comes more fun to pull apart the hashtable...

    Bill, Thank you very much - that was it!!!!!
    Not sure about your comment...
    Comment: Why don't you just return a Hashtable?The line: return hash;
    in getMasterData() does exactly that.
    If you mean my declaration of the method:
    public static Object getMasterData()
    where Object should be Hashtable.
    I thought the type in the declaration had to match the
    JNI call - CallStaticObjectMethod(). I notice there is no
    CallStaticHashtableMethod(). Well that is my guess and I only started looking at Java a few days ago and have lots to learn. Thank you again.
    Ron...

  • Erecuitment- Webdynpro - Portal Runtime Error When Clicked On Page Or Iview

    Hi Guys,
    I am getting error for every link on recruiter tab in portal as below: 
    Portal runtime error.
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 02:52_07/11/09_0292_3408050
    Refer to the log file for details about this exception.
    We are on EPH4 with web dynpro ABAP.
    Any clues?
    Thanks.

    Hi Ron,
    basically there can be 2 different reasons.
    If there is something wrong with the portal settings / connection to e-recruiting you will probably need your portal guys to have it checked.
    While the portal guys are checking the connection you should check if there is anything with the e-recruiting server. As a first step log on to the backend and check TCode SLG1 for any error entries. Perhaps it is something very basic like a missing candidate for your user you have to create using report RCF_CREATE_USER so you can solve on your own. If you encounter a message you cannot handle on your own, just post it again here, we will probably able to offer some guidance. In addition to checking SLG1 having a look into SM21 and ST22 can be always useful.
    Best Regards
    Roman

Maybe you are looking for