#1 2015-11-20 16:39:49

awise185
Member
Registered: 2015-11-11

Java Version 500 Errors

When viewing object details in a TeamSpace the details window displays a 500 error and from what I have seen on the forums, this is a Java version error? I can't seem to track down what version of java is installed on the server. Is this indeed the issue or is it something else that's causing it? The preview window works fine but details and history show up as a 500 error and I can't find a meaningful part of the stack trace to determine the problem.

Thank you!

Offline

#2 2015-11-20 16:47:11

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: Java Version 500 Errors

Hi,

can you post the stacktrace?

Cheers,
Thorsten

Offline

#3 2015-11-20 16:48:07

awise185
Member
Registered: 2015-11-11

Re: Java Version 500 Errors

HTTP Status 500 - Filter execution threw an exception

type Exception report

message Filter execution threw an exception

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

exception

javax.servlet.ServletException: Filter execution threw an exception
root cause

java.lang.NoClassDefFoundError: [Ljava/util/HashMap$Entry;
    java.lang.Class.getDeclaredMethods0(Native Method)
    java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    java.lang.Class.getDeclaredMethods(Class.java:1975)
    org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
    java.security.AccessController.doPrivileged(Native Method)
    org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
    org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
    org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
    org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
    org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
    groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:338)
    groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:288)
    groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2922)
    org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:176)
    org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:192)
    org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:309)
    org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:806)
    org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallConstructorSite(CallSiteArray.java:84)
    org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
    org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
    org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:186)
    Script19.run(Script19.groovy:53)
    org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:332)
    org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:132)
    net.datenwerke.rs.scripting.service.scripting.engines.GroovyEngine.eval(GroovyEngine.java:65)
    net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:207)
    net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:253)
    net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:301)
    net.datenwerke.rs.scriptreport.service.scriptreport.generator.ScriptReportGenericOutputGenerator.export(ScriptReportGenericOutputGenerator.java:66)
    net.datenwerke.rs.scriptreport.service.scriptreport.ScriptReportEngine.executeReport(ScriptReportEngine.java:91)
    net.datenwerke.rs.scriptreport.service.scriptreport.ScriptReportEngine.doExecute(ScriptReportEngine.java:76)
    net.datenwerke.rs.core.service.reportmanager.engine.ReportEngine.execute(ReportEngine.java:127)
    net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:186)
    net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:119)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exeucteReport(ReportExportServlet.java:527)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doExportReport(ReportExportServlet.java:407)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReport(ReportExportServlet.java:333)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportById(ReportExportServlet.java:270)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportByIdViaRequest(ReportExportServlet.java:261)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doGet(ReportExportServlet.java:162)
    com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
    net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
    com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
    com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
    com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
    com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
    com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
    com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
    com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
    com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
root cause

java.lang.ClassNotFoundException: java.util.HashMap$Entry
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1858)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1709)
    java.lang.Class.getDeclaredMethods0(Native Method)
    java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    java.lang.Class.getDeclaredMethods(Class.java:1975)
    org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
    java.security.AccessController.doPrivileged(Native Method)
    org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
    org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
    org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
    org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
    org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
    groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:338)
    groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:288)
    groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2922)
    org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:176)
    org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:192)
    org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:309)
    org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:806)
    org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallConstructorSite(CallSiteArray.java:84)
    org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
    org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
    org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:186)
    Script19.run(Script19.groovy:53)
    org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:332)
    org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:132)
    net.datenwerke.rs.scripting.service.scripting.engines.GroovyEngine.eval(GroovyEngine.java:65)
    net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:207)
    net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:253)
    net.datenwerke.rs.scripting.service.scripting.ScriptingServiceImpl.executeScript(ScriptingServiceImpl.java:301)
    net.datenwerke.rs.scriptreport.service.scriptreport.generator.ScriptReportGenericOutputGenerator.export(ScriptReportGenericOutputGenerator.java:66)
    net.datenwerke.rs.scriptreport.service.scriptreport.ScriptReportEngine.executeReport(ScriptReportEngine.java:91)
    net.datenwerke.rs.scriptreport.service.scriptreport.ScriptReportEngine.doExecute(ScriptReportEngine.java:76)
    net.datenwerke.rs.core.service.reportmanager.engine.ReportEngine.execute(ReportEngine.java:127)
    net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:186)
    net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:119)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exeucteReport(ReportExportServlet.java:527)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doExportReport(ReportExportServlet.java:407)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReport(ReportExportServlet.java:333)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportById(ReportExportServlet.java:270)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportByIdViaRequest(ReportExportServlet.java:261)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doGet(ReportExportServlet.java:162)
    com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
    net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
    com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
    com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
    com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
    com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
    com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
    com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
    com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
    com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)

Offline

#4 2015-11-20 16:53:06

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: Java Version 500 Errors

