You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Hema Menon <me...@gmail.com> on 2004/11/30 04:31:27 UTC
Re: LateInitCastorRegistryService - InitializationException - Bug??
I found the source for the error in LateInitCastorRegistryService.java
code under jakarta-jetspeed/src/org/apache/jetspeed/services/registry
directory. In the init method, a classCastException is thrown at the
getConfiguration().getInt("refreshRate") which in turn is rethrown as
an InitializationException with the message "missing config keys". I
am overriding the property value for refreshRate in "my.properties". I
verified to see if there is any extra space after the value but could
not find any. Not sure why commons getConfiguration.getInt() is
throwing a classCastException on this.
The code snippet is as follows
int refreshRate = 0;
// read the configuration keys
try
{
directory = getConfiguration().getString("directory");
mapFile = getConfiguration().getString("mapping", DEFAULT_MAPPING);
extension = getConfiguration().getString("extension",
DEFAULT_EXTENSION);
refreshRate = getConfiguration().getInt("refreshRate",
DEFAULT_REFRESH);
mapFile = TurbineServlet.getRealPath(mapFile);
directory = TurbineServlet.getRealPath(directory);
}
catch (Throwable t)
{
throw new InitializationException("Unable to initialize
LateInitCastorRegistryService, missing config keys");
}
I tried using getConfiguration().getString("refreshRate") and parsing
the trimmed string value to set the integer value for refresh rate.
The initialization was successful in that case.
Thanks,
Hema
On Mon, 29 Nov 2004 13:01:13 -0600, Hema Menon <me...@gmail.com> wrote:
> Hi,
>
> I rebuild my jetspeed1.5 application using Jetspeed 1.6 with fusion.
> Everything starts up fine with successful "Fusion Service
> initialization Done". However when I try to access my login page, I
> get the following exception
> "org.apache.turbine.services.InitializationException: Unable to
> initialize LateInitCastorRegistryService, missing config keys" .
> Stacktrace is shown below.
>
> I am using Sybase server and the tables are the same one that I have
> been using for Jetspeed 1.5. Can someone point me to what these
> missing config keys are?
>
> Thanks,
> Hema
>
> org.apache.turbine.services.InitializationException: Unable to
> initialize LateInitCastorRegistryService, missing config keys
> at org.apache.jetspeed.services.registry.LateInitCastorRegistryService.init(LateInitCastorRegistryService.java:368)
> at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:304)
> rethrown as org.apache.turbine.services.InstantiationException:
> Service Registry failed to initialize
> at org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:322)
> at org.apache.jetspeed.services.Registry.getService(Registry.java:63)
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Hema Menon
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hema Menon
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org