[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] elipse - problem with closing and relaunching
|
Hi,
I'm running an eclipse platform from my java application using org.eclipse.core.launcher.Main class.
It works correct, but when I try to close eclipse I get the following exception:
!ENTRY org.eclipse.ui.ide 4 4 2008-03-18 13:01:55.453
!MESSAGE Problems saving workspace
!ENTRY org.eclipse.ui.ide 2 1 2008-03-18 13:01:55.468
!MESSAGE Problems occurred while trying to save the state of the workbench.
!SUBENTRY 1 org.eclipse.core.resources 2 566 2008-03-18 13:01:55.468
!MESSAGE Problems occurred during save.
!STACK 0
org.hibernate.console.HibernateConsoleRuntimeException: Could not write state
at org.hibernate.console.KnownConfigurations.writeStateTo(KnownConfigurations.java:253)
at org.hibernate.eclipse.console.HibernateConsolePlugin.writeStateTo(HibernateConsolePlugin.java:238)
at org.hibernate.eclipse.console.HibernateConsoleSaveParticipant.saving(HibernateConsoleSaveParticipant.java:59)
at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:322)
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:151)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:154)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:955)
at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:1764)
at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor$3.run(IDEWorkbenchAdvisor.java:367)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:\E:\workspace_tst\.metadata\.plugins\org.hibernate.eclipse.console\hibernate-console.xml-22 (The filename, directory name, or volume label syntax is incorrect)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:245)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:278)
at org.hibernate.console.KnownConfigurations.writeXml(KnownConfigurations.java:270)
at org.hibernate.console.KnownConfigurations.writeStateTo(KnownConfigurations.java:247)
... 10 more
Caused by: java.io.FileNotFoundException: file:\E:\workspace_tst\.metadata\.plugins\org.hibernate.eclipse.console\hibernate-console.xml-22 (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:235)
... 13 more
----------------------------------------------------------------
Of course hibernate-console.xml-22 exists and it looks OK.
The second problem occurs when I try to relaunch eclipse platform.
In this case I get the following exception:
!SESSION Mon Mar 17 17:08:43 CET 2008 ------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2008-03-17 17:08:43.843
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.reflect.InvocationTargetException
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 com.comarch.insight.console.action.bpm.gui.EclipseEditor.invokeFramework(EclipseEditor.java:518)
at com.comarch.insight.console.action.bpm.gui.EclipseEditor.basicRun(EclipseEditor.java:396)
at com.comarch.insight.console.action.bpm.gui.EclipseEditor.run(EclipseEditor.java:1133)
at com.comarch.insight.console.action.bpm.EditDefinitionAction$2.run(EditDefinitionAction.java:86)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: Native Library E:\OSS4_src\eclipse\configuration\org.eclipse.osgi\bundles\1112\1\.cp\swt-win32-3235.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:433)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:122)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:75)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
... 9 more
----------------------------------------------------------------
Is it possible to unload swt-win32-3235.dll from the classloader before eclipse restart?
Could anyone help me to solve those problems?
Best Regards,
Edward