Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Redeploy a fresh WAR to WebLogic.

NPE when using Struts 2 Jasper Reports plugin

When using mentioned plugin in Weblogic 11g you can get NullPointerException within Struts 2. To solve the problem you must enable the "Archived Real Path" global property in Weblogic admin console > configuration > Web Applications. It's because JasperReportsResult determines the report directory base on servletContext.getRealPath(finalLocation).