You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by fachhoch <fa...@gmail.com> on 2012/02/10 22:04:14 UTC

Unknown server error: MarshalException

I am the  service provider , when my clients call my service They get an
error , 



 At my side  in the logs there is no  exception , when I enabled debug the
logginginterceptor  this is what I got .
I am not posting the entire response its very big , I am only posting the
end part of   response 




please advice me what could be the issue.



as there is no e

--
View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5473778.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Unknown server error: MarshalException

Posted by Daniel Kulp <dk...@apache.org>.
On Monday, February 13, 2012 7:41:34 AM fachhoch wrote:
> Please advice me what could cause this error ? is this anything to do with
> weblogic ?  Anything with heap size ?

In almost all cases, this error falls into one of two areas:

1) Client side - for some reason, the Client has closed the connection.  The 
server is trying to write the response to the client, but the client is no 
longer listening for it.

2) Poorly written ServletFilter doing some strange buffering.  You have a 
bunch of filters on the Jetty stack so this was an original thought, but they 
aren't there on the Weblogic stack.  Thus, it's likely #1 somehow.

Dan



> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp547
> 3778p5479605.html Sent from the cxf-user mailing list archive at Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Re: Unknown server error: MarshalException

Posted by Glen Mazza <gm...@talend.com>.
If your web service calls involve uber-uber-huge SOAP request messages, 
yes, memory errors could potentially be kicking in (although it is rare 
that SOAP calls get *that* huge).  What I would recommend doing is using 
Wireshark[1] to trap the SOAP request of a message that raises this 
exception, than copy that SOAP request into soapUI and try to replicate 
the error.

Once you can replicate it via soapUI, more detective work is needed.  
Get that SOAP request to the smallest possible SOAP request that 
replicates the error--it could be that it's not the size being the error 
but some strange incoming character that is causing the marshalling 
error to occur.  Or, as Dan wrote, it may be that the web service is 
fine, it's always accepting whatever soapUI feeds it but your actual 
customer's SOAP client is timing out.

Is it weblogic[2] related?  Possibly, as it may use different parsing 
libraries than vanilla Tomcat would.  Another potential check is to run 
your webservice on Tomcat[3] and see if the error repeats there.

HTH,
Glen

[1] http://www.jroller.com/gmazza/entry/soap_calls_over_wireshark
[2] http://www.jroller.com/gmazza/entry/deploying_webservices_on_weblogic
[3] http://www.jroller.com/gmazza/entry/web_service_tutorial

On 02/13/2012 10:41 AM, fachhoch wrote:
> Please advice me what could cause this error ? is this anything to do with
> weblogic ?  Anything with heap size ?
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5479605.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza


Re: Unknown server error: MarshalException

Posted by fachhoch <fa...@gmail.com>.
Please advice me what could cause this error ? is this anything to do with
weblogic ?  Anything with heap size ?


--
View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5479605.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Unknown server error: MarshalException

Posted by fachhoch <fa...@gmail.com>.
In   production we use weblogic , here  are the logs from production





--
View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5476170.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Unknown server error: MarshalException

Posted by Johan Edstrom <se...@gmail.com>.
I'd start experimenting here : http://wiki.eclipse.org/Jetty/Howto/Configure_Form_Size

On Feb 11, 2012, at 6:01 PM, fachhoch wrote:

> I enabled the logs and this is the exception stack trace 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5476038.html
> Sent from the cxf-user mailing list archive at Nabble.com.


Re: Unknown server error: MarshalException

Posted by fachhoch <fa...@gmail.com>.
I enabled the logs and this is the exception stack trace 


--
View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5476038.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Unknown server error: MarshalException

Posted by fachhoch <fa...@gmail.com>.
this error happens if the request object is large , I mean the service method
parameters  is a pojo which has a list of other pojos

some thing 


if the size of  bs is more than 1000 , then  the service is sending 
marshalexception , but if its lesser than 1000 then no problem , why  should
this  depend  request object  size ?

 



--
View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5475421.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Unknown server error: MarshalException

Posted by Johan Edstrom <se...@gmail.com>.
Your server code throws a marshal exception.
Put a breakpoint in a debugger and step it.

On Feb 10, 2012, at 4:17 PM, fachhoch wrote:

> my service   method parameter  is 
> 
> 
> 
> 
> 
> my external clients get this error when the auditSearchRequest  number is
> more than 1000, 
> they tried calling with 1000  auditSearchRequest    it worked 
> , but when they called with 1700  auditSearchRequest      it failed with
> this error, please advice me as there is no exception at server side , just
> cannot see what is causing this issue.
> Please advice me.
> 
> 
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5474000.html
> Sent from the cxf-user mailing list archive at Nabble.com.


Re: Unknown server error: MarshalException

Posted by fachhoch <fa...@gmail.com>.
my service   method parameter  is 





my external clients get this error when the auditSearchRequest  number is
more than 1000, 
they tried calling with 1000  auditSearchRequest    it worked 
 , but when they called with 1700  auditSearchRequest      it failed with
this error, please advice me as there is no exception at server side , just
cannot see what is causing this issue.
Please advice me.





--
View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5474000.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Unknown server error: MarshalException

Posted by fachhoch <fa...@gmail.com>.
I mean external clients. My   external are sending a very big request like 
more than 1000 parameters. I did not try that big request so I dont know If
I will be able to recreate it.


in the server side I   query database   populate the response object also I
use  Datahandler  ,
so  enabled mtom.

Could this be becasue of   binary data (as I send several files)   or any
data  my query returned ?







--
View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5473885.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Unknown server error: MarshalException

Posted by Glen Mazza <gm...@talend.com>.
You say "when my clients" -- do you mean external clients, or right now 
your own (you're doing internal testing) -- because if your clients work 
and external ones don't, it's best to look at the SOAP requests 
themselves, perhaps using Wireshark, to see what the difference is.

As for the "MarshalException" error, marshalling is the act of pushing 
Java bean values into XML to place on the wire back to the client, where 
it will be "unmarshalled" back into Java classes.  I'm not sure what 
you're doing service-side, but there appears to be some conversion 
problem that's preventing the XML from being created.

Glen

On 02/10/2012 04:04 PM, fachhoch wrote:
> I am the  service provider , when my clients call my service They get an
> error ,
>
>
>
>   At my side  in the logs there is no  exception , when I enabled debug the
> logginginterceptor  this is what I got .
> I am not posting the entire response its very big , I am only posting the
> end part of   response
>
>
>
>
> please advice me what could be the issue.
>
>
>
> as there is no e
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Unknown-server-error-MarshalException-tp5473778p5473778.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza