Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-6587

NPE in cluster setup when accessing the first page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Minor
    • None
    • 3.1 M1
    • Observation
    • Unknown
    • N/A
    • N/A

    Description

      To reproduce:

      You'll see the following logs in the console of the first instance:

      2011-05-04 16:41:16,663 [Incoming-2,event,vincent-massols-macbook-pro.local-63711] DEBUG jgroups.DefaultJGroupsReceiver  - Received JGroups remote event [event: [org.xwiki.bridge.event.DocumentCreatedEvent@6a1b3275], source: [{docversion=1.1, doclanguage=, docname=name = [JavaScriptExtension], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]}], data: [{contextwiki=xwiki, contextuser=XWiki.XWikiGuest}]] 
      2011-05-04 16:41:16,716 [Incoming-2,event,vincent-massols-macbook-pro.local-63711] ERROR rnal.DefaultObservationManager  - Fail to send event [org.xwiki.bridge.event.DocumentCreatedEvent@6a1b3275] to listener [com.xpn.xwiki.plugin.watchlist.WatchListStore@5abc5c2c] 
      java.lang.NullPointerException
              at org.mortbay.jetty.HttpFields.put(HttpFields.java:560)
              at org.mortbay.jetty.HttpFields.put(HttpFields.java:509)
              at org.mortbay.jetty.Response.setLocale(Response.java:1048)
              at com.xpn.xwiki.web.XWikiServletResponse.setLocale(XWikiServletResponse.java:149)
              at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:4021)
              at com.xpn.xwiki.XWikiContext.getMessageTool(XWikiContext.java:656)
              at com.xpn.xwiki.plugin.watchlist.WatchListStore.setWatchListElementsProperty(WatchListStore.java:549)
              at com.xpn.xwiki.plugin.watchlist.WatchListStore.addWatchedElement(WatchListStore.java:463)
              at com.xpn.xwiki.plugin.watchlist.WatchListStore.documentModifiedHandler(WatchListStore.java:764)
              at com.xpn.xwiki.plugin.watchlist.WatchListStore.onEvent(WatchListStore.java:787)
              at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:278)
              at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:247)
              at org.xwiki.observation.remote.internal.DefaultRemoteObservationManager.notify(DefaultRemoteObservationManager.java:176)
              at org.xwiki.observation.remote.internal.jgroups.DefaultJGroupsReceiver.receive(DefaultJGroupsReceiver.java:101)
              at org.jgroups.JChannel.up(JChannel.java:1462)
              at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:829)
              at org.jgroups.protocols.pbcast.GMS.up(GMS.java:890)
              at org.jgroups.protocols.VIEW_SYNC.up(VIEW_SYNC.java:173)
              at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:236)
              at org.jgroups.protocols.UNICAST.up(UNICAST.java:290)
              at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:859)
              at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:654)
              at org.jgroups.protocols.Discovery.up(Discovery.java:277)
              at org.jgroups.protocols.TP.passMessageUp(TP.java:953)
              at org.jgroups.protocols.TP.access$100(TP.java:53)
              at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1457)
              at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1434)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:680)
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: