14 Replies Latest reply on Sep 7, 2006 5:33 PM by Tim Seckendorf

    Cannot Render: Object Not Found

    David W. Yutzy Newbie

      Just downloaded latest version of BETA portal and took a portlet I know works under Pluto, Sun Portal using JSR168, created the .xml files required by JBoss Portal and got:

      Cannot Render: Object Not Found

      I checked and double-checked the format of the XML files and I didn't see any errors in the logs; everything points to the portlet deploying fine.

      What should I be looking for next?

        • 1. Re: Cannot Render: Object Not Found
          Roy Russo Master

          Post the jboss portal descriptors, so we can have a look.

          • 2. Re: Cannot Render: Object Not Found
            David W. Yutzy Newbie

            Ok, here ya go:

            ***portlet.xml

            <?xml version="1.0" encoding="UTF-8"?>
            
            <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
             <portlet>
             <description>Store Facilities-Requests</description>
             <portlet-name>SFRequests</portlet-name>
             <display-name>Store Facilities-Requests</display-name>
             <portlet-class>com.storefacilities.portlets.Requests</portlet-class>
             <expiration-cache>-1</expiration-cache>
             <supports>
             <mime-type>text/html</mime-type>
             <portlet-mode>VIEW</portlet-mode>
             <portlet-mode>EDIT</portlet-mode>
             <portlet-mode>HELP</portlet-mode>
             </supports>
             <portlet-info>
             <title>Store Facilities-Requests</title>
             <short-title>Store Facilities-Requests</short-title>
             <keywords>Store Facilities</keywords>
             </portlet-info>
             </portlet>
             </portlet-app>
            


            ***portlet-instances.xml
            <?xml version="1.0" standalone="yes"?>
            <instances>
             <instance>
             <instance-id>SFRequestsInstance</instance-id>
             <portlet-ref>SFRequests</portlet-ref>
             </instance>
            </instances>
            


            ***SFRequests-object.xml
            <?xml version="1.0" encoding="UTF-8"?>
            <deployments>
             <deployment>
             <if-exists>overwrite</if-exists>
             <parent-ref>default.default</parent-ref>
             <window>
             <window-name>SFRequestsPortletWindow</window-name>
             <instance-ref>SFRequestsInstance</instance-ref>
             <region>center</region>
             <height>1</height>
             </window>
             </deployment>
            </deployments>
            


            • 4. Re: Cannot Render: Object Not Found
              Vincenzo Segreto Newbie

              in -object.xml
              try:
              <parent-ref>default</parent-ref>

              • 5. Re: Cannot Render: Object Not Found
                David W. Yutzy Newbie

                Nope. I get the following exception:

                [CODE]
                23:11:38,796 ERROR [MainDeployer] Could not start deployment: file:/C:/Documents
                and Settings/dyutzy/My Documents/My Downloads/jboss-portal-2.4.0-BETA1/server/d
                efault/tmp/deploy/tmp24764RVSISFRequests-exp.war/WEB-INF/
                org.jboss.deployment.DeploymentException: Not a page; - nested throwable: (java.
                lang.IllegalArgumentException: Not a page)
                at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectD
                eployment.java:284)
                at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$Deploym
                entContext.start(PortalDeploymentInfo.java:211)
                at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerD
                eployer.java:242)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                or.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                BeanOperationInterceptor.java:142)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy114.deploy(Unknown Source)
                at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(Server
                Deployer.java:296)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy87.deploy(Unknown Source)
                at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter
                .java:54)
                at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotificati
                on(WebAppIntercepter.java:145)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
                onListenerProxy.java:153)
                at $Proxy115.handleNotification(Unknown Source)
                at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotificat
                ion(JBossNotificationBroadcasterSupport.java:127)
                at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotificatio
                n(JBossNotificationBroadcasterSupport.java:108)
                at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerS
                upport.java:340)
                at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java
                :308)
                at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:48
                2)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                or.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                BeanOperationInterceptor.java:142)
                at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
                .java:97)
                at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
                rServiceMBeanSupport.java:238)
                at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:
                117)
                at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
                start(SubDeployerInterceptorSupport.java:188)
                at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
                ptor.java:95)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy92.start(Unknown Source)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
                at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                or.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                BeanOperationInterceptor.java:142)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy8.deploy(Unknown Source)
                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
                tScanner.java:421)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
                canner.java:610)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                doScan(AbstractDeploymentScanner.java:263)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                loop(AbstractDeploymentScanner.java:274)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                run(AbstractDeploymentScanner.java:225)
                Caused by: java.lang.IllegalArgumentException: Not a page
                at org.jboss.portal.core.metadata.WindowMetaData.create(WindowMetaData.j
                ava:88)
                at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectD
                eployment.java:236)
                ... 82 more
                [/CODE]

                • 6. Re: Cannot Render: Object Not Found
                  David W. Yutzy Newbie

                  OK...

                  The only thing I can assume from lack of responses is that this is a legit error in JBoss...

                  • 8. Re: Cannot Render: Object Not Found
                    David W. Yutzy Newbie

                    How is it wrong? Remember, I submitted the first one, then the second on the request to change and both resulted in errors.

                    I followed the directions and don't see the problem you see, could yoube more specific?

                    • 9. Re: Cannot Render: Object Not Found
                      Roy Russo Master

                      Wrap your instance descriptor with

                      <deployments>
                      <deployment
                      ...
                      


                      • 10. Re: Cannot Render: Object Not Found
                        David W. Yutzy Newbie

                        Still no go. I changed the instance file as follows:

                        <?xml version="1.0" standalone="yes"?>
                        <deployments>
                         <deployment>
                         <instances>
                         <instance>
                         <instance-id>SFRequestsInstance</instance-id>
                         <portlet-ref>SFRequests</portlet-ref>
                         </instance>
                         </instances>
                         </deployment>
                        </deployments>
                        


                        and got this exception

                        15:38:25,750 ERROR [PortletAppDeployment] Error when creating instances
                        org.jboss.portal.common.util.NoSuchElementException: Missing child instance of e
                        lement deployment
                         at org.jboss.portal.common.util.XML.getUniqueChild(XML.java:325)
                         at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.buildInst
                        ances(PortletAppDeployment.java:266)
                         at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(Por
                        tletAppDeployment.java:80)
                         at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$Deploym
                        entContext.start(PortalDeploymentInfo.java:211)
                         at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerD
                        eployer.java:242)
                         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                        java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                        sorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                        er.java:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                        or.java:133)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                        BeanOperationInterceptor.java:142)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                        java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy114.deploy(Unknown Source)
                         at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(Server
                        Deployer.java:296)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                        java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                        sorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                        er.java:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                        java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy87.deploy(Unknown Source)
                         at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter
                        .java:54)
                         at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotificati
                        on(WebAppIntercepter.java:145)
                         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                        sorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
                        onListenerProxy.java:153)
                         at $Proxy115.handleNotification(Unknown Source)
                         at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotificat
                        ion(JBossNotificationBroadcasterSupport.java:127)
                         at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotificatio
                        n(JBossNotificationBroadcasterSupport.java:108)
                         at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerS
                        upport.java:340)
                         at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java
                        :308)
                         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:48
                        2)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                        java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                        sorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                        er.java:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                        or.java:133)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                        BeanOperationInterceptor.java:142)
                         at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
                        .java:97)
                         at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
                        rServiceMBeanSupport.java:238)
                         at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:
                        117)
                         at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
                        start(SubDeployerInterceptorSupport.java:188)
                         at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
                        ptor.java:95)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                        java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy92.start(Unknown Source)
                         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
                         at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                        sorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                        er.java:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                        or.java:133)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                        BeanOperationInterceptor.java:142)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                        java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy8.deploy(Unknown Source)
                         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
                        tScanner.java:421)
                         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
                        canner.java:634)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                        doScan(AbstractDeploymentScanner.java:263)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                        loop(AbstractDeploymentScanner.java:274)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                        run(AbstractDeploymentScanner.java:225)
                        


                        • 11. Re: Cannot Render: Object Not Found
                          Roy Russo Master

                          No. Look at the doc:

                          <?xml version="1.0" standalone="yes"?>
                          <deployments>
                           <deployment>
                           <instance>
                           <instance-id>NewsPortletInstance2</instance-id>
                           <portlet-ref>NewsPortlet</portlet-ref>
                           </instance>
                           </deployment>
                          </deployments>
                          


                          I'm assuming you're using 2.4? If not, let me know. Also, can you please try with CR1 or CR2 of 2.4 and not the Beta?

                          Please do a clean install, or use the bundle with hypersonic, to isolate any other problems that may be occurring.

                          • 12. Re: Cannot Render: Object Not Found
                            David W. Yutzy Newbie

                            Ok, that got it deployed!

                            What's really, really wierd is the portal/portlet appears to be working fine, but it's throwing a butt-load of exceptions in the JBoss window.

                            I can post some if you want for reference...

                            • 13. Re: Cannot Render: Object Not Found
                              Tim Seckendorf Newbie

                              Hello Barddzen,

                              Did you get this issue figured out, I have the exact problem. The portlet window renders but I get the following error for the portlet page.

                              Object not found HelloMiroApp.HelloMiroPortlet

                              HelloMiro is the simple portlet and class name I use as the portlet. Let me know what you found out about your problem deploying.

                              tseckend

                              • 14. Re: Cannot Render: Object Not Found
                                Tim Seckendorf Newbie

                                Hello Barddzen,

                                Did you get this issue figured out, I have the exact problem. The portlet window renders but I get the following error for the portlet page.

                                Object not found HelloMiroApp.HelloMiroPortlet

                                HelloMiro is the simple portlet and class name I use as the portlet. Let me know what you found out about your problem deploying.

                                tseckend