Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java Mission Control Help Not Working

Isuru PereraJul 24 2016 — edited Oct 3 2016

I use JDK 1.8.0_102 and I cannot view the help from the Java Mission Control.

i.e. Oracle Java Mission Control -> Help -> Java Mission Control Help

The index.jsp (eg: http://127.0.0.1:38493/help/index.jsp) returns HTTP 500 Server Error.

Following is the content displayed:

HTTP ERROR: 500

Problem accessing /help/index.jsp. Reason:

    Server Error

Powered by Jetty://

In the console, I see following exceptions.

Jul 24, 2016 10:22:21 PM org.apache.jasper.compiler.JDTJavaCompiler$1 findType

SEVERE: Compilation error

org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException

    at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init>(ClassFileReader.java:372)

    at org.apache.jasper.compiler.JDTJavaCompiler$1.findType(JDTJavaCompiler.java:358)

    at org.apache.jasper.compiler.JDTJavaCompiler$1.findType(JDTJavaCompiler.java:315)

    at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:113)

    at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)

    at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)

    at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:168)

    at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2472)

    at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1006)

    at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1258)

    at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:539)

    at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:763)

    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:468)

    at org.apache.jasper.compiler.JDTJavaCompiler.compile(JDTJavaCompiler.java:494)

    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:384)

    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)

    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:155)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)

    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)

    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)

    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)

    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)

    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)

    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

    at org.eclipse.jetty.server.Server.handle(Server.java:370)

    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)

    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)

    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)

    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)

    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

    at java.lang.Thread.run(Thread.java:745)

Jul 24, 2016 10:22:21 PM org.apache.jasper.compiler.Compiler generateClass

SEVERE: Error compiling file: /home/isuru/.eclipse/com.oracle.jmc_5.5.0_1710491544_linux_gtk_x86_64/configuration/org.eclipse.osgi/191/data/jettywork/pid_2070971114/proxytemp/hc_1626241617/org/apache/jsp/index_jsp.java

2016-07-24 22:22:21.443:WARN:oejs.ServletHandler:

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP||PWC6199: Generated servlet error:|The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files||

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129)

    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299)

    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392)

    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)

    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:155)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)

    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)

    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)

    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)

    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)

    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)

    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

    at org.eclipse.jetty.server.Server.handle(Server.java:370)

    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)

    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)

    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)

    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)

    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

    at java.lang.Thread.run(Thread.java:745)

2016-07-24 22:22:21.445:WARN:oejs.ServletHandler:/help/index.jsp

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP||PWC6199: Generated servlet error:|The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files||

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129)

    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299)

    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392)

    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)

    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:155)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)

    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

    at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)

    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)

    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)

    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)

    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)

    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

    at org.eclipse.jetty.server.Server.handle(Server.java:370)

    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)

    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)

    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)

    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)

    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

    at java.lang.Thread.run(Thread.java:745)

I see this error in both Ubuntu and Windows with JDK 1.8.0_102. I got the same error in JDK 1.8.0_92 as well.

When I searched for this error, I got to know that the Jetty version used in JMC has problems with latest JDKs and the issue is not there in JDK 1.8.0_77.

Then I checked the JMC in JDK 1.8.0_77 and I can see the Help page without any issues.

I think others are also getting the same issues. Is it possible to upgrade the Jetty in JMC?

I wanted to create a bug for this, but I don't know how to report bugs for Java Mission Control.

This post has been answered by Klara Ward Java Mission Control Dev-Oracle on Aug 17 2016
Jump to Answer

Comments

Answer

I'm afraid this is a known bug - https://bugs.openjdk.java.net/browse/JMC-4946  (this is an Oracle internal bug so you can't see it)

I would suggest that you use JMC from an older JDK 8 version, it's the same version of JMC (5.5)

Sorry for the trouble.

Marked as Answer by Isuru Perera · Sep 27 2020
Isuru Perera

Thanks for confirming!

I am using jdk1.8.0_77 when I want to view the help. Will that issue be resolved in next JDK version?

It should definitely be resolved in the next major JDK version, not sure about the next JDK 8 update.

Isuru Perera

Thanks for the prompt reply!

I'm just happy that the issue is reported and it'll be fixed in a future release. I didn't know where to report for these kinds of JMC related issues, that's why I posted in this form.

Thanks again for providing me the details.

If you're not Oracle internal, I think this forum is the best way to report JMC issues.

Thanks for doing so

Hirt-Oracle

It will be fixed in JDK 9 for sure. We are currently looking into providing an update for JDK8 (a fix in the JDK necessitates an upgrade of our RCP platform for this to be fixed, in effect requiring us to release a 5.5.1 release).

Isuru Perera

Thanks Marcus for the information!

So, in JDK 9, we will get Oracle Java Mission Control 6, right? I heard that it'll be completely different when comparing with current JMC. Is there any public website to download a pre-release of JMC 6?

user8785303

It is nice to see that you acknowledge this as a bug. This related bug report, https://bugs.openjdk.java.net/browse/JDK-8155588, was quickly dismissed as "not an issue".

Something happened in Java 8 Update 91 that affected many projects and applications in a bad way. See this Stack Overflow answer: http://stackoverflow.com/a/38444118.

Do you have any comments on that answer? Where can I find more details about how and when this will be fixed?

They dismissed JDK-8155588 because "this version of tomcat really should not be used together with JDK 8".

Which is why we need to upgrade the RCP platform we use to build JMC, like Hirt says above.

As a JMC developer, I don't have any other comments or insights about the general issue.

Hirt-Oracle

Hi Isuru,

If you want to start playing with JMC 6.0, and your company is either a Java SE Advanced customer or owns one of the WebLogic suites, your company can enter the commercial Early Access program. Just e-mail me and I will help get you started.

Kind regards,

Marcus

Hirt-Oracle

And yep, JMC 6 is quite different to JMC 5.5.

1 - 11
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 31 2016
Added on Jul 24 2016
11 comments
4,983 views