"oagpolicystudio/trace/.metadata" Is Read-only" Error While Executing Oracle API Gateway Policy Studio (Doc ID 2177664.1)

Last updated on AUGUST 31, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.

Symptoms

On an OAG 11.1.2.4.0 installation, when launching Policy Studio, the below error is observed:

-----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_75
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_EN
Command-line arguments: -os linux -ws gtk -arch x86_64 -data ./trace

!ENTRY org.eclipse.osgi 4 0 xxxx-xx-xx xx:xx:xx.xxx
!MESSAGE An error occurred while automatically activating bundle com.vordel.rcp.policystudio (18).
!STACK 0
org.osgi.framework.BundleException: Exception in com.vordel.client.gui.policystudio.Activator.start() of bundle com.vordel.rcp.policystudio.
  at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
  at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
  at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
  at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
  at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
  at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
  at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
  at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
  at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
  at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
  at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
  at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
  at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
  at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
  at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
  at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
  at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
  at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
  at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
  at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
  at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
  at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.io.IOException: The folder "/oracle/product/fmw/OAG-11.1.2.4.0/api-client/oagpolicystudio/trace/.metadata" is read-only.
  at org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:206)
  at org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:181)
  at com.vordel.client.gui.policystudio.Activator.start(Activator.java:45)
  at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
  at java.security.AccessController.doPrivileged(Native Method)
  at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
  ... 34 more
Root exception:
java.io.IOException: The folder "/oracle/product/fmw/OAG-11.1.2.4.0/api-client/oagpolicystudio/trace/.metadata" is read-only.
  at org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:206)
  at org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:181)
  at com.vordel.client.gui.policystudio.Activator.start(Activator.java:45)
  at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
  at java.security.AccessController.doPrivileged(Native Method)
  at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
...


The execution of the application is being performed by a standard operating system user.  When executed using the root user, no issue is observed with the launching of Policy Studio.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms