Sunday, April 17, 2011

Toolkit eclipse crash | recovery

Command-line arguments: -plugincustomization C:\RAD601\eclipse\default\plugin_customization.ini -showlocation

!ENTRY org.eclipse.osgi Apr 17, 2011 21:50:00.278
!MESSAGE An error occured while automatically activating bundle
org.eclipse.core.resources (262).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.compatibility.PluginActivator.start() of bundle org.eclipse.core.resources.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator
(BundleContextImpl.java:975) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start
(BundleContextImpl.java:937)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker
(BundleHost.java:421)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start
(AbstractBundle.java:293) at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass
(EclipseClassLoader.java:110)

If you experience the above problem, it is because of either your windows got restarted without closing the eclipse properly or if you are using ant and there is a resource blocked by another program or sometimes just random.

Recovery:

1. Deleting those two files in workspace metadata folder
\.metadata\.plugins\org.eclipse.core.resources\.snap
\.metadata\.plugins\org.eclipse.core.resources\.root\.markers.snap

2. Once you delete those files and stat toolkit, you will see all the projects would disappear from workspace. Delete wasprofile directory under and
Run setup.bat from TOOLKIT_HOME\bin

3. Make sure your DB is pointed to right DB. Start server and publish.

4. Get all the latest files from SVN\CVS if you have a build script just run that.

2 comments:

  1. The crash recovery can be modified through the toolkit options. Run the script to resolve the problem.

    ReplyDelete
  2. Can you please explain, what script you are referring to?

    ReplyDelete