• Unexpected runtime error

    By Marcis Berzinskis 1 decade ago

    I try to set up wiki, but when I try to open it in browser I recieev following error. I tried to open it in notes client as xpage and it opens and works without problems.

     

    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: }
    
    • Look for java file and then check build path

      By Jennifer E Heins 1 decade ago

      First, let's make sure ConfiguredProducts.java is there.

      1. In Designer, go to Window > Show Eclipse Views > and select Navigator. If you don't have that in the list select Other > General > Navigator and click OK.
      2. Locate the database template and expand it as follows:

        WebContent > WEB-INF > src > com > ibm > lotus > idc > wiki
      3. ConfiguredProducts.java should be there. If it isn't there, copy it from the same location in the template to the wiki. If it is there, go to the next step.

      Second, let's make sure the build path is set correctly.

      1. In Designer, right-click on the wiki and select Project Properties.
      2. Go to the Source tab and see if there is a build path for WebContent/WEB-INF/src
      3. If not, create it following these steps:
        1. Click Add Folder
        2. Expand WebContent and WEB-INF.
        3. Only select src under WEB-INF and click OK to create the build path.
        4. Click OK on Project Properties.
      4. Try the wiki again and see if this fixes the problem.

      Let me know if this works and I can update the template with this explicit build path.

    • thanks Jennifer,I had same issue and your steps resolved it

      By Jim Romaine 1 decade ago

      Thanks for the concise instructions for resolving the issue. I had same problem and appears to be working now.

      • Runtime error

        By Rob Buurman 1 decade ago

        Hi,

        I got the same error as posted.

        The solution as described does not solve my problem.

        Any suggestions ?

        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: }
        

         

        • By Rudi Knegt 1 decade ago

          Has this ever been solved ? I'm running into this error message with a 9.0.1 FP1 and FP2 server as well, and debugging Javascript code is not my specialty..