Tracker: Bugs (Migrated to Jira)

5 Postgres java.lang.NumberFormatException at first startup - ID: 1661683
Last Update: Comment added ( pangloss )

None


Sam ( sjw46 ) - 2007-02-16 09:08:04 PST

5

Closed

Fixed

E S

None

None

Public


Comments ( 2 )

Date: 2007-05-21 20:50:56 PDT
Sender: panglossProject Admin


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

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


Date: 2007-03-12 12:33:19 PDT
Sender: sjw46


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.



Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2007-05-21 20:50:56 PDT pangloss
resolution_id None 2007-05-21 20:50:56 PDT pangloss
close_date - 2007-05-21 20:50:56 PDT pangloss
data_type 879703 2007-02-26 07:47:15 PST pangloss