Jump to content
We've recently updated our Privacy Statement, available here ×

Unable to start cp 6.0.1 under tomcat due to NPE in owasp csrf guard


jon.lelong

Recommended Posts

Hi, unable to get jaspersevrer to start due to a null pointer exception when starting up, triggered within the owasp csrf guard.

Extracts from the log:

SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.owasp.csrfguard.CsrfGuardServletContextListener
 java.lang.RuntimeException: java.lang.NullPointerException
        at org.owasp.csrfguard.CsrfGuardServletContextListener.contextInitialized(CsrfGuardServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:277)
        at org.owasp.csrfguard.CsrfGuardServletContextListener.getResourceStream(CsrfGuardServletContextListener.java:67)
        at org.owasp.csrfguard.CsrfGuardServletContextListener.contextInitialized(CsrfGuardServletContextListener.java:36)
        ... 13 more
 
System was installed from jasperreports-server-cp-6.0.1-linux-x64-installer.run
Tomcat is 8.0.15, jre 1.8.0_25-b17
 
Can anyone give any hints as to what is causing this, and how to fix it...
 
 
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I've downloaded the latest jasper available as far as I can tell:

http://community.jaspersoft.com/project/jasperreports-server/releases

Doesn't look like 6.1 is available as a community edition according to that.

 

There are other webapps running under that tomcat instance which need java 1.8 - guess that means it won't be possible to have jasper on the same tomcat as used for everything else...

 

 

 

Link to comment
Share on other sites

Seems like the most recent community version of JasperReports Server is 6.0.1.

Anyways, it's not a very good idea to co-exist JasperReports Server with other applications. I've found that JasperReports Server sometimes do not fully function when there are other apps on the same tomcat instance.

If you just want to display reports on a web server, it's really not too difficult to develop a simple web app.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...