Which version are you running?


Steve.


Maksimenko Alexander wrote:


Hi!
I have block.xml with nested containers
<container name="a">
<container name="b">
    <component name="b1"/>
</container>
</container>

I want to locate component b1 from TestCase extended from AbstractMerlintTestCase. So I have the following snippet:

Object o = resolve("/a/b/b1");

But it fails with the following exception :(

java.lang.Exception: ---- runtime exception report --------------------------------------------------
Exception: java.lang.IllegalArgumentException
Message: Invalid absolute reference: [inner/manager]
---- stack trace ---------------------------------------------------------------
java.lang.IllegalArgumentException: Invalid absolute reference: [b/b1]
org.apache.avalon.activation.appliance.impl.AbstractBlock.parentLocate(AbstractBlock.java:527)


org.apache.avalon.activation.appliance.impl.AbstractBlock.locate(AbstractBlock.java:511)

org.apache.avalon.activation.appliance.impl.AbstractBlock.parentLocate(AbstractBlock.java:522)

org.apache.avalon.activation.appliance.impl.AbstractBlock.locate(AbstractBlock.java:511)

org.apache.avalon.activation.appliance.impl.AbstractBlock.locate(AbstractBlock.java:466)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:324)
org.apache.avalon.merlin.unit.AbstractMerlinTestCase.resolve(AbstractMerlinTestCase.java:244)




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




--

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|

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



Reply via email to