2

REST 経由の CRM Dynamics での認証に問題があります。この問題は、CentOS を搭載したマシンから接続しようとした場合にのみ発生します (Ubuntu および Windows で動作します)。

2012-10-31 14:55:00,940 WARNING [org.restlet.engine.security.AuthenticatorUtils] (schedulerFactoryBean_Worker-1) Couldn't find any helper support the HTTP_NTLM challenge scheme.
2012-10-31 14:55:01,005 ERROR [com.zenvia.wrapper.ServiceWrapper] (schedulerFactoryBean_Worker-1) Can't get the metadata for http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/ (response's status: Unauthorized (401) - Unauthorized)
2012-10-31 14:55:01,007 INFO  [com.zenvia.wrapper.ServiceWrapper] (schedulerFactoryBean_Worker-1) Get the metadata for http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/ at http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/$metadata
2012-10-31 14:55:01,010 INFO  [org.restlet.ext.net.HttpClientHelper] (schedulerFactoryBean_Worker-1) Starting the HTTP client
2012-10-31 14:55:01,156 WARNING [org.restlet.engine.security.AuthenticatorUtils] (schedulerFactoryBean_Worker-1) Couldn't find any helper support the HTTP_Negotiate challenge scheme.
2012-10-31 14:55:01,158 WARNING [org.restlet.engine.security.AuthenticatorUtils] (schedulerFactoryBean_Worker-1) Couldn't find any helper support the HTTP_NTLM challenge scheme.
2012-10-31 14:55:01,161 ERROR [com.zenvia.wrapper.ServiceWrapper] (schedulerFactoryBean_Worker-1) Can't get the metadata for http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/ (response's status: Unauthorized (401) - Unauthorized)
2012-10-31 14:55:01,163 INFO  [com.zenvia.wrapper.ServiceWrapper] (schedulerFactoryBean_Worker-1) Get the metadata for http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/ at http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/$metadata
2012-10-31 14:55:01,167 INFO  [org.restlet.ext.net.HttpClientHelper] (schedulerFactoryBean_Worker-1) Starting the HTTP client
2012-10-31 14:55:01,317 WARNING [org.restlet.engine.security.AuthenticatorUtils] (schedulerFactoryBean_Worker-1) Couldn't find any helper support the HTTP_Negotiate challenge scheme.
2012-10-31 14:55:01,319 WARNING [org.restlet.engine.security.AuthenticatorUtils] (schedulerFactoryBean_Worker-1) Couldn't find any helper support the HTTP_NTLM challenge scheme.
2012-10-31 14:55:01,322 ERROR [com.zenvia.wrapper.ServiceWrapper] (schedulerFactoryBean_Worker-1) Can't get the metadata for http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/ (response's status: Unauthorized (401) - Unauthorized)
2012-10-31 14:55:01,325 INFO  [com.zenvia.wrapper.ServiceWrapper] (schedulerFactoryBean_Worker-1) Get the metadata for http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/ at http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/$metadata
2012-10-31 14:55:01,328 INFO  [org.restlet.ext.net.HttpClientHelper] (schedulerFactoryBean_Worker-1) Starting the HTTP client
2012-10-31 14:55:01,512 WARNING [org.restlet.engine.security.AuthenticatorUtils] (schedulerFactoryBean_Worker-1) Couldn't find any helper support the HTTP_Negotiate challenge scheme.
2012-10-31 14:55:01,514 WARNING [org.restlet.engine.security.AuthenticatorUtils] (schedulerFactoryBean_Worker-1) Couldn't find any helper support the HTTP_NTLM challenge scheme.
2012-10-31 14:55:01,517 ERROR [com.zenvia.wrapper.ServiceWrapper] (schedulerFactoryBean_Worker-1) Can't get the metadata for http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/ (response's status: Unauthorized (401) - Unauthorized)
2012-10-31 14:55:01,519 WARNING [org.restlet.ext.odata.Query] (schedulerFactoryBean_Worker-1) Can't parse the content of http://<HOST>:5555/zenvia/xrmservices/2011/OrganizationData.svc/zenvia_operacaoSet?$filter=statuscode/Value eq 1 and zenvia_tipoOperacao/Value eq 300000005: java.lang.Exception: Can't execute the query without the service's metadata.

誰かがこれらの警告を知っていますか (「HTTP_Negotiate チャレンジ スキームをサポートするヘルパーが見つかりませんでした」および「HTTP_NTLM チャレンジ スキームをサポートするヘルパーが見つかりませんでした」)?

Client: CentOS 5.6
Client: Windows 7 SP1
Server AD: Windows Server 2008 R2
CRM Dynamics 2011
Restlet 2.1
JBoss 7.1.1
Java SE 6

ティアゴ・マルティンス

4

1 に答える 1

0

ネットコネクタを使用して、次のコマンドを呼び出す必要があります。

// Create your own authenticator
Authenticator a = new Authenticator() {
    public PasswordAuthentication getPasswordAuthentication() {
        return (new PasswordAuthentication("<your account>", "<your password>".toCharArray()));
    }
};

// Sets the default Authenticator
Authenticator.setDefault(a);

手順はこちらから入手できます: http ://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/46-restlet/112-restlet/364-restlet.html

于 2012-11-27T07:34:26.507 に答える