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 247742 - Cases of org.netbeans.modules.web.jsf.xdm.model.ComponentTest:org.netbeans.modules.web.jsf.xdm.model.ComponentTest fail on Solaris i86pc
Summary: Cases of org.netbeans.modules.web.jsf.xdm.model.ComponentTest:org.netbeans.mo...
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2014-10-06 16:29 UTC by lothe
Modified: 2015-07-10 16:01 UTC (History)
0 users

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 lothe 2014-10-06 16:29:12 UTC
Cases of org.netbeans.modules.web.jsf.xdm.model.ComponentTest:org.netbeans.modules.web.jsf.xdm.model.ComponentTest test fail in a stable manner on Solaris i86pc. The failure doesn't reproduce itself on Solaris sparc.

JDK: 8u20 (b26)
NetBeans: 8.0.1 (stable test distribution)

The same issue happened intermittently on Windows64 hosts with previous versions of JDK (8, 8u5).

Failure information:

java.lang.NullPointerException
	at org.netbeans.modules.web.jsf.xdm.model.Util.loadRegistryModel(Util.java:139)
	at org.netbeans.modules.web.jsf.xdm.model.ComponentTest.testEmptyComponent(ComponentTest.java:88)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	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:745)

java.io.IOException: Permission denied
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:1012)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:406)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:349)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:315)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:313)
	at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:120)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:318)
	at org.openide.filesystems.FileUtil.createData(FileUtil.java:799)
	at org.netbeans.modules.xml.retriever.catalog.impl.CatalogModelImpl.<init>(CatalogModelImpl.java:149)
	at org.netbeans.modules.xml.retriever.catalog.impl.CatalogWriteModelImpl.<init>(CatalogWriteModelImpl.java:103)
	at org.netbeans.modules.web.jsf.xdm.model.TestCatalogModel.<init>(TestCatalogModel.java:70)
	at org.netbeans.modules.web.jsf.xdm.model.TestCatalogModel.getDefault(TestCatalogModel.java:78)
	at org.netbeans.modules.web.jsf.xdm.model.Util.loadRegistryModel(Util.java:139)
	at org.netbeans.modules.web.jsf.xdm.model.ComponentTest.testComponent(ComponentTest.java:140)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	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:745)
Working directory: %TESTBASE%/unit/work/org-netbeans-modules-web-jsf/o.n.m.w.j.x.m.C/c
java.io.IOException: Permission denied
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:1012)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:406)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:349)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:315)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:313)
	at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:120)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:318)
	at org.openide.filesystems.FileUtil.createData(FileUtil.java:799)
	at org.netbeans.modules.xml.retriever.catalog.impl.CatalogModelImpl.<init>(CatalogModelImpl.java:149)
	at org.netbeans.modules.xml.retriever.catalog.impl.CatalogWriteModelImpl.<init>(CatalogWriteModelImpl.java:103)
	at org.netbeans.modules.web.jsf.xdm.model.TestCatalogModel.<init>(TestCatalogModel.java:70)
	at org.netbeans.modules.web.jsf.xdm.model.TestCatalogModel.getDefault(TestCatalogModel.java:78)
	at org.netbeans.modules.web.jsf.xdm.model.Util.loadRegistryModel(Util.java:139)
	at org.netbeans.modules.web.jsf.xdm.model.ComponentTest.testEmptyComponent(ComponentTest.java:88)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	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:745)
Comment 1 lothe 2014-10-06 17:09:56 UTC
Solaris version: Solaris 11
Comment 2 Petr Hejl 2015-07-10 16:01:07 UTC
It looks like there is problem with the temp dir (java.io.tmpdir). Is it configured? Is it accessible?