axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r480279 - in /webservices/axis/trunk/c: include/axis/AxisException.hpp src/transport/axis3/HTTPChannel/HTTPChannel.cpp src/transport/axis3/HTTPSSLChannel/HTTPSSLChannel.cpp
Date Tue, 28 Nov 2006 23:30:46 GMT
Author: nadiramra
Date: Tue Nov 28 15:30:45 2006
New Revision: 480279

URL: http://svn.apache.org/viewvc?view=rev&rev=480279
Log:
AXISCPP-943 and AXISCPP-923. Memory leaks when throwing exceptions and exception
messages not informative or correct. 

Modified:
    webservices/axis/trunk/c/include/axis/AxisException.hpp
    webservices/axis/trunk/c/src/transport/axis3/HTTPChannel/HTTPChannel.cpp
    webservices/axis/trunk/c/src/transport/axis3/HTTPSSLChannel/HTTPSSLChannel.cpp

Modified: webservices/axis/trunk/c/include/axis/AxisException.hpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/include/axis/AxisException.hpp?view=diff&rev=480279&r1=480278&r2=480279
==============================================================================
--- webservices/axis/trunk/c/include/axis/AxisException.hpp (original)
+++ webservices/axis/trunk/c/include/axis/AxisException.hpp Tue Nov 28 15:30:45 2006
@@ -509,7 +509,7 @@
     {
         m_iExceptionCode = exceptionCode;
         std::string sMessage = detailMessage ? detailMessage : "";
-        m_sMessage = getMessageForExceptionCode(exceptionCode, defaultMsg) + " " + sMessage;
+        m_sMessage = getMessageForExceptionCode(exceptionCode, defaultMsg) + "\n" + sMessage;
     }
     
     /** 

Modified: webservices/axis/trunk/c/src/transport/axis3/HTTPChannel/HTTPChannel.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/transport/axis3/HTTPChannel/HTTPChannel.cpp?view=diff&rev=480279&r1=480278&r2=480279
==============================================================================
--- webservices/axis/trunk/c/src/transport/axis3/HTTPChannel/HTTPChannel.cpp (original)
+++ webservices/axis/trunk/c/src/transport/axis3/HTTPChannel/HTTPChannel.cpp Tue Nov 28 15:30:45
2006
@@ -447,7 +447,7 @@
             sprintf(buffer, "%d", m_URL.getPort());
             string fullMessage = "Failed to open connection to server at host " +
                                  string(m_URL.getHostName()) + 
-                                 " and port " +  string(buffer) + ". " + m_LastError;
+                                 " and port " +  string(buffer) + ".\n" + m_LastError;
 
             CloseChannel();
             freeaddrinfo( paiAddrInfo0);
@@ -547,7 +547,7 @@
         sprintf(buffer, "%d", m_URL.getPort());
         string fullMessage = "Failed to open connection to server at host " +
                              string(m_URL.getHostName()) + 
-                             " and port " +  string(buffer) + ". " + m_LastError;
+                             " and port " +  string(buffer) + ".\n" + m_LastError;
 
         CloseChannel();
 

Modified: webservices/axis/trunk/c/src/transport/axis3/HTTPSSLChannel/HTTPSSLChannel.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/transport/axis3/HTTPSSLChannel/HTTPSSLChannel.cpp?view=diff&rev=480279&r1=480278&r2=480279
==============================================================================
--- webservices/axis/trunk/c/src/transport/axis3/HTTPSSLChannel/HTTPSSLChannel.cpp (original)
+++ webservices/axis/trunk/c/src/transport/axis3/HTTPSSLChannel/HTTPSSLChannel.cpp Tue Nov
28 15:30:45 2006
@@ -423,7 +423,7 @@
             
             string fullMessage = "Failed to open connection to server " + 
                    string(m_URL.getHostName()) + " at port " + string(pcPort) +
-                   ". Error " + string(pcErr) + PLATFORM_GET_ERROR_MESSAGE( dwError );
+                   ".\nError " + string(pcErr) + PLATFORM_GET_ERROR_MESSAGE( dwError );
 
             throw HTTPTransportException( CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED, fullMessage.c_str());
         }
@@ -514,7 +514,7 @@
         
         string fullMessage = "Failed to open connection to server " + 
                string(m_URL.getHostName()) + " at port " + string(pcPort) +
-               ". Error " + string(pcErr) + PLATFORM_GET_ERROR_MESSAGE( dwError );
+               ".\nError " + string(pcErr) + PLATFORM_GET_ERROR_MESSAGE( dwError );
 
         m_LastError = fullMessage;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message