Guththila and mod_deflate

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Guththila and mod_deflate

Jose M Medina V-2
I’m trying use guththila and mod_deflate in apache and I having the following problem.

When the xml is big, guththila is not completing the parsing, so I retrieving an incomplete information in my service.

Anybody has this problem or any idea on how can I resolve?

Any help is very appreciated.

Regards,

------------------------------------------------------------
José M. Medina V.
Wesam Consulting
[hidden email]
Mobile: +58(416)613-3302 +58(414)019-0580
Ofc:     +58(212)959-8468 Ext. 204
BB pin: 21EEDDB5
Caracas - Venezuela




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Guththila and mod_deflate

Thomas Gentsch
Hola Jose,

with Axis2C 1.6 I had something similar a while ago and after long hours
of debugging I found that guththila caused the problem. I replaced
guththila by libxml2 and the problems went away - so that would be my
recommendation.

I believe I even submitted a defect in Jira, maybe search for guththila
for details.

Regards,
  tge

On Sun, 2014-03-02 at 09:09 -0430, Jose M Medina V wrote:

> I’m trying use guththila and mod_deflate in apache and I having the following problem.
>
> When the xml is big, guththila is not completing the parsing, so I retrieving an incomplete information in my service.
>
> Anybody has this problem or any idea on how can I resolve?
>
> Any help is very appreciated.
>
> Regards,
>
> ------------------------------------------------------------
> José M. Medina V.
> Wesam Consulting
> [hidden email]
> Mobile: +58(416)613-3302 +58(414)019-0580
> Ofc:     +58(212)959-8468 Ext. 204
> BB pin: 21EEDDB5
> Caracas - Venezuela
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Guththila and mod_deflate

Jose M Medina V-2
I already test libxml2 for this problem, but when I receive the xml I get the following error in axis.log

[Wed Feb 19 16:09:59 2014] [error] libxml2_reader_wrapper.c(990) Extra content at the end of the document
 -- SEVERITY_ERROR
[Wed Feb 19 16:09:59 2014] [error] libxml2_reader_wrapper.c(464)  error occurred in reading xml stream
[Wed Feb 19 16:09:59 2014] [critical] soap_builder.c(887) SOAP message does not have a SOAP envelope element


After that I receive a http 500 error code on the client side.

Regards,

------------------------------------------------------------
José M. Medina V.
Wesam Consulting
[hidden email]
Mobile: +58(416)613-3302 +58(414)019-0580
Ofc:     +58(212)959-8468 Ext. 204
BB pin: 21EEDDB5
Caracas - Venezuela



On Mar 2, 2014, at 9:24 AM, Thomas Gentsch <[hidden email]> wrote:

> Hola Jose,
>
> with Axis2C 1.6 I had something similar a while ago and after long hours
> of debugging I found that guththila caused the problem. I replaced
> guththila by libxml2 and the problems went away - so that would be my
> recommendation.
>
> I believe I even submitted a defect in Jira, maybe search for guththila
> for details.
>
> Regards,
>  tge
>
> On Sun, 2014-03-02 at 09:09 -0430, Jose M Medina V wrote:
>> I’m trying use guththila and mod_deflate in apache and I having the following problem.
>>
>> When the xml is big, guththila is not completing the parsing, so I retrieving an incomplete information in my service.
>>
>> Anybody has this problem or any idea on how can I resolve?
>>
>> Any help is very appreciated.
>>
>> Regards,
>>
>> ------------------------------------------------------------
>> José M. Medina V.
>> Wesam Consulting
>> [hidden email]
>> Mobile: +58(416)613-3302 +58(414)019-0580
>> Ofc:     +58(212)959-8468 Ext. 204
>> BB pin: 21EEDDB5
>> Caracas - Venezuela
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Guththila and mod_deflate

Thomas Gentsch

