[ 
https://issues.apache.org/jira/browse/OLINGO-272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15633095#comment-15633095
 ] 

Archana commented on OLINGO-272:
--------------------------------

I had the same issue using  NTLMAuthentication .I Sub classed the  
BasicAuthHttpClientFactory and I am able to overcome 
NonRepeatbleRequestException.

However I get the below exception,  
Exception in thread "main" 
org.apache.olingo.client.api.communication.ODataClientErrorException: entity 
[HTTP/1.1 400 Bad Request]
        at 
org.apache.olingo.client.core.communication.header.ODataErrorResponseChecker.checkResponse(ODataErrorResponseChecker.java:75)
        at 
org.apache.olingo.client.core.communication.request.AbstractRequest.checkResponse(AbstractRequest.java:54)
        at 
org.apache.olingo.client.core.communication.request.AbstractODataRequest.doExecute(AbstractODataRequest.java:310)
        at 
org.apache.olingo.client.core.communication.request.cud.ODataEntityCreateRequestImpl.execute(ODataEntityCreateRequestImpl.java:88)
        at 
org.apache.olingo.client.core.communication.request.cud.ODataEntityCreateRequestImpl.execute(ODataEntityCreateRequestImpl.java:47)

Can anyone please help?

> https authentication request results in NonRepeatableRequestException
> ---------------------------------------------------------------------
>
>                 Key: OLINGO-272
>                 URL: https://issues.apache.org/jira/browse/OLINGO-272
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: (Java) V4 4.0.0-beta-01
>            Reporter: Challen
>            Assignee: Challen
>             Fix For: (Java) V4 4.0.0-beta-01
>
>
> step1, 
> client.getConfiguration().setHttpClientFactory( new 
> BasicAuthHttpClientFactory("xxxusername ", "xxxxpassword"));
> step2, 
> final ODataEntityCreateRequest<ODataEntity> createDraftReq = 
> client.getCUDRequestFactory().getEntityCreateRequest(createDraftUriBuilder.build(),
>  draft);
> final ODataEntityCreateResponse<ODataEntity> createDraftRes = 
> createDraftReq.setFormat(format);
> createDraftReq.execute();
> Actual: NonRepeatableRequestException (guess it is because of login retry).
> Expected: no exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to