Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 7159 invoked from network); 16 Jun 2006 09:12:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2006 09:12:30 -0000 Received: (qmail 74013 invoked by uid 500); 16 Jun 2006 09:12:21 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 73998 invoked by uid 500); 16 Jun 2006 09:12:20 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 73987 invoked by uid 99); 16 Jun 2006 09:12:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 02:12:20 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.72.192.242] (HELO fmmailgate04.web.de) (217.72.192.242) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 02:12:18 -0700 Reveived: from web.de by fmmailgate04.web.de (Postfix) with SMTP id 8C4B619807 for ; Fri, 16 Jun 2006 11:11:56 +0200 (CEST) Received: from [62.134.32.25] by freemailng1103.web.de with HTTP; Fri, 16 Jun 2006 11:11:56 +0200 Date: Fri, 16 Jun 2006 11:11:56 +0200 Message-Id: <1533842490@web.de> MIME-Version: 1.0 From: studium-sbr@web.de To: axis-user@ws.apache.org Subject: Re: [axis2] problem with Userexception and AxisFault - Part 2 Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sorry, apologies to me. Chinthaka already commented on this:=20 http://marc.theaimsgroup.com/=3Fl=3Daxis-dev&m=3D115039522426623&w=3D2 > -----Urspr=FCngliche Nachricht----- > Von: axis-user@ws.apache.org > Gesendet: 15.06.06 23:53:28 > An: axis-user@ws.apache.org > Betreff: [axis2] problem with Userexception and AxisFault - Part 2 > Hi to the list, >=20 > concerning this problem, I opened an issue and the problem is (somehow) = solved. For those interested in, have a look at this: > http://issues.apache.org/jira/browse/AXIS2-801=20 > Use the nightly build of 07.06.2006. >=20 > Chinthaka was so kind to fix this and to comment on a few question I had= regarding this issue. >=20 > Unfortunately there are three things left to be answered, maybe someone = from the list could help:=20 > 1) I read that Axis2 uses SOAP 1.2 per default, so I wondered why my SOA= P-response is SOAP 1.1. I used SOAP12Factory to build the SOAPFault, so wh= y this =3F=20 > 2) How can I set that the server is the errorcause, till the response sa= ys 'Client' =3F=20 > 3) If I don't use stubs and skeletons from wsdl2java generation, do I ha= ve to create the SOAPFaults manually like I did=3F Or is there a nicer way t= o do that. If manually, so then Userexptions-classes do not make really se= nse, do they=3F=20 >=20 > Thanks in advance for clearing this >=20 > Bille >=20 >=20 >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: axis-user@ws.apache.org > > Gesendet: 02.06.06 21:38:56 > > An: axis-user@ws.apache.org > > Betreff: Re: [axis2] problem with Userexception and AxisFault >=20 >=20 > > Bille, > >=20 > > Please open an issue - http://issues.apache.org/jira/ with your custom= > > code for throwing an exception. > >=20 > > thanks, > > dims > >=20 > > On 6/2/06, studium-sbr@web.de wrote: > > > Sorry for putting up the thread again, > > > > > > I did not manage to solve the problem. > > > Could someone please be so kind and provide some working code with t= he service throwing an userException, which is send back to the client wit= h all the details and messages set while instantiating the Exception. > > > I did not use codegeneration using WSDL. > > > > > > Any hints or links are very appreciated. This thing is driving me ma= d > > > > > > Thanks a lot > > > > > > Bille > > > > > > > > > > > > > > Hi to the list, > > > > > > > > > > > > > > > > I have a service implementation which throws an UserExcept= ion > > > > > > > > (MyException extends RemoteException). > > > > > > > > All works fine, but in the response I could not find my > > > > > > individual > > > > > > > > message and details. It just looks like this: > > > > > > > > > > > > > > > > > > > > > > > > soapenv:Client > > > > > > > > unknown > > > > > > > > > > > > > > > > > > > > > > > > org.apache.axis2.AxisFault > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusi= nessLogic(RawXMLINOutMessageReceiver.java:102) > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.rece= ive(AbstractInOutSyncMessageReceiver.java:37) > > > > > > > > at > > > > > > > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java= :454) > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPo= stRequest(HTTPTransportUtils.java:284) > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.j= ava:136) > > > > > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.jav= a:709) > > > > > > > > at > > > > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:80= 2) > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter= (ApplicationFilterChain.java:237) > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Applica= tionFilterChain.java:157) > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWra= pperValve.java:214) > > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardValveContext.invokeNext(Standar= dValveContext.java:104) > > > > > > > > .... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > .... > > > > > > > > > > > > > > > > I debugged the service, and in class > > > > > > > > RawXMLINOutMessageReceiver::invokeBusinessLogic() my > > > > > > service-method > > > > > > > > is called and throws the exception. The exception is of ty= pe > > > > > > > > InvocationTargetException and has as a member variable cal= led > > > > > > > > "target" my userdefined excpetion, with all the details an= d > > > > > > messages > > > > > > > > I defined. > > > > > > > > invokeBusinessLogic() catches this exception and throws an= > > > > > > AxisFault > > > > > > > > using my userException, like this: > > > > > > > > throw new AxisFault(e.getMessage()); > > > > > > > > The message member of the InvocationTargetException is nul= l !! so > > > > > > all > > > > > > > > my user definitions are gone. > > > > > > > > > > > > > > > > Could someone please shed some light on this. Is there any= other > > > > > > > > setting I missed. > > > > > > > > > > > > > > > > > > > By the way, the strange thing is that the faultCode says > > > > > > > > soapenv:Client !!! > > > > > > > > > > > > > > > > Thanks a lot for any hints. > > > > > > > > I was not able to find any tutorial or HowTo on ErrorHandl= ing in > > > > > > > > Axis...=3F! > > > > > > > > > > > > > > > > Bille > > > > > > > > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F > > > Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren E-Mail-Postf= ach! > > > Mehr Infos unter http://freemail.web.de/home/landingpad/=3Fmc=3D021131 > > > > > > > > > --------------------------------------------------------------------= - > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > >=20 > >=20 > > --=20 > > Davanum Srinivas : http://wso2.com/blogs/ > >=20 > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > >=20 >=20 >=20 > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F > Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren E-Mail-Postfach!= =09 > Mehr Infos unter http://freemail.web.de/home/landingpad/=3Fmc=3D021131 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org >=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/=3Fmc=3D100071&distributionid=3D000000000071 --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org