Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 14220 invoked from network); 21 May 2009 09:24:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 09:24:55 -0000 Received: (qmail 75853 invoked by uid 500); 21 May 2009 09:25:08 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 75809 invoked by uid 500); 21 May 2009 09:25:08 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 75799 invoked by uid 99); 21 May 2009 09:25:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 09:25:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 09:25:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8CF7E234C004 for ; Thu, 21 May 2009 02:24:45 -0700 (PDT) Message-ID: <1098831241.1242897885563.JavaMail.jira@brutus> Date: Thu, 21 May 2009 02:24:45 -0700 (PDT) From: "David Bosschaert (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2173) ClassCastException with Declarative Services In-Reply-To: <422098166.1239903194858.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711532#action_12711532 ] David Bosschaert commented on CXF-2173: --------------------------------------- Did some more digging and found that the issue lies on the consumer side. DS (at least the implementation at Equinox) doesn't use ServiceLIsteners/ServiceTrackers to look for services. It rather uses BundleContext.getServiceReferences(), which are not covered with the ListenerHook. I think we need a FindHook to cover this case. Will try to add one as soon as I can. > ClassCastException with Declarative Services > -------------------------------------------- > > Key: CXF-2173 > URL: https://issues.apache.org/jira/browse/CXF-2173 > Project: CXF > Issue Type: Bug > Components: Distributed-OSGi > Reporter: Josh Holtzman > Assignee: David Bosschaert > Attachments: dosgi-ds.patch > > > When trying to configure a DOSGI service using declarative services, the following exception is thrown: > Exception in thread "pool-1-thread-2" java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String > at org.apache.cxf.dosgi.dsw.OsgiUtils.getPublishableInterfaces(OsgiUtils.java:470) > at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:68) > at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:143) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > at java.lang.Thread.run(Thread.java:637) > The OSGI/sample.xml file contains: > > > > > * > SOAP.1_2 > pojo > /samplews > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.