dev@glassfish.java.net

Re: OSGi Errors?

From: Anissa Lam <anissa.lam_at_oracle.com>
Date: Wed, 06 Apr 2011 19:19:08 -0700

Hudson [http://hudson.glassfish.org/job/gf-trunk-build-continuous/]
hasn't been green since this morning.
I build from scratch and saw this NPE when starting up the server
before it gets to the bundleException that you saw.

Apr 6, 2011 7:09:32 PM
com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 30 msec.
Launching GlassFish on Felix platform
Apr 6, 2011 7:09:36 PM Main install
WARNING: Failed to install
file:/Users/anilam/Awork/V3/v3/glassfish3/glassfish/modules/javax.inject.jar
org.osgi.framework.BundleException: Could not create bundle object.
     at org.apache.felix.framework.Felix.installBundle(Felix.java:2585)
     at org.apache.felix.framework.Felix.installBundle(Felix.java:2436)
     at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:129)
     at org.jvnet.hk2.osgimain.Main.install(Main.java:363)
     at org.jvnet.hk2.osgimain.Main.traverse(Main.java:293)
     at org.jvnet.hk2.osgimain.Main.start(Main.java:144)
     at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
     at org.apache.felix.framework.Felix.activateBundle(Felix.java:1835)
     at org.apache.felix.framework.Felix.startBundle(Felix.java:1752)
     at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
     at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
     at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NullPointerException
     at
org.apache.felix.framework.cache.JarRevision.getMainAttributes(JarRevision.java:215)
     at
org.apache.felix.framework.cache.JarRevision.getManifestHeader(JarRevision.java:109)
     at
org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1146)
     at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)
     at org.apache.felix.framework.Felix.installBundle(Felix.java:2528)
     ... 11 more

Anissa.

On 4/6/11 5:01 PM, Jason Lee wrote:
> After a clean build, I still see the errors (server.log attached).
> All I did was start the server and issue
>
> curl http://localhost:4848/management/domain
>
> Anyone else seeing this?
>
> On 4/6/11 5:57 PM, Jason Lee wrote:
>> Am I the only one seeing errors like these at the moment?
>>
>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>> org.glassfish.webservices.jsr109-impl [68]: Unable to resolve 68.0:
>> missing requirement [68.0] package;
>> (&(package=com.sun.tools.ws.spi)(version>=2.2.0)) [caused by: Unable
>> to resolve 111.0: missing requirement [111.0] package;
>> (package=org.apache.tools.ant)]
>>
>> The console and rest dev test jobs are failing every test due to
>> these. I also have a local hudson set up seeing the same problem.
>> I'm doing an update and clean build on my workstation now to see if I
>> can reproduce locally, but that takes a while, so I thought I'd check
>> here while I wait. :)
>>
>
>