#2 Postgres java.lang.NumberFormatException at first startup

closed-fixed
E S
None
5
2007-05-22
2007-02-16
Sam
No

None

Discussion

  • Sam
    Sam
    2007-03-12

    Logged In: YES
    user_id=1709161
    Originator: YES

    After running an install and selecting Postgresql, the first attempt to start
    Fedora 2.2 results in the following error:

    **************************
    ** FEDORA STARTUP ERROR **
    **************************

    Fedora startup failed
    fedora.server.errors.ModuleInitializationException: A connection pool could not
    be instantiated. The underlying error was a java.lang.NumberFormatExceptionThe
    message was "null".
    at
    fedora.server.storage.ConnectionPoolManagerImpl.initModule(ConnectionPoolManagerImpl.java:214)
    at fedora.server.Module.<init>(Module.java:48)
    at
    fedora.server.storage.ConnectionPoolManagerImpl.<init>(ConnectionPoolManagerImpl.java:69)

    ------- Additional Comment #1 From Chris Wilper 2007-01-23 12:49 [reply] -------
    CAUSE:
    ------
    This is caused by a badly-populated fedora.fcfg at install-time. Due to the use
    of different case when auto-populating the initial fedora.fcfg, the installer
    ends up creating a partially-populated "datastore" element named
    "localPostgresqlPool" (vs. "localPostgreSQLPool"). This ultimately causes the
    NumberFormatException at startup because the ConnectionPoolManager module
    expects a numeric param value that isn't present for "localPostgresqlPool".

    WORKAROUND:
    -----------
    Users can work around this problem by taking the following steps:

    1) After running the installer, open the file
    $FEDORA_HOME/server/config/fedora.fcfg in an editor.
    2) Find the datastore with id="localPostgreSQLPool" (uppercase SQL).
    3) Copy all "param" elements EXCEPT the first four (dbUsername, dbPassword,
    jdbcURL, jdbcDriverClass)
    4) Go to the end of the file, into the datastore with id="localPostgresqlPool"
    (lowercase sql) and paste the copied "param" elements after the four existing
    elements.
    5) You can now remove the entire, old datastore element with
    id="localPostgreSQLPool" (uppercase SQL).
    6) Save the modified fedora.fcfg.
    7) Start Fedora as usual.

     
  • E S
    E S
    2007-05-22

    Logged In: YES
    user_id=487398
    Originator: NO

    Fixed in svn maintenance-2.2 branch (rev 6003).

    Details:
    src/java/fedora/utilities/install/FedoraHome.java, line 114, now reads:
    dbPoolName = "localPostgreSQLPool";

     
  • E S
    E S
    2007-05-22

    • status: open --> closed-fixed