Hmmm, don't know, possibly either your XML structure is really wrong, or
maybe you are using it somehow different than I did - as said, I did not
have any further problems.
Maybe setting the loglevel to DEBUG might give some additional info?
Also, there is a tool (part of Axis2c) named tcpmon, which acts similar
to a proxy and prints the request/response traffic to stdout - this way
you can see what is going over the wire.

HTH :-)
  tge

On Sun, 2014-03-02 at 09:33 -0430, Jose M Medina V wrote:

> I already test libxml2 for this problem, but when I receive the xml I get the following error in axis.log
>
> [Wed Feb 19 16:09:59 2014] [error] libxml2_reader_wrapper.c(990) Extra content at the end of the document
>  -- SEVERITY_ERROR
> [Wed Feb 19 16:09:59 2014] [error] libxml2_reader_wrapper.c(464)  error occurred in reading xml stream
> [Wed Feb 19 16:09:59 2014] [critical] soap_builder.c(887) SOAP message does not have a SOAP envelope element
>
>
> After that I receive a http 500 error code on the client side.
>
> Regards,
>
> ------------------------------------------------------------
> José M. Medina V.
> Wesam Consulting
> [hidden email]
> Mobile: +58(416)613-3302 +58(414)019-0580
> Ofc:     +58(212)959-8468 Ext. 204
> BB pin: 21EEDDB5
> Caracas - Venezuela
>
>
>
> On Mar 2, 2014, at 9:24 AM, Thomas Gentsch <[hidden email]> wrote:
>
> > Hola Jose,
> >
> > with Axis2C 1.6 I had something similar a while ago and after long hours
> > of debugging I found that guththila caused the problem. I replaced
> > guththila by libxml2 and the problems went away - so that would be my
> > recommendation.
> >
> > I believe I even submitted a defect in Jira, maybe search for guththila
> > for details.
> >
> > Regards,
> >  tge
> >
> > On Sun, 2014-03-02 at 09:09 -0430, Jose M Medina V wrote:
> >> I’m trying use guththila and mod_deflate in apache and I having the following problem.
> >>
> >> When the xml is big, guththila is not completing the parsing, so I retrieving an incomplete information in my service.
> >>
> >> Anybody has this problem or any idea on how can I resolve?
> >>
> >> Any help is very appreciated.
> >>
> >> Regards,
> >>
> >> ------------------------------------------------------------
> >> José M. Medina V.
> >> Wesam Consulting
> >> [hidden email]
> >> Mobile: +58(416)613-3302 +58(414)019-0580
> >> Ofc:     +58(212)959-8468 Ext. 204
> >> BB pin: 21EEDDB5
> >> Caracas - Venezuela
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]
> >>
> >



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

答复: Guththila and mod_deflate

Liubaoqi
In reply to this post by Thomas Gentsch
Yes, with Axis2C 1.5

After entering the following function guththila_next(guththila_xml_parser.c), it did not come out

I suspect entered an infinite loop causes memory leak

-----邮件原件-----
发件人: Thomas Gentsch [mailto:[hidden email]]
发送时间: 2014年3月2日 21:55
收件人: Apache AXIS C User List
主题: Re: Guththila and mod_deflate

Hola Jose,

with Axis2C 1.6 I had something similar a while ago and after long hours of debugging I found that guththila caused the problem. I replaced guththila by libxml2 and the problems went away - so that would be my recommendation.

I believe I even submitted a defect in Jira, maybe search for guththila for details.

Regards,
  tge

On Sun, 2014-03-02 at 09:09 -0430, Jose M Medina V wrote:

> I’m trying use guththila and mod_deflate in apache and I having the following problem.
>
> When the xml is big, guththila is not completing the parsing, so I retrieving an incomplete information in my service.
>
> Anybody has this problem or any idea on how can I resolve?
>
> Any help is very appreciated.
>
> Regards,
>
> ------------------------------------------------------------
> José M. Medina V.
> Wesam Consulting
> [hidden email]
> Mobile: +58(416)613-3302 +58(414)019-0580
> Ofc:     +58(212)959-8468 Ext. 204
> BB pin: 21EEDDB5
> Caracas - Venezuela
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

