Uploaded image for project: 'JBoss Portal'
  1. JBoss Portal
  2. JBPORTAL-2354

HA-CMS: NullPointerException after fail-over

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.7.1 Final
    • Fix Version/s: 2.7.3 Final
    • Component/s: Portal CMS
    • Labels:
      None
    • Environment:

      2 clustered JBP nodes, loadbalanced with httpd/mod_jk

      Description

      If I follow this process:

      • Boot both nodes, waiting until they are both fully up
      • Hit a node through load balancer
      • Click on the 'Register' tab in the 'User profile' portlet
      • Kill the node serving the portal request
      • Refresh the browser, failing over to second node
      • Click on 'Register' tab again

      I get the following NPE:

      2009-03-24 15:29:10,828 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to 127.0.0.1:1100
      javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1100 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1100 [Root exception is java.net.ConnectException: Connection refused]]
      ...
      2009-03-24 15:29:10,840 ERROR [org.jboss.portal.jems.ha.HASingletonInvoker] Cannot invoke proxy will no more retry
      java.lang.NullPointerException
      at org.jboss.portal.jems.ha.HASingletonInvoker.invoke(HASingletonInvoker.java:147)
      at org.jboss.portal.cms.impl.jcr.ha.HAJCRCMS.execute(HAJCRCMS.java:107)
      [full stack trace is attached]

      We should add a more user friendly exception handling.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  soshah Sohil Shah
                  Reporter:
                  mputz Martin Weiler
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: