java.lang.NullPointerException

XWiki.org JIRA | Jean-Vincent Drean | 7 years ago
  1. 0

    The activity stream plugin should protect itself from NPE by checking if the URL factory has been created before using it. {noformat} 2009-10-22 16:06:43,892 [http://asiri.localhost:8080/xwiki/bin/view/Main/?xpage=xpart&vm=commentsinline.vm] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.DocumentUpdateEvent@ee5169] to listener [com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl@ef57f8] java.lang.NullPointerException at com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1134) at com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1148) at com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1153) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.setEventDocumentRelatedInformation(ActivityStreamImpl.java:116) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.prepareEvent(ActivityStreamImpl.java:154) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addActivityEvent(ActivityStreamImpl.java:281) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addDocumentActivityEvent(ActivityStreamImpl.java:384) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addDocumentActivityEvent(ActivityStreamImpl.java:362) at com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.onEvent(ActivityStreamImpl.java:888) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:262) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:236) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1339) at com.xpn.xwiki.plugin.watchlist.WatchListStore.initWatchListClass(WatchListStore.java:257) at com.xpn.xwiki.plugin.watchlist.WatchListStore.virtualInit(WatchListStore.java:323) at com.xpn.xwiki.plugin.watchlist.WatchListPlugin.virtualInit(WatchListPlugin.java:134) at com.xpn.xwiki.plugin.XWikiPluginManager.virtualInit(XWikiPluginManager.java:170) at com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:871) at com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:848) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:482) {noformat}

    XWiki.org JIRA | 7 years ago | Jean-Vincent Drean
    java.lang.NullPointerException
  2. 0
    Assign onCickListener to imageView in ExpandableListView inside getChildView.
  3. 0
    The Fragment was destroyed, and getActivity() returned null. Don't destroy the Fragment.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Saving Map State in Google map

    Stack Overflow | 1 year ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.xpn.xwiki.doc.XWikiDocument.getURL()
    2. com.xpn.xwiki
      ActivityStreamImpl.onEvent
      1. com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1134)
      2. com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1148)
      3. com.xpn.xwiki.doc.XWikiDocument.getURL(XWikiDocument.java:1153)
      4. com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.setEventDocumentRelatedInformation(ActivityStreamImpl.java:116)
      5. com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.prepareEvent(ActivityStreamImpl.java:154)
      6. com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addActivityEvent(ActivityStreamImpl.java:281)
      7. com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addDocumentActivityEvent(ActivityStreamImpl.java:384)
      8. com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addDocumentActivityEvent(ActivityStreamImpl.java:362)
      9. com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.onEvent(ActivityStreamImpl.java:888)
      9 frames
    3. org.xwiki.observation
      DefaultObservationManager.notify
      1. org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:262)
      2. org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:236)
      2 frames
    4. com.xpn.xwiki
      XWiki.getXWiki
      1. com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1339)
      2. com.xpn.xwiki.plugin.watchlist.WatchListStore.initWatchListClass(WatchListStore.java:257)
      3. com.xpn.xwiki.plugin.watchlist.WatchListStore.virtualInit(WatchListStore.java:323)
      4. com.xpn.xwiki.plugin.watchlist.WatchListPlugin.virtualInit(WatchListPlugin.java:134)
      5. com.xpn.xwiki.plugin.XWikiPluginManager.virtualInit(XWikiPluginManager.java:170)
      6. com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:871)
      7. com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:848)
      8. com.xpn.xwiki.XWiki.getXWiki(XWiki.java:482)
      8 frames