java.lang.NullPointerException

Atlassian JIRA | Jason Stiefel | 1 decade ago
  1. 0

    Any updates available for this macro that work for the 1.3 development releases? I get the following exception when I have them installed: [ERROR] Wed Nov 17 15:10:08 GMT-05:00 2004 [com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister] Error loading stream for context : com.atlassian.confluence.setup.bandana.ConfluenceBandanaContext@0 Throwable: java.lang.NullPointerException at com.thoughtworks.xstream.XStream.fromXML(XStream.java:168) at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.loadBandanaMap(ConfluenceBandanaPersister.java:68) at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.retrieve(ConfluenceBandanaPersister.java:37) at com.atlassian.bandana.impl.CachingBandanaPersister.retrieve(CachingBandanaPersister.java:40) at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:34) at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:26) at com.atlassian.confluence.setup.settings.DefaultSettingsManager.getGlobalSettings(DefaultSettingsManager.java:13) at com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:20) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:19) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

    Atlassian JIRA | 1 decade ago | Jason Stiefel
    java.lang.NullPointerException
  2. 0

    Any updates available for this macro that work for the 1.3 development releases? I get the following exception when I have them installed: [ERROR] Wed Nov 17 15:10:08 GMT-05:00 2004 [com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister] Error loading stream for context : com.atlassian.confluence.setup.bandana.ConfluenceBandanaContext@0 Throwable: java.lang.NullPointerException at com.thoughtworks.xstream.XStream.fromXML(XStream.java:168) at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.loadBandanaMap(ConfluenceBandanaPersister.java:68) at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.retrieve(ConfluenceBandanaPersister.java:37) at com.atlassian.bandana.impl.CachingBandanaPersister.retrieve(CachingBandanaPersister.java:40) at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:34) at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:26) at com.atlassian.confluence.setup.settings.DefaultSettingsManager.getGlobalSettings(DefaultSettingsManager.java:13) at com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:20) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:19) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

    Atlassian JIRA | 1 decade ago | Jason Stiefel
    java.lang.NullPointerException
  3. 0

    This issue started off in the comments of CONF-2308, but is unrelated, so I'm moving it to its own issue. Juha Komulainen: We tried to perform upgrade from 1.2.3 to 1.3 using Oracle as database. Everything went fine until colour schemes upgrade, which produced the stacktraces included here. Any workarounds? 2004-12-01 09:25:52,314 INFO [atlassian.confluence.upgrade.ColourSchemesUpgradeTask] Beginning colour schemes upgrade 2004-12-01 09:25:52,321 ERROR [confluence.setup.bandana.ConfluenceBandanaPersister] Error loading stream for context : com.atlassian.confluence.setup.bandana .ConfluenceBandanaContext@0 java.lang.NullPointerException at com.thoughtworks.xstream.XStream.fromXML(XStream.java:168) at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.loadBandanaMap(ConfluenceBandanaPersister.java:66) at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.store(ConfluenceBandanaPersister.java:47) at com.atlassian.bandana.impl.CachingBandanaPersister.store(CachingBandanaPersister.java:57) at com.atlassian.bandana.DefaultBandanaManager.setValue(DefaultBandanaManager.java:50) at com.atlassian.confluence.themes.DefaultColourSchemeManager.saveGlobalColourScheme(DefaultColourSchemeManager.java:133) at com.atlassian.confluence.upgrade.ColourSchemesUpgradeTask.doUpgrade(ColourSchemesUpgradeTask.java:52) at bucket.upgrade.AbstractUpgradeManager.doUpgrade(AbstractUpgradeManager.java:88) at bucket.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:53) at bucket.upgrade.UpgradeLauncherServletContextListener.contextInitialized(UpgradeLauncherServletContextListener.java:27) at com.atlassian.confluence.upgrade.ConfluenceUpgradeServletContextListener.contextInitialized(ConfluenceUpgradeServletContextListener.java:13) ... 2004-12-01 09:25:52,326 ERROR [bucket.upgrade.UpgradeManager] Upgrade failed: null java.lang.NullPointerException at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.store(ConfluenceBandanaPersister.java:54) at com.atlassian.bandana.impl.CachingBandanaPersister.store(CachingBandanaPersister.java:57) at com.atlassian.bandana.DefaultBandanaManager.setValue(DefaultBandanaManager.java:50) at com.atlassian.confluence.themes.DefaultColourSchemeManager.saveGlobalColourScheme(DefaultColourSchemeManager.java:133) at com.atlassian.confluence.upgrade.ColourSchemesUpgradeTask.doUpgrade(ColourSchemesUpgradeTask.java:52) at bucket.upgrade.AbstractUpgradeManager.doUpgrade(AbstractUpgradeManager.java:88) at bucket.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:53) at bucket.upgrade.UpgradeLauncherServletContextListener.contextInitialized(UpgradeLauncherServletContextListener.java:27) at com.atlassian.confluence.upgrade.ConfluenceUpgradeServletContextListener.contextInitialized(ConfluenceUpgradeServletContextListener.java:13) ... Dec 1, 2004 9:25:52 AM bucket.upgrade.UpgradeLauncherServletContextListener contextInitialized SEVERE: Upgrade failed, application will not start: null java.lang.NullPointerException at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.store(ConfluenceBandanaPersister.java:54) at com.atlassian.bandana.impl.CachingBandanaPersister.store(CachingBandanaPersister.java:57) at com.atlassian.bandana.DefaultBandanaManager.setValue(DefaultBandanaManager.java:50) at com.atlassian.confluence.themes.DefaultColourSchemeManager.saveGlobalColourScheme(DefaultColourSchemeManager.java:133) at com.atlassian.confluence.upgrade.ColourSchemesUpgradeTask.doUpgrade(ColourSchemesUpgradeTask.java:52) at bucket.upgrade.AbstractUpgradeManager.doUpgrade(AbstractUpgradeManager.java:88) at bucket.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:53) at bucket.upgrade.UpgradeLauncherServletContextListener.contextInitialized(UpgradeLauncherServletContextListener.java:27) at com.atlassian.confluence.upgrade.ConfluenceUpgradeServletContextListener.contextInitialized(ConfluenceUpgradeServletContextListener.java:13) ... rethrown as bucket.upgrade.UpgradeException at bucket.upgrade.AbstractUpgradeManager.doUpgrade(AbstractUpgradeManager.java:107) at bucket.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:53) at bucket.upgrade.UpgradeLauncherServletContextListener.contextInitialized(UpgradeLauncherServletContextListener.java:27) at com.atlassian.confluence.upgrade.ConfluenceUpgradeServletContextListener.contextInitialized(ConfluenceUpgradeServletContextListener.java:13) ... Caused by: java.lang.NullPointerException at com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.store(ConfluenceBandanaPersister.java:54) at com.atlassian.bandana.impl.CachingBandanaPersister.store(CachingBandanaPersister.java:57) at com.atlassian.bandana.DefaultBandanaManager.setValue(DefaultBandanaManager.java:50) at com.atlassian.confluence.themes.DefaultColourSchemeManager.saveGlobalColourScheme(DefaultColourSchemeManager.java:133) at com.atlassian.confluence.upgrade.ColourSchemesUpgradeTask.doUpgrade(ColourSchemesUpgradeTask.java:52) at bucket.upgrade.AbstractUpgradeManager.doUpgrade(AbstractUpgradeManager.java:88) I didn't get 1.3 working. I went back to 1.2 and restored the backups that I created just before trying to upgrade. As for version of xpp, it seems to be correct: $ jar tf atlassian-confluence-1.3.war | grep xpp WEB-INF/lib/xpp3-1.1.3.4d_b4_min.jar I have went through catalina.out and clipped a 120k piece that was generated using the attempted upgrade. I don't think there was anything interesting except the above stacktrace, but I'll attach it here anyway.

    Atlassian JIRA | 1 decade ago | Charles Miller
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

    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.thoughtworks.xstream.XStream.fromXML()
    2. XStream Core
      XStream.fromXML
      1. com.thoughtworks.xstream.XStream.fromXML(XStream.java:168)
      1 frame
    3. com.atlassian.confluence
      ConfluenceBandanaPersister.retrieve
      1. com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.loadBandanaMap(ConfluenceBandanaPersister.java:68)
      2. com.atlassian.confluence.setup.bandana.ConfluenceBandanaPersister.retrieve(ConfluenceBandanaPersister.java:37)
      2 frames
    4. com.atlassian.bandana
      DefaultBandanaManager.getValue
      1. com.atlassian.bandana.impl.CachingBandanaPersister.retrieve(CachingBandanaPersister.java:40)
      2. com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:34)
      3. com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:26)
      3 frames
    5. com.atlassian.confluence
      ConfluenceEncodingFilter.getEncoding
      1. com.atlassian.confluence.setup.settings.DefaultSettingsManager.getGlobalSettings(DefaultSettingsManager.java:13)
      2. com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:20)
      2 frames
    6. com.atlassian.core
      AbstractEncodingFilter.doFilter
      1. com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:19)
      1 frame
    7. Glassfish Core
      StandardHostValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      4. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      6. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      8. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      10. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      10 frames