• 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

[java.sql.SQLException: java.lang.ArrayIndexOutOfBoundsException]

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
J'utilise JBoss 3.2.3 - Apache 2 - MySQL 4.1

J'ai install̩ comme il faut JForum.

Quand je veux acc̩der pour la premi̬re fois au forum en tapant: http://localhost:8080/jforum/forums/list.page

Apparament l'erreur se situe sur l'ex̩cution de net.jforum.drivers.generic.UserModel.selectById()

Voici la pile :

09:29:39,578 ERROR [STDERR] java.sql.SQLException: java.lang.ArrayIndexOutOfBoun
dsException
at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPrepared
Statement.java:908)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:
1622)
at net.jforum.drivers.generic.UserModel.selectById(UserModel.java:74)
at net.jforum.repository.SecurityRepository.load(SecurityRepository.java
:89)
at net.jforum.repository.SecurityRepository.load(SecurityRepository.java
:105)
at net.jforum.JForum.service(JForum.java:230)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
...



Merci de votre aide...

[originally posted on jforum.net by Anonymous]
 
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
It is related to a bug in the mysql jar packaged with RC5. I'm releasing JForum 2.0 right today ( Monday ). if you don't want to wait, go to http://www.mysql.com and get the latest ( 3.0.15-ga ) version of Connector/J.

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
hi...does this exception, which is ArrayIndexOutOfBoundsException have anything to do with mysql-connector-java-3.0.9 jar file? Cuz I've been trying to connect to my mysql db and that exceptioin keeps popping out. Should I download the latest mysql connector java jar file?


[originally posted on jforum.net by Anonymous]
 
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 don't know for sure. I found it to happen with some specif mysql versions, but you can try getting another connector/j version and see if it works for you.

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