Please find the public jira [1] for this issue. and the patch.

[1] https://wso2.org/jira/browse/DS-879


On Mon, May 25, 2015 at 11:49 AM, Madhawa Gunasekara <[email protected]>
wrote:

> Hi all,
>
> when we are trying to get JSON response in tenant mode, exception will
> occur. Therefore I have done some changes to fix the issue.
>
>    - set the tenantOutMsgContext's AxisOperation to mainOutMsgContext in
>    MultitenantMessageReceiver.java (line# 415-421)
>
>
>    - in JsonFormatter.java, I have retrieve the schemas from
>    outMsgCtxt.getAxisOperation().getAxisService().getSchema()   (line# 90)
>
>
> I have able to fix the issue doing above changes, But when I try to build
> the carbon-kernel-patch0010 with test cases. Json related test cases are
> failing.
>
> In test cases, the schema is set to the AxisService and the AxisService is
> set to MessageContext. therefore null pointer exception will occur. because
> AxisService can't retrieve by getAxisOperation.getAxisService method.
>
> Also I have tried to set the AxisService to mainOutMsgContext in
> MultitenantMessageReceiver.java then I found null pointer exception in
> org.wso2.carbon.statistics.module.InOutMEPHandler. I have attached the null
> pointer exception also
>
>
> as per offline chat with Jayanga, He also couldn't find any wrong in these
> changes, but He told me to check that, why we need to set AxisOperation,
> because without setting the AxisOperation, we can't retrieve the
> elementQname in (JsonFormatter.java -line# 87).
>
> and also I couldn't find any setAxisOperation method calls in
> MessageContext.java file as well.
>
>
> Jayanga mentioned about some life cycles for these AxisOperations and
> AxisServices, I have no idea about those life cycles.
> Do these changes will effect those life cycles ?
>
> applying above mentioned changes json response works fine, but still Json
> related test cases are failing.
>
>
> Thanks,
>
> Madhawa.
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> <http://madhawa-gunasekara.blogspot.com>*
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> <http://lk.linkedin.com/in/mgunasekara>*
>



-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
<http://madhawa-gunasekara.blogspot.com>*
linkedin: *http://lk.linkedin.com/in/mgunasekara
<http://lk.linkedin.com/in/mgunasekara>*

Attachment: patch-json
Description: Binary data

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to