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 235739 - NbKeyMapTest fails on Solaris
Summary: NbKeyMapTest fails on Solaris
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jan Peska
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2013-09-10 08:00 UTC by Jaroslav Tulach
Modified: 2013-09-17 14:09 UTC (History)
1 user (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 Jaroslav Tulach 2013-09-10 08:00:02 UTC
http://hudson4qe.cz.oracle.com/view/Platform/job/platform-core/

somehow the solaris impl gets confused and tries to load LinuxFileSystemProvider. Might be caused by advantageous usage of System.setProperty in the test. In such case initializing the FileSystemProvider sooner than the test run could solve the problem.

 
    [junit] Testsuite: org.netbeans.core.NbKeymapTest
    [junit] Exception in thread "main" java.lang.AssertionError: java.lang.ClassNotFoundException: sun/nio/fs/LinuxFileSystemProvider
    [junit] 	at sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:49)
    [junit] 	at sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:43)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at sun.nio.fs.DefaultFileSystemProvider.createProvider(DefaultFileSystemProvider.java:42)
    [junit] 	at sun.nio.fs.DefaultFileSystemProvider.create(DefaultFileSystemProvider.java:70)
    [junit] 	at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:108)
    [junit] 	at java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:89)
    [junit] 	at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:98)
    [junit] 	at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:96)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:95)
    [junit] 	at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(FileSystems.java:90)
    [junit] 	at java.nio.file.FileSystems.getDefault(FileSystems.java:176)
    [junit] 	at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:483)
    [junit] 	at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:478)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at sun.util.calendar.ZoneInfoFile.<clinit>(ZoneInfoFile.java:477)
    [junit] 	at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:663)
    [junit] 	at java.util.TimeZone.getTimeZone(TimeZone.java:561)
    [junit] 	at java.util.TimeZone.setDefaultZone(TimeZone.java:658)
    [junit] 	at java.util.TimeZone.getDefaultRef(TimeZone.java:625)
    [junit] 	at java.util.TimeZone.getDefault(TimeZone.java:612)
    [junit] 	at java.text.SimpleDateFormat.initializeCalendar(SimpleDateFormat.java:682)
    [junit] 	at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:581)
    [junit] 	at org.apache.tools.ant.util.DateUtils.<clinit>(DateUtils.java:69)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startTestSuite(XMLJUnitResultFormatter.java:137)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestSuite(JUnitTestRunner.java:726)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:510)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1063)
    [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:914)
    [junit] Caused by: java.lang.ClassNotFoundException: sun/nio/fs/LinuxFileSystemProvider
    [junit] 	at java.lang.Class.forName0(Native Method)
    [junit] 	at java.lang.Class.forName(Class.java:270)
    [junit] 	at sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:47)
    [junit] 	... 29 more
    [junit] Testsuite: org.netbeans.core.NbKeymapTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
Comment 1 Jaroslav Havlin 2013-09-17 14:09:24 UTC
An attempt to fix it is in http://hg.netbeans.org/core-main/rev/de7b37757451.