dolm Posted May 18, 2011 Share Posted May 18, 2011 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 reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.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 causejava.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 More sharing options...
ernestoo Posted May 18, 2011 Share Posted May 18, 2011 Hmm..I think I ran into this when JasperServer couldn't connect into MySQL..can you provide the install log? (../buildomatic/logs/..) Link to comment Share on other sites More sharing options...
dolm Posted May 18, 2011 Author Share Posted May 18, 2011 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.jarThe second time I ran it it ran without error. (Attachment 2) Link to comment Share on other sites More sharing options...
dolm Posted May 18, 2011 Author Share Posted May 18, 2011 I ran the script again with the test flag , here's the log from that..everything is ok/passing.. could this maybe be a java issue on my machine? Link to comment Share on other sites More sharing options...
dolm Posted May 18, 2011 Author Share Posted May 18, 2011 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 More sharing options...
ernestoo Posted May 19, 2011 Share Posted May 19, 2011 Thanks for looping back, I've experienced something similar but couldn't quite nail it down. Post back if you get an idea as to what might have happened. Post Edited by ernestoo at 05/19/2011 05:57 PM Link to comment Share on other sites More sharing options...
mandm Posted June 3, 2011 Share Posted June 3, 2011 is Ubuntu 10.04 suitable for jasperServer 4.0? or are there still issues lingering around? and does it work on a 64 bit server? Link to comment Share on other sites More sharing options...
dolm Posted June 3, 2011 Author Share Posted June 3, 2011 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 More sharing options...
mandm Posted June 3, 2011 Share Posted June 3, 2011 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 More sharing options...
dolm Posted June 4, 2011 Author Share Posted June 4, 2011 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 More sharing options...
mandm Posted June 4, 2011 Share Posted June 4, 2011 thanks i will keep those things in mind Link to comment Share on other sites More sharing options...
mandm Posted June 4, 2011 Share Posted June 4, 2011 Yes i was able to get the installation binary to work on ubuntu 10.04 x86_64 by doing the following steps1)sudo apt-get install ia32-libs2) make the jasperreports-server-cp-4.0.0-linux-installer.bin file executable3 sudo ./jasperreports-server-cp-4.0.0-linux-installer.bin 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