yes.
Or any new version, that is top on this

On Thu, Feb 2, 2017 at 11:39 AM, Mahesh Chinthaka <[email protected]> wrote:

> Hi,
> Thanks. It means in order to get this fix I will need to update it to
> version  0.9.0.ALPHA4.wso2*v4*.
>
>
> On Thu, Feb 2, 2017 at 10:39 AM, madhuka udantha <[email protected]
> > wrote:
>
>> Hi,
>>
>> It is fixed some years ago. (on 0.9.0.ALPHA4.wso2v4).
>>
>> Thanks
>>
>> On Wed, Jan 25, 2017 at 9:10 PM, Mahesh Chinthaka <[email protected]>
>> wrote:
>>
>>> Hi Manu,
>>> Thanks for the help.
>>> I found the jira[1] related to this. And it has been fixed with the
>>> commit[2].
>>>
>>> [1] - https://wso2.org/jira/browse/JAGGERY-359
>>> [2] - https://github.com/wso2/jaggery/commit/a5fa00957e6686c9469
>>> 00e38ab5561c30f45f58a
>>>
>>> On Wed, Jan 25, 2017 at 7:54 PM, Manuranga Perera <[email protected]> wrote:
>>>
>>>> I think it's fixed in latest. Old one doesn't have a null check [1] but
>>>> the new one [2] does. Can you please back port the fixed line, build, patch
>>>> and try?
>>>>
>>>> [1] https://github.com/wso2/jaggery/blob/0.9.0.ALPHA4.wso2v1/com
>>>> ponents/hostobjects/org.jaggeryjs.hostobjects.xhr/src/main/j
>>>> ava/org/jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#L527
>>>> [2] https://github.com/wso2/jaggery/blob/master/components/hosto
>>>> bjects/org.jaggeryjs.hostobjects.xhr/src/main/java/org/jagge
>>>> ryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#L561
>>>>
>>>> On Wed, Jan 25, 2017 at 2:10 PM, Mahesh Chinthaka <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi Jaggery Team,
>>>>>
>>>>> Actually the reason is,
>>>>> the endpoint im calling doesnt return anything as response. Just '204
>>>>> No Content'
>>>>>
>>>>> Since the response is empty/null, it returns a null pointer exception.
>>>>> IMO no content responses also should be handled by hostobject.
>>>>> Is this fixed now?
>>>>> Im using *org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar*
>>>>>
>>>>> On Wed, Jan 25, 2017 at 7:00 PM, Mahesh Chinthaka <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> 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.execu
>>>>>>> teRequest(XMLHttpRequestHostObject.java:527)
>>>>>>>
>>>>>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(
>>>>>>> XMLHttpRequestHostObject.java:515)
>>>>>>>
>>>>>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFun
>>>>>>> ction_send(XMLHttpRequestHostObject.java:279)
>>>>>>>
>>>>>>> at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
>>>>>>>
>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>>>>> thodAccessorImpl.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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *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
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> With regards,
>>>> *Manu*ranga Perera.
>>>>
>>>> phone : 071 7 70 20 50
>>>> mail : [email protected]
>>>>
>>>
>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> Cheers,
>> Madhuka Udantha
>> http://madhukaudantha.blogspot.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
>



-- 
Cheers,
Madhuka Udantha
http://madhukaudantha.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to