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 184674

Summary: [69cat] java.io.FileNotFoundException: /opt/nbd/sges-v3/glassfish/domains/domain1/config/server.policy (Permission denied)
Product: serverplugins Reporter: pbelbin <pbelbin>
Component: GlassFishAssignee: Vince Kraemer <vkraemer>
Status: RESOLVED FIXED    
Severity: normal CC: Chiana, proxity
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter: 168117
Attachments: stacktrace

Description pbelbin 2010-04-21 20:58:19 UTC
Build: NetBeans IDE Dev (Build 201004070201)
VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: SunOS

User Comments:
GUEST: After Netbeans has started, I've clicked "Install plugins" on welcome page

pbelbin: on opensolaris x86 build 2009.06 and started netbeans using the 'applications->developer tools->netbeans menu choice.




Stacktrace: 
java.io.FileNotFoundException: /opt/nbd/sges-v3/glassfish/domains/domain1/config/server.policy (Permission denied)
   at java.io.FileInputStream.open(FileInputStream.java:0)
   at java.io.FileInputStream.<init>(FileInputStream.java:106)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj$2.<init>(FileObj.java:163)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:163)
   at org.openide.filesystems.FileUtil.copyFileImpl(FileUtil.java:715)
   at org.openide.filesystems.FileObject.copy(FileObject.java:128)
Comment 1 pbelbin 2010-04-21 20:58:29 UTC
Created attachment 97821 [details]
stacktrace
Comment 2 Jaroslav Tulach 2010-04-23 16:14:44 UTC
Probably the caller wants to do something with the exception, there is not I can do in filesystems.
Comment 3 Vince Kraemer 2010-04-23 20:10:25 UTC
ouch.... it looks like the user has installed the ide as root.  the server.policy file is locked down, so we cannot just create a copy of the domain directory... we have to create a custom domain with the 'right' ports...
Comment 4 roti 2010-05-31 12:47:18 UTC
it worked with 6.8
now 6.9 can't read files under the domain, like:
.../domains/doamin1/master-password
Comment 5 Vince Kraemer 2011-06-02 23:24:48 UTC
*** Bug 198842 has been marked as a duplicate of this bug. ***
Comment 6 Vince Kraemer 2011-06-07 19:12:24 UTC
*** Bug 194384 has been marked as a duplicate of this bug. ***
Comment 7 Quality Engineering 2011-06-08 14:47:16 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ac1de4174583
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #184674 : some installs have super locked down domains, so we need to create a personal domain instead of creating a copy
Comment 8 Vince Kraemer 2011-11-10 19:39:58 UTC
in the dev build