• Runtime Error

    By Patrick Tippner 4 years ago

    After setting up the wiki initially and trying to access it with a browser, i get the following error:

    Unexpected runtime error

    The runtime has encountered an unexpected error.


    Error source

    Page Name:/startPageNew.xsp
    Control Id: _id36




    Exception

    Error while executing JavaScript computed expression
    Script interpreter error, line=3, col=43: 'applicationScope.tabconfig' is null


    JavaScript code

    1://print("Hn ==== " + applicationScope.tabconfig.homenav)
       2: if(requestScope.activeTab === "home" || requestScope.activeTab == null){
       3:   return applicationScope.tabconfig.homenav;
       4: }else if(requestScope.activeTab === "learning"){
       5:   return applicationScope.tabconfig.learningnav;
       6: }else{
       7:   return "";
       8: }
    

    Stack Trace

    com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript computed expression
        com.ibm.xsp.binding.javascript.JavaScriptValueBinding.getValue(JavaScriptValueBinding.java:132)
        com.ibm.xsp.binding.PropertyMap.setEvaluateValueBindings(PropertyMap.java:263)
        com.ibm.xsp.binding.PropertyMap.beginEvaluateRoot(PropertyMap.java:124)
        com.ibm.xsp.util.DataPublisher.pushCompositeData(DataPublisher.java:224)
        com.ibm.xsp.util.DataPublisher.pushCompositeData(DataPublisher.java:210)
        com.ibm.xsp.component.UIIncludeComposite.buildContents(UIIncludeComposite.java:450)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIOutputEx.buildContents(UIOutputEx.java:88)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:339)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIOutputEx.buildContents(UIOutputEx.java:88)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIIncludeComposite.buildPageContents(UIIncludeComposite.java:692)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:334)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:250)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.addComponent(AbstractCompiledPage.java:383)
        com.ibm.xsp.component.UIIncludeComposite.buildContents(UIIncludeComposite.java:453)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIOutputEx.buildContents(UIOutputEx.java:88)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIOutputEx.buildContents(UIOutputEx.java:88)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIViewRootEx.buildContents(UIViewRootEx.java:1619)
        com.ibm.xsp.component.UIViewRootEx2.buildContents(UIViewRootEx2.java:247)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:250)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.createViewRoot(AbstractCompiledPage.java:161)
        com.ibm.xsp.application.ViewHandlerExImpl._createViewRoot(ViewHandlerExImpl.java:505)
        com.ibm.xsp.application.ViewHandlerExImpl.createViewRoot(ViewHandlerExImpl.java:551)
        com.ibm.xsp.application.ViewHandlerExImpl.doCreateView(ViewHandlerExImpl.java:141)
        com.ibm.xsp.application.ViewHandlerEx.createView(ViewHandlerEx.java:84)
        com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:213)
        com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:193)
        com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:154)
        com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:137)
        com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:86)
        com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:538)
        com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1151)
        com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:803)
        com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:758)
        com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:527)
        com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1135)
        com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:523)
        com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:352)
        com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:304)
        com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:261)
        com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:291)
    com.ibm.jscript.InterpretException: Script interpreter error, line=3, col=43: 'applicationScope.tabconfig' is null
        com.ibm.jscript.ASTTree.ASTMember.interpret(ASTMember.java:153)
        com.ibm.jscript.ASTTree.ASTReturn.interpret(ASTReturn.java:49)
        com.ibm.jscript.ASTTree.ASTIf.interpret(ASTIf.java:85)
        com.ibm.jscript.ASTTree.ASTProgram.interpret(ASTProgram.java:119)
        com.ibm.jscript.ASTTree.ASTProgram.interpretEx(ASTProgram.java:139)
        com.ibm.jscript.JSExpression._interpretExpression(JSExpression.java:435)
        com.ibm.jscript.JSExpression.access$1(JSExpression.java:424)
        com.ibm.jscript.JSExpression$2.run(JSExpression.java:414)
        java.security.AccessController.doPrivileged(AccessController.java:284)
        com.ibm.jscript.JSExpression.interpretExpression(JSExpression.java:410)
        com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:251)
        com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:234)
        com.ibm.xsp.javascript.JavaScriptInterpreter.interpret(JavaScriptInterpreter.java:220)
        com.ibm.xsp.javascript.JavaScriptInterpreter.interpret(JavaScriptInterpreter.java:192)
        com.ibm.xsp.binding.javascript.JavaScriptValueBinding.getValue(JavaScriptValueBinding.java:78)
        com.ibm.xsp.binding.PropertyMap.setEvaluateValueBindings(PropertyMap.java:263)
        com.ibm.xsp.binding.PropertyMap.beginEvaluateRoot(PropertyMap.java:124)
        com.ibm.xsp.util.DataPublisher.pushCompositeData(DataPublisher.java:224)
        com.ibm.xsp.util.DataPublisher.pushCompositeData(DataPublisher.java:210)
        com.ibm.xsp.component.UIIncludeComposite.buildContents(UIIncludeComposite.java:450)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIOutputEx.buildContents(UIOutputEx.java:88)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:339)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIOutputEx.buildContents(UIOutputEx.java:88)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIIncludeComposite.buildPageContents(UIIncludeComposite.java:692)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:334)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:250)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.addComponent(AbstractCompiledPage.java:383)
        com.ibm.xsp.component.UIIncludeComposite.buildContents(UIIncludeComposite.java:453)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIOutputEx.buildContents(UIOutputEx.java:88)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIOutputEx.buildContents(UIOutputEx.java:88)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
        com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
        com.ibm.xsp.component.UIViewRootEx.buildContents(UIViewRootEx.java:1619)
        com.ibm.xsp.component.UIViewRootEx2.buildContents(UIViewRootEx2.java:247)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:328)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:250)
        com.ibm.xsp.page.compiled.AbstractCompiledPage.createViewRoot(AbstractCompiledPage.java:161)
        com.ibm.xsp.application.ViewHandlerExImpl._createViewRoot(ViewHandlerExImpl.java:505)
        com.ibm.xsp.application.ViewHandlerExImpl.createViewRoot(ViewHandlerExImpl.java:551)
        com.ibm.xsp.application.ViewHandlerExImpl.doCreateView(ViewHandlerExImpl.java:141)
        com.ibm.xsp.application.ViewHandlerEx.createView(ViewHandlerEx.java:84)
        com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:213)
        com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:193)
        com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:154)
        com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:137)
        com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:86)
        com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:538)
        com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1151)
        com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:803)
        com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:758)
        com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:527)
        com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1135)
        com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:523)
        com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:352)
        com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:304)
        com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:261)
        com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:291)
    
    • Investigating - Update build path

      By Jennifer E Heins 3 years ago
                  <p>
                      First, let&#39;s make sure ConfiguredProducts.java is there.</p>
                  <ol>
                      <li>
                          In Designer, go to Window &gt; Show Eclipse Views &gt; and select Navigator. If you don&#39;t have that in the list select Other &gt; General &gt; Navigator and click OK.</li>
                      <li>
                          Locate the database template and expand it as follows:<br/>
                          <br/>
                          WebContent &gt; WEB-INF &gt; src &gt; com &gt; ibm &gt; lotus &gt; idc &gt; wiki</li>
                      <li>
                          ConfiguredProducts.java should be there. If it isn&#39;t there, copy it from the same location in the template to the wiki. If it is there, go to the next step.</li>
                  </ol>
                  <p>
                      Second, let&#39;s make sure the build path is set correctly.</p>
                  <ol>
                      <li>
                          In Designer, right-click on the wiki and select Project Properties.</li>
                      <li>
                          Go to the Source tab and see if there is a build path for WebContent/WEB-INF/src</li>
                      <li>
                          If not, create it following these steps:
                          <ol>
                              <li>
                                  Click Add Folder</li>
                              <li>
                                  Expand WebContent and WEB-INF.</li>
                              <li>
                                  Only select src under WEB-INF and click OK to create the build path.</li>
                              <li>
                                  Click OK on Project Properties.</li>
                          </ol>
                      </li>
                      <li>
                          Try the wiki again and see if this fixes the problem.</li>
                  </ol>
                  <p>
                      Let me know if this works and I can update the template with this explicit build path.</p>
              </div>
          </div>
      </div>