Donnerstag, 29. Januar 2009

funambol install-modules --> java.sql.SQLException: Connection is broken: localhost/funambol

Hi zusammen,

hier das Ergebnis eines 1 tägigen Kampfes mit Funambol. Bei dem Versuch das Beispiel-Modul (acmeconnector) aus der Funambol-Entwickler-Doku zu installieren kam es beim Versuch, die SQL-Daten in die hsqldb einzuspielen immer zu folgendem Fehler:




[echo] Starting custom installation...
[echo] acmeconnector installation
[echo] acmeconnector installation successfully completed
[echo] acmeconnector-1.0-SNAPSHOT installation...
[echo] Database installation for module acmeconnector-1.0-SNAPSHOT on hypersonic (/home/lars/myapps/Funambol/ds-server)

[iterate] The Funambol Data Synchronization Server installation program can now create
[iterate] the database required by the module acmeconnector-1.0-SNAPSHOT (if any is needed).
[iterate] You can skip this step if you have already a valid database created
[iterate] or the module does not require a database.

[iterate] If you choose 'y' your existing data will be deleted.

[iterate] Do you want to recreate the database?
[iterate] (y,n)
y

BUILD FAILED
/home/lars/myapps/Funambol/ds-server/install/install.xml:236: The following error occurred while executing this line:
/home/lars/myapps/Funambol/ds-server/install/install-modules.xml:113: The following error occurred while executing this line:
/home/lars/myapps/Funambol/ds-server/install/install-modules.xml:161: The following error occurred while executing this line:
/home/lars/myapps/Funambol/ds-server/install/install-modules.xml:224: The following error occurred while executing this line:
/home/lars/myapps/Funambol/ds-server/install/install-modules.xml:268: The following error occurred while executing this line:
/home/lars/myapps/Funambol/ds-server/install/install-modules.xml:342: java.sql.SQLException: Connection is broken: localhost/funambol



Das ganze hat mich schon fast zur Verzweiflung gebracht, da auch im Internet anscheinend niemand das gleiche Problem hatte. Ich habe dann der Reihe nach folgendes probiert:

  • mit SQuirrel auf die HSQLDB zugreifen - funktioniert
  • auf einem Windows-Rechner - funktioniert
  • auf einem neuen Benutzer-Account auf meinem Rechner (Ubuntu 8.04 AMD64) - funktioniert!!!
  • die letzte Aktion hat mir dann recht viel Hoffnung gegeben, da es nicht an der Software liegen kann - eine Shell-Variable war jetzt die naheliegendste Hoffnung

Inzwischen habe ich zumindest den Auslöser des Problems gefunden und hoffe damit anderen diese Arbeit zu ersparen: es lag an meiner JAVA_HOME-Variable. Diese zeigt auf ein JDK 1.6 von Sun. Entfernt man diese Variable funktioniert die Installation.

Warum dadurch keine Verbindung zum HSQLDB zustande kommt, weiss ich nicht, ich bin nur gerade ziemlich froh, diese Klippe umschifft zu haben und wende mich jetzt dem Beispiel-Connector zu.

Ciao
Larsfrommars


Keine Kommentare: