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 F2537D36E for ; Sun, 12 Aug 2012 12:06:06 +0000 (UTC) Received: (qmail 78902 invoked by uid 500); 12 Aug 2012 12:06:05 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 78167 invoked by uid 500); 12 Aug 2012 12:05:58 -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 Received: (qmail 78107 invoked by uid 99); 12 Aug 2012 12:05:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2012 12:05:55 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of orga.shih@gmail.com designates 209.85.213.177 as permitted sender) Received: from [209.85.213.177] (HELO mail-yx0-f177.google.com) (209.85.213.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2012 12:05:49 +0000 Received: by yenq9 with SMTP id q9so2985053yen.22 for ; Sun, 12 Aug 2012 05:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eQqF05yrR5f3SamTlTINLLASWDSwdyfuUHavjAa7XPk=; b=rKLSsnLFNTN8ibpw/qv8L7LYlnKY6IDoEruuszkbLoYlTfRRgDNjOBuu0AwwiMrg/t 0HbwQg1SpmhDMoq1oYyWpGBjw0L3k4kEhXglv9La97yrC7ugzQuS0jiWgsvXFRLGRpf7 /319ehFSfP80TLscYWgJgbAj68FoZjYkbOWtkobj8wnydkLs+hNKDa+QpDVKY3RRr4Nk LQq6pQmDZjlUd3Cr7Jgwk3AVRrK7ei2CXR2rMWf4LrMsznn4wOJm9GOf/PekUuGAf3lV +GZb6rz6Qs2YOh80thIAthNZcKcdVcXIbg7X8q908qXaq42BfBuHPdl2JeF+hL8n6wWi krYw== MIME-Version: 1.0 Received: by 10.50.209.41 with SMTP id mj9mr2799372igc.23.1344773127668; Sun, 12 Aug 2012 05:05:27 -0700 (PDT) Received: by 10.231.65.193 with HTTP; Sun, 12 Aug 2012 05:05:27 -0700 (PDT) In-Reply-To: References: Date: Sun, 12 Aug 2012 20:05:27 +0800 Message-ID: Subject: Re: Issue of felix on android 4.1 From: Orga To: users@felix.apache.org Content-Type: multipart/alternative; boundary=14dae9340afb9402ac04c7106442 --14dae9340afb9402ac04c7106442 Content-Type: text/plain; charset=ISO-8859-1 Hi Karl, Thanks for your help. I have tired to use JIRA but its page always show "Maintenance in progress" about three days. 2012/8/10 Karl Pauls > I just had a quick look and i don't really see a problem - the only > thing i can see from looking at the code is that maybe we are using > the wrong classloader for android. I'll have to investigate some more > but don't have time for that before next week. Please create an issue > if you can, I'll get back to it. > > regards, > > Karl > > On Fri, Aug 10, 2012 at 4:13 PM, Karl Pauls wrote: > > Can you create a jira issue to track this? I'll try to look into it > > but it might take me bit to get around to it. We had some changes > > recently in the urlhandlers which might have broken something on > > android... > > > > regards, > > > > Karl > > > > On Fri, Aug 10, 2012 at 1:04 PM, Orga wrote: > >> Hi Angelo, > >> Thanks for your reply, but I got another exception as below. > >> > >> Problem creating boot delegation class loader: > >> java.lang.reflect.InvocationTargetException > >> gogo: MalformedURLException: Unknown protocol: bundle > >> java.net.MalformedURLException: Unknown protocol: bundle > >> at java.net.URL.(URL.java:184) > >> at java.net.URL.(URL.java:127) > >> at java.net.URI.toURL(URI.java:1357) > >> at org.apache.felix.gogo.shell.Shell.readScript(Shell.java:209) > >> at org.apache.felix.gogo.shell.Shell.source(Shell.java:192) > >> at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:109) > >> at java.lang.reflect.Method.invokeNative(Native Method) > >> at java.lang.reflect.Method.invoke(Method.java:511) > >> at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) > >> at > org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) > >> 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.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) > >> at org.apache.felix.gogo.shell.Activator.run(Activator.java:75) > >> at java.lang.Thread.run(Thread.java:856) > >> > >> > >> 2012/8/10 Angelo van der Sijpt > >> > >>> Hi Orga, > >>> > >>> I have noticed that Android 4 needs the framework property > >>> felix.service.urlhandlers=false > >>> whereas older versions don't. Try setting that property, and see if > that > >>> fixes your situation. > >>> > >>> Angelo > >>> > >>> > >>> On Aug 10, 2012, at 9:38 AM, Orga wrote: > >>> > >>> > Hi, > >>> > > >>> > I am trying to put apache felix to android 4.1, but all default > bundles > >>> > can't be installed. > >>> > At first, I follow the tutorial " > >>> > > >>> > http://felix.apache.org/site/apache-felix-framework-and-google-android.html > >>> > ". > >>> > Using the "felix-framework-4.0.3" for android 4.1 emulator. because I > >>> want > >>> > to port it to Nexus 7. > >>> > then I get the error as below: > >>> > > >>> > Problem creating boot delegation class loader: > >>> > java.lang.reflect.InvocationTargetException > >>> > Auto-deploy install: org.osgi.framework.BundleException: Unable to > cache > >>> > bundle: > >>> file:/data/felix/bundle/org.apache.felix.bundlerepository-1.6.6.jar > >>> > - java.net.MalformedURLException: java.lang.IllegalStateException: > >>> Unknown > >>> > protocol: file > >>> > Auto-deploy install: org.osgi.framework.BundleException: Unable to > cache > >>> > bundle: > file:/data/felix/bundle/org.apache.felix.gogo.command-0.12.0.jar > >>> - > >>> > java.net.MalformedURLException: java.lang.IllegalStateException: > Unknown > >>> > protocol: file > >>> > Auto-deploy install: org.osgi.framework.BundleException: Unable to > cache > >>> > bundle: > file:/data/felix/bundle/org.apache.felix.gogo.runtime-0.10.0.jar > >>> - > >>> > java.net.MalformedURLException: java.lang.IllegalStateException: > Unknown > >>> > protocol: file > >>> > Auto-deploy install: org.osgi.framework.BundleException: Unable to > cache > >>> > bundle: > file:/data/felix/bundle/org.apache.felix.gogo.shell-0.10.0.jar - > >>> > java.net.MalformedURLException: java.lang.IllegalStateException: > Unknown > >>> > protocol: file > >>> > > >>> > It looks like all bundles can't be installed. Are there any > suggestion > >>> > about this? > >>> > > >>> > > >>> > > >>> > Detail step: > >>> > 1.download felix-framework-4.0.3 and "osgi-android - felix 1.4, > android > >>> SDK > >>> > 1.0.zip" and extract them. > >>> > 2.do dx and aapt for jar files in felix-framework-4.0.3. > >>> > 3.copy felix.sh from "osgi-android - felix 1.4, android SDK 1.0" > >>> > to felix-framework-4.0.3 > >>> > 4.start emulator of android 4.1 > >>> > 5.push felix-framework-4.0.3 to android(/data/felix) > >>> > 6.adb shell and cd to /data/felix > >>> > 7.sh felix.sh > >>> > > >>> > More info: > >>> > I have tried different versions of android and felix. > >>> > 1."osgi-android - felix 1.4, android SDK 1.0.zip" works normally on > >>> > android 4.1 with it bundles. > >>> > 2. felix-framework-4.0.3 is work on android 4.03 and 2.3.3 > >>> > > >>> > thank you and I appreciate your time in reading this. > >>> > > >>> > -- > >>> > Regards, > >>> > Orga > >>> > >>> > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > >>> For additional commands, e-mail: users-help@felix.apache.org > >>> > >>> > >> > >> > >> -- > >> Regards, > >> Orga > > > > > > > > -- > > Karl Pauls > > karlpauls@gmail.com > > http://twitter.com/karlpauls > > http://www.linkedin.com/in/karlpauls > > https://profiles.google.com/karlpauls > > > > -- > Karl Pauls > karlpauls@gmail.com > http://twitter.com/karlpauls > http://www.linkedin.com/in/karlpauls > https://profiles.google.com/karlpauls > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > > -- Regards, Orga --14dae9340afb9402ac04c7106442--