>>Clover, James wrote:
>> I was thinking of using the Command package of Excalibur scratchpad, in
>> particular Commands and the CommandManager. My question is: how usable
is
>> this package? Is it in major development or in the minor tweak stage?
>Berin wrote:
>Its pretty useable. WE need some tests to make sure that everything
>is working as expected. Unless there are major issues that pop up,
>I would put it in the tweak stage.
I attempted to use the one from the scratchpad released with Excalibur 4.1,
but received a NullPointerException when I tried (I've placed the stack
trace from the log below). I then tried to build it from CVS where I
noticed it had been moved as a subpackage of Event. However, I couldn't get
the CVS build to compile - it complained about some missing packages (util
for example). I understand that there is a class/jar reorganization going
on, but does anyone either have a working Event/Command package from the
latest CVS or can anyone tell me how to solve my NullPointerExcepion below?
Thanks,
James
Here's the snippet of the code:
commandManager = new CommandManager();
threadManager = new TPCThreadManager(cpuCount, threadPerCpuCount);
threadManager.register(commandManager);
And here's the log:
DEBUG 10204 [cache ] (): caches: ComponentSelector could not access
the Component for hint: shared_html_cache
java.lang.IllegalStateException: Unable to access thread pool due to
java.lang.NullPointerException
at
org.apache.avalon.excalibur.thread.impl.ResourceLimitingThreadPool.getWorker
(ResourceLimitingThreadPool.java:267)
at
org.apache.avalon.excalibur.thread.impl.ResourceLimitingThreadPool.execute(R
esourceLimitingThreadPool.java:238)
at
org.apache.avalon.excalibur.thread.impl.ResourceLimitiorg.apache.avalon.fram
ework.component.ComponentException: Could not access the Component
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:353)
at
com.disney.dep.util.cache.standard.CacheInitializer.initialize(CacheInitiali
zer.java:57)
at
com.disney.dep.util.cache.standard.CacheInitializer.main(CacheInitializer.ja
va:27)
Exception in thread "main"
ngThreadPool.execute(ResourceLimitingThreadPool.java:226)
at
org.apache.avalon.excalibur.command.TPCThreadManager.<init>(TPCThreadManager
.java:89)
at
org.apache.avalon.excalibur.command.TPCThreadManager.<init>(TPCThreadManager
.java:73)
at
com.disney.dep.util.cache.standard.StandardCache.doInitialization(StandardCa
che.java:88)
at
com.disney.dep.util.cache.standard.AbstractCacheComponent.initialize(Abstrac
tCacheComponent.java:81)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:183)
at
org.apache.avalon.excalibur.component.DefaultComponentHandler.get(DefaultCom
ponentHandler.java:98)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:283)
at
com.disney.dep.util.cache.standard.StandardCacheManager.doInitialization(Sta
ndardCacheManager.java:54)
at
com.disney.dep.util.cache.standard.AbstractCacheComponent.initialize(Abstrac
tCacheComponent.java:81)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:183)
at
org.apache.avalon.excalibur.component.DefaultComponentHandler.get(DefaultCom
ponentHandler.java:98)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:325)
at
com.disney.dep.util.cache.standard.CacheInitializer.initialize(CacheInitiali
zer.java:57)
at
com.disney.dep.util.cache.standard.CacheInitializer.main(CacheInitializer.ja
va:27)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>