AW: Guththila and mod_deflate

Andreas.Voellmy
In reply to this post by Jose M Medina V-2
Hi Jose

I had a very similar problem with mod_log.
The problem there was, that Axis unpacks the elements only, when they are used. In certain cases it can happen, that the unpacking is not complete when the additional processing modules (like mod_log - probably also mod_deflate) are called.
Mod logging had the effect, to go through the node list without using the same parsing mechanisms and so it "deleted" the rest of the nodes without storing them into the return-node-list.

My change in mod_log was:

     if (soap_envelope)
     {
-        /* ensure SOAP buider state is in sync */
+        /* ensure SOAP buider state is in sync and fully loaded*/
         axiom_soap_envelope_get_body(soap_envelope, env);
+
+        struct axiom_soap_builder *soap_builder = axiom_soap_envelope_get_soap_builder(soap_envelope, env);
+        axiom_node_t* base_node = axiom_soap_envelope_get_base_node(soap_envelope, env);
+
+        if (soap_builder && base_node)
+        {
+           while(!axiom_node_is_complete(base_node, env))
+           {
+              if (axiom_soap_builder_next(soap_builder, env)==AXIS2_FAILURE)
+              {
+                   break;
+              }
+           }
+        }
         ret_node = axiom_soap_envelope_get_base_node(soap_envelope, env);

Maybe that helps you.

Regards
Res
--
Swiss Life
Andreas Völlmy
General-Guisan-Quai 40
Postfach, 8022 Zürich
Schweiz
T 043 284 79 59
F 043 338 79 59
[hidden email]
www.swisslife.ch
 

-----Ursprüngliche Nachricht-----
Von: Jose M Medina V [mailto:[hidden email]]
Gesendet: Sonntag, 2. März 2014 14:39
An: Apache AXIS C User List
Betreff: Guththila and mod_deflate

I'm trying use guththila and mod_deflate in apache and I having the following problem.

When the xml is big, guththila is not completing the parsing, so I retrieving an incomplete information in my service.

Anybody has this problem or any idea on how can I resolve?

Any help is very appreciated.

Regards,

------------------------------------------------------------
José M. Medina V.
Wesam Consulting
[hidden email]
Mobile: +58(416)613-3302 +58(414)019-0580
Ofc:     +58(212)959-8468 Ext. 204
BB pin: 21EEDDB5
Caracas - Venezuela




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

AW: Guththila and mod_deflate

Stadelmann Josef-2
In reply to this post by Jose M Medina V-2
Jose

I had a very similar problem years ago using axis2/C 1.2;

However we did not use guththila but libxml2.

And we found that we used/passed integer pointers to routines in axiom/libxml2 pointing to our  (xml-)buffers.

An integer pointer is of 16 bit size only, so it can only address a range from 0 to 65535.

Maximum address capability of a 16-bit-size-pointer is calculated as 2^16-1

When we used 32 bit pointers all was gone, because now you can address 2^32-1 = 0 to 4'294'967'295

Josef



-----Ursprüngliche Nachricht-----
Von: Jose M Medina V [mailto:[hidden email]]
Gesendet: Sonntag, 2. März 2014 14:39
An: Apache AXIS C User List
Betreff: Guththila and mod_deflate

I'm trying use guththila and mod_deflate in apache and I having the following problem.

When the xml is big, guththila is not completing the parsing, so I retrieving an incomplete information in my service.

Anybody has this problem or any idea on how can I resolve?

Any help is very appreciated.

Regards,

------------------------------------------------------------
José M. Medina V.
Wesam Consulting
[hidden email]
Mobile: +58(416)613-3302 +58(414)019-0580
Ofc:     +58(212)959-8468 Ext. 204
BB pin: 21EEDDB5
Caracas - Venezuela




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]