You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Scott Kurz (JIRA)" <tu...@ws.apache.org> on 2006/08/31 04:07:22 UTC

[jira] Created: (TUSCANY-679) InterfaceWSDLLoader mismatch btw. @Constructor annot. and actual Constructor parms

InterfaceWSDLLoader mismatch btw.  @Constructor annot. and actual Constructor parms
-----------------------------------------------------------------------------------

                 Key: TUSCANY-679
                 URL: http://issues.apache.org/jira/browse/TUSCANY-679
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Axis Binding
    Affects Versions: Java-M2
            Reporter: Scott Kurz


PROBLEM:

Mismatch btw. annotation:

    @Constructor({"registry"})

and Constructor:

    public InterfaceWSDLLoader(@Autowire LoaderRegistry registry,
                               @Autowire WSDLDefinitionRegistry wsdlRegistry) {

----------------------------------------
SYMPTOM:

org.apache.tuscany.core.implementation.processor.InvalidAutowireException: Names in @Constructor and autowire parameter do not match at 2 [public org.apache.tuscany.idl.wsdl.InterfaceWSDLLoader(org.apache.tuscany.spi.loader.LoaderRegistry,org.apache.tuscany.idl.wsdl.WSDLDefinitionRegistry)]
Context stack trace: [tuscany.system][intf.wsdl.loader]

	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processAutowire(ImplementationProcessorServiceImpl.java:186)

	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processParam(ImplementationProcessorServiceImpl.java:113)

	at org.apache.tuscany.core.implementation.processor.ConstructorProcessor.visitConstructor(ConstructorProcessor.java:94)

	at org.apache.tuscany.core.implementation.IntrospectionRegistryImpl.introspect(IntrospectionRegistryImpl.java:83)

	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.loadByIntrospection(SystemComponentTypeLoader.java:85)

	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:69)

	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:42)

	at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
....


-- 
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] Commented: (TUSCANY-679) InterfaceWSDLLoader mismatch btw. @Constructor annot. and actual Constructor parms

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

The issue is in the definition of InterfaceWSDLLoader. Either the @Constructor annotation should include names for all constructor params, none, or just be eliminated. I would just eliminate the @Constructor since the implementation processor will deduce the constructor from the @Autowire annotations.

> InterfaceWSDLLoader mismatch btw.  @Constructor annot. and actual Constructor parms
> -----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-679
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-679
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding
>    Affects Versions: Java-M2
>            Reporter: Scott Kurz
>         Attachments: InterfaceWSDLLoader.ConstructorFix.patch
>
>
> PROBLEM:
> Mismatch btw. annotation:
>     @Constructor({"registry"})
> and Constructor:
>     public InterfaceWSDLLoader(@Autowire LoaderRegistry registry,
>                                @Autowire WSDLDefinitionRegistry wsdlRegistry) {
> ----------------------------------------
> SYMPTOM:
> org.apache.tuscany.core.implementation.processor.InvalidAutowireException: Names in @Constructor and autowire parameter do not match at 2 [public org.apache.tuscany.idl.wsdl.InterfaceWSDLLoader(org.apache.tuscany.spi.loader.LoaderRegistry,org.apache.tuscany.idl.wsdl.WSDLDefinitionRegistry)]
> Context stack trace: [tuscany.system][intf.wsdl.loader]
> 	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processAutowire(ImplementationProcessorServiceImpl.java:186)
> 	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processParam(ImplementationProcessorServiceImpl.java:113)
> 	at org.apache.tuscany.core.implementation.processor.ConstructorProcessor.visitConstructor(ConstructorProcessor.java:94)
> 	at org.apache.tuscany.core.implementation.IntrospectionRegistryImpl.introspect(IntrospectionRegistryImpl.java:83)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.loadByIntrospection(SystemComponentTypeLoader.java:85)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:69)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:42)
> 	at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
> ....

-- 
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] Closed: (TUSCANY-679) InterfaceWSDLLoader mismatch btw. @Constructor annot. and actual Constructor parms

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

Jeremy Boynes closed TUSCANY-679.
---------------------------------

    Resolution: Fixed

Patch applied fine - thanks

