• 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
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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]
 
Goodbye moon men. Hello tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic