You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Ramkumar R <ra...@gmail.com> on 2008/04/22 10:43:51 UTC

svn-commit r650405 - org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.java

org.apache.tuscany.sca.node.NodeException:
org.apache.tuscany.sca.interfacedef.InvalidOperationException: Method should
not declare exceptions with an @OneWay annotation.
        at
org.apache.tuscany.sca.node.impl.SCANodeImpl.init(SCANodeImpl.java:222)
        at
org.apache.tuscany.sca.node.impl.SCANodeImpl.<init>(SCANodeImpl.java:128)
        at
org.apache.tuscany.sca.node.impl.SCANodeFactoryImpl.createSCANode(SCANodeFactoryImpl.java:54)
        at
org.apache.tuscany.sca.node.impl.NodeDrivenTestCase.init(NodeDrivenTestCase.java:72)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at
org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
        at
org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
        at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
        at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
        at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)

DomainDrivenTestCase fails with the above exception as we have a
destroyNode() method in
org.apache.tuscany.sca.node.management.SCANodeManagerService.java interface
with @OneWay annotation, but declared to throw NodeException.

As per the specs, "Any method that returns "void" and has no declared
exceptions may be marked with an @OneWay annotation."

I am raising a JIRA to fix this issue by making the destroyNode() method not
to throw any exception.

-- 
Thanks & Regards,
Ramkumar Ramalingam

Re: svn-commit r650405 - org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.java

Posted by Ramkumar R <ra...@gmail.com>.
On 4/22/08, Ramkumar R <ra...@gmail.com> wrote:
>
> org.apache.tuscany.sca.node.NodeException:
> org.apache.tuscany.sca.interfacedef.InvalidOperationException: Method should
> not declare exceptions with an @OneWay annotation.
>         at
> org.apache.tuscany.sca.node.impl.SCANodeImpl.init(SCANodeImpl.java:222)
>         at
> org.apache.tuscany.sca.node.impl.SCANodeImpl.<init>(SCANodeImpl.java:128)
>         at
> org.apache.tuscany.sca.node.impl.SCANodeFactoryImpl.createSCANode(SCANodeFactoryImpl.java:54)
>         at
> org.apache.tuscany.sca.node.impl.NodeDrivenTestCase.init(NodeDrivenTestCase.java:72)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at
> org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
>         at
> org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
>         at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
>         at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
>         at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
>
> DomainDrivenTestCase fails with the above exception as we have a
> destroyNode() method in
> org.apache.tuscany.sca.node.management.SCANodeManagerService.java interface
> with @OneWay annotation, but declared to throw NodeException.
>
> As per the specs, "Any method that returns "void" and has no declared
> exceptions may be marked with an @OneWay annotation."
>
> I am raising a JIRA to fix this issue by making the destroyNode() method
> not to throw any exception.
>
> --
> Thanks & Regards,
> Ramkumar Ramalingam
>
I have raised TUSCANY-2252 to make the destroyNode() method not to throw any
exception. Please let me know if there could be any other issue by doing so.
Thanks.

-- 
Thanks & Regards,
Ramkumar Ramalingam