You need to sign in to do that
Don't have an account?

Unable to connect to Production / Developemnt Server from Eclipse IDE
Hi,
I have downloaded and installed the Eclipse 3.4.0 IDE, Force.com Plugin to do custom development. However I'm unable to connect to the Developer / Sanbox server whenever I try to create a new project. I'm getting the following error. I have configured the proxy settings correctly and gave the necessary proxy authentication information.
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(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:89)
at com.sforce.soap.partner.wsc.PartnerConnection.login(PartnerConnection.java:1113)
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.GeneratedMethodAccessor35.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$$308b0a97.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:779)
at com.salesforce.ide.core.project.ProjectController.loadRemotePackageNames(ProjectController.java:806)
at com.salesforce.ide.ui.wizards.project.ProjectOrganizationPage$1.run(ProjectOrganizationPage.java:335)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:446)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:354)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1191)
at com.salesforce.ide.ui.wizards.project.ProjectOrganizationPage.loadOrgDetails(ProjectOrganizationPage.java:324)
at com.salesforce.ide.ui.wizards.project.ProjectOrganizationPage.prepareNextPage(ProjectOrganizationPage.java:229)
at com.salesforce.ide.ui.wizards.project.ProjectOrganizationPage.getNextPage(ProjectOrganizationPage.java:218)
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:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
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:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
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:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
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:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
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:193)
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:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
The Force.com IDE does not support Eclipse 3.4.x currently. I believe that Eclipse version will be supported in the upcoming Summer '09 release.
Hi Albert,
I'm able access the server from my home using the same Eclipse 3.4 version.
The problem is occuring when I am connecting from my office where in my PC is behind a firewall and so I had to configure the proxy settings.
Regards,
Sreedhar
Sreedhar,
Please try connecting through your proxy using the Force.com IDE 15.0.2 with Eclipse 3.3 (not 3.4) and let us know if it still has problems. If so, also tell us what style of authentication your proxy server uses (e.g. basic, NTLM).
Thanks,
Jon
salesforce.com Product Manager
Hi Jon, As directed I downloaded the Eclipse 3.3.2 version and installed the Force.com IDE plugin v 15.0.2 . I'm now getting the following error when I try to connect to the server and setup a new project
WARN [2009-05-08 22:53:48,238] (ProjectOrganizationPage.java:prepareNextPage:271) - Unable to load org details - package names and component enablement
java.lang.StackOverflowError
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at java.io.PrintStream.flush(Unknown Source)
at sun.net.www.MessageHeader.print(Unknown Source)
at sun.net.www.http.HttpClient.writeRequests(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.sendCONNECTRequest(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
Our proxy uses basic authentication and I have given all the credentials for the procy server as well as the username, password and security token for connecting to the SFDC server.
Regards,
Sreedhar
It seems to be in an infinite loop down at the Java HTTP/sockets layer. Is your proxy server sending some kind of redirect message to Eclipse?
The Force.com IDE doesn't have control over what's going on at that level. If it were simply a matter of credentials it seems like the proxy would return a proper rejection message.
Are you able to connect through your proxy using other Eclipse features/plugins?
has anyone found a solution for the error '
Unable to tunnel through my proxy. Proxy returns "http/1.1 407 Proxy Authentication Required"
Just to confirm, have you configured your proxy server settings in Eclipse?
You can get to your Eclipse proxy server settings either by opening the New Force.com Project wizard and clicking the "Proxy Settings" link, or by opening the Eclipse Preferences window and going to General > Network Connections.
If you have set up your proxy server settings correctly and it still doesn't work, please let us know. Also note that, as documented in the release notes, Eclipse currently doesn't support NTLM proxy authentication so it's impossible for the Force.com IDE to connect through an NTLM style proxy server.
@Jon:We have done it proxy setting as mentioned in your post, but it still doesnot work.
We copied the same eclipse folder to another machine and same proxy settings, and it works perfectly. The machine configurations and the proxy details /authentication details are the same.
Still we get the 407 error.
Hello Santosh,
We are facing exactly the same error as you were. Were you able to figure what was the solution for this issue. Would you please post in this thread?
Thank you
Raghu