You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Corey Jewett <cj...@syntheticplayground.com> on 2002/09/11 06:34:28 UTC

[Fortress] NullPointer on invalid role shorthand.

Figured any NullPointerException is a bug. Now why I'm causing it is a
whole different story... :)

DEBUG   2002-09-10 21:31:52.312 [axrs.system.roles             ] ():
setup role: name='http-handler', role='axrs.handlers.HTTPHandler',
class='axrs.handlers.HTTPHandler',
handler='org.apache.excalibur.fortress.handler.PerThreadComponentHandler'

<snip/>

DEBUG   2002-09-10 21:31:52.755 [axrs.system.roles.defaults    ] ():
looking up class with shorthand 'http-handler' but a class was not
found.
DEBUG   2002-09-10 21:31:52.763 [axrs.system.roles             ] ():
looking up class with shorthand 'http-handler' but a class was not
found.
Exception in thread "main"
org.apache.excalibur.fortress.InitializationException: Cannot set up
container. Startup lifecycle failure
	at
org.apache.excalibur.fortress.DefaultContainerManager.initializeContainer(DefaultContainerManager.java:256)
	at
org.apache.excalibur.fortress.DefaultContainerManager.initialize(DefaultContainerManager.java:172)
	at axrs.Bootstrap.main(Bootstrap.java:42)
Caused by: java.lang.NullPointerException
	at
org.apache.excalibur.fortress.util.AbstractRoleManager.getHandlerClassForClass(AbstractRoleManager.java:271)
	at
org.apache.excalibur.fortress.util.AbstractRoleManager.getHandlerClassForClass(AbstractRoleManager.java:264)
	at
org.apache.excalibur.fortress.container.DefaultContainer.rewriteConfiguration(DefaultContainer.java:151)
	at
org.apache.excalibur.fortress.container.DefaultContainer.configure(DefaultContainer.java:122)
	at
org.apache.excalibur.fortress.DefaultContainerManager.initializeContainer(DefaultContainerManager.java:229)
	... 2 more

<end/>

Corey


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>