11 Replies Latest reply on Jun 7, 2006 12:06 PM by patrickdalla

    Page disappear after som time

    patrickdalla

      When I do not access jboss portal during some period, the pages disappear, they aren't shown in NavigatorPortlet.

      It happens frequently.

      Why?

        • 1. Re: Page disappear after som time

          Could you please include more information on your problem? Such as portal version, AS version, what time period, any exceptions in the logs of the application server?

          rali

          • 2. Re: Page disappear after som time
            patrickdalla

            JBoss portal 2.2 on JBoss AS 4.0.3 and postgresql.

            No exception appear in Logs and stdout.

            Period: I didn't measure. Frequently from one day to the next day. I'm still testing JBoss Portal 2.2

            • 3. Re: Page disappear after som time

              So the tabs on the top of your page are just disappearing? If you refresh the browser page are they showing up again?

              • 4. Re: Page disappear after som time
                patrickdalla

                No, my friend. It is not so stupid.

                In fact the oposite occur.

                When I go to the computer in the other day and the browser was let opened the tabs are there (10 or 11 pages).

                So I press refresh and only the pages that already come with portal are displayed.

                • 5. Re: Page disappear after som time

                  So is navigator really a portlet in and of itself? If so, did you check your navigator-object.xml under 'navigator/src/resources/portal-navigator-war/WEB-INF'?
                  You can define properties for the page in each portlet. There is some 'xml' property that you can set for property in this xml. I cannot think of that property to set tabs on top of a page off the top of my head... I could find out for you if you wish.

                  • 6. Re: Page disappear after som time

                    Ignore my previous post... This is something other problem because you mentioned that they come and go.

                    • 7. Re: Page disappear after som time
                      patrickdalla

                      Still hapenning.

                      • 8. Re: Page disappear after som time

                        Here is what I could suggest: What is your portal version? Is it portal 2.2 or portal 2.2.1, or another version of 2.2? If you made no changes, then compare the change log for your version of 2.2, and the latest version, and try doing a diff between your portal and the portal that was originally released. If you made many changes, then you might want to start from scratch without deleting the broken portal, and then incrementally change the portal until you reach the change that causes the problem.

                        • 9. Re: Page disappear after som time
                          patrickdalla

                          OK. I ll try.

                          Today the same error occured but because a different cause.

                          I was using jmeter to simulate 150 simultaneous access to portal. The max-pool-size of portal-ds.xml was in 20.

                          Almost all requests were unsuccessfull returning an error indicating that the timeout to acquire the connection was acheived.

                          After that, the configured pages disapeared.

                          • 10. Re: Page disappear after som time
                            patrickdalla

                            I was debugging JBoss Portal 2.2 source code to solve my problem and I find some Exception that occur in RenderPageCommand.execute() method.

                            org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=centauro.sjes.gov.br/1098, BranchQual=, localId=1098]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=centauro.sjes.gov.br/1098, BranchQual=, localId=1098])

                            I've seen the following forum
                            http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939176

                            And it looks that the cause can be some Transaction that is not ended gracefully after a Portal Request.

                            The exception isn't logged. It is simply ignored so the page is not rendered successfully.

                            Can it be the problem?

                            • 11. Re: Page disappear after som time
                              patrickdalla

                              Ignore the previous message. It was an unrepeatable error.


                              But here is the line where the error occur, in class WindowCommand.java in method create:

                               component = context.getExecutionContext().getController().getWebAppRegistry().getComponent(componentHandle);
                               if (component == null)
                               {
                               throw new ObjectNotFoundException(componentHandle);
                               }
                              


                              The component disapear from WebAppRegistry.