jon.lelong Posted June 11, 2015 Share Posted June 11, 2015 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.runTomcat 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 More sharing options...
hozawa Posted June 11, 2015 Share Posted June 11, 2015 JasperReports Server 6.0.1 doesn't support JDK1.8. You'll need to use JasperReports Server 6.1.0 if you want to use JDK1.8.On the other hand, if you want to use JasperReports Server 6.0.1, you'll need to downgrade your JDK to 1.7. Link to comment Share on other sites More sharing options...
jon.lelong Posted June 11, 2015 Author Share Posted June 11, 2015 I've downloaded the latest jasper available as far as I can tell:http://community.jaspersoft.com/project/jasperreports-server/releasesDoesn'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 More sharing options...
hozawa Posted June 12, 2015 Share Posted June 12, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now