This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233443 - Update Felix: was NB 7.3.1 OSGI related tests fail with org.osgi.framework.BundleException on JDK 8
Summary: Update Felix: was NB 7.3.1 OSGI related tests fail with org.osgi.framework.Bu...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Netigso (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: JDK_8, JDK_SPECIFIC, TEST
: 234608 237540 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-25 16:01 UTC by AlexanderIoffe
Modified: 2014-07-07 14:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AlexanderIoffe 2013-07-25 16:01:00 UTC
OSGI related tests fail with bundle exception when started on JDK 8

  <testcase classname="org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest" name="testClassPathExtensions" time="4.299">
    <error message="Unresolved constraint in bundle custom [3]: Unable to resolve 3.0: missing requirement [3.0] osgi.wiring.bundle; (osgi.wiring.bundle=org.netbeans.core.osgi) [caused by: Unable to resolve 18.0: missing requirement [18.0] osgi.wiring.package; (osgi.wiring.package=org.xml.sax)]" type="org.osgi.framework.BundleException">org.osgi.framework.BundleException: Unresolved constraint in bundle custom [3]: Unable to resolve 3.0: missing requirement [3.0] osgi.wiring.bundle; (osgi.wiring.bundle=org.netbeans.core.osgi) [caused by: Unable to resolve 18.0: missing requirement [18.0] osgi.wiring.package; (osgi.wiring.package=org.xml.sax)]
	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:931)
	at org.netbeans.core.osgi.OSGiProcess.run(OSGiProcess.java:255)
	at org.netbeans.core.osgi.ActivatorTest.testClassPathExtensions(ActivatorTest.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:491)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:97)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:431)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:357)
	at java.lang.Thread.run(Thread.java:724)
</error>
  </testcase>



List of failing tests:
 org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest::testClassPathExtensions
org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest::testComSunPackages
org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest::testJREPackageImport
org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest::testModuleInstall
org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest::testModuleInstallBackwards
org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest::testOnStartStop
org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest::testRequireToken
org.netbeans.core.osgi.ActivatorTest:org.netbeans.core.osgi.ActivatorTest::testURLStreamHandler
org.netbeans.core.osgi.OSGiInstalledFileLocatorTest:org.netbeans.core.osgi.OSGiInstalledFileLocatorTest::testLocate
org.netbeans.core.osgi.OSGiInstalledFileLocatorTest:org.netbeans.core.osgi.OSGiInstalledFileLocatorTest::testLocateModuleJARs
org.netbeans.core.osgi.OSGiLifecycleManagerTest:org.netbeans.core.osgi.OSGiLifecycleManagerTest::testModuleInstallClosing
org.netbeans.core.osgi.OSGiMainLookupTest:org.netbeans.core.osgi.OSGiMainLookupTest::testModuleInfo
org.netbeans.core.osgi.OSGiMainLookupTest:org.netbeans.core.osgi.OSGiMainLookupTest::testServicesFolder
org.netbeans.core.osgi.OSGiMainLookupTest:org.netbeans.core.osgi.OSGiMainLookupTest::testUnloadedServices
org.netbeans.core.osgi.OSGiRepositoryTest:org.netbeans.core.osgi.OSGiRepositoryTest::testBrandingLayers
org.netbeans.core.osgi.OSGiRepositoryTest:org.netbeans.core.osgi.OSGiRepositoryTest::testDynamic
org.netbeans.core.osgi.OSGiRepositoryTest:org.netbeans.core.osgi.OSGiRepositoryTest::testLayers
org.netbeans.core.osgi.OSGiRepositoryTest:org.netbeans.core.osgi.OSGiRepositoryTest::testMasks
org.netbeans.core.osgi.OSGiRepositoryTest:org.netbeans.core.osgi.OSGiRepositoryTest::testURLs
Comment 1 Jaroslav Tulach 2013-08-21 07:10:43 UTC
This may be a bug for Felix. I know there is a list of JRE exported package for each version of the JRE. Possibly the list for JDK8 does not exist or is incomplete: it seems to miss org.xml.sax...

Try switching to newer version of Felix...
Comment 2 Marian Mirilovic 2013-08-23 10:10:19 UTC
Please evaluate ASAP. These are tests failing with new JDK 8 builds. Thanks in advance.
Comment 3 Jaroslav Tulach 2013-08-23 11:46:23 UTC
Our Equinox tests run OK, so this is very likely a Felix only issue (and not JDK or NetBeans code). I found:
http://blog.admadic.com/2013/03/jdk8-unable-to-resolve-javaxswing.html
which confirms what I thought: "The reason is simple: A Felix version was used, which does not know about JDK8. Upgrading to a newer version like org.apache.felix.main-4.2.1.jar solves the issue."

Will have to update to new Felix version, then.
Comment 4 Jaroslav Tulach 2013-08-28 11:15:22 UTC
*** Bug 234608 has been marked as a duplicate of this bug. ***
Comment 5 Jaroslav Tulach 2013-10-31 09:10:07 UTC
*** Bug 237540 has been marked as a duplicate of this bug. ***
Comment 6 Jaroslav Tulach 2013-10-31 09:10:38 UTC
Making P1, unit validation tests are failing.
Comment 7 Jaroslav Tulach 2013-11-01 10:49:14 UTC
ergonomics#33bdc8f451d6

Upgrading to Felix 4.2.1 fixes the problems. Tondo, please check version switch is OK.
Comment 8 Jiri Skrivanek 2013-11-05 09:07:14 UTC
Not yet in main-silver and hardly can get there soon from ergonomics repository since last successful build was on October 2-nd. Please, take care of it.
Comment 9 Antonin Nebuzelsky 2013-11-05 12:51:36 UTC
(In reply to Jaroslav Tulach from comment #7)
> Upgrading to Felix 4.2.1 fixes the problems. Tondo, please check version
> switch is OK.

Yes, you have a GO.