Hi Rajjaz,

Correct me if I am wrong.

I think you need to get the access token first manually using the OAUTH
flow. With this call you can only renew the access token.

When you are using the connector need to setup the access token first in
init method and use other operations afterwards,



On Fri, Jul 17, 2015 at 3:07 PM, Rajjaz Mohammed <[email protected]> wrote:

> Hi All,
> I’m trying get auth through esb connector but I'm getting the [1] error
> but as mentioned in Readme file i added [2] and in the request i tried with
> Content-Type application/xml and without in header but error is repeating.
> but test cases are working for credentials
>
> [1] [2015-07-17 14:53:05,989]  WARN - SequenceMediator onError handler :
> faultHandlerSeq for sequence : null cannot be found
> [2015-07-17 14:53:05,997] DEBUG - headers http-outgoing-4 >> POST
> /account/auth HTTP/1.1
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> cookie:
> menuPanel=visible; menuPanelType=main; region3_registry_menu=none;
> region1_manage_menu=visible;
> wso2.carbon.rememberme=admin-edd93278-6bb8-4c1e-a125-e1a68fda90a3;
> JSESSIONID=F27885DC357E102C7716ACB2B7A60F16;
> requestedURI=../../carbon/admin/index.jsp; region1_configure_menu=none;
> region4_monitor_menu=none; region5_tools_menu=none;
> current-breadcrumb=manage_menu%2Cmediation_menu%2Cconfig_menu%23configadmin+index.jsp*;
> MSG14371098586160.4839721793267453=true;
> MSG14371109157250.2970512011319284=true;
> MSG14371127261360.8698314854355778=true
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >>
> cache-control: no-cache
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >>
> accept-language: null
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >>
> accept-encoding: gzip, deflate
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> Content-Type:
> application/xml
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> pragma:
> no-cache
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >>
> Transfer-Encoding: chunked
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> Host:
> api.wso2connectortest.cashboardapp.com:443
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> Connection:
> Keep-Alive
> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> User-Agent:
> Synapse-PT-HttpComponents-NIO
> [2015-07-17 14:53:06,259] DEBUG - headers http-outgoing-4 << HTTP/1.1 401
> Unauthorized
> [2015-07-17 14:53:06,260] DEBUG - headers http-outgoing-4 << Content-Type:
> text/html; charset=utf-8
> [2015-07-17 14:53:06,260] DEBUG - headers http-outgoing-4 <<
> Content-Length: 1
> [2015-07-17 14:53:06,260] DEBUG - headers http-outgoing-4 << Connection:
> keep-alive
> [2015-07-17 14:53:06,260] DEBUG - headers http-outgoing-4 << Status: 401
> Unauthorized
> [2015-07-17 14:53:06,261] DEBUG - headers http-outgoing-4 << X-Runtime: 1
> [2015-07-17 14:53:06,261] DEBUG - headers http-outgoing-4 << Set-Cookie:
> session=39e8c677ae9f4b276ec03ee8b7954022; domain=.cashboardapp.com;
> path=/; HttpOnly
> [2015-07-17 14:53:06,261] DEBUG - headers http-outgoing-4 << Set-Cookie:
> _session_id=55f0b47acf3f1ac03abfa0e09979fd78; domain=.cashboardapp.com;
> path=/; HttpOnly
> [2015-07-17 14:53:06,261] DEBUG - headers http-outgoing-4 <<
> Cache-Control: no-cache
> [2015-07-17 14:53:06,262] DEBUG - headers http-outgoing-4 << X-Powered-By:
> Phusion Passenger 4.0.30
> [2015-07-17 14:53:06,262] DEBUG - headers http-outgoing-4 << Date: Fri, 17
> Jul 2015 09:23:05 GMT
> [2015-07-17 14:53:06,262] DEBUG - headers http-outgoing-4 << Server:
> nginx/1.4.4 + Phusion Passenger 4.0.30
> [2015-07-17 14:53:06,267]  WARN - SequenceMediator onError handler :
> faultHandlerSeq for sequence : null cannot be found
> [2015-07-17 14:53:06,272]  INFO - LogMediator To: , WSAction: ,
> SOAPAction: , MessageID: urn:uuid:0719e31a-64cd-4120-9264-a7f2ce605fec,
> Direction: response, MESSAGE = Executing default 'fault' sequence,
> ERROR_CODE = 0, ERROR_MESSAGE = java.lang.NullPointerException, Envelope:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="
> http://www.w3.org/2003/05/soap-envelope";><soapenv:Body><ns:binary
> xmlns:ns="http://ws.apache.org/commons/ns/payload
> ">IA==</ns:binary></soapenv:Body></soapenv:Envelope>
>
> [2]
>         <messageFormatter contentType="text/html"
> class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
>         <messageBuilder contentType="text/html"
> class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
>
>         <messageFormatter contentType="application/pdf"
> class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
>         <messageBuilder contentType="application/pdf"
> class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
>
> --
> Thank you
> Best Regards
>
> Rajjaz HM
> Associate Software Engineer
> WSO2 Inc. <http://wso2.com/>
> lean | enterprise | middleware
> Mobile : +94752833834
> Email  :[email protected]
> LinkedIn | Blogger | WSO2 Profile
> <http://wso2.com/about/team/mohammer_rajjaz/>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to