Re: How to fix AxisError: "ServiceContext and OperationContext.parent do not match!"

Kishanthan Thangarajah <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAHt68vHcLOz+ZumLvA79cYZL3Mwn=Wwr7UnERnp9HSqXE7uwOA@mail.gmail.com>
Here is an explanation on the error.

Before that, If you are not familiar with axis2 context hierarchy, I
would recommend to look at it [1].

The error describes that there is a mismatch of ServiceContext object from
current Axis2 Client (OutInAxisOperationClient) to OperationContext's
parent, which is also a ServiceContext. When adding a MessageContext to
Axis2 Client, a check is made, comparing the ServiceContext objects, to
ensure the correct behavior (hierarchy). So may be an issue at
your client side code. Can you post code snippet which deals with axis2,
from your servlet?

Thanks,
Kishanthan
[1]
http://axis.apache.org/axis2/java/core/docs/Axis2ArchitectureGuide.html#bmInfoMod

On Wed, Jul 3, 2013 at 10:24 AM, Yashwanth Rajaram -X (yrajaram - ZENSAR
TECHNOLOGIES INC at Cisco) <[email protected]> wrote:

>  Hi All:****
>
> ** **
>
> We have been seeing the following error for the past couple of days.****
>
> **1)      **What does this error mean? Does this exception cause the
> thread of execution on the web container to hang or crash?****
>
> **2)      **What causes this error to occur?****
>
> **3)      **How to fix this?****
>
> ** **
>
> 2013-07-03 01:47:47,165 [WebContainer : 0] ERROR com.xxx.yyy.servlet.ZZZ
> - Exception in performABC():****
>
> org.apache.axis2.engine.AxisError: ServiceContext and
> OperationContext.parent do not match!****
>
>         at
> org.apache.axis2.context.MessageContext.setServiceContext(MessageContext.java:1414)
> ****
>
>         at
> org.apache.axis2.description.OutInAxisOperationClient.addMessageContext(OutInAxisOperation.java:127)
> ****
>
>         at com.xxx.yyy.servlet.ZZZ.performABC(ZZZ.java:511)****
>
>         at com.xxx.yyy.servlet.ZZZ.checkComponents(ZZZ.java:236)****
>
>         at com.xxx.yyy.servlet.ZZZ.doGet(ZZZ.java:76)****
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)***
> *
>
> ** **
>
> Sincerely,****
>
> Yashwanth****
>
> Technical Architect, EBIS****
>
> ** **
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.