Tag Archives: eclipse

Eclipse internal Error – .fileTableLock access is denied

Error / Problem:
Eclipse internal Error – .fileTableLock access is denied

Stack Trace/Error Log:

!ENTRY org.eclipse.osgi 4 0 2013-08-21 15:00:19.904
!MESSAGE Error reading configuration: C:\Apps\IBM\SDP70\configuration\org.eclipse.osgi\.manager\.fileTableLock (Access is denied.)
!STACK 0
java.io.FileNotFoundException: C:\Apps\IBM\SDP70\configuration\org.eclipse.osgi\.manager\.fileTableLock (Access is denied.)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Unknown Source)
at org.eclipse.osgi.storagemanager.StorageManager.lock(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.<init>(Unknown Source)
at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(Unknown Source)
at org.eclipse.osgi.framework.internal.core.OSGi.<init>(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Unknown Source)
at org.eclipse.core.launcher.Main.run(Unknown Source)
at org.eclipse.core.launcher.Main.main(Unknown Source)

Solution: I solved this problem by modifying the parent directory “SDP70″ permissions, to allow all users read/write access.

Also, I found the below useful link on the IBM Support  http://www-01.ibm.com/support/docview.wss?uid=swg21599845

 

Do you see compilation errors from jarred up class java? Do you know Why? ( jar with compilation errros )

Do you know from eclipse the classes can be jarred up with a compilation errros? Yes. We can do. Often developers forget to untick the below option.

Not sure why this option is built by eclipse!

Below is the sample java class coded with errors.

This class file exported to jar successfully with the eclipse option ( export with compilation errors).

Please make sure to uncheck the eclipse jar export option to avoid compilation classes to be exported to jar file.