You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jean-Philippe CLEMENT (JIRA)" <ji...@apache.org> on 2010/04/21 12:20:49 UTC
[jira] Created: (FELIX-2295) Referenced service throws
UndeclaredThrowableException instead of real one
Referenced service throws UndeclaredThrowableException instead of real one
--------------------------------------------------------------------------
Key: FELIX-2295
URL: https://issues.apache.org/jira/browse/FELIX-2295
Project: Felix
Issue Type: Bug
Components: Karaf
Affects Versions: karaf-1.4.0
Environment: XP / Ubuntu
Reporter: Jean-Philippe CLEMENT
Project uses Blueprint. There are 3 bundles.
Bundle 1 - exports an API - API includes an interface X with a method Y sending an exception Z
Bundle 2 - implements the interface X of the API and exports it with <service> tag
Bundle 3 - uses the exported service of the API with <reference> tag (and gets without "knowing" it the service of Bundle 2)
Expected behavior: Bundle 3 calls the method Y of interface X and gets the exception Z (when thrown).
Obtained behavior: Bundle 3 calls the method Y of interface X and gets the exception:
UndeclaredThrowableException
caused by InvocationTargetException
caused by Z
This is 100% reproductible
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-2295) Referenced service throws
UndeclaredThrowableException instead of real one
Posted by "Jean-Philippe CLEMENT (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859422#action_12859422 ]
Jean-Philippe CLEMENT commented on FELIX-2295:
----------------------------------------------
Yes, which cannot be the case as Bundle 2 and Bundle 3 both import Bundle 1 (API).
> Referenced service throws UndeclaredThrowableException instead of real one
> --------------------------------------------------------------------------
>
> Key: FELIX-2295
> URL: https://issues.apache.org/jira/browse/FELIX-2295
> Project: Felix
> Issue Type: Bug
> Components: Karaf
> Affects Versions: karaf-1.4.0
> Environment: XP / Ubuntu
> Reporter: Jean-Philippe CLEMENT
>
> Project uses Blueprint. There are 3 bundles.
> Bundle 1 - exports an API - API includes an interface X with a method Y sending an exception Z
> Bundle 2 - implements the interface X of the API and exports it with <service> tag
> Bundle 3 - uses the exported service of the API with <reference> tag (and gets without "knowing" it the service of Bundle 2)
> Expected behavior: Bundle 3 calls the method Y of interface X and gets the exception Z (when thrown).
> Obtained behavior: Bundle 3 calls the method Y of interface X and gets the exception:
> UndeclaredThrowableException
> caused by InvocationTargetException
> caused by Z
> This is 100% reproductible
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (FELIX-2295) Referenced service throws
UndeclaredThrowableException instead of real one
Posted by "Jean-Philippe CLEMENT (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859422#action_12859422 ]
Jean-Philippe CLEMENT edited comment on FELIX-2295 at 4/21/10 12:40 PM:
------------------------------------------------------------------------
Yes, which should not be the case as Bundle 2 and Bundle 3 both import Bundle 1 (API).
was (Author: jeanphi):
Yes, which cannot be the case as Bundle 2 and Bundle 3 both import Bundle 1 (API).
> Referenced service throws UndeclaredThrowableException instead of real one
> --------------------------------------------------------------------------
>
> Key: FELIX-2295
> URL: https://issues.apache.org/jira/browse/FELIX-2295
> Project: Felix
> Issue Type: Bug
> Components: Karaf
> Affects Versions: karaf-1.4.0
> Environment: XP / Ubuntu
> Reporter: Jean-Philippe CLEMENT
>
> Project uses Blueprint. There are 3 bundles.
> Bundle 1 - exports an API - API includes an interface X with a method Y sending an exception Z
> Bundle 2 - implements the interface X of the API and exports it with <service> tag
> Bundle 3 - uses the exported service of the API with <reference> tag (and gets without "knowing" it the service of Bundle 2)
> Expected behavior: Bundle 3 calls the method Y of interface X and gets the exception Z (when thrown).
> Obtained behavior: Bundle 3 calls the method Y of interface X and gets the exception:
> UndeclaredThrowableException
> caused by InvocationTargetException
> caused by Z
> This is 100% reproductible
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-2295) Referenced service throws
UndeclaredThrowableException instead of real one
Posted by "Jean-Philippe CLEMENT (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859443#action_12859443 ]
Jean-Philippe CLEMENT commented on FELIX-2295:
----------------------------------------------
Exception Z is part of bundle 1.
I will try to provide a set of bundles asap, but please don't expect it too fast ;)
> Referenced service throws UndeclaredThrowableException instead of real one
> --------------------------------------------------------------------------
>
> Key: FELIX-2295
> URL: https://issues.apache.org/jira/browse/FELIX-2295
> Project: Felix
> Issue Type: Bug
> Components: Karaf
> Affects Versions: karaf-1.4.0
> Environment: XP / Ubuntu
> Reporter: Jean-Philippe CLEMENT
>
> Project uses Blueprint. There are 3 bundles.
> Bundle 1 - exports an API - API includes an interface X with a method Y sending an exception Z
> Bundle 2 - implements the interface X of the API and exports it with <service> tag
> Bundle 3 - uses the exported service of the API with <reference> tag (and gets without "knowing" it the service of Bundle 2)
> Expected behavior: Bundle 3 calls the method Y of interface X and gets the exception Z (when thrown).
> Obtained behavior: Bundle 3 calls the method Y of interface X and gets the exception:
> UndeclaredThrowableException
> caused by InvocationTargetException
> caused by Z
> This is 100% reproductible
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FELIX-2295) Referenced service throws
UndeclaredThrowableException instead of real one
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved FELIX-2295.
------------------------------------
Assignee: Guillaume Nodet
Fix Version/s: karaf 1.6.0
Resolution: Fixed
This one should be fixed by the upgrade to the aries blueprint implementation release.
> Referenced service throws UndeclaredThrowableException instead of real one
> --------------------------------------------------------------------------
>
> Key: FELIX-2295
> URL: https://issues.apache.org/jira/browse/FELIX-2295
> Project: Felix
> Issue Type: Bug
> Components: Karaf
> Affects Versions: karaf-1.4.0
> Environment: XP / Ubuntu
> Reporter: Jean-Philippe CLEMENT
> Assignee: Guillaume Nodet
> Fix For: karaf 1.6.0
>
>
> Project uses Blueprint. There are 3 bundles.
> Bundle 1 - exports an API - API includes an interface X with a method Y sending an exception Z
> Bundle 2 - implements the interface X of the API and exports it with <service> tag
> Bundle 3 - uses the exported service of the API with <reference> tag (and gets without "knowing" it the service of Bundle 2)
> Expected behavior: Bundle 3 calls the method Y of interface X and gets the exception Z (when thrown).
> Obtained behavior: Bundle 3 calls the method Y of interface X and gets the exception:
> UndeclaredThrowableException
> caused by InvocationTargetException
> caused by Z
> This is 100% reproductible
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-2295) Referenced service throws
UndeclaredThrowableException instead of real one
Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859404#action_12859404 ]
Justin Edelson commented on FELIX-2295:
---------------------------------------
This looks like Bundle 2 and Bundle 3 are seeing different versions of the class exception Z.
> Referenced service throws UndeclaredThrowableException instead of real one
> --------------------------------------------------------------------------
>
> Key: FELIX-2295
> URL: https://issues.apache.org/jira/browse/FELIX-2295
> Project: Felix
> Issue Type: Bug
> Components: Karaf
> Affects Versions: karaf-1.4.0
> Environment: XP / Ubuntu
> Reporter: Jean-Philippe CLEMENT
>
> Project uses Blueprint. There are 3 bundles.
> Bundle 1 - exports an API - API includes an interface X with a method Y sending an exception Z
> Bundle 2 - implements the interface X of the API and exports it with <service> tag
> Bundle 3 - uses the exported service of the API with <reference> tag (and gets without "knowing" it the service of Bundle 2)
> Expected behavior: Bundle 3 calls the method Y of interface X and gets the exception Z (when thrown).
> Obtained behavior: Bundle 3 calls the method Y of interface X and gets the exception:
> UndeclaredThrowableException
> caused by InvocationTargetException
> caused by Z
> This is 100% reproductible
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-2295) Referenced service throws
UndeclaredThrowableException instead of real one
Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859431#action_12859431 ]
Justin Edelson commented on FELIX-2295:
---------------------------------------
in your original description, it is not clear that Z is part of Bundle 1. Is that the case?
In any case, I'd suggest you attach a sample set of bundles illustrating this problem.
> Referenced service throws UndeclaredThrowableException instead of real one
> --------------------------------------------------------------------------
>
> Key: FELIX-2295
> URL: https://issues.apache.org/jira/browse/FELIX-2295
> Project: Felix
> Issue Type: Bug
> Components: Karaf
> Affects Versions: karaf-1.4.0
> Environment: XP / Ubuntu
> Reporter: Jean-Philippe CLEMENT
>
> Project uses Blueprint. There are 3 bundles.
> Bundle 1 - exports an API - API includes an interface X with a method Y sending an exception Z
> Bundle 2 - implements the interface X of the API and exports it with <service> tag
> Bundle 3 - uses the exported service of the API with <reference> tag (and gets without "knowing" it the service of Bundle 2)
> Expected behavior: Bundle 3 calls the method Y of interface X and gets the exception Z (when thrown).
> Obtained behavior: Bundle 3 calls the method Y of interface X and gets the exception:
> UndeclaredThrowableException
> caused by InvocationTargetException
> caused by Z
> This is 100% reproductible
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.