• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can not log in

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can log in again. Weird.

Thanks for the suggestions.

Cheers.

[originally posted on jforum.net by MarkSwanson]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic