You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Nash (JIRA)" <de...@tuscany.apache.org> on 2009/09/02 22:57:32 UTC

[jira] Created: (TUSCANY-3252) Warning messages for incompatible references and services are worded incorrectly

Warning messages for incompatible references and services are worded incorrectly
--------------------------------------------------------------------------------

                 Key: TUSCANY-3252
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3252
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Assembly Model
    Affects Versions: Java-SCA-1.5.1
            Reporter: Simon Nash
            Assignee: Simon Nash
             Fix For: Java-SCA-1.5.1


The warning messages for incompatible references and services are worded incorrectly.  They include the name of the component reference or service but the message wording refers to this as the composite reference or service.

The following output from samples/implementation-composite illustrates this problem.  For example, InnerSourceComponent/targetReference is a component reference but the warning message refers to it as a composite reference.

Running composite.CompositeTestCase
02-Sep-2009 19:51:54 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: null
02-Sep-2009 19:51:56 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: file:/F:/tuscany90/sca-java-1.5.1/samples/implementa
tion-composite/target/classes/
02-Sep-2009 19:51:58 org.apache.tuscany.sca.contribution.processor.ValidatingXML
StreamReader
SEVERE: XMLSchema validation error occured in: null ,line = 21, column = 1, Mess
age = cvc-complex-type.3.2.2: Attribute 'targetNamespace' is not allowed to appe
ar in element 'contribution'.
02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
tionBuilderImpl
WARNING: Interface of composite reference InnerSourceComponent/targetReference m
ust be compatible with the interface declared by promoted component reference.
02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
tionBuilderImpl
WARNING: Interface of composite reference InnerSourceComponent/targetReference2
must be compatible with the interface declared by promoted component reference.
02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
tionBuilderImpl
WARNING: Interface of composite service InnerTargetComponent must be subset of t
he interface declared by promoted component service.
02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.ComponentRefer
enceWireBuilderImpl
WARNING: Incompatible interfaces on component reference and target: Composite =
{http://sample}OuterComposite Reference = targetComponentRef Service = TargetCom
ponent
02-Sep-2009 19:52:00 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: null
Main thread Thread[main,5,main]
Source: Client.main -> Source.clientMethod
java.lang.NullPointerException
        at composite.SourceImpl.clientMethod(SourceImpl.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementat
ionInvoker.invoke(JavaImplementationInvoker.java:156)
        at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
indingInvoker.java:61)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:346)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:193)
        at $Proxy8.clientMethod(Unknown Source)
        at composite.CompositeTestCase.test(CompositeTestCase.java:44)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.
java:79)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:138)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.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:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:308)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:879)
02-Sep-2009 19:52:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: null
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.394 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TUSCANY-3252) Warning messages for incompatible references and services are worded incorrectly

Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Laws updated TUSCANY-3252:
--------------------------------

    Fix Version/s:     (was: Java-SCA-1.5.1)
                   Java-SCA-Next

