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

Summary: NbKeyMapTest fails on Solaris
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: ActionsAssignee: Jan Peska <JPESKA>
Status: RESOLVED FIXED    
Severity: normal CC: jhavlin
Priority: P2 Keywords: TEST
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.