You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kevin Williams (JIRA)" <tu...@ws.apache.org> on 2008/04/02 22:49:30 UTC

[jira] Created: (TUSCANY-2191) A @Service annotation with no attributes causes exception

A @Service annotation with no attributes causes exception
---------------------------------------------------------

                 Key: TUSCANY-2191
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2191
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core Runtime
    Affects Versions: Java-SCA-Next
            Reporter: Kevin Williams


Line 1635 of the Java Annotations spec says:

   A @Service annotation with no attributes is meaningless, it is the same as not having the annotation there at all.

However, the presence of the the annotation without attributes results in the following:

org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalServiceDefinitionException: No interfaces specified
	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
	at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)


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


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


[jira] Updated: (TUSCANY-2191) A @Service annotation with no attributes causes exception

Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated TUSCANY-2191:
-----------------------------------------

       Patch Info: [Patch Available]
    Fix Version/s: Java-SCA-Next

> A @Service annotation with no attributes causes exception
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2191
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2191
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Kevin Williams
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-2191.patch
>
>
> Line 1635 of the Java Annotations spec says:
>    A @Service annotation with no attributes is meaningless, it is the same as not having the annotation there at all.
> However, the presence of the the annotation without attributes results in the following:
> org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalServiceDefinitionException: No interfaces specified
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)

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


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


[jira] Updated: (TUSCANY-2191) A @Service annotation with no attributes causes exception

Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated TUSCANY-2191:
-----------------------------------------

    Attachment: TUSCANY-2191.patch

TUSCANY-2191.patch:

Log a warning instead of throwing an IllegalServiceDefinitionException.  With this patch, this exception class does not seem to be used anywhere other than the testcase.  So, it can either be marked as deprecated for now or deleted altogether.

> A @Service annotation with no attributes causes exception
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2191
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2191
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Kevin Williams
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-2191.patch
>
>
> Line 1635 of the Java Annotations spec says:
>    A @Service annotation with no attributes is meaningless, it is the same as not having the annotation there at all.
> However, the presence of the the annotation without attributes results in the following:
> org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalServiceDefinitionException: No interfaces specified
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)

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


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


[jira] Resolved: (TUSCANY-2191) A @Service annotation with no attributes causes exception

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

Simon Laws resolved TUSCANY-2191.
---------------------------------

    Resolution: Fixed

Patch applied at revision 648192. Thanks Vamsi.

> A @Service annotation with no attributes causes exception
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2191
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2191
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Kevin Williams
>            Assignee: Simon Laws
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-2191.patch
>
>
> Line 1635 of the Java Annotations spec says:
>    A @Service annotation with no attributes is meaningless, it is the same as not having the annotation there at all.
> However, the presence of the the annotation without attributes results in the following:
> org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalServiceDefinitionException: No interfaces specified
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)

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


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


[jira] Assigned: (TUSCANY-2191) A @Service annotation with no attributes causes exception

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

Simon Laws reassigned TUSCANY-2191:
-----------------------------------

    Assignee: Simon Laws

> A @Service annotation with no attributes causes exception
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2191
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2191
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Kevin Williams
>            Assignee: Simon Laws
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-2191.patch
>
>
> Line 1635 of the Java Annotations spec says:
>    A @Service annotation with no attributes is meaningless, it is the same as not having the annotation there at all.
> However, the presence of the the annotation without attributes results in the following:
> org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalServiceDefinitionException: No interfaces specified
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)

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


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