> Warning messages for incompatible references and services are worded incorrectly
> --------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3252
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3252
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-1.5.1
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>             Fix For: Java-SCA-Next
>
>
> The warning messages for incompatible references and services are worded incorrectly.  They include the name of the component reference or service but the message wording refers to this as the composite reference or service.
> The following output from samples/implementation-composite illustrates this problem.  For example, InnerSourceComponent/targetReference is a component reference but the warning message refers to it as a composite reference.
> Running composite.CompositeTestCase
> 02-Sep-2009 19:51:54 org.apache.tuscany.sca.node.impl.NodeImpl <init>
> INFO: Creating node: null
> 02-Sep-2009 19:51:56 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
> INFO: Loading contribution: file:/F:/tuscany90/sca-java-1.5.1/samples/implementa
> tion-composite/target/classes/
> 02-Sep-2009 19:51:58 org.apache.tuscany.sca.contribution.processor.ValidatingXML
> StreamReader
> SEVERE: XMLSchema validation error occured in: null ,line = 21, column = 1, Mess
> age = cvc-complex-type.3.2.2: Attribute 'targetNamespace' is not allowed to appe
> ar in element 'contribution'.
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
> tionBuilderImpl
> WARNING: Interface of composite reference InnerSourceComponent/targetReference m
> ust be compatible with the interface declared by promoted component reference.
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
> tionBuilderImpl
> WARNING: Interface of composite reference InnerSourceComponent/targetReference2
> must be compatible with the interface declared by promoted component reference.
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
> tionBuilderImpl
> WARNING: Interface of composite service InnerTargetComponent must be subset of t
> he interface declared by promoted component service.
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.ComponentRefer
> enceWireBuilderImpl
> WARNING: Incompatible interfaces on component reference and target: Composite =
> {http://sample}OuterComposite Reference = targetComponentRef Service = TargetCom
> ponent
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: null
> Main thread Thread[main,5,main]
> Source: Client.main -> Source.clientMethod
> java.lang.NullPointerException
>         at composite.SourceImpl.clientMethod(SourceImpl.java:45)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementat
> ionInvoker.invoke(JavaImplementationInvoker.java:156)
>         at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
> indingInvoker.java:61)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:346)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:193)
>         at $Proxy8.clientMethod(Unknown Source)
>         at composite.CompositeTestCase.test(CompositeTestCase.java:44)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at junit.framework.TestCase.runTest(TestCase.java:168)
>         at junit.framework.TestCase.runBare(TestCase.java:134)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:124)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.
> java:79)
>         at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
> java:62)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
> tSet(AbstractDirectoryTestSuite.java:138)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
> stractDirectoryTestSuite.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:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:308)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
> ava:879)
> 02-Sep-2009 19:52:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
> INFO: Stopping node: null
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.394 sec
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TUSCANY-3252) Warning messages for incompatible references and services are worded incorrectly

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash resolved TUSCANY-3252.
---------------------------------

    Resolution: Fixed

Fixed under r810822.

> Warning messages for incompatible references and services are worded incorrectly
> --------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3252
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3252
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-1.5.1
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.x
>
>
> The warning messages for incompatible references and services are worded incorrectly.  They include the name of the component reference or service but the message wording refers to this as the composite reference or service.
> The following output from samples/implementation-composite illustrates this problem.  For example, InnerSourceComponent/targetReference is a component reference but the warning message refers to it as a composite reference.
> Running composite.CompositeTestCase
> 02-Sep-2009 19:51:54 org.apache.tuscany.sca.node.impl.NodeImpl <init>
> INFO: Creating node: null
> 02-Sep-2009 19:51:56 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
> INFO: Loading contribution: file:/F:/tuscany90/sca-java-1.5.1/samples/implementa
> tion-composite/target/classes/
> 02-Sep-2009 19:51:58 org.apache.tuscany.sca.contribution.processor.ValidatingXML
> StreamReader
> SEVERE: XMLSchema validation error occured in: null ,line = 21, column = 1, Mess
> age = cvc-complex-type.3.2.2: Attribute 'targetNamespace' is not allowed to appe
> ar in element 'contribution'.
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
> tionBuilderImpl
> WARNING: Interface of composite reference InnerSourceComponent/targetReference m
> ust be compatible with the interface declared by promoted component reference.
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
> tionBuilderImpl
> WARNING: Interface of composite reference InnerSourceComponent/targetReference2
> must be compatible with the interface declared by promoted component reference.
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.CompositePromo
> tionBuilderImpl
> WARNING: Interface of composite service InnerTargetComponent must be subset of t
> he interface declared by promoted component service.
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.assembly.builder.impl.ComponentRefer
> enceWireBuilderImpl
> WARNING: Incompatible interfaces on component reference and target: Composite =
> {http://sample}OuterComposite Reference = targetComponentRef Service = TargetCom
> ponent
> 02-Sep-2009 19:52:00 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: null
> Main thread Thread[main,5,main]
> Source: Client.main -> Source.clientMethod
> java.lang.NullPointerException
>         at composite.SourceImpl.clientMethod(SourceImpl.java:45)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementat
> ionInvoker.invoke(JavaImplementationInvoker.java:156)
>         at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
> indingInvoker.java:61)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:346)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:193)
>         at $Proxy8.clientMethod(Unknown Source)
>         at composite.CompositeTestCase.test(CompositeTestCase.java:44)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at junit.framework.TestCase.runTest(TestCase.java:168)
>         at junit.framework.TestCase.runBare(TestCase.java:134)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:124)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.
> java:79)
>         at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
> java:62)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
> tSet(AbstractDirectoryTestSuite.java:138)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
> stractDirectoryTestSuite.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:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:308)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
> ava:879)
> 02-Sep-2009 19:52:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
> INFO: Stopping node: null
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.394 sec
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.