You need to sign in to do that
Don't have an account?
ScottPJ
Execute Anonymous Error in Eclipse IDE
When I attempt to run code using the the Execute Anonymous feature, I get the error "com.sforce.ws.ConnectionException'. Does anyone have any suggestions?
Can you post the full exception stacktrace? You can find it by opening the log at Help > Show Force.com IDE Log.
Another user recently reported this issue, and the problem was related to using a proxy server.
Please note that I cannot trace back my failed calls back to the Log file, but I have included the log entries to see if you have any ideas on how to resolve this issue. Thanks.
!SESSION 2009-01-29 11:48:42.835 -----------------------------------------------
eclipse.buildId=M20080221-1800
java.version=1.6.0_11
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
!ENTRY com.salesforce.ide.core 2 0 2009-01-29 11:49:34.612
!MESSAGE WARN [2009-01-29 11:49:34,612] (IntroEditorInput.java:loadDocument:130) - java.net.ConnectException: Connection timed out: connect
!ENTRY com.salesforce.ide.core 2 0 2009-01-29 11:49:55.829
!MESSAGE WARN [2009-01-29 11:49:55,829] (IntroEditorInput.java:loadDocument:130) - java.net.ConnectException: Connection timed out: connect
!ENTRY com.salesforce.ide.core 2 0 2009-01-29 11:51:05.390
!MESSAGE WARN [2009-01-29 11:51:05,390] (BaseRetryAspect.java:isLoginExceptionRetryable:94) - Login evaluation deemed exception not retry-able:
ConnectException: Connection timed out: connect
!ENTRY com.salesforce.ide.core 2 0 2009-01-29 11:51:05.422
!MESSAGE WARN [2009-01-29 11:51:05,406] (BaseRetryAspect.java:isConnectionExceptionRetryable:130) - Connection evaluation deemed exception not retry-able:
ConnectException: Connection timed out: connect
!ENTRY com.salesforce.ide.core 2 0 2009-01-29 11:51:05.437
!MESSAGE WARN [2009-01-29 11:51:05,437] (ProjectController.java:getRemotePackageNames:760) - Unable to get project packages for project 'Regence': Connection timed out: connect
!ENTRY com.salesforce.ide.core 2 0 2009-01-29 11:51:05.468
!MESSAGE WARN [2009-01-29 11:51:05,453] (ProjectOrganizationPage.java:prepareNextPage:215) - Unable to load org details - package names and component enablement
!STACK 0
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:115)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:88)
at com.sforce.soap.partner.wsc.PartnerConnection.login(PartnerConnection.java:1269)
at com.salesforce.ide.core.remote.Connection.login(Connection.java:232)
at com.salesforce.ide.core.remote.Connection$$FastClassByCGLIB$$8e61a81d.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
at com.salesforce.ide.core.internal.aspects.LoginRetryAspect.loginRetry(LoginRetryAspect.java:24)
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.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.salesforce.ide.core.remote.Connection$$EnhancerByCGLIB$$ab05c002.login(<generated>)
at com.salesforce.ide.core.factories.ConnectionFactory.getNewConnection(ConnectionFactory.java:73)
at com.salesforce.ide.core.factories.ConnectionFactory.storeConnection(ConnectionFactory.java:159)
at com.salesforce.ide.core.factories.ConnectionFactory.getConnection(ConnectionFactory.java:126)
at com.salesforce.ide.core.project.ProjectController.getRemotePackageNames(ProjectController.java:746)
at com.salesforce.ide.core.project.ProjectController.loadRemotePackageNames(ProjectController.java:773)
at com.salesforce.ide.ui.wizards.project.ProjectOrganizationPage$1.run(ProjectOrganizationPage.java:287)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:268)
at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1123)
at com.salesforce.ide.ui.wizards.project.ProjectOrganizationPage.loadOrgDetails(ProjectOrganizationPage.java:276)
at com.salesforce.ide.ui.wizards.project.ProjectOrganizationPage.prepareNextPage(ProjectOrganizationPage.java:169)
at com.salesforce.ide.ui.wizards.project.ProjectOrganizationPage.getNextPage(ProjectOrganizationPage.java:158)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:135)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
The changes never appear in the organization. I believe this is a proxy issiue and notice that several individuals are experience the same situation.