aspose file tools*
The moose likes JForum and the fly likes Can not log in Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Can not log in" Watch "Can not log in" New topic
Author

Can not log in

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Which MySQL version are you using? Also, it appears that there is more than one connector/j jar in the web application.

Please look at WEB-INF/lib and your Tomcat's common/lib directory.

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

Joined: Apr 22, 2012
Posts: 17424
I seem to be unable to log in to my own jforums. The error I get is:

Oct 15 00:02:31 ERROR ExceptionWriter

java.lang.NullPointerException
at net.jforum.view.forum.UserAction.validateLogin(UserAction.java:410)
at net.jforum.view.forum.UserAction.validateLogin(UserAction.java:428)
at net.jforum.view.forum.RSSAction.process(RSSAction.java:228)
at net.jforum.JForum.service(JForum.java:182)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Any thoughts would be appreciated.

Thanks.

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

Joined: Apr 22, 2012
Posts: 17424
Note: I briefly enabled the SSO, and then commented that out. I haven't been able to log in since. Perhaps something in the DB still thinks I'm using SSO?

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

Joined: Apr 22, 2012
Posts: 17424
Further info: trying to log on after awhile just gives me this:
My DB settings are correct. I can connect with the username/password using mysql ...

If I reinstall will jforums keep and use the existing database info?

An error has occurred.

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

Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: Broken pipe

STACKTRACE:

java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2692)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1552)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
at net.jforum.sso.DefaultLoginAuthenticator.validateLogin(DefaultLoginAuthenticator.java:86)
[originally posted on jforum.net by MarkSwanson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
MySQL 4.1.20
Java 1.5.0_08

I found the duplicate jforum/WEB-INF/lib/mysql*jar and removed it. The same one exists in tomcat/common/lib.

Is there anything else you'd suggest I'd look at?

It was working fine for several weeks, then I changed the DB timeouts, and it hasn't worked since even though I changed the timeouts back.

My MySql timeouts are 300 seconds.
The jforum timeouts are 5000. I don't know if that is seconds or not. It must be shorter than the MySQL timeout. I changed the value to 200 just in case it is seconds but that didn't help.

I went through the 'forgot password' process, and that worked right up to the point where I log in, then the password is not valid.

Thanks for any suggestions.

Cheers.

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

Joined: Apr 22, 2012
Posts: 17424
I can log in again. Weird.

Thanks for the suggestions.

Cheers.

[originally posted on jforum.net by MarkSwanson]
 
 
subject: Can not log in