You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org> on 2006/05/08 08:43:20 UTC

[jira] Created: (TUSCANY-321) Injection of references into a simple POJO without annotations does not work

Injection of references into a simple POJO without annotations does not work
----------------------------------------------------------------------------

         Key: TUSCANY-321
         URL: http://issues.apache.org/jira/browse/TUSCANY-321
     Project: Tuscany
        Type: Bug

  Components: Java SCA Core, Java SCA POJO Container  
    Versions: M1    
    Reporter: Jean-Sebastien Delfino
    Priority: Critical
     Fix For: M1
 Attachments: undefreference.zip

Injection of references into a simple POJO without annotations does not work.

Create a simple POJO component without any SCA annotations. On the POJO declare public fields or public setters for the component's references. Wire the references in sca.module. When the module starts you will get the following exception:

[surefire] Running calculator.CalculatorTestCase
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.015 sec
[surefire]
[surefire] testCalculator(calculator.CalculatorTestCase)  Time elapsed: 0.999 sec  <<< ERROR!
org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined reference [addService]
        at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:162)
        at org.apache.tuscany.model.assembly.impl.CompositeImpl.initialize(CompositeImpl.java:194)
        at org.apache.tuscany.model.assembly.impl.ModuleImpl.initialize(ModuleImpl.java:85)
        at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:135)
        at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:156)
        at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
        at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
        at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
        at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
        at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
        at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
        at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
        at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
        at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

To reproduce the problem use the attached test case.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (TUSCANY-321) Injection of references into a simple POJO without annotations does not work

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-321?page=all ]

Jean-Sebastien Delfino updated TUSCANY-321:
-------------------------------------------

    Fix Version:     (was: Java-M1)

> Injection of references into a simple POJO without annotations does not work
> ----------------------------------------------------------------------------
>
>          Key: TUSCANY-321
>          URL: http://issues.apache.org/jira/browse/TUSCANY-321
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core, Java SCA POJO Container
>     Versions: Java-Mx
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Jim Marino
>     Priority: Minor
>      Fix For: Java-Mx
>  Attachments: undefreference.zip
>
> Injection of references into a simple POJO without annotations does not work.
> Create a simple POJO component without any SCA annotations. On the POJO declare public fields or public setters for the component's references. Wire the references in sca.module. When the module starts you will get the following exception:
> [surefire] Running calculator.CalculatorTestCase
> [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.015 sec
> [surefire]
> [surefire] testCalculator(calculator.CalculatorTestCase)  Time elapsed: 0.999 sec  <<< ERROR!
> org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined reference [addService]
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:162)
>         at org.apache.tuscany.model.assembly.impl.CompositeImpl.initialize(CompositeImpl.java:194)
>         at org.apache.tuscany.model.assembly.impl.ModuleImpl.initialize(ModuleImpl.java:85)
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:135)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:156)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
>         at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
>         at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> To reproduce the problem use the attached test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (TUSCANY-321) Injection of references into a simple POJO without annotations does not work

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-321?page=all ]

Jean-Sebastien Delfino updated TUSCANY-321:
-------------------------------------------

    Fix Version: Mx
        Version: Mx
                     (was: M1)

I verified that if you create a .componentType file for your component implementation then references are correctly found. So basically the story is:
- either you annotate your component with Java5 annotations, in this case you don't have to annotate properties, but you must annotate your references.
- or you create an equivalent .componentType file
- or you just use the POJO without annotations or .componentType but then the POJO can only have properties and no references.

I think this is fine for M1, moving this issue to Mx. Jim, Thanks for investigating this!


