Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A284610D65 for ; Tue, 7 May 2013 16:17:06 +0000 (UTC) Received: (qmail 18363 invoked by uid 500); 7 May 2013 16:17:06 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 18284 invoked by uid 500); 7 May 2013 16:17:05 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Delivered-To: moderator for users@felix.apache.org Received: (qmail 93039 invoked by uid 99); 7 May 2013 15:18:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Date: Tue, 7 May 2013 08:17:15 -0700 (PDT) From: Roland To: users@felix.apache.org Message-ID: <1367939835834-5003252.post@n6.nabble.com> Subject: ClassCastException after isAssignableTo() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ClassCastException - not again! Hello everyone, after hours of investigation of my problem i resign. I embedded Apache Felix 4.3 to my host application, i use the maven blugin to build my project and i have 3 bundles. Bundle A (systembundle) Bundle B (exports a interface) Bundle C (implements this interface) Bundle C imports the interface and registers the implementation of the interface as a service. Bundle A imports the interface and uses this service. In the activator method of the systembundle (A) i have following code snippets. I get a ClassCastException after isAssignableTo(). I checked if the interface and the implementation are fully separated. The imports and exports of (A,B,C) are correct. The classloaders are the same, namely the classloader of the bundle which exports the interface (B). I checked if the interface-package is imbedded to other bundles, but it exist only one version in (B). I checked if i'm inside or outside of OSGi. I'm definitly inside of OSGi. Have someone an idea whats going wrong? What else can I check? Maybe a switch to Equinox might help. Should I? Thank you so much so far. regards Roland -- View this message in context: http://apache-felix.18485.x6.nabble.com/ClassCastException-after-isAssignableTo-tp5003252.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org