• Application Layout: titleBarName

    By Per Henrik Lausten 1 decade ago

    When a titleBarName property is added to the Application Layout control, the xpage fails to load (error 500). Once removed, it loads fine again.

     

    Application Name

    • Are you previewing via XPiNC?

      By Andrejus Chaliapinas 1 decade ago

      If so - could you check what you have in your \IBM_TECHNICAL_SUPPORT folder inside some recent xpages.log?

      Here I've got this stack trace right after adding that property inside Designer and previewing in Notes - do you have the same?

      javax.servlet.ServletException: java.lang.NullPointerException
       at com.ibm.domino.xsp.module.nsf.NSFService.doService(Unknown Source)
       at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(Unknown Source)
       at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(Unknown Source)
       at com.ibm.domino.xsp.bridge.websrv.servlets.DispatcherServlet.service(Unknown Source)
       at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(Unknown Source)
       at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(Unknown Source)
       at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(Unknown Source)
       at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(Unknown Source)
       at javax.servlet.http.HttpServlet.service(Unknown Source)
       at com.ibm.pvc.webhttpservice.BridgeServlet.service(Unknown Source)
       at com.ibm.pvc.internal.webcontainer.VirtualHost.handleRequest(Unknown Source)
       at com.ibm.ws.webcontainer.WebContainer.handleRequest(Unknown Source)
       at com.ibm.wsspi.webcontainer.WebContainer.handleRequest(Unknown Source)
       at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Unknown Source)
       at com.ibm.ws.http.HttpConnection.readAndHandleRequest(Unknown Source)
       at com.ibm.ws.http.HttpConnection.run(Unknown Source)
       at com.ibm.ws.util.ThreadPool$Worker.run(Unknown Source)
      Caused by: java.lang.NullPointerException
       at com.ibm.domino.xsp.module.nsf.ModuleClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at com.ibm.designer.runtime.domino.adapter.ComponentModule.createServlet(Unknown Source)
       at com.ibm.domino.xsp.module.nsf.NSFComponentModule.getXspEngineServlet(Unknown Source)
       at com.ibm.domino.xsp.module.nsf.NSFComponentModule.getServlet(Unknown Source)
       at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(Unknown Source)
       at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(Unknown Source)
       at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(Unknown Source)
       at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(Unknown Source)
       at com.ibm.domino.xsp.module.nsf.NSFService.access$0(Unknown Source)
       at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
       at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
       at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
       at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceThread.run(Unknown Source)
       

      After Notes and Designer restart - I could see page normally loaded with Application title displayed.

       

      • I'm testing in my browser

        By Per Henrik Lausten 1 decade ago

        I am testing against Domino 8.5.3 with the latest extlib deployed via the updatesite method. I can have a look at the log on the server if you want?

        • Please attach your log if you'll find one

          By Andrejus Chaliapinas 1 decade ago

          If you'll find any stack trace in some xpages.log on your Domino server, which corresponds by date/time to your error - please attach that file.

          • Stack trace

            By Per Henrik Lausten 1 decade ago

            Hi Andrejus, here's the stack trace with something that looks like a really good explanation:

            java.lang.NoSuchMethodError: com/ibm/xsp/extlib/component/layout/OneUIApplicationConfiguration.setTitleBarName(Ljava/lang/String;)V

            --

             

            12-12-11 09:01: Exception Thrown
            
            javax.servlet.ServletException: java.lang.NoSuchMethodError: com/ibm/xsp/extlib/component/layout/OneUIApplicationConfiguration.setTitleBarName(Ljava/lang/String;)V
            
            at com.ibm.xsp.webapp.FacesServlet.handleError(FacesServlet.java:619)
            
            at com.ibm.xsp.webapp.FacesServlet.renderErrorPage(FacesServlet.java:453)
            
            at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:183)
            
            at com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:137)
            
            at com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:103)
            
            at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:576)
            
            at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1267)
            
            at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:847)
            
            at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:796)
            
            at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:565)
            
            at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1251)
            
            at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:598)
            
            at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:421)
            
            at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:341)
            
            at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:297)
            
            at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)
            
            Caused by: java.lang.NoSuchMethodError: com/ibm/xsp/extlib/component/layout/OneUIApplicationConfiguration.setTitleBarName(Ljava/lang/String;)V
            
            at xsp.Layout$LayoutPage.createApplicationlayout(Layout.java:129)
            
            at xsp.Layout$LayoutPage.createComponent(Layout.java:83)
            
            at com.ibm.xsp.page.compiled.AbstractCompiledPage.buildComponent(AbstractCompiledPage.java:265)
            
            at com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:115)
            
            at com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
            
            at com.ibm.xsp.component.UIIncludeComposite.buildPageContents(UIIncludeComposite.java:692)
            
            at com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:340)
            
            at com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:256)
            
            at com.ibm.xsp.page.compiled.AbstractCompiledPage.addComponent(AbstractCompiledPage.java:389)
            
            at com.ibm.xsp.component.UIIncludeComposite.buildContents(UIIncludeComposite.java:453)
            
            at com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:334)
            
            at com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
            
            at com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
            
            at com.ibm.xsp.component.UIViewRootEx.buildContents(UIViewRootEx.java:1649)
            
            at com.ibm.xsp.component.UIViewRootEx2.buildContents(UIViewRootEx2.java:246)
            
            at com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:334)
            
            at com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:256)
            
            at com.ibm.xsp.page.compiled.AbstractCompiledPage.createViewRoot(AbstractCompiledPage.java:167)
            
            at com.ibm.xsp.application.ViewHandlerExImpl._createViewRoot(ViewHandlerExImpl.java:511)
            
            at com.ibm.xsp.application.ViewHandlerExImpl.createViewRoot(ViewHandlerExImpl.java:557)
            
            at com.ibm.xsp.application.ViewHandlerExImpl.doCreateView(ViewHandlerExImpl.java:141)
            
            at com.ibm.xsp.application.ViewHandlerEx.createView(ViewHandlerEx.java:90)
            
            at com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:238)
            
            at com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:200)
            
            at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:160)
            
            ... 13 more
            
             
            
            • Are you using latest version of Extlib?

              By Andrejus Chaliapinas 1 decade ago

              Support for that property was introduced only in latest Extlib 853-20111117-1058

              • NoSuchMethodError is a version mis-match problem

                By Maire Kehoe 1 decade ago

                As Andrejus said, you need to ensure that you're using the most recent version of the ExtLib everywhere you're using XPages.

                The stack trace implies that your Designer install is using a version of ExtLib using a property that was introduced 853-20111117-1058, but that your runtime environment is using an older version of the ExtLib where that property is not present. So you would need to upgrade the ExtLib version in the runtime environment.

                Your runtime environment might be a Domino server, a Notes Client install (different to the Designer install), or a Designer Web Preview server - when you install ExtLib into Designer you also need to separately install it into the Designer Web Preview server.

                [Instructions for installing to the Designer Web Preview server: http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Installing_an_XPages_Library_into_Designer#Preview+in+Web+Browser  ]

                • "restart task http" is your friend

                  By Per Henrik Lausten 1 decade ago

                   

                  <p dir="ltr">
                      I followed a very useful advice and did a &quot;restart task http&quot; instead of the &quot;tell http restart&quot; that I had done. And now it works.</p>
                  <p dir="ltr">
                      Thanks.</p>
                  

  • Works fine with me

    By Philippe Riand 1 decade ago

    I tried with the latest build. I bet you have a not up-to-date runtime