Troubleshooting

Generating verbose log output is a critical aid in troubleshooting of the DRS and is useful when communicating problems to Globus support lists. To increase logging detail, add the following line to the $GLOBUS_LOCATION/container-log4j.properties file.

        ...
        log4j.category.org.globus.replica=DEBUG
        ...
    

1. I am using MySQL and keep on getting a java.sql.SQLException: Cannot connect to MySQL server on localhost:3306 exception - what is the problem?

The MySQL JDBC driver recommended in the OGSA-DAI documentation is not compatible with the latest versions of MySQL. This is the case for MySQL 4.1.6 and 4.1.7 and may be the case for other versions. This problem usually causes the following error message to be logged:

java.sql.SQLException: Cannot connect to MySQL server on localhost:3306.

2. Is there a MySQL server running on the machine/port you are trying to connect to? (java.lang.NumberFormatException)

To address this problem all you need to do is use a newer version of the MySQL JDBC driver JAR which can be downloaded from:

http://www.mysql.com/products/connector/j/

If you have already deployed services using the incompatible JAR, follow these steps:

  • Stop your container.

  • Replace the JAR file in the lib directory in the container. See Where Does Stuff Go? above.

  • Restart the container.

3. Why do I get Exception in thread "main" java.lang.IllegalAccessError: tried to access field...?

This error can arise due to clashes of Xalan shipped with certain versions of Java and that shipped with the Globus Toolkit. Please see the OGSA-DAI FAQ at http://www.ogsadai.org.uk/docs/R6.0/doc/misc/FAQ.html#IllegalAccessError for more information.

Please check up the OGSA-DAI website (www.ogsadai.org.uk) for any updates. In particular the OGSA-DAI FAQ although note that this also caters for the non-WSRF distributions of OGSA-DAI.