- This topic has 5 replies, 3 voices, and was last updated 14 years ago by
support-tony.
-
AuthorPosts
-
atultewariMemberI have been running with MyEclipse 8.6 just fine until recent updated about 2 weeks ago. Not sure what got updated. But I keep getting “Cannot connect to VM” everyone once in a while. Not sure what is causing this. See attached screenshot.
After 3-4 attempts, it seems to give in and I am able to run our app in DEbug mode just fine. I added the line -clean on eclipse.ini hoping it was not related to any cache. No luck. The message pops-up randomly. Many developers have witnessed this in older releases of MyEclipse
Any ideas?
Thanks!
AT
[/img]
support-joyMemberAT,
Sorry to hear you are running into this issue. I am afraid, your screenshot did not come through. Here is the FAQ on how to send screenshots – https://www.genuitec.com/forums/topic/troubleshooting-how-to-upload-attachments-on-forum/&highlight=&sid=25c0228797fa1fdd0b62bf40c2cf4c73
Could you share your installation details. Here is the FAQ – https://www.genuitec.com/forums/topic/troubleshooting-how-to-view-the-installation-details/&highlight=&sid=25c0228797fa1fdd0b62bf40c2cf4c73
Clear your .log file located at [your workspace dir]/.metadata/.log, replicate the steps and copy and paste relevant portion of your .log here
atultewariMemberThank you for your response. I was unable to attach – there is no Choose file option I see. Here is the installation summary:
*** Date: Wednesday, April 27, 2011 6:54:30 AM CDT ** System properties: OS=WindowsVista OS version=6.1.0 Java version=1.6.0_13 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 8.6.1 Build id: 8.6.1-20101117 *** Eclipse details: MyEclipse Enterprise Workbench Version: 8.6.1 Build id: 8.6.1-20101117 Eclipse startup command=-os win32 -ws win32 -arch x86 -showsplash -launcher C:\apps\Genuitec\MyEclipse-8.6\myeclipse.exe -name Myeclipse --launcher.library C:\apps\Genuitec\MyEclipse-8.6\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll -startup C:\apps\Genuitec\MyEclipse-8.6\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -clean -install C:/apps/Genuitec/MyEclipse-8.6 -configuration configuration -vm C:/apps/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
Here is the log file after clearing it:
!SESSION 2011-04-27 06:52:25.873 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_13 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -clean !ENTRY org.eclipse.equinox.registry 2 0 2011-04-27 06:53:17.790 !MESSAGE The extensions and extension-points from the bundle "org.eclipse.epf.richtext" are ignored. The bundle is not marked as singleton. !ENTRY org.eclipse.osgi 2 1 2011-04-27 06:53:41.112 !MESSAGE NLS unused message: prompt.optclasspath in: com.genuitec.eclipse.easie.core.configuration !ENTRY org.eclipse.osgi 2 1 2011-04-27 06:53:41.112 !MESSAGE NLS unused message: prompt.preclasspath in: com.genuitec.eclipse.easie.core.configuration !ENTRY org.eclipse.osgi 2 1 2011-04-27 06:53:41.127 !MESSAGE NLS unused message: prompt.optlibrarypath in: com.genuitec.eclipse.easie.core.configuration !ENTRY org.eclipse.jface 2 0 2011-04-27 06:53:49.957 !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. !SUBENTRY 1 org.eclipse.jface 2 0 2011-04-27 06:53:49.957 !MESSAGE A conflict occurred for SHIFT+DEL: Binding(SHIFT+DEL, ParameterizedCommand(Command(org.eclipse.datatools.sqltools.result.removeAllInstances,Remove All Visible Results, , Category(org.eclipse.datatools.sqltools.result.category,SQL Results View,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) Binding(SHIFT+DEL, ParameterizedCommand(Command(org.eclipse.ui.edit.cut,Cut, Cut the selection to the clipboard, Category(org.eclipse.ui.category.edit,Edit,null,true), org.eclipse.ui.internal.handlers.WidgetMethodHandler@d9fdcf, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.dialogAndWindow,,,system) Binding(SHIFT+DEL, ParameterizedCommand(Command(org.topcased.modeler.deleteModelObject,Delete From Model, Allows the user to delete the selected graph element and its associated model element in a Topcased editor., Category(org.eclipse.ui.category.edit,Edit,null,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) !ENTRY com.genuitec.eclipse.easie.core 1 0 2011-04-27 06:57:56.619 !MESSAGE Error starting MyEclipse Tomcat server !STACK 0 com.genuitec.eclipse.core.GenuitecCoreException: Cannot connect to VM at com.genuitec.eclipse.easie.tomcat.Tomcat.start(Tomcat.java:55) at com.genuitec.eclipse.easie.tomcat.myeclipse.MyEclipseTomcat.start(MyEclipseTomcat.java:39) at com.genuitec.eclipse.easie.core.ui.action.ServerStartAction.ÄÂ�(Unknown Source) at com.genuitec.eclipse.easie.core.ui.action.ServerStartAction.basicRun(Unknown Source) at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source) at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.runWithEvent(Unknown Source) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) 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:368) 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:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311) Caused by: org.eclipse.core.runtime.CoreException: Cannot connect to VM at org.eclipse.jdt.launching.AbstractVMRunner.abort(AbstractVMRunner.java:47) at org.eclipse.jdt.internal.launching.StandardVMDebugger.run(StandardVMDebugger.java:340) at com.genuitec.eclipse.core.JavaVMUtility.execute(JavaVMUtility.java:260) at com.genuitec.eclipse.core.JavaVMUtility.execute(JavaVMUtility.java:179) at com.genuitec.eclipse.easie.tomcat.TomcatManager.startTomcat(TomcatManager.java:59) at com.genuitec.eclipse.easie.tomcat.TomcatManager.start(TomcatManager.java:37) at com.genuitec.eclipse.easie.tomcat.Tomcat.start(Tomcat.java:52) ... 32 more Caused by: java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:453) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:95) at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56) at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135) at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107) at java.lang.Thread.run(Thread.java:619)
support-joyMemberAT,
Thank you for the installation details and .log file. I am afraid we could not replicate the same here. Could you try the following for me –
1. Open Window > preferences > Myeclipse > servers > Integrated Sandbox > Tomcat 6. From the right hand pane click on [Restore MyEclipse Tomcat Server Installation], [Apply] and [OK] and restart the IDE.
2. If it is still an issue, could you try out the solution posted by the user – “grr” solution here – https://www.genuitec.com/forums/topic/socket-closed-cannot-connect-to-vm-when-debugging/Let me know how this works for you.
Best.
atultewariMemberI tried the items you listed in your response below and neither helped. The Tomcat randomly does this so I’m not sure if this has anything to do with Windows 7 x64-bit updates from Microsoft.
I installed MyEclipse 9.0 hoping to alleviate the issue. But MyEclipse 9.0 has its own set of issues. The same project that works fine in 8.6.1, shows innumerable JS errors in 9.0 despite disabling JS validation and including a rule to exclude *.js files.
I had to eventually uninstall 9.0 after trying different things. So I am back to square one – patiently trying to start Tomcat in 8.6.1 and hoping it starts Tomcat. I still have the intermittent “Cannot connect to VM”.
Until MyEclipse fixes the JS errors in 9.0 I really cannot upgrade.
AT
support-tonyKeymasterAT,
You mentioned that you recently updated MyEclipse 8.6 in some way. Have you remembered what you updated? As something changed, that is likely to be the problem, since I can’t reproduce the error here.
Is there any pattern to when the error occurs? Are you doing other work outside MyEclipse that might interfere? Does it only happen after several successful debug sessions? If so, maybe the last server launch wasn’t cleaned up properly. Or there might be insufficient memory – could you try increasing the memory allocated to MyEclipse, in the myeclipse.ini file? You could also try launching the server in debug mode to check it starts up OK, then debug your application by launching the integrated web browser and invoking your application from that.
If you still have intermittent problems, you could try reinstalling 8.6, to get a clean install. What extra plugins have you installed?
It’s possible to have both the 8.6 and 9.0 releases installed at the same time. It would be useful if you could reinstall 9.0, if you get time, and open a separate topic here, regarding your JS validation issues. In that way, we could help you resolve those problems so that you could make 9.0 your main workbench.
Apologies for the continued problems.
-
AuthorPosts