mheinzerling / jforum2

Automatically exported from code.google.com/p/jforum2
Other
0 stars 0 forks source link

Captcha bug on ubuntu #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. JForum captcha bug
2. When i try to post any message or register i got error on captcha
3.

What is the expected output? What do you see instead?
Captcha should run

What version of the product are you using? On what operating system,
database, and application server/servlet container?
* Product: JForum 2.3.4
* OS: Ubuntu : Linux www 3.8.0-34-generic #49-Ubuntu SMP Tue Nov 12 18:00:10 
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
* DB: Mysql
* AP: Glassfish

Please provide any additional information below.

Error Log:

<!-- BEGIN ERROR STACK TRACE
net.jforum.exceptions.ForumException: 
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at net.jforum.Command.process(Command.java:114)
    at net.jforum.JForum.processCommand(JForum.java:251)
    at net.jforum.JForum.service(JForum.java:233)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
    at com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:444)
    at com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:308)
    at com.sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:87)
    at com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171)
    at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143)
    at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:102)
    at com.sun.grizzly.http.TaskBase.run(TaskBase.java:193)
    at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175)
    at com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145)
    at com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:210)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.reflect.InvocationTargetException
    ... 44 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
net.jforum.util.Captcha
    at net.jforum.entities.UserSession.createNewCaptcha(UserSession.java:426)
    at net.jforum.view.forum.CaptchaAction.generate(CaptchaAction.java:58)
    ... 44 more

URL is: /jforum/captcha/generate.page?timestamp=1387311546040
END ERROR STACK TRACE-->

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache" /> 
<meta http-equiv="Expires" content="-1" />
<meta name="description" content="here goes the board description" />
<meta name="keywords" content="some keywords for your board" />
<link rel="stylesheet" type="text/css" 
href="/jforum/templates/default/styles/style.css" />
<link rel="stylesheet" type="text/css" 
href="/jforum/templates/default/styles/en_US.css" />
<title>KBD Forum - your board description</title>

</head>
<body class="en_US">
<!--
Original theme from phpBB (http://www.phpbb.com) subSilver
Created by subBlue design
http://www.subBlue.com

Modifications by JForum Team
-->
<table width="100%">
    <tr>
        <td>
            <table cellspacing="0" cellpadding="0" width="100%">

                <tr>

                <td align="left" style="padding:20px 50px;">
                        <a href="http://www.0dayarts.com"><img src="/jforum/templates/default/images/logo.png"  vspace="1" border="0" alt="[Logo]" /></a>
                </td>

                    <td width="100%" align="right" style="padding:20px 10px;" valign="bottom">
                        <table cellspacing="0" cellpadding="2">
                            <tr>
                                <td valign="top" nowrap="nowrap" align="center">&nbsp;                                  

                                    <ul class="mainmenu">

                                    <li> <a id="myprofile" class="new_menu_item" href="/jforum/user/edit/2.page">My Profile</a>  </li>                                       

                                            <li>
                                                <a id="privatemessages" class="new_menu_item" href="/jforum/pm/inbox.page">
                                                    Private Messages
                                                </a>
                                    </li>

                                    <li> <a id="search" class="new_menu_item" href="/jforum/search/filters.page">Search</a> </li>

                                    <li> <a id="latest" class="new_menu_item" href="/jforum/recentTopics/list.page">Recent Topics</a> </li>

                                    <li>
                                        <a class="new_menu_item" href="/jforum/posts/listByUser/2.page">My Posts</a>
                                    </li>

                                    <li>    
                                        <a id="logout" class="new_menu_item" href="/jforum/user/logout.page">Logout [Admin]</a>
                                    </li>

                                    </ul>   

                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
<a name="top" id="top"></a>
<table width="100%" cellspacing="0" cellpadding="10" align="center">
    <tr>
        <td class="bodyline">
            <br />
            <table width="100%" cellspacing="2" cellpadding="2" align="center">
                <tr>
                    <td align="left" class="nav"><a class="nav" href="/jforum/forums/list.page">Forum Index</a></td>
                </tr>
            </table>

            <table class="forumline" width="100%" cellspacing="1" cellpadding="4">
                <tr>
                    <th class="thhead"><b>Information</b></th>
                </tr>

                <tr>
                    <td class="row1">
                        <table width="100%" cellspacing="0" cellpadding="1">
                            <tr>
                                <td>&nbsp;</td>
                            </tr>

                            <tr>
                                <td align="center"><div class="gen"><p style="color:red; font-weight:bold">An error has occurred.</p><p>For detailed error information, please see the HTML source code, and contact the forum Administrator.</p><pre class="pre-error"><i>java.lang.NoClassDefFoundError: Could not initialize class net.jforum.util.Captcha</i></pre></div></td>
                            </tr>

                            <tr>
                                <td>&nbsp;</td>
                            </tr>

                            <tr>
                                <td align="center"><a class="nav" href="/jforum/forums/list.page">Forum Index</a> </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</td>
</tr>
    <tr>
        <td align="center">
            <span class="gen"><a id="adminpanel" href='/jforum/admBase/login.page'>Admin Control Panel</a></span>
        </td>
    </tr>

</table>

<iframe src="/jforum/ping_session.jsp" height="0" width="0" frameborder="0" 
scrolling="no" title="session keeper"></iframe>

</body>
</html>

Original issue reported on code.google.com by kadir.ba...@gmail.com on 17 Dec 2013 at 8:37

GoogleCodeExporter commented 9 years ago
check if you have jcaptcha library, add it yourself if missed

Original comment by andow...@gmail.com on 27 Jun 2014 at 9:16