Two data points to add to this thread:

 

1)      In the earlier stack trace (still at the bottom of this email),
the entire directory : /usr/lib/fluid/osgi-config/bundle20 is not there in
the bundle cache ("osgi-config" is the bundle cache directory).  Whatever
is supposed to create that directory silently fails, then the attempt to
write/read bundle.state file within the directory gives the error.

2)      When we try the latest felix framework bundle, the same bundle
won't start and the stack trace then looks like the following:

 

(I'm not sure I was clear on this before:  this bundle starts just fine
until normally, it just doesn't play nice when bundles from our partner
are added to the mix.  I'm sure there is a real conflict in here
somewhere, but the message isn't leading me to it.)

 

Error installing bundle: Unable to cache bundle:
http://staging.my4home.net/services/4hm_upnp/4hm_upnp-3.2.6.jar

org.apache.felix.log.LogException: org.osgi.framework.BundleException:
Unable to cache bundle:
http://staging.my4home.net/services/4hm_upnp/4hm_upnp-3.2.6.jar

        at org.apache.felix.framework.Felix.installBundle(Unknown Source)

        at org.apache.felix.framework.Felix.installBundle(Unknown Source)

        at
org.apache.felix.framework.BundleContextImpl.installBundle(Unknown Source)

        at
org.apache.felix.framework.BundleContextImpl.installBundle(Unknown Source)

        at com.fourhome.oma.d.handleCustom(Unknown Source)

        at com.fourhome.commons.FcmlExecutor.process(Unknown Source)

        at com.fourhome.oma.d.<init>(Unknown Source)

        at com.fourhome.oma.OSGIManagementAgent.handleMessage(Unknown
Source)

        at com.fourhome.commons.CoreClient.startReceiving(Unknown Source)

        at com.fourhome.oma.OSGIManagementAgent.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

        at java.lang.Thread.startup(Unknown Source)

Caused by: java.util.zip.ZipException: No such file or directory

        at java.util.zip.ZipFile.open(Native Method)

        at java.util.zip.ZipFile.<init>(Unknown Source)

        at java.util.jar.JarFile.<init>(Unknown Source)

        at java.util.jar.JarFile.<init>(Unknown Source)

        at org.apache.felix.framework.util.JarFileX.<init>(Unknown Source)

        at org.apache.felix.framework.util.SecureAction.openJAR(Unknown
Source)

        at org.apache.felix.framework.cache.JarRevision.<init>(Unknown
Source)

        at org.apache.felix.framework.cache.JarRevision.<init>(Unknown
Source)

        at
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(
Unknown Source)

        at org.apache.felix.framework.cache.BundleArchive.revise(Unknown
Source)

        at org.apache.felix.framework.cache.BundleArchive.<init>(Unknown
Source)

        at org.apache.felix.framework.cache.BundleCache.create(Unknown
Source)

        ... 12 more

 

From: Matt Tennant [mailto:[email protected]] 
Sent: Thursday, September 09, 2010 6:23 PM
To: '[email protected]'
Subject: Error msg: Unable to record state

 

Hi trusty Felix group,

 

I am hoping this group can help me interpret an error message today.  For
background, we are using Felix framework version 2.0.0 (and compendium
1.2.0 if that matters).  In one deployment, we see the message and stack
trace (at bottom of this email), when we add bundles from a partner
company into the mix.  The result is that one of our bundles remains
resolved (rather than started).

 

It happens to be a bundle that provides our in-house upnp service, and
there is a distinct possibility that a upnp service of some kind is
involved in the new bundles from our partner.  The error, which is very
repeatable, doesn't clarify much for me and I am reluctant to jump to any
conclusions about a upnp conflict.  Any advice?  What should I interpret
from this message and stack?

 

Thanks as always,

Matt

4Home, Inc.

 

ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to record
state - java.io.FileNotFoundException:
/usr/lib/fluid/osgi-config/bundle20/bundle.state (No such file or
directory)

ERROR: Error writing persistent state to bundle archive.
(java.io.FileNotFoundException:
/usr/lib/fluid/osgi-config/bundle20/bundle.state (No such file or
directory))

java.io.FileNotFoundException:
/usr/lib/fluid/osgi-config/bundle20/bundle.state (No such file or
directory)

 at java.io.FileOutputStream.open(Native Method)

 at java.io.FileOutputStream.<init>(Unknown Source)

 at java.io.FileOutputStream.<init>(Unknown Source)

 at
org.apache.felix.framework.util.SecureAction.getFileOutputStream(Unknown
Source)

 at
org.apache.felix.framework.cache.BundleArchive.setPersistentState(Unknown
Source)

 at org.apache.felix.framework.BundleImpl.setPersistentStateActive(Unknown
Source)

 at org.apache.felix.framework.Felix.startBundle(Unknown Source)

 at org.apache.felix.framework.BundleImpl.start(Unknown Source)

 at org.apache.felix.framework.BundleImpl.start(Unknown Source)

Reply via email to