You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Tom Jordahl <to...@macromedia.com> on 2005/09/08 16:18:21 UTC

[Axis2] printStackTrace

> +            e.printStackTrace();

Probably a mistake, but Axis2 should not have any of these lying around
in it.  All stack traces should be logged, not printed to the console.

This is very unfriendly to users who embed Axis in to their stuff.

Thanks.

--
Tom Jordahl
Macromedia Server Development

> -----Original Message-----
> From: chinthaka@apache.org [mailto:chinthaka@apache.org]
> Sent: Thursday, September 08, 2005 4:31 AM
> To: axis2-cvs@ws.apache.org
> Subject: svn commit: r279536 - in
/webservices/axis2/trunk/java/modules:
> common/src/org/apache/axis2/util/ samples/src/sample/om/binary/
> xml/src/org/apache/axis2/om/impl/
xml/src/org/apache/axis2/om/impl/llom/
> 
> Author: chinthaka
> Date: Thu Sep  8 01:30:35 2005
> New Revision: 279536
> Modified:
>
webservices/axis2/trunk/java/modules/samples/src/sample/om/binary/FIUtil
.j
> ava
> URL:
>
http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/sampl
es
>
/src/sample/om/binary/FIUtil.java?rev=279536&r1=279535&r2=279536&view=di
ff
>
========================================================================
==
> ====
> ---
>
webservices/axis2/trunk/java/modules/samples/src/sample/om/binary/FIUtil
.j
> ava (original)
> +++
>
webservices/axis2/trunk/java/modules/samples/src/sample/om/binary/FIUtil
.j
> ava Thu Sep  8 01:30:35 2005
> @@ -106,6 +106,7 @@
>          } catch (XMLStreamException e) {
> 
>              throw new UnsupportedOperationException();
> 
>          } catch (FileNotFoundException e) {
> 
> +            e.printStackTrace();
> 
>              throw new UnsupportedOperationException();
> 
>          } catch (IOException e) {
> 
>              throw new UnsupportedOperationException();
> 
> 


Re: [Axis2] printStackTrace

Posted by Eran Chinthaka <ch...@opensource.lk>.
Oh, sorry. My Mistake.

I did this when I was debugging. I know we should use loggers for 
debugging, but ....

This will never happen again. :-(

Removed the other printStacktrace statements that were there also.

-- EC

Sanjiva Weerawarana wrote:

>On Thu, 2005-09-08 at 10:18 -0400, Tom Jordahl wrote:
>  
>
>>>+            e.printStackTrace();
>>>      
>>>
>>Probably a mistake, but Axis2 should not have any of these lying around
>>in it.  All stack traces should be logged, not printed to the console.
>>
>>This is very unfriendly to users who embed Axis in to their stuff.
>>    
>>
>
>+1. Could you please open a JIRA issue Tom so that it doesn't get lost?
>
>Sanjiva.
>
>
>  
>

Re: [Axis2] printStackTrace

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Thu, 2005-09-08 at 10:18 -0400, Tom Jordahl wrote:
> > +            e.printStackTrace();
> 
> Probably a mistake, but Axis2 should not have any of these lying around
> in it.  All stack traces should be logged, not printed to the console.
> 
> This is very unfriendly to users who embed Axis in to their stuff.

+1. Could you please open a JIRA issue Tom so that it doesn't get lost?

Sanjiva.