My Turbine 2.2 app displays a "Horrible Exception" when the URL is accessed for the first time.
The exception in the log is as follows -


[Wed Jun 11 13:59:06 PDT 2003] -- INFO -- Turbine: init() failed: java.lang.NullPointerException
at org.apache.turbine.services.component.TurbineComponentService.init(TurbineComponentService.java:129)
at org.apache.turbine.services.TurbineBaseService.init(TurbineBaseService.java:108)
at org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker.java:149)
at org.apache.turbine.services.BaseServiceBroker.doInitService(BaseServiceBroker.java:224)
at org.apache.turbine.services.BaseServiceBroker.initServices(BaseServiceBroker.java:193)
at org.apache.turbine.Turbine.init(Turbine.java:257)


Basically I found out that in the source code of TurbineComponentService.java, the following line throws the NullPointerException :-
String [] names = getConfiguration().getStringArray(NAME);


The getConfiguration() was returning a NULL for "ComponentService". I opened the source code and put an if-else around the getConfiguration() block to prevent the NullPointerException. After this, the Turbine app runs smooth as ever.

Thus, my question is -
Is there any configuration in TR.props that I need to do to get rid of the exception?


The current TR.props configuration is as follows -

# -------------------------------------------------------------------
#
#  C O M P O N E N T S
#
# -------------------------------------------------------------------
# Components implementing the lifecycle interfaces can be loaded,
# configured and initialized by Turbine
# -------------------------------------------------------------------

component.name = torque
component.torque.classname = org.apache.torque.Torque
component.torque.config = ${webappRoot}/WEB-INF/conf/Torque.dev.properties

#component.name = fulcrum
#component.fulcrum.classname = org.apache.fulcrum.Fulcrum
#component.fulcrum.config = ${webappRoot}/WEB-INF/conf/Fulcrum.properties



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to