Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AA37DE37 for ; Tue, 25 Jun 2013 15:40:27 +0000 (UTC) Received: (qmail 94831 invoked by uid 500); 25 Jun 2013 15:40:27 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 94486 invoked by uid 500); 25 Jun 2013 15:40:22 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 94477 invoked by uid 99); 25 Jun 2013 15:40:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jun 2013 15:40:20 +0000 Date: Tue, 25 Jun 2013 15:40:19 +0000 (UTC) From: "Guillaume Sauthier (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FELIX-4148) ClassCastException on getService(ServiceReference) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Guillaume Sauthier created FELIX-4148: ----------------------------------------- Summary: ClassCastException on getService(ServiceReference) Key: FELIX-4148 URL: https://issues.apache.org/jira/browse/FELIX-4148 Project: Felix Issue Type: Bug Components: iPOJO Affects Versions: ipojo-runtime-1.10 Environment: runtime 1.10.1 Reporter: Guillaume Sauthier I got the following exception: java.lang.ClassCastException: org.apache.felix.ipojo.dependency.impl.Transf= ormedServiceReferenceImpl cannot be cast to org.eclipse.osgi.internal.servi= ceregistry.ServiceReferenceImpl at org.eclipse.osgi.framework.internal.core= .BundleContextImpl.getService(BundleContextImpl.java:594) at com.peergreen.= security.internal.realm.manager.DefaultAccountStoreManager$ScopedAccountMan= ager.findAccountStore(DefaultAccountStoreManager.java:93) at com.peergreen.= security.realm.manager.AccountStoreManager$$Proxy.findAccountStore(Unknown = Source) at com.peergreen.shelbie.security.internal.ListAccountsAction.__M_e= xecute(ListAccountsAction.java:73) at com.peergreen.shelbie.security.intern= al.ListAccountsAction.execute(ListAccountsAction.java) at org.apache.felix.= gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) at org= .ow2.shelbie.core.internal.handler.CommandHandler.__M_execute(CommandHandle= r.java:178) at org.ow2.shelbie.core.internal.handler.CommandHandler.execute= (CommandHandler.java) at org.apache.felix.gogo.runtime.CommandProxy.execute= (CommandProxy.java:78) at org.apache.felix.gogo.runtime.Closure.executeCmd(= Closure.java:477) at org.apache.felix.gogo.runtime.Closure.executeStatement= (Closure.java:403) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)= at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) at org.= apache.felix.gogo.runtime.Closure.execute(Closure.java:120) at org.apache.f= elix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) at= org.ow2.shelbie.core.console.JLineConsole.run(JLineConsole.java:172) at co= m.peergreen.shelbie.console.internal.PrivilegedRunnable$1.run(PrivilegedRun= nable.java:38) at java.security.AccessController.doPrivileged(Native Method= ) at javax.security.auth.Subject.doAs(Subject.java:356) at com.peergreen.sh= elbie.console.internal.PrivilegedRunnable.run(PrivilegedRunnable.java:36) a= t com.peergreen.shelbie.console.internal.SecuredConsoleRunnable.run(Secured= ConsoleRunnable.java:90) at java.lang.Thread.run(Thread.java:722) I have a component that is a ServiceFactory (creates the real services with= the client BundleContext provided by ServiceFactory.getService(BundleConte= xt, ServiceRegistration)). It is also bound to external services (but is in= jected with ServiceReference instead of the service instance). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira