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 135854 - java.io.IOException: Permission denied
Summary: java.io.IOException: Permission denied
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-27 10:19 UTC by Petr Dvorak
Modified: 2009-09-26 21:10 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 42208


Attachments
stacktrace (1.10 KB, text/plain)
2008-05-27 10:19 UTC, Petr Dvorak
Details
stacktrace (4.52 KB, text/plain)
2008-07-30 07:59 UTC, m1k0
Details
stacktrace (7.78 KB, text/plain)
2008-08-15 19:31 UTC, Michel Graciano
Details
stacktrace (7.78 KB, text/plain)
2008-08-15 19:34 UTC, Michel Graciano
Details
stacktrace (1.10 KB, text/plain)
2008-09-22 18:46 UTC, nbnathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-05-27 10:19:46 UTC
Build: NetBeans IDE Dev (Build 200805221203)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Linux, 2.6.22-14-generic, i386

User Comments: 
I have started a tomcat server (6.0.13) after I added it in the services view.
Comment 1 Petr Dvorak 2008-05-27 10:19:52 UTC
Created attachment 61961 [details]
stacktrace
Comment 2 Jiri Skrivanek 2008-05-28 07:39:25 UTC
Permission denied - it is either user error that he added tomcat without appropriate access enabled or tomcat plugin
should handle such cases.
Comment 3 Petr Hejl 2008-06-25 11:48:52 UTC
Can you provide more precise steps? Where was the directory with tomcat located? CATALINA_BASE, CATALINA_HOME,
permissions...
Comment 4 Petr Dvorak 2008-07-01 11:17:44 UTC
I found the reason why I got this issue - it happened while I was testing some other issue related to permissions...

You can reproduce this IOE with following steps:

0. Use (Ubuntu) Linux :o) -> this step is easy one...
1. Download latest dev version of NB ("Web & Java EE" version)
2. Start NB installer from the command line using "sudo sh netbeans-trunk-XXX.sh"
-> yes, this will install everything with a root ownership

3. During the installation, choose to install Apache Tomcat (catalina_base/home should not matter)...
4. When wizard finishes, start NB and remove all servers that are already present from the Services view
5. Add a new Tomcat server, the one you have installed in step 3
6. When a server node is present in the Services view, run the server...
->  IOException is thrown

(I know this is a really dumb scenario, but another issue about "starting NB with wrong/root permissions" had over 50
duplicates. I think some nice dialog saying some descriptive information like "Hey, stupid, check permissions" would be
handy;o)...)
Comment 5 m1k0 2008-07-30 07:59:11 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27
OS: Linux, 2.6.25-gentoo-r2, i386

User Comments: 


Stacktrace: 
java.io.IOException: Nie ma takiego pliku ani katalogu
        at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:0)
        at java.io.File.createNewFile(File.java:883)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:276)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:233)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:203)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:202)
Comment 6 m1k0 2008-07-30 07:59:18 UTC
Created attachment 66029 [details]
stacktrace
Comment 7 Michel Graciano 2008-08-15 19:31:55 UTC
Build: NetBeans IDE Dev (Build 200808141419)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-19-generic, i386

User Comments: 


Stacktrace: 
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:0)
        at java.io.File.createNewFile(File.java:883)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:276)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:233)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:203)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:202)
Comment 8 Michel Graciano 2008-08-15 19:31:59 UTC
Created attachment 67568 [details]
stacktrace
Comment 9 Michel Graciano 2008-08-15 19:34:05 UTC
Build: NetBeans IDE Dev (Build 200808141419)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-19-generic, i386

User Comments: 


Stacktrace: 
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:0)
        at java.io.File.createNewFile(File.java:883)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:276)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:233)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:203)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:202)
Comment 10 Michel Graciano 2008-08-15 19:34:09 UTC
Created attachment 67569 [details]
stacktrace
Comment 11 Petr Hejl 2008-08-21 09:02:13 UTC
Few comments:
-exception reporter combined absolutely unrelated stack traces
-tomcat is already suggesting changing permission (for executable), this exception come from inability to create log file
Comment 12 nbnathan 2008-09-19 18:30:51 UTC
Build: NetBeans IDE Dev (Build 200809171401)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.26, amd64

User Comments:
nbnathan: hibernating and resuming

GUEST: Starting web application

joshis: I have started a tomcat server (6.0.13) after I added it in the services view.

digitalrinaldo: 100's of popup dialogs tried to cpy libs rom one project to another drag and drop, .svn files were not removed and I was not able to cancel the operation. Al operations on the file system are very slow in netbeanans when doing paste

nbnathan: hibernating and resuming



Stacktrace: 
java.io.IOException: Permission denied
        at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:0)
        at java.io.File.createNewFile(File.java:883)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:276)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:233)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:203)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:202)
Comment 13 nbnathan 2008-09-22 18:46:46 UTC
Build: NetBeans IDE Dev (Build 200809171401)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.26, amd64

User Comments: 
starting Tomcat 6.0.18 with HTTP monitor enabled

Stacktrace: 
java.io.IOException: Permission denied
        at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:0)
        at java.io.File.createNewFile(File.java:883)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:276)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:233)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:203)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:202)
Comment 14 nbnathan 2008-09-22 18:46:59 UTC
Created attachment 70230 [details]
stacktrace
Comment 15 Petr Hejl 2009-09-24 14:42:21 UTC
Fixed in web-main bd81f5f802d3.
Comment 16 Quality Engineering 2009-09-26 21:10:11 UTC
Integrated into 'main-golden', will be available in build *200909251401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bd81f5f802d3
User: phejl@netbeans.org
Log: #135854 java.io.IOException: Permission denied