> Injection of references into a simple POJO without annotations does not work
> ----------------------------------------------------------------------------
>
>          Key: TUSCANY-321
>          URL: http://issues.apache.org/jira/browse/TUSCANY-321
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core, Java SCA POJO Container
>     Versions: Mx
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Jim Marino
>     Priority: Critical
>      Fix For: M1, Mx
>  Attachments: undefreference.zip
>
> Injection of references into a simple POJO without annotations does not work.
> Create a simple POJO component without any SCA annotations. On the POJO declare public fields or public setters for the component's references. Wire the references in sca.module. When the module starts you will get the following exception:
> [surefire] Running calculator.CalculatorTestCase
> [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.015 sec
> [surefire]
> [surefire] testCalculator(calculator.CalculatorTestCase)  Time elapsed: 0.999 sec  <<< ERROR!
> org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined reference [addService]
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:162)
>         at org.apache.tuscany.model.assembly.impl.CompositeImpl.initialize(CompositeImpl.java:194)
>         at org.apache.tuscany.model.assembly.impl.ModuleImpl.initialize(ModuleImpl.java:85)
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:135)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:156)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
>         at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
>         at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> To reproduce the problem use the attached test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TUSCANY-321) Injection of references into a simple POJO without annotations does not work

Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-321?page=comments#action_12378547 ] 

Jim Marino commented on TUSCANY-321:
------------------------------------

I posted a comment on this to the wron issue.  The problem here is that we don't know if something is a propety or reference if it is unannotated. For non-annotated fields, we default to properties. We could introduce an algorithm that assumes complext types which are intefaces (other than java collections) are references. I'm not sure that is the best approach and we should have the spec clarify it. I'd probably prefer an approach which dumps all public/protected fields and methods into a "candidate bucket" where they could be pulled out when a property or reference is encountered.

In any event, I think this is complex enough where for the M1 release we just require references to be annotated. 

> Injection of references into a simple POJO without annotations does not work
> ----------------------------------------------------------------------------
>
>          Key: TUSCANY-321
>          URL: http://issues.apache.org/jira/browse/TUSCANY-321
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core, Java SCA POJO Container
>     Versions: M1
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Jim Marino
>     Priority: Critical
>      Fix For: M1
>  Attachments: undefreference.zip
>
> Injection of references into a simple POJO without annotations does not work.
> Create a simple POJO component without any SCA annotations. On the POJO declare public fields or public setters for the component's references. Wire the references in sca.module. When the module starts you will get the following exception:
> [surefire] Running calculator.CalculatorTestCase
> [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.015 sec
> [surefire]
> [surefire] testCalculator(calculator.CalculatorTestCase)  Time elapsed: 0.999 sec  <<< ERROR!
> org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined reference [addService]
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:162)
>         at org.apache.tuscany.model.assembly.impl.CompositeImpl.initialize(CompositeImpl.java:194)
>         at org.apache.tuscany.model.assembly.impl.ModuleImpl.initialize(ModuleImpl.java:85)
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:135)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:156)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
>         at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
>         at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> To reproduce the problem use the attached test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (TUSCANY-321) Injection of references into a simple POJO without annotations does not work

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-321?page=all ]

Jean-Sebastien Delfino updated TUSCANY-321:
-------------------------------------------

    Priority: Minor  (was: Critical)

The exact behavior with non-annotated references will have to be clarified in the spec.

> Injection of references into a simple POJO without annotations does not work
> ----------------------------------------------------------------------------
>
>          Key: TUSCANY-321
>          URL: http://issues.apache.org/jira/browse/TUSCANY-321
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core, Java SCA POJO Container
>     Versions: Mx
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Jim Marino
>     Priority: Minor
>      Fix For: M1, Mx
>  Attachments: undefreference.zip
>
> Injection of references into a simple POJO without annotations does not work.
> Create a simple POJO component without any SCA annotations. On the POJO declare public fields or public setters for the component's references. Wire the references in sca.module. When the module starts you will get the following exception:
> [surefire] Running calculator.CalculatorTestCase
> [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.015 sec
> [surefire]
> [surefire] testCalculator(calculator.CalculatorTestCase)  Time elapsed: 0.999 sec  <<< ERROR!
> org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined reference [addService]
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:162)
>         at org.apache.tuscany.model.assembly.impl.CompositeImpl.initialize(CompositeImpl.java:194)
>         at org.apache.tuscany.model.assembly.impl.ModuleImpl.initialize(ModuleImpl.java:85)
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:135)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:156)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
>         at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
>         at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> To reproduce the problem use the attached test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (TUSCANY-321) Injection of references into a simple POJO without annotations does not work

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-321?page=all ]

Jean-Sebastien Delfino updated TUSCANY-321:
-------------------------------------------

    Assign To: Jim Marino

Jim, these are the JIRA issues discussed on today's IRC. Thanks.

> Injection of references into a simple POJO without annotations does not work
> ----------------------------------------------------------------------------
>
>          Key: TUSCANY-321
>          URL: http://issues.apache.org/jira/browse/TUSCANY-321
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core, Java SCA POJO Container
>     Versions: M1
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Jim Marino
>     Priority: Critical
>      Fix For: M1
>  Attachments: undefreference.zip
>
> Injection of references into a simple POJO without annotations does not work.
> Create a simple POJO component without any SCA annotations. On the POJO declare public fields or public setters for the component's references. Wire the references in sca.module. When the module starts you will get the following exception:
> [surefire] Running calculator.CalculatorTestCase
> [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.015 sec
> [surefire]
> [surefire] testCalculator(calculator.CalculatorTestCase)  Time elapsed: 0.999 sec  <<< ERROR!
> org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined reference [addService]
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:162)
>         at org.apache.tuscany.model.assembly.impl.CompositeImpl.initialize(CompositeImpl.java:194)
>         at org.apache.tuscany.model.assembly.impl.ModuleImpl.initialize(ModuleImpl.java:85)
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:135)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:156)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
>         at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
>         at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> To reproduce the problem use the attached test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (TUSCANY-321) Injection of references into a simple POJO without annotations does not work

Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-321?page=all ]

Jim Marino closed TUSCANY-321.
------------------------------

    Resolution: Fixed

> Injection of references into a simple POJO without annotations does not work
> ----------------------------------------------------------------------------
>
>                 Key: TUSCANY-321
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-321
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core, Java SCA POJO Container
>    Affects Versions: Java-Mx
>            Reporter: Jean-Sebastien Delfino
>         Assigned To: Jim Marino
>            Priority: Minor
>             Fix For: Java-Mx
>
>         Attachments: undefreference.zip
>
>
> Injection of references into a simple POJO without annotations does not work.
> Create a simple POJO component without any SCA annotations. On the POJO declare public fields or public setters for the component's references. Wire the references in sca.module. When the module starts you will get the following exception:
> [surefire] Running calculator.CalculatorTestCase
> [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.015 sec
> [surefire]
> [surefire] testCalculator(calculator.CalculatorTestCase)  Time elapsed: 0.999 sec  <<< ERROR!
> org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined reference [addService]
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:162)
>         at org.apache.tuscany.model.assembly.impl.CompositeImpl.initialize(CompositeImpl.java:194)
>         at org.apache.tuscany.model.assembly.impl.ModuleImpl.initialize(ModuleImpl.java:85)
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:135)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:156)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
>         at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
>         at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> To reproduce the problem use the attached test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-321) Injection of references into a simple POJO without annotations does not work

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-321?page=all ]

Jean-Sebastien Delfino updated TUSCANY-321:
-------------------------------------------

    Attachment: undefreference.zip

> Injection of references into a simple POJO without annotations does not work
> ----------------------------------------------------------------------------
>
>          Key: TUSCANY-321
>          URL: http://issues.apache.org/jira/browse/TUSCANY-321
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core, Java SCA POJO Container
>     Versions: M1
>     Reporter: Jean-Sebastien Delfino
>     Priority: Critical
>      Fix For: M1
>  Attachments: undefreference.zip
>
> Injection of references into a simple POJO without annotations does not work.
> Create a simple POJO component without any SCA annotations. On the POJO declare public fields or public setters for the component's references. Wire the references in sca.module. When the module starts you will get the following exception:
> [surefire] Running calculator.CalculatorTestCase
> [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.015 sec
> [surefire]
> [surefire] testCalculator(calculator.CalculatorTestCase)  Time elapsed: 0.999 sec  <<< ERROR!
> org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined reference [addService]
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:162)
>         at org.apache.tuscany.model.assembly.impl.CompositeImpl.initialize(CompositeImpl.java:194)
>         at org.apache.tuscany.model.assembly.impl.ModuleImpl.initialize(ModuleImpl.java:85)
>         at org.apache.tuscany.model.assembly.impl.ComponentImpl.initialize(ComponentImpl.java:135)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:156)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
>         at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
>         at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
>         at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
>         at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> To reproduce the problem use the attached test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira