Umm.... I am an idiot.

d./

-----Original Message-----
From: Ferguson, Doug [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 5:05 PM
To: 'Avalon framework users'
Subject: Wierd Exception


Does this make sense to anybody?

---- report -------------------------------------------------------

Exception: org.apache.avalon.merlin.kernel.KernelException
Message: Block install failure: file:/C:/dev/unagi/collector.xml

Cause: org.apache.avalon.composition.model.ModelException
Message: Unable to include block [file:/C:/dev/unagi/collector.xml] into the
con
tainmment model [/] because of a io related error.

Cause: java.io.FileNotFoundException
Message: C:\dev\unagi\collector.xml (The system cannot find the file
specified)
---- stack trace ---------------------------------------------------

java.io.FileNotFoundException: C:\dev\unagi\collector.xml (The system cannot
fin
d the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at sun.net.www.protocol.file.FileURLConnection.connect(Unknown
Source)
        at
sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown So
urce)
        at java.net.URL.openStream(Unknown Source)
        at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown So
urce)
        at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
 Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder
.build(DefaultConfigurationBuilder.java:290)
        at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder
.build(DefaultConfigurationBuilder.java:273)
        at
org.apache.avalon.composition.model.impl.DefaultContainmentModel.crea
teContainmentModel(DefaultContainmentModel.java:642)
        at
org.apache.avalon.composition.model.impl.DefaultContainmentModel.addC
ontainmentModel(DefaultContainmentModel.java:281)
        at
org.apache.avalon.composition.model.impl.DefaultContainmentModel.addM
odel(DefaultContainmentModel.java:275)
        at
org.apache.avalon.merlin.kernel.impl.DefaultKernel.<init>(DefaultKern
el.java:202)
        at
org.apache.avalon.merlin.kernel.impl.CLIKernelLoader.createKernel(CLI
KernelLoader.java:289)
        at
org.apache.avalon.merlin.kernel.impl.CLIKernelLoader.standardStartup(
CLIKernelLoader.java:247)
        at
org.apache.avalon.merlin.kernel.impl.CLIKernelLoader.<init>(CLIKernel
Loader.java:181)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at Merlin.main(Merlin.java:265)

-------------------------------------------------------------------

-----Original Message-----
From: Scott Brickner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 3:24 PM
To: [EMAIL PROTECTED]
Subject: Merlin is starting my component too late.


I'm relatively new to Avalon, but so far I like it.

I've noticed that Merlin is doing strange things for starting up my
components - frankly I think the way it interprets the block.xml file is
bizarre, but *someone* must think it's reasonable.

In particular, I have a component that implements LogEnabled,
Serviceable, Configurable, and Initializable. During the initialize()
method, it registers itself with another component it discovered during
the service() method. The component is marked as activation='startup' in
the block.xml.

The problem is that the component is not actually being started at
startup time. It's well over 10s after the application is started that
the component gets its initialize() method invoked, and the application
is fairly small.

Any ideas what may be going on here? Is there any better description of
how Merlin processes the build.xml file than what's on the site? (Which
is hopelessly inadequate.)


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

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

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

Reply via email to