Even though this error occurs, http call happens succesfully. That is
weird.

On Wed, Jan 25, 2017 at 6:58 PM, Mahesh Chinthaka <[email protected]> wrote:

>
> Hi all,
>
> Im using jaggery post to a http post call.
> I dont need to set the headers, type and data as per my use case
> when I use like below,
>
>  var result = post(url);
>
> It throws following error.
>
> Caused by: java.lang.NullPointerException
>
> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.executeRequest(
> XMLHttpRequestHostObject.java:527)
>
> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(
> XMLHttpRequestHostObject.java:515)
>
> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_send(
> XMLHttpRequestHostObject.java:279)
>
> at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>
> Any idea please ?
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: [email protected] | Web: www.wso2.com
>



-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: [email protected] | Web: www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to