Hi,

yes, seems you were right, this is caused by an incompatible java version. Unfortunately the current ReportServer release still requires Java 7 to work properly, so you should try to downgrade. 

Cheers,
Thorsten

Offline

#5 2015-11-20 16:59:07

awise185
Member
Registered: 2015-11-11

Re: Java Version 500 Errors

Is there an easy way to rollback the current version?

Thanks

Offline

#6 2015-11-23 16:42:39

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: Java Version 500 Errors

Hi,

how this is done depends on various things, foremost your operating system and the method used to initially install everything. But this is quite a common question, so just do a google search for it and you should find suitable instructions.

Cheers,
Thorsten

Offline

#7 2015-12-02 14:15:09

awise185
Member
Registered: 2015-11-11

Re: Java Version 500 Errors

I hate to beat a dead horse with this, but I'm not finding anything online relating to this specific issue.
I created a Linux Ubuntu 14.04 LTS Server and used the linux installer available for ReportServer. This was a fresh virtual machine and thusly did not have Java or a JRE on it ahead of time. The release of Java that came with ReportServer is 1.8.0_51. If it isn't compatible with version 8 then why is that what it comes packaged with? Seems like an intentional design flaw. Regardless, I'm very impressed with what this reporting service can do and this is really the only hurdle left that is causing me any issues. I hope you can lead me in the right direction!

Thank you!

Offline

#8 2015-12-02 18:59:39

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Java Version 500 Errors

Hi,

the installers and VMs are provided by Bitnami and we have notified them of the problem. In the mean time, you should find older versions of Java at http://www.oracle.com/technetwork/java/ … 80-oth-JPR.
An alternative would be to do a manual installation. It is not really complicated and the configuration guide which is freely available from https://reportserver.net/en/services/ should help you there.

I hope this works and sorry that I cannot be of more help here.

Cheers
-Arno

Offline

#9 2015-12-03 13:29:59

awise185
Member
Registered: 2015-11-11

Re: Java Version 500 Errors

Thanks for the quick response Arno.

As far as I can tell the Java version errors only occur in very minor portions of the report server, so I just disabled them until the problem can be resolved.
I appreciate you and Thorsten working so closely with me on this configuration. My team and I love this service and even went ahead and bought your Admin and Scripting guide to try and squeeze every feature out of this as we can!

Thanks,
Anthony

Offline

#10 2015-12-03 13:55:11

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Java Version 500 Errors

Hi Anthony,

it's good to hear that evaluation (mostly) goes well. It would be great if you could spread the word and maybe write a review on G2Crowd and/or Bitnami.

Thanks and happy reporting
Arno

Offline

#11 2015-12-03 19:27:44

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Java Version 500 Errors

Hi Anthony,

quick update. I've just heard from Bitnami, that they released an updated VM with java 1.7. I hope this solves your problems.

Cheers
-Arno

Offline

#12 2015-12-03 19:39:53

awise185
Member
Registered: 2015-11-11

Re: Java Version 500 Errors

Hey Arno,

This is really cool and is definitely something worth looking at, but not quite the same method I used when deploying the BitNami stack. I created the VM myself through Microsoft Azure and then used the linux installer to install the ReportServer stack. Looking into the possibility of uploading VMWare virtual machine images to Azure now.

Thanks,
Anthony

Offline

#13 2015-12-03 19:44:23

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Java Version 500 Errors

Hi,

sorry,  my bad. I'll check whether also the cloud installers can be downgraded to use the old Java 1.7 version. I'll get back to you.

Cheers,
Arno

Offline

#14 2015-12-04 19:13:44

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Java Version 500 Errors

Hi Anthony,

I've just heard that the cloud images were also downgraded to use java 1.7.

Cheers
-Arno

Offline

#15 2015-12-07 14:34:50

awise185
Member
Registered: 2015-11-11

Re: Java Version 500 Errors

Hey Arno,

Does this include the installers found on:
https://bitnami.com/stack/reportserver/installer
or just the cloud images?

Thanks,
Anthony

Offline

#16 2015-12-08 06:24:55

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Java Version 500 Errors

Includes also the installers.

Cheers
-Arno

Offline

#17 2015-12-08 14:15:11

awise185
Member
Registered: 2015-11-11

Re: Java Version 500 Errors

Thanks a bunch Arno!

Quick question, are reports that are created on the front end contained anywhere on the back end? They are easily found through the File System or the terminal on the front, but I can't seem to locate them on the back. Are they contained wholly inside of MySQL?

Thanks,
Anthony

Offline

#18 2015-12-08 20:20:21

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: Java Version 500 Errors

Hi Anthony,

all application data (including reports, resources, etc) is stored in the database.

Cheers,
Thorsten

Offline

Board footer

Powered by FluxBB