Skip to main content

Exception: File access denied

1 reply [Last post]
jjjaime
Offline
Joined: 2008-03-12
Points: 0

I've tried to start up an OSGi framework (Equinox) with phoneMe Advanced in a Windows Mobile 2005 device.

However, in the very beginning of the startup process, it throws an exception. It looks like there's some conflict with the file system (perhaps by some special feature of the windows mobile file system???)

I've used 2 different versions with the same result:
a) phoneme_advanced-mr2-dev-bin-b34-win32-arm-wm5-09_oct_2007.zip (from https://phoneme.dev.java.net/downloads_page.html)
b) Davy's version: http://www.cs.kuleuven.ac.be/~davy/phoneme/dist/CDC-phoneme_advanced_mr2...

Here it is the trace information:

=========================================================
!SESSION 2008-03-12 12:52:39.665 -----------------------------------------------
eclipse.buildId=unknown
java.version=phoneme_advanced_mr2-b34
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=TARGET_CPU_FAMILY, WS=win32, NL=en
Command-line arguments: -console -clean

!ENTRY org.eclipse.osgi 4 0 2008-03-12 12:52:44.615
!MESSAGE Error reading configuration: Access is denied.

!STACK 0
java.io.IOException: Access is denied.

at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at org.eclipse.osgi.storagemanager.StorageManager.initializeInstanceFile(Unknown Source)
at org.eclipse.osgi.storagemanager.StorageManager.open(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(Unknown Source)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(Unknown Source)
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Unknown Source)
at org.eclipse.osgi.framework.internal.core.Framework.(Unknown Source)
at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(Unknown Source)
at org.eclipse.osgi.framework.internal.core.OSGi.(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)
=========================================================

Thank you in advance,
Jaime

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I've tried to start up an OSGi framework (Equinox) with phoneMe Advanced in a Windows Mobile 2005 device.
>
> However, in the very beginning of the startup process, it throws an exception. It looks like there's some conflict with the file system (perhaps by some special feature of the windows mobile file system???)
>
> I've used 2 different versions with the same result:
> a) phoneme_advanced-mr2-dev-bin-b34-win32-arm-wm5-09_oct_2007.zip (from https://phoneme.dev.java.net/downloads_page.html)
> b) Davy's version: http://www.cs.kuleuven.ac.be/~davy/phoneme/dist/CDC-phoneme_advanced_mr2...
>
> Here it is the trace information:
>
> =========================================================
> !SESSION 2008-03-12 12:52:39.665 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=phoneme_advanced_mr2-b34
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=TARGET_CPU_FAMILY, WS=win32, NL=en
> Command-line arguments: -console -clean
>
> !ENTRY org.eclipse.osgi 4 0 2008-03-12 12:52:44.615
> !MESSAGE Error reading configuration: Access is denied.
>
> !STACK 0
> java.io.IOException: Access is denied.
>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> at java.io.File.checkAndCreate(Unknown Source)
> at java.io.File.createTempFile(Unknown Source)
> at org.eclipse.osgi.storagemanager.StorageManager.initializeInstanceFile(Unknown Source)
> at org.eclipse.osgi.storagemanager.StorageManager.open(Unknown Source)
> at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(Unknown Source)
> at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(Unknown Source)
> at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(Unknown Source)
> at org.eclipse.osgi.framework.internal.core.Framework.initialize(Unknown Source)
> at org.eclipse.osgi.framework.internal.core.Framework.(Unknown Source)
> at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(Unknown Source)
> at org.eclipse.osgi.framework.internal.core.OSGi.(Unknown Source)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Unknown Source)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.main(Unknown Source)
> at sun.misc.CVM.runMain(Unknown Source)
>

Hi Jaime,

This looks strange to me. I believe all the errors are due to the
EclipseStarter (not our software), since we do not preface our error
messages with "!":

Ex.
!ENTRY org.eclipse.osgi 4 0 2008-03-12 12:52:44.615
^^^^^
!MESSAGE Error reading configuration: Access is denied.
^^^^^

Do you know if the EclipseStarter you are using has any way to configure
the Java Security Policy file that it uses?

Maybe, you need an more permissive Java Security Policy file? Like this?

java.policy.all
---
grant {
permission java.security.AllPermission;
};

cvm ... -Djava.security.policy=java.policy.all ...

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net