• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

ArrayOutOfBounds Exception

 
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,
I have downloaded and run jforum (through manual configuration) at my local machine but cannot seem to make it run at the production site that is hosted on a hosting provider. The provider has a Linux server with Tomcat 5.23, Java 1.6 and MySQL 4.11.
I get the following while trying the opening page. What would you advise?
Best regards,
Levent Aksu



[originally posted on jforum.net by laksu]
 
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 noticed via google that there are a couple of old bugs in the MySQL drivers that can cause this sort of exception. You might try using different versions of the JDBC driver, probably older versions to match your DB version.

It could also be that there are issues with the SQL statements used to get the data and the old 4.11 MySQL server. MySQL syntax parsing across different versions is not the most constant thing.
[originally posted on jforum.net by monroe]
 
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
so how do u manage??
[originally posted on jforum.net by n1729t]
 
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
Well, 90+% of normal SQL stuff works fine. E.g. the Select, Insert, Delete. It's the "odd" stuff you have to look out for. Like the LIMIT statements, Subqueries, some functions, and key constraints (with 5.0).

jForum uses prepared statements that are stored in a plain text file (under the config/database/<db type> directory). There are two of three different query sets for MySQL that work for different MySQL versions. Plus some configuration properties like the db uses subselects one, and the like.

If one of the pre-packaged query sets don't work, it's easy for someone who knows SQL but not code to tweak them to match their version. Fortunately, this hasn't happened a lot recently.
[originally posted on jforum.net by monroe]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic