java.lang.NullPointerException

XWiki.org JIRA | Jerome Velociter | 7 years ago
  1. 0

    I don't know yet what causes it - it happen in XWiki#prepareResources, line 3745, while trying to set the locale to the context's response : {noformat} context.getResponse().setLocale(locale); {noformat} It fails with a NPE {noformat} [DefaultQuartzScheduler_Worker-1] ERROR watchlist.WatchListPlugin - Exception while runn ing job java.lang.NullPointerException at org.apache.catalina.connector.Response.setLocale(Response.java:823) at org.apache.catalina.connector.ResponseFacade.setLocale(ResponseFacade.java:321) at com.xpn.xwiki.web.XWikiServletResponse.setLocale(XWikiServletResponse.java:149) at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3745) at com.xpn.xwiki.XWikiContext.getMessageTool(XWikiContext.java:490) at com.xpn.xwiki.plugin.watchlist.WatchListNotifier.sendEmailNotification(WatchListNotifier.java:105) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:262) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) java.lang.NullPointerException at org.apache.catalina.connector.Response.setLocale(Response.java:823) at org.apache.catalina.connector.ResponseFacade.setLocale(ResponseFacade.java:321) at com.xpn.xwiki.web.XWikiServletResponse.setLocale(XWikiServletResponse.java:149) at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3745) at com.xpn.xwiki.XWikiContext.getMessageTool(XWikiContext.java:490) at com.xpn.xwiki.plugin.watchlist.WatchListNotifier.sendEmailNotification(WatchListNotifier.java:105) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:262) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) {noformat} The wiki is a XE-2.0-rc-2 running in tomcat.

    XWiki.org JIRA | 7 years ago | Jerome Velociter
    java.lang.NullPointerException
  2. 0

    Grails User (Old Archive) - Grails Runtime Exception Caused by: Request processing failed; nested exception is java.lang.NullPointerException

    nabble.com | 9 months ago
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 org.apache.catalina.connector.Response.setLocale()
    2. Glassfish Core
      ResponseFacade.setLocale
      1. org.apache.catalina.connector.Response.setLocale(Response.java:823)
      2. org.apache.catalina.connector.ResponseFacade.setLocale(ResponseFacade.java:321)
      2 frames
    3. com.xpn.xwiki
      AbstractJob.execute
      1. com.xpn.xwiki.web.XWikiServletResponse.setLocale(XWikiServletResponse.java:149)
      2. com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3745)
      3. com.xpn.xwiki.XWikiContext.getMessageTool(XWikiContext.java:490)
      4. com.xpn.xwiki.plugin.watchlist.WatchListNotifier.sendEmailNotification(WatchListNotifier.java:105)
      5. com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:262)
      6. com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75)
      6 frames
    4. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
      2 frames