File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes java.lang.reflect.InvocationTargetException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "java.lang.reflect.InvocationTargetException" Watch "java.lang.reflect.InvocationTargetException" New topic
Author

java.lang.reflect.InvocationTargetException

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I use the Jforum 2.1.6, but there is an error after I reboot my server.

  • An error has occurred.

    For detailed error information, please see the HTML source code, and contact the forum Administrator.

    net/jforum/util/SafeHtml (Unsupported major.minor version 49.0)


  • When I view the source of the web page:

  • java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at net.jforum.Command.process(Command.java:116)
    at net.jforum.JForum.service(JForum.java:182)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.UnsupportedClassVersionError: net/jforum/util/SafeHtml (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at net.jforum.view.forum.common.PostCommon.preparePostForDisplay(PostCommon.java:114)
    at net.jforum.view.forum.common.PostCommon.topicPosts(PostCommon.java:287)
    at net.jforum.view.forum.PostAction.list(PostAction.java:152)
    ... 34 more

    END ERROR STACK TRACE-->


  • My configuration is as follow:
    Solaris 9, JDK1.4.2_05 + Tomcat 5.0.28

    How can I deal with this? Thanks.

    [originally posted on jforum.net by DBlue]
    Migrated From Jforum.net
    Ranch Hand

    Joined: Apr 22, 2012
    Posts: 17424
    It seems the same error when I access our forum(the communities of www.jforum.net) yesterday afternoon. Just a coincidence? 8)
    [originally posted on jforum.net by DBlue]
    Migrated From Jforum.net
    Ranch Hand

    Joined: Apr 22, 2012
    Posts: 17424
    No.

    Your error is Caused by: java.lang.UnsupportedClassVersionError: net/jforum/util/SafeHtml (Unsupported major.minor version 49.0) , which means you're using an older version of the Java Virtual Machine than the one used to compile JForum.

    The problem we had here was some issues with the server we're hosted on.

    Rafael
    [originally posted on jforum.net by Rafael Steil]
    Migrated From Jforum.net
    Ranch Hand

    Joined: Apr 22, 2012
    Posts: 17424
    Thanks, I'll try it.
    [originally posted on jforum.net by DBlue]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: java.lang.reflect.InvocationTargetException
     
    Similar Threads
    MySQL Error
    Remote Home lookup from tomcat 5.0 to Weblogic 8.1
    error when posting
    Error when storing profile
    A Problem about Chinese