Hi, I'm experimenting a very strange issue when one of my bundle is saved, I get this error
[ 161] [Active ] [ ] [ 80] Apiman :: OSGI :: Gateway Module (1.2.2.SNAPSHOT) karaf@root> stop 161 ERROR: Bundle io.apiman.gateway-osgi [161] Error writing persistent state to bundle archive. (java.lang.NullPointerException) java.lang.NullPointerException at java.io.Writer.write(Writer.java:157) at java.io.BufferedWriter.newLine(BufferedWriter.java:243) at org.apache.felix.framework.cache.BundleArchive.writeBundleInfo(BundleArchive.java:1000) at org.apache.felix.framework.cache.BundleArchive.setPersistentState(BundleArchive.java:295) at org.apache.felix.framework.BundleImpl.setPersistentStateInactive(BundleImpl.java:803) at org.apache.felix.framework.Felix.stopBundle(Felix.java:2480) at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:1012) at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:999) at org.apache.karaf.shell.osgi.StopBundle.doExecute(StopBundle.java:44) at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:37) at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38) at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54) at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119) at org.apache.karaf.shell.console.commands.$BlueprintCommand859097494.execute(Unknown Source) 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.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92) at org.apache.karaf.shell.console.jline.Console.run(Console.java:197) at java.lang.Thread.run(Thread.java:745) The bundle.info file (present within the cache) only contain the ide of bundle and not all the info that normally we have What could be the root cause ? Regards, -- Charles Moulliard Apache Committer & PMC / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io