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 191CF10F4E for ; Sat, 7 Dec 2013 07:14:45 +0000 (UTC) Received: (qmail 52123 invoked by uid 500); 7 Dec 2013 07:14:01 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 51974 invoked by uid 500); 7 Dec 2013 07:13:44 -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 51937 invoked by uid 99); 7 Dec 2013 07:13:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Dec 2013 07:13:40 +0000 Date: Sat, 7 Dec 2013 07:13:40 +0000 (UTC) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FELIX-4340) Flex iPOJO online manipulator error if metadata.xml file not supplied MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-4340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clement Escoffier resolved FELIX-4340. -------------------------------------- Resolution: Fixed Fix Version/s: ipojo-manipulator-1.11.1 Fixed in trunk, Thanks. > Flex iPOJO online manipulator error if metadata.xml file not supplied > --------------------------------------------------------------------- > > Key: FELIX-4340 > URL: https://issues.apache.org/jira/browse/FELIX-4340 > Project: Felix > Issue Type: Bug > Components: iPOJO > Affects Versions: ipojo-manipulator-1.11.0 > Reporter: Wayne Zhang > Assignee: Clement Escoffier > Fix For: ipojo-manipulator-1.11.1 > > > iPOJO online manipulator will throw NullPointer exception if no metadata.xml file supplied, by URL or in the jar: > g! start ipojo:file:./example9.jar > Processing URL : ipojo:file:./example9.jar > Extracted URL : file:./example9.jar > 1834 bytes copied > Metadata file not found, use annotations only. > I Apache Felix iPOJO Manipulator - 1.11.0 > org.osgi.framework.BundleException: Unable to cache bundle: ipojo:file:./example9.jar > at org.apache.felix.framework.Felix.installBundle(Felix.java:2870) > at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165) > at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:138) > at org.apache.felix.gogo.command.Basic.start(Basic.java:724) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > 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.Console.run(Console.java:62) > at org.apache.felix.gogo.shell.Shell.console(Shell.java:203) > at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > 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(Unknown Source) > Caused by: java.lang.NullPointerException > at org.apache.felix.ipojo.online.manipulator.IPOJOURLHandler.__M_openConnection(IPOJOURLHanler.java:144) > at org.apache.felix.ipojo.online.manipulator.IPOJOURLHandler.openConnection(IPOJOURLHandlerjava) > at org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreaHandlerProxy.java:271) > at java.net.URL.openConnection(Unknown Source) > at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:150) > at org.apache.felix.framework.cache.JarRevision.(JarRevision.java:77) > at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.ava:878) > at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550) > at org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:153) > at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277) > at org.apache.felix.framework.Felix.installBundle(Felix.java:2866) > ... 32 more > java.lang.NullPointerException > It should be optional, since metadata can be defined by annotations. > Workaround is supply an empty metadata.xml file with content: > -- This message was sent by Atlassian JIRA (v6.1#6144)