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 236657

Summary: org.openide.filesystems.FileStateInvalidException: File Keymaps cannot be found in folder .
Product: platform Reporter: kiaron
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 7.3.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: log file
JNLP file

Description kiaron 2013-10-02 14:04:09 UTC
Created attachment 140730 [details]
log file

JDK: jdk1.6.0_25
Netbeans Platform: RELEASE731

When I start application based on Netbeans Platform from Webstart and try open Options panel, I catch next exception:

SEVERE: File Keymaps cannot be found in folder .
org.openide.filesystems.FileStateInvalidException: File Keymaps cannot be found in folder .
	at org.openide.filesystems.MultiFileObject.createFolder(MultiFileObject.java:1127)
	at org.openide.filesystems.FileUtil.createFolder(FileUtil.java:707)
	at org.openide.filesystems.MultiFileObject.createFolder(MultiFileObject.java:1114)
[catch] at org.netbeans.modules.options.keymap.LayersBridge.getRootFolder(LayersBridge.java:679)
	at org.netbeans.modules.options.keymap.LayersBridge.refreshKeymapNames(LayersBridge.java:194) 
....
(All log attached in the file)

If application started from Netbeans IDE or *.exe file  - everything Ok.
Comment 1 kiaron 2013-10-02 14:05:17 UTC
Created attachment 140731 [details]
JNLP file

JNLP config, maybe help
Comment 2 Svata Dedic 2013-11-01 10:01:19 UTC
Seems JNLP related; please investigate and/or advise if something is to be fixed in keymap storage. Thanks.
Comment 3 Jaroslav Tulach 2013-11-19 12:46:33 UTC
Regular IOException from filesystems.
Comment 4 Svata Dedic 2014-01-13 08:16:54 UTC
Sorry I don't understand; the error came from creating a 'Keymap' folder under FileUtil.getConfigRoot(). The MultiFO tried to create the folder on the underlying FS, then refreshed, then still did not find the supposedly just created folder. Is that an usual or expected behaviour ?
Comment 5 Jaroslav Havlin 2014-01-13 12:19:37 UTC
The "Keymaps" folder is normally (in the IDE) available in the XML layer filesystem (it is defined in module "defaults"), but it wasn't found, so LayersBridge.getRootFolder tried to create it and failed (unexpectedly).

Does your platform application contain module "defaults"?
What is the userdir if the application is started via JNLP? Is it writeable?
Can you please attach an IDE Log with FINE-FINEST messages disabled? This log includes a lot of details, but its beginning is missing (with info about enabled modules, userdir, JDK, etc.).

Thank you for your help.
Comment 6 Jaroslav Havlin 2014-04-04 06:46:19 UTC
I'm sorry, I need more info to understand the bug.
Closing for now. Please answer (some of) the questions and reopen this issue.
Thank you.

> Does your platform application contain module "defaults"?
> What is the userdir if the application is started via JNLP? Is it writeable?
> Can you please attach an IDE Log with FINE-FINEST messages disabled? This
> log includes a lot of details, but its beginning is missing (with info about
> enabled modules, userdir, JDK, etc.).