wood burning stoves 2.0*
The moose likes JForum and the fly likes java.lang.reflect.InvocationTargetException on WebLogic 8.1 SP5 & Oracle 9i 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 on WebLogic 8.1 SP5 & Oracle 9i" Watch "java.lang.reflect.InvocationTargetException on WebLogic 8.1 SP5 & Oracle 9i" New topic
Author

java.lang.reflect.InvocationTargetException on WebLogic 8.1 SP5 & Oracle 9i

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi, I successfully installed JForum v2.16 using the manual method (not using data source) on WebLogic 8.1 SP5 with Oracle 9i. But when I tried to register, I was presented with the following error messages:

An error has occurred.

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

java.lang.reflect.InvocationTargetException

And following is the error stack trace:

<!-- BEGIN ERROR STACK TRACE <br /> java.lang.reflect.InvocationTargetException <br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) <br /> at java.lang.reflect.Method.invoke(Method.java:324) <br /> at net.jforum.Command.process(Command.java:116) <br /> at net.jforum.JForum.service(JForum.java:182) <br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) <br /> at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) <br /> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) <br /> at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) <br /> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) <br /> at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59) <br /> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) <br /> at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) <br /> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) <br /> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) <br /> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) <br /> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) <br /> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) <br /> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) <br /> Caused by: com.octo.captcha.CaptchaException <br /> at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:547) <br /> at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:515) <br /> at com.octo.captcha.engine.image.ListImageCaptchaEngine.getNextImageCaptcha(ListImageCaptchaEngine.java:559) <br /> at net.jforum.entities.UserSession.createNewCaptcha(UserSession.java:402) <br /> at net.jforum.view.forum.UserAction.insert(UserAction.java:161) <br /> ... 20 more <br /> Caused by: java.lang.NoClassDefFoundError <br /> at java.lang.Class.forName0(Native Method) <br /> at java.lang.Class.forName(Class.java:141) <br /> at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) <br /> at com.octo.captcha.component.image.fontgenerator.RandomFontGenerator.getFont(RandomFontGenerator.java:495) <br /> at com.octo.captcha.component.image.fontgenerator.TwistedRandomFontGenerator.getFont(TwistedRandomFontGenerator.java:495) <br /> at com.octo.captcha.component.image.fontgenerator.TwistedAndShearedRandomFontGenerator.getFont(TwistedAndShearedRandomFontGenerator.java:494) <br /> at com.octo.captcha.component.image.wordtoimage.ComposedWordToImage.getFont(ComposedWordToImage.java:559) <br /> at com.octo.captcha.component.image.wordtoimage.AbstractWordToImage.getAttributedString(AbstractWordToImage.java:528) <br /> at com.octo.captcha.component.image.wordtoimage.AbstractWordToImage.getImage(AbstractWordToImage.java:512) <br /> at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactory.java:544) <br /> ... 24 more <br /> <br /> END ERROR STACK TRACE-->

In addition to the above error, I realised I (as administrator) can only see a category in the category listing only if I created it under the group "Administration", not so if under "General". Is this a problem or the standard behaviour of JForum?

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

Joined: Apr 22, 2012
Posts: 17424
This exceptions may be related to some security policies of the machine. I have seen this problems in red hat fedora as well, because some missing libs.

About the Category question: try resaving the permissions: Admin Panel -> Groups -> Permissions

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

Joined: Apr 22, 2012
Posts: 17424
Sorry that I had forgotten to mention the machine is installed with SunOS 5.8 (Solaris 8 equivalent). Can this problem be potentially related to missing X11 libraries as I have read in other posts? If it related to security policies, which area should I start investigating?

Thanks for the prompt reply.
[originally posted on jforum.net by Randius]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Try here:

http://www.coderanch.com/t/575163 #7738

Rafael
[originally posted on jforum.net by Rafael Steil]
 
 
subject: java.lang.reflect.InvocationTargetException on WebLogic 8.1 SP5 & Oracle 9i