No connection to Salesforce

1 follower
0
Avatar

Our Saleforce site is only connectable through TLS 1.2. Datameer cannot retrieve an access token when I try to create a connection. The error in the conductor log is: 

 

[alex] ERROR [2017-02-01 13:49:21.461] [qtp2012608330-7081800] (OAuth2Setup.java:179) - Could not get acccess token.
OAuthProblemException{description='authentication failure', error='invalid_grant', uri='null', state='null', scope='null'}
at org.apache.amber.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:57)
at org.apache.amber.oauth2.client.validator.OAuthClientValidator.validateErrorResponse(OAuthClientValidator.java:63)
at org.apache.amber.oauth2.client.validator.OAuthClientValidator.validate(OAuthClientValidator.java:48)
at org.apache.amber.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:64)
at org.apache.amber.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:59)
at org.apache.amber.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:52)
at org.apache.amber.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:60)
at org.apache.amber.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:105)
at org.apache.amber.oauth2.client.OAuthClient.accessToken(OAuthClient.java:64)
at org.apache.amber.oauth2.client.OAuthClient.accessToken(OAuthClient.java:54)
at datameer.webservice.auth.oauth.OAuth2Setup.fetchAccessToken(OAuth2Setup.java:197)
at datameer.webservice.auth.oauth.OAuth2Setup.processCallback(OAuth2Setup.java:176)
at datameer.webservice.auth.oauth.OAuthButton.processCallback(OAuthButton.java:47)
at datameer.dap.conductor.webapp.controller.properties.PropertyController.onExternalCallbackCalled(PropertyController.java:383)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at datameer.dap.conductor.webapp.filter.MinifyJsCssFilter.doFilter(MinifyJsCssFilter.java:49)
 

 

Michael Ahn

1 comment

  • Avatar
    Michael Ahn

    I found a solution:

    In etc/das-env.sh add -Dhttps.protocols=TLSv1.1,TLSv1.2 to the JAVA_OPTIONS 

    Also, if import job is running with Tez, add 

    tez.task.launch.cmd-opts=-Dhttps.protocols=TLSv1.1,TLSv1.2

    to the Hadoop Properties.

    I think switching from JAVA 7 to JAVA 8 would have helped too.

    0
Please sign in to leave a comment.