Re: Possible bug in exception handling.
Wayne, Please open a JIRA if one has not already been opened by you regarding this problem. Nadir K. Amra Wayne Johnson [EMAIL PROTECTED] wrote on 02/26/2007 02:17:37 PM: I was having some problems whenever Axis threw an exception. The problem would corrupt the stack so that VC++ couldn't tell what or where the crash occured. I did find that there were some exceptions that may be at fault (according to our c++ gurus). It boils down to the fact that exceptions must have a copy constructor that allows for a deep copy of the data. Before I filed a Jira, I wanted someone with a bit more experience to say, yah, that could be a problem. I have a patch, that seems to help. Here's the code I came up with: Index: c/src/common/AxisGenException.h === --- c/src/common/AxisGenException.h (revision 510578) +++ c/src/common/AxisGenException.h (working copy) @@ -38,6 +38,11 @@ } AxisGenException(const AxisException e): AxisException (e) { } virtual ~AxisGenException() throw() { } + + AxisGenException(const AxisGenException that) + { +this-setMessage(that.m_iExceptionCode, that.m_sMessage.c_str()); + } }; AXIS_CPP_NAMESPACE_END Index: c/src/transport/axis3/HTTPTransportException.hpp === --- c/src/transport/axis3/HTTPTransportException.hpp(revision 510578) +++ c/src/transport/axis3/HTTPTransportException.hpp(working copy) @@ -40,6 +40,11 @@ // constructor HTTPTransportException(const AxisException e): AxisException (e) { } +HTTPTransportException(const HTTPTransportException that) +{ + this-setMessage(that.m_iExceptionCode, that.m_sMessage.c_str()); +} + // destructor virtual ~HTTPTransportException() throw() { } }; --- Wayne Johnson, | There are two kinds of people: Those 3943 Penn Ave. N. | who say to God, Thy will be done, Minneapolis, MN 55412-1908 | and those to whom God says, All right, (612) 522-7003 | then, have it your way. --C.S. Lewis Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem serializing a complex array
Wayne, Seems to be a problem. When creating JIRA and patch, please attach sample wsdl and soap response. thanks. Nadir K. Amra Wayne Johnson [EMAIL PROTECTED] wrote on 03/01/2007 08:27:10 AM: I've been having problems serializing a bean that contains an array of other beans. It generates a soap packet like: properties xmlns:enc=http://www.w3.org/2001/06/soap-encoding; xmlns:ns3= enc:arrayType=ns3:properties[0] /properties The Java serializer generates (with the same bean): properties xsi:type=ns3:SWSProperty xsi:nil=true/ I get the error from the service: Exception: org.xml.sax.SAXParseException: The value of the attribute prefix=xmlns,localpart=ns3,rawname=xmlns:ns3 is invalid. Prefixed namespace bindings may not be empty. Now I think the problem is the xmlns:ns3=. I've found the code in param.cpp that's generating the weird namespace and I'm working on a patch. Just want someone to confirm that what I'm seeing is incorrect, and/or whether maybe we should have detected that the original array pointer was NULL as is being handled by the java client. --- Wayne Johnson, | There are two kinds of people: Those 3943 Penn Ave. N. | who say to God, Thy will be done, Minneapolis, MN 55412-1908 | and those to whom God says, All right, (612) 522-7003 | then, have it your way. --C.S. Lewis Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eliminate soapenv:header
Atanacio Reyes wrote: Hi all: I have two questions: 1. How I can remove the soapenv:Header tag from the envelope soap message in axis2c? This needs to be fixed in the Axis2/C engine, please raise a Jira on this. 2. How I can add the SOAPAction: someAction in the HTTP header. AXIS2_OPTIONS_SET_SOAP_ACTION(options, env, someAction); Please have a look at samples/user_guide/clients/echo_blocking_soap11.c for a sample. Samisa... thanks. Atanacio Reyes Valenzuela. Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SimpleTypeMapper.getArrayList(OMELement) gives NullPointerException
I have filed a JIRA bug for the same. The key is AXIS2-2288 Regards Niles Davanum Srinivas [EMAIL PROTECTED] wrote: Nilesh, Please create a JIRA bug with your sample code for us to recreate the problem. thanks, dims On 3/2/07, Nilesh Ghorpade wrote: Hi, On using the SimpleTypeMapper.getArrayList(OMELement) API for converting the OMElement to an ArrayList I get a NullPointerException. Does anyone know the solution for the same? I have pasted the StackTrace below. Thanks and Regards, Nilesh STACK TRACE === org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199) at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:558) at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:569) at org.apache.axiom.om.impl.llom.OMElementImpl.getChildren(OMElementImpl.java:281) at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getArrayList(SimpleTypeMapper.java:112) Everyone is raving about the all-new Yahoo! Mail beta. -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA.
Re: SimpleTypeMapper.getArrayList(OMELement) gives NullPointerException
Good Morning Niles How was the original OMEelement allocated? How is the SimpleTypeMapper allocated? I look forward to seeing the code to re-create this scenario Thanks, Martin -- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Nilesh Ghorpade To: axis-user@ws.apache.org ; [EMAIL PROTECTED] Sent: Sunday, March 04, 2007 4:38 AM Subject: Re: SimpleTypeMapper.getArrayList(OMELement) gives NullPointerException I have filed a JIRA bug for the same. The key is AXIS2-2288 Regards Niles Davanum Srinivas [EMAIL PROTECTED] wrote: Nilesh, Please create a JIRA bug with your sample code for us to recreate the problem. thanks, dims On 3/2/07, Nilesh Ghorpade wrote: Hi, On using the SimpleTypeMapper.getArrayList(OMELement) API for converting the OMElement to an ArrayList I get a NullPointerException. Does anyone know the solution for the same? I have pasted the StackTrace below. Thanks and Regards, Nilesh STACK TRACE === org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199) at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:558) at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpljava:569) at org.apache.axiom.om.impl.llom.OMElementImpl.getChildren(OMElementImpl.java:281) at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getArrayList(SimpleTypeMapper.java:112) Everyone is raving about the all-new Yahoo! Mail beta. -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA.
WS-Addressing SOAP binding question
I was wondering whether axis2 supports the following WS-Addressing SOAP Binding requirements from (http://www.w3.org/TR/2006/REC-ws-addr-soap-20060509/) 5.2 Use of Non-Anonymous Addresses in SOAP Response Endpoints 5.2.1 SOAP 1.1/HTTP When http://www.w3.org/2005/08/addressing/anonymous; is not specified for the response endpoint, then the message SHOULD be part of a binding that supports not returning a SOAP envelope in the HTTP response (e.g. see [SOAP 1.1 Request Optional Response HTTP Binding]). Any response message SHOULD be sent using a separate connection and using the address value specified by response endpoint. Note that other specifications MAY define special URIs that have other behaviors (similar to the anonymous URI). 5.2.2 SOAP 1.2 When http://www.w3.org/2005/08/addressing/anonymous; is not specified for the response endpoint, then any response SHOULD NOT be the http://www.w3.org/2003/05/soap/mep/OutboundMessage property of the same instance of the SOAP request-response MEP [SOAP 1.2 Adjuncts]. For instance, a SOAP 1.2 HTTP binding that supports a one-way MEP could put the reply message in a separate one-way MEP and a separate HTTP request. As in SOAP 1.1/HTTP, note that other specifications MAY define special URIs that have other behaviors (similar to the anonymous URI) cheers /jima - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2/C Static Deployment Engine in Java
Hi, The argument made in this blog post http://www.backdrifter.com/2007/02/16/axis2c-static-deployment-engine/ is compelling. Is there an effort to provide static deployment engine for Axis2/Java as well ? thanx -yogen
Re: Session Management for axis2 ServiceClient
Deepal, the right thing is to echo any and all cookies the server sends down. Its not ok to pick and choose using specific names. Sanjiva. Deepal Jayasinghe wrote: Hi Thomas; Please create a JIRA , seems like we need to support different session ids , at the moment we support JSSION but not ssnid. Thanks Deepal Hi, I'm having a problem with session using a Service Client. I have two methods calling two different operations of a web service. The webservice is not implemented in axis2. I need to use a session so the web service can identify the axis2 client by each call. My class defines a single ServiceClient to make two different call. It has following option turned on: client.getOptions().setManageSession(*true* ); When I make the first call the server runs the webservice and responds correctly. Following header is then passed: HTTP/1.0 200 OK Set-Cookie: ssnid=4383SO95jARAuR1Ad3Cc6clMdI1KEQo-62; path=/; Content-Type: text/xml;charset=utf-8 Connection: Keep-Alive Content-Length: 646 By the second call the client does not put the session data back to identify itself. Should it be able to use that Set-Cookie Information to identify itself? So it passes only this information: SOAPAction: urn:anonOutInOp User-Agent: Axis2 Authorization: Basic [based64usernamepassword] Host: localhost:5554 Content-Length: 453 Content-Type: text/xml; charset=UTF-8 There is also no new header for identification of the session. So the application starts a new session and returns an error, because the cached data is not available. Can someone help me? I'm using axis2 1.1.1 Bye and Thanks a lot, Thomas -- Thomas Michelbach -- Sanjiva Weerawarana, Ph.D. Founder Director; Lanka Software Foundation; http://www.opensource.lk/ Founder, Chairman CEO; WSO2, Inc.; http://www.wso2.com/ Director; Open Source Initiative; http://www.opensource.org/ Member; Apache Software Foundation; http://www.apache.org/ Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]