> InterfaceWSDLLoader mismatch btw.  @Constructor annot. and actual Constructor parms
> -----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-679
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-679
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding
>    Affects Versions: Java-M2
>            Reporter: Scott Kurz
>         Attachments: InterfaceWSDLLoader.ConstructorFix.patch
>
>
> PROBLEM:
> Mismatch btw. annotation:
>     @Constructor({"registry"})
> and Constructor:
>     public InterfaceWSDLLoader(@Autowire LoaderRegistry registry,
>                                @Autowire WSDLDefinitionRegistry wsdlRegistry) {
> ----------------------------------------
> SYMPTOM:
> org.apache.tuscany.core.implementation.processor.InvalidAutowireException: Names in @Constructor and autowire parameter do not match at 2 [public org.apache.tuscany.idl.wsdl.InterfaceWSDLLoader(org.apache.tuscany.spi.loader.LoaderRegistry,org.apache.tuscany.idl.wsdl.WSDLDefinitionRegistry)]
> Context stack trace: [tuscany.system][intf.wsdl.loader]
> 	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processAutowire(ImplementationProcessorServiceImpl.java:186)
> 	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processParam(ImplementationProcessorServiceImpl.java:113)
> 	at org.apache.tuscany.core.implementation.processor.ConstructorProcessor.visitConstructor(ConstructorProcessor.java:94)
> 	at org.apache.tuscany.core.implementation.IntrospectionRegistryImpl.introspect(IntrospectionRegistryImpl.java:83)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.loadByIntrospection(SystemComponentTypeLoader.java:85)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:69)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:42)
> 	at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
> ....

-- 
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-679) InterfaceWSDLLoader mismatch btw. @Constructor annot. and actual Constructor parms

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

Scott Kurz updated TUSCANY-679:
-------------------------------

    Attachment: InterfaceWSDLLoader.ConstructorFix.patch

Hopefully this is the right patch format (this is my first patch here)

> InterfaceWSDLLoader mismatch btw.  @Constructor annot. and actual Constructor parms
> -----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-679
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-679
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding
>    Affects Versions: Java-M2
>            Reporter: Scott Kurz
>         Attachments: InterfaceWSDLLoader.ConstructorFix.patch
>
>
> PROBLEM:
> Mismatch btw. annotation:
>     @Constructor({"registry"})
> and Constructor:
>     public InterfaceWSDLLoader(@Autowire LoaderRegistry registry,
>                                @Autowire WSDLDefinitionRegistry wsdlRegistry) {
> ----------------------------------------
> SYMPTOM:
> org.apache.tuscany.core.implementation.processor.InvalidAutowireException: Names in @Constructor and autowire parameter do not match at 2 [public org.apache.tuscany.idl.wsdl.InterfaceWSDLLoader(org.apache.tuscany.spi.loader.LoaderRegistry,org.apache.tuscany.idl.wsdl.WSDLDefinitionRegistry)]
> Context stack trace: [tuscany.system][intf.wsdl.loader]
> 	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processAutowire(ImplementationProcessorServiceImpl.java:186)
> 	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processParam(ImplementationProcessorServiceImpl.java:113)
> 	at org.apache.tuscany.core.implementation.processor.ConstructorProcessor.visitConstructor(ConstructorProcessor.java:94)
> 	at org.apache.tuscany.core.implementation.IntrospectionRegistryImpl.introspect(IntrospectionRegistryImpl.java:83)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.loadByIntrospection(SystemComponentTypeLoader.java:85)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:69)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:42)
> 	at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
> ....

-- 
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] Commented: (TUSCANY-679) InterfaceWSDLLoader mismatch btw. @Constructor annot. and actual Constructor parms

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

oops didn't see the patch. Yes this will work or just delete the @Constructor

> InterfaceWSDLLoader mismatch btw.  @Constructor annot. and actual Constructor parms
> -----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-679
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-679
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding
>    Affects Versions: Java-M2
>            Reporter: Scott Kurz
>         Attachments: InterfaceWSDLLoader.ConstructorFix.patch
>
>
> PROBLEM:
> Mismatch btw. annotation:
>     @Constructor({"registry"})
> and Constructor:
>     public InterfaceWSDLLoader(@Autowire LoaderRegistry registry,
>                                @Autowire WSDLDefinitionRegistry wsdlRegistry) {
> ----------------------------------------
> SYMPTOM:
> org.apache.tuscany.core.implementation.processor.InvalidAutowireException: Names in @Constructor and autowire parameter do not match at 2 [public org.apache.tuscany.idl.wsdl.InterfaceWSDLLoader(org.apache.tuscany.spi.loader.LoaderRegistry,org.apache.tuscany.idl.wsdl.WSDLDefinitionRegistry)]
> Context stack trace: [tuscany.system][intf.wsdl.loader]
> 	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processAutowire(ImplementationProcessorServiceImpl.java:186)
> 	at org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processParam(ImplementationProcessorServiceImpl.java:113)
> 	at org.apache.tuscany.core.implementation.processor.ConstructorProcessor.visitConstructor(ConstructorProcessor.java:94)
> 	at org.apache.tuscany.core.implementation.IntrospectionRegistryImpl.introspect(IntrospectionRegistryImpl.java:83)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.loadByIntrospection(SystemComponentTypeLoader.java:85)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:69)
> 	at org.apache.tuscany.core.implementation.system.loader.SystemComponentTypeLoader.load(SystemComponentTypeLoader.java:42)
> 	at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
> ....

-- 
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