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

JasperServer 4.0.0 on Ubuntu 11.04 - login not loading


dolm

Recommended Posts

I've installed JasperServer 4.0.0 on Ubuntu Server 11.04. After a little debugging (mysql settings and $JAVA_HOME variable)the buildomatic script ran with no errors.

This is on Tomcat6 with MySQL. After restarting the server, jasper shows to be running according to Tomcat Web Application Manager, but when i try to open the site i get the below error. Any ideas whats wrong here?

 

 

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.NullPointerException	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	com.opensymphony.module.sitemesh.filter.PageFilter.applyDecorator(PageFilter.java:165)	com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:63)	org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:236)	org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)	org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	com.jaspersoft.jasperserver.war.common.UploadMultipartFilter.doFilter(UploadMultipartFilter.java:83)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)	com.jaspersoft.jasperserver.war.security.JSSwitchUserProcessingFilter.doFilterHttp(JSSwitchUserProcessingFilter.java:154)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)	org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.api.metadata.user.service.impl.MetadataAuthenticationProcessingFilter.doFilter(MetadataAuthenticationProcessingFilter.java:139)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.war.util.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:97)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:184)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:184)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.api.logging.filter.BasicLoggingFilter.doFilter(BasicLoggingFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)	org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)	com.jaspersoft.jasperserver.war.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:67)	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

 

root cause

java.lang.NullPointerException	com.jaspersoft.jasperserver.war.themes.MTThemeResolver.resolveThemeName(MTThemeResolver.java:51)	com.jaspersoft.jasperserver.war.themes.JSThemeResolver.resolveThemeName(JSThemeResolver.java:65)	org.springframework.web.servlet.support.RequestContextUtils.getTheme(RequestContextUtils.java:151)	org.springframework.web.servlet.support.RequestContext.getTheme(RequestContext.java:312)	org.springframework.web.servlet.tags.ThemeTag.getMessageSource(ThemeTag.java:49)	org.springframework.web.servlet.tags.MessageTag.resolveMessage(MessageTag.java:192)	org.springframework.web.servlet.tags.MessageTag.doStartTagInternal(MessageTag.java:164)	org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:77)	org.apache.jsp.WEB_002dINF.decorators.main_jsp._jspx_meth_spring_005ftheme_005f11(main_jsp.java:5580)	org.apache.jsp.WEB_002dINF.decorators.main_jsp._jspService(main_jsp.java:1354)	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	com.opensymphony.module.sitemesh.filter.PageFilter.applyDecorator(PageFilter.java:165)	com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:63)	org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:236)	org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)	org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	com.jaspersoft.jasperserver.war.common.UploadMultipartFilter.doFilter(UploadMultipartFilter.java:83)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)	com.jaspersoft.jasperserver.war.security.JSSwitchUserProcessingFilter.doFilterHttp(JSSwitchUserProcessingFilter.java:154)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)	org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.api.metadata.user.service.impl.MetadataAuthenticationProcessingFilter.doFilter(MetadataAuthenticationProcessingFilter.java:139)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.war.util.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:97)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:184)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:184)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	com.jaspersoft.jasperserver.api.logging.filter.BasicLoggingFilter.doFilter(BasicLoggingFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)	org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)	org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)	com.jaspersoft.jasperserver.war.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:67)	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

 

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.28 logs.

 

Link to comment
Share on other sites

  • Replies 11
  • Created
  • Last Reply

Top Posters In This Topic

The first time I ran the script, it failed with this (Attachment 1 is first log)

BUILD FAILED

/home/ucareadmin/Downloads/jasper/jasperreports-server-cp-4.0.0-bin/buildomatic/bin/app-server.xml:709: Failed to copy /home/ucareadmin/Downloads/jasper/jasperreports-server-cp-4.0.0-bin/buildomatic/conf_source/db/mysql/jdbc/mysql-connector-java-5.1.10.jar to /var/lib/tomcat6/lib/mysql-connector-java-5.1.10.jar due to failed to create the parent directory for /var/lib/tomcat6/lib/mysql-connector-java-5.1.10.jar

The second time I ran it it ran without error. (Attachment 2)

 

 

 

 

Link to comment
Share on other sites

So i looked a little closer and realised the hasper db had tables but no records in them. I removed the db's and reran the installer, it created the jasper db again, then failed. I re-ran the script again, and it started populating the tables and I then saw a lot of files get copied to the webapps folder i hadnt seen before.

 

My install just hadnt completed. Thanks for look before ernestoo!

Link to comment
Share on other sites

  • 3 weeks later...
Sorry.. were running 10.0.4 64 bit.seemed stable enough but a data set of more than 75 rows or so will choke IE. We've since started testing Pentaho BI due to limitations with the iReport software and the messed up way subreports work.
Link to comment
Share on other sites

great, thanks for the quick reply, yes that is what i have selected for the installation 10.04 ubuntu 64 bit, the question i had was did you do the installation from the binaries or manually installed each component?

 

and the issue about ireport, can you be more elaborate on it? i have used it for a long time but did not see any issues so wanted to see if i missed anything? and what version of ireport are you using?

Link to comment
Share on other sites

I ran the buildomatic script which after figuring out some of the correct setup worked ok, after running it a couple times. There was some issues with it failing on database creation..it would drop the db after prompting to do so, then build it, then fail saying it wasnt found. Ran the script again and it installed completely. No idea what was going on there.

 

I used an existing MySQL5 installation, existing Tomcat6. Make sure you have updated your Ubuntu install (specificaly check that you have Ant 1.8.x)

 

With iReport (4.0.2), my biggest issue is the fact you can't use it very well if you're not a coder/developer type. I'm no coder and don't plan to be. Why have a beautiful GUI and still require script/code and 4 hours of hammering to accomplish what I can do in Excel in 10 minutes? (Just my opinion, bear in mind I'm not a coder)

Also, publishing to your Jasper instance is a serious pain when it comes to subreports. Working with them locally, the subreport dir path and path to each referenced subreport is entered as either a direct path, or relative with a parameter in the XML. No where could I find this documented, so I had to scour half-explained posts to figure out how to change the path info to get subreports to work on the server.

 

That brings to point another issue with these forums. If you search for a phrase with more than a couple of words you'll get no results.

 

Link to comment
Share on other sites

Yes i was able to get the installation binary to work on ubuntu 10.04 x86_64 by doing the following steps

1)sudo apt-get install ia32-libs

2) make the jasperreports-server-cp-4.0.0-linux-installer.bin file executable

3 sudo ./jasperreports-server-cp-4.0.0-linux-installer.bin

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