function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gokubigokubi 

Eclipse problem connecting to na4

I love Eclipse. I use it on multiple machines and connect to 16 different instances of sf.com. I use it for S-Controls and Apex code development. Thanks so much for this tool, it is an incredible time saver.

About a week ago, I got an error when synching my s-control folder on one instance. Since then, I have been unable to connect to that instance. Of the 16 instances I connect to, this is the only one on na4. Looks like it is timing out:

Here is the error I get in Eclipse 3.2.2 with the latest Apex add on:

Failed to send request to https://na4-api.salesforce.com/services/Soap/u/8.0
  com.appexchange.plugin.wizards.ConnectionPage.applySettings (ConnectionPage.java 191)
  com.appexchange.plugin.wizards.AppExchangeProjectWizard.performFinish (AppExchangeProjectWizard.java 60)
  org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java 680)
  org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java 355)
  org.eclipse.jface.dialogs.Dialog$3.widgetSelected (Dialog.java 660)
  org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java 90)
  org.eclipse.swt.widgets.EventTable.sendEvent (EventTable.java 66)
  org.eclipse.swt.widgets.Widget.sendEvent (Widget.java 928)
  org.eclipse.swt.widgets.Display.runDeferredEvents (Display.java 3348)
  org.eclipse.swt.widgets.Display.readAndDispatch (Display.java 2968)
  org.eclipse.jface.window.Window.runEventLoop (Window.java 820)
  org.eclipse.jface.window.Window.open (Window.java 796)
  org.eclipse.ui.actions.NewProjectAction.run (NewProjectAction.java 116)
  org.eclipse.jface.action.Action.runWithEvent (Action.java 499)
  org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java 539)
  org.eclipse.jface.action.ActionContributionItem.access$2 (ActionContributionItem.java 488)
  org.eclipse.jface.action.ActionContributionItem$5.handleEvent (ActionContributionItem.java 400)
  org.eclipse.swt.widgets.EventTable.sendEvent (EventTable.java 66)
  org.eclipse.swt.widgets.Widget.sendEvent (Widget.java 928)
  org.eclipse.swt.widgets.Display.runDeferredEvents (Display.java 3348)
  org.eclipse.swt.widgets.Display.readAndDispatch (Display.java 2968)
  org.eclipse.ui.internal.Workbench.runEventLoop (Workbench.java 1930)
  org.eclipse.ui.internal.Workbench.runUI (Workbench.java 1894)
  org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java 422)
  org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java 149)
  org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java 95)
  org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java 78)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLauncher.java 92)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.java 68)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java 400)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java 177)
  sun.reflect.NativeMethodAccessorImpl.invoke0 (null -2)
  sun.reflect.NativeMethodAccessorImpl.invoke (null -1)
  sun.reflect.DelegatingMethodAccessorImpl.invoke (null -1)
  java.lang.reflect.Method.invoke (null -1)
  org.eclipse.core.launcher.Main.invokeFramework (Main.java 336)
  org.eclipse.core.launcher.Main.basicRun (Main.java 280)
  org.eclipse.core.launcher.Main.run (Main.java 977)
  org.eclipse.core.launcher.Main.main (Main.java 952)

Anything up with na4? This happens to be the instance of my employer, so I'd love some help troubleshooting so I can get working on our code again!

Thanks again for the great tool and any help you could provide tracking this error down.

Steve
gmartingmartin

I just connected to an account on na4 using Eclipse, no apparent issues.

Are you still have a problem now?  If so, I wonder whether the project settings in Eclipse have become confused somehow.  If you haven't done so already, perhaps try creating a second Eclipse project pointed to the same account on na4 and see whether it is able to connect.

steve_andersensteve_andersen
It appears to be a problem with my na4 instance because I get the same error from my home machine. The timeout happens when it tries to get the s-controls.

This is 3 different Eclipse installs that have the same problem. All other connections are working for me--this appears to be a problem with just one instance.

Any sf.com folks want to help me troubleshoot this one? It's a replicable problem, and I've got eclipse working successfully with other instances, so it's not an Eclipse config issue.

Thanks!
gokubigokubi
I fixed this problem by extending the time out on the property page of the problem APEX Project. The default is 10 seconds, and upping it to 30 seconds fixed the problem.

Thanks Dave C. for the help!

Steve