You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Alberto São Marcos (JIRA)" <ji...@apache.org> on 2015/04/07 21:00:13 UTC

[jira] [Created] (KARAF-3646) Service method with Generics

Alberto São Marcos created KARAF-3646:
-----------------------------------------

             Summary: Service method with Generics
                 Key: KARAF-3646
                 URL: https://issues.apache.org/jira/browse/KARAF-3646
             Project: Karaf
          Issue Type: Bug
          Components: cellar-dosgi
    Affects Versions: cellar-3.0.1
         Environment: Ubuntu 14.04.1 LTS
            Reporter: Alberto São Marcos


Apparently cellar DOSGi does not support Service methods with Generics in its signature:

On the client side (service consumer) the call to the remote service times out.
On the server side (service implementation) the following exception is thrown:

{quote}
2015-04-07 18:43:56,192 | ERROR | pool-8-thread-60 | RemoteServiceCallHandler         | 75 - org.apache.karaf.cellar.dosgi - 3.0.1 | CELLAR DOSGI: unable to find remote method for service
java.lang.NoSuchMethodException: Proxy41d9bc0f_f24d_4b8b_88c5_76b6feecd417.greet(org.apache.karaf.cellar.samples.dosgi.greeter.api.GreeterEvent, org.apache.karaf.cellar.samples.dosgi.greeter.api.Greet)
        at java.lang.Class.getMethod(Class.java:1786)[:1.8.0_40]
        at org.apache.karaf.cellar.dosgi.RemoteServiceCallHandler.handle(RemoteServiceCallHandler.java:90)[75:org.apache.karaf.cellar.dosgi:3.0.1]
        at org.apache.karaf.cellar.dosgi.RemoteServiceCallHandler.handle(RemoteServiceCallHandler.java:37)[75:org.apache.karaf.cellar.dosgi:3.0.1]
        at Proxy055e8f5c_e5ac_4c1a_9f3b_9eb1450a5b94.handle(Unknown Source)[:]
        at Proxyecb8dcb1_781b_49fe_9774_ebcfe52f3a86.handle(Unknown Source)[:]
        at org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatchTask.java:57)[68:org.apache.karaf.cellar.core:3.0.1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_40]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_40]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
{quote}

You can use https://github.com/albertocsm/karaf-cellar-example to check the behaviour



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)