diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-07-13 09:23:19 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-07-13 12:45:57 +0200 |
commit | cdaddecc5e3ec93294492b3efc38393c91459e10 (patch) | |
tree | b98830825aa14057ac41cf3d7a98502cbf6be5df | |
parent | c26d4d34467008418ebf138412e87886694c326c (diff) |
java: printStackTrace always to stderr
like 3d3b3f656f92790225b89aa31ee61163fb2fc7e5
Change-Id: I6e80717de009e8a3a89ffc80cb945cc832917f8c
109 files changed, 386 insertions, 386 deletions
diff --git a/forms/qa/integration/forms/ControlValidation.java b/forms/qa/integration/forms/ControlValidation.java index 7bab946e4cd9..ca8f2f3a8107 100644 --- a/forms/qa/integration/forms/ControlValidation.java +++ b/forms/qa/integration/forms/ControlValidation.java @@ -98,7 +98,7 @@ public class ControlValidation extends complexlib.ComplexTestCase implements com } catch ( com.sun.star.uno.Exception e ) { - e.printStackTrace( System.out ); + e.printStackTrace( System.err ); } } diff --git a/forms/qa/integration/forms/SingleControlValidation.java b/forms/qa/integration/forms/SingleControlValidation.java index cd1a7070665e..7cadf9eb0262 100644 --- a/forms/qa/integration/forms/SingleControlValidation.java +++ b/forms/qa/integration/forms/SingleControlValidation.java @@ -131,7 +131,7 @@ public class SingleControlValidation implements XFormComponentValidityListener } catch( java.lang.Exception e ) { - e.printStackTrace( System.out ); + e.printStackTrace( System.err ); } } @@ -171,7 +171,7 @@ public class SingleControlValidation implements XFormComponentValidityListener } catch( com.sun.star.uno.Exception e ) { - e.printStackTrace( System.out ); + e.printStackTrace( System.err ); } } diff --git a/forms/qa/integration/forms/TestCase.java b/forms/qa/integration/forms/TestCase.java index 14faad10e53b..54f5b1ff8abd 100644 --- a/forms/qa/integration/forms/TestCase.java +++ b/forms/qa/integration/forms/TestCase.java @@ -73,7 +73,7 @@ public abstract class TestCase extends complexlib.ComplexTestCase implements com } catch ( java.lang.Exception e ) { - e.printStackTrace( System.out ); + e.printStackTrace( System.err ); } } @@ -93,7 +93,7 @@ public abstract class TestCase extends complexlib.ComplexTestCase implements com } catch ( com.sun.star.uno.Exception e ) { - e.printStackTrace( System.out ); + e.printStackTrace( System.err ); } } diff --git a/odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java b/odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java index ab07ccc4564e..6b6c5a12ed92 100644 --- a/odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java +++ b/odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java @@ -134,7 +134,7 @@ public class TestJavaComponent { System.out.println( "UNO Exception caught: " + e ); System.out.println( "Message: " + e.getMessage() ); - e.printStackTrace(System.out); + e.printStackTrace(System.err); } // quit, even when a remote bridge is running diff --git a/odk/examples/DevelopersGuide/Database/RowSet.java b/odk/examples/DevelopersGuide/Database/RowSet.java index bffcca51b663..52e9c257dd54 100644 --- a/odk/examples/DevelopersGuide/Database/RowSet.java +++ b/odk/examples/DevelopersGuide/Database/RowSet.java @@ -63,7 +63,7 @@ public class RowSet } catch( Exception e) { System.err.println("ERROR: can't get a component context from a running office ..."); - e.printStackTrace(System.out); + e.printStackTrace(System.err); System.exit(1); } diff --git a/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java b/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java index 43fbe81f1713..76cb9572bc3f 100644 --- a/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java +++ b/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java @@ -133,7 +133,7 @@ public class DrawViewDemo catch( Exception ex ) { System.out.println( ex.getMessage() ); - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } System.exit( 0 ); diff --git a/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java b/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java index 4cbecdd5cd02..0dfc26906d74 100644 --- a/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java +++ b/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java @@ -172,7 +172,7 @@ public abstract class DocumentBasedExample implements com.sun.star.lang.XEventLi } catch ( com.sun.star.uno.Exception e ) { - e.printStackTrace( System.out ); + e.printStackTrace( System.err ); } } diff --git a/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java b/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java index b207a8c368ce..400251a18d59 100644 --- a/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java +++ b/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java @@ -131,7 +131,7 @@ public class SingleControlValidation implements XFormComponentValidityListener } catch( java.lang.Exception e ) { - e.printStackTrace( System.out ); + e.printStackTrace( System.err ); } } @@ -171,7 +171,7 @@ public class SingleControlValidation implements XFormComponentValidityListener } catch( com.sun.star.uno.Exception e ) { - e.printStackTrace( System.out ); + e.printStackTrace( System.err ); } } diff --git a/odk/examples/DevelopersGuide/GUI/DialogDocument.java b/odk/examples/DevelopersGuide/GUI/DialogDocument.java index 5edefb8b118e..27d3d80f3348 100644 --- a/odk/examples/DevelopersGuide/GUI/DialogDocument.java +++ b/odk/examples/DevelopersGuide/GUI/DialogDocument.java @@ -79,7 +79,7 @@ public class DialogDocument extends UnoDialogSample { oDialogDocument.insertButton(oDialogDocument, 126, 370, 50, "~Close dialog", (short) PushButtonType.OK_value); oDialogDocument.executeDialog(); }catch( Exception ex ) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } finally{ //make sure always to dispose the component and free the memory! if (oDialogDocument != null){ diff --git a/odk/examples/DevelopersGuide/GUI/ImageControlSample.java b/odk/examples/DevelopersGuide/GUI/ImageControlSample.java index 024894ae840b..ac890e8aee1a 100644 --- a/odk/examples/DevelopersGuide/GUI/ImageControlSample.java +++ b/odk/examples/DevelopersGuide/GUI/ImageControlSample.java @@ -130,7 +130,7 @@ public class ImageControlSample extends UnoDialogSample{ * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xICModelPropertySet; } diff --git a/odk/examples/DevelopersGuide/GUI/MessageBox.java b/odk/examples/DevelopersGuide/GUI/MessageBox.java index 745b25951cd5..65e2e8a680e3 100644 --- a/odk/examples/DevelopersGuide/GUI/MessageBox.java +++ b/odk/examples/DevelopersGuide/GUI/MessageBox.java @@ -183,7 +183,7 @@ public class MessageBox { short nResult = xMessageBox.execute(); } } catch (com.sun.star.uno.Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } finally{ //make sure always to dispose the component and free the memory! if (xComponent != null){ @@ -212,7 +212,7 @@ public class MessageBox { return false; } } catch (IllegalArgumentException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return bIsActivated; } diff --git a/odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java b/odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java index a52928cb4be0..8ad61f314a77 100644 --- a/odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java +++ b/odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java @@ -58,7 +58,7 @@ public class RoadmapItemStateChangeListener implements XItemListener { xDialogModelPropertySet.setPropertyValue("Step", new Integer(nNewID)); } } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/odk/examples/DevelopersGuide/GUI/SystemDialog.java b/odk/examples/DevelopersGuide/GUI/SystemDialog.java index 00aa44162442..541d5166bfdc 100644 --- a/odk/examples/DevelopersGuide/GUI/SystemDialog.java +++ b/odk/examples/DevelopersGuide/GUI/SystemDialog.java @@ -172,7 +172,7 @@ public class SystemDialog { } }catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } finally{ //make sure always to dispose the component and free the memory! if (xComponent != null){ diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java index 4013dbb79e66..6db2ef162e63 100644 --- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java +++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java @@ -202,7 +202,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis XNameAccess xNameAccess = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oNode); return xNameAccess; } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -235,7 +235,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.lang.IllegalArgumentException, * com.sun.star.lang.WrappedTargetException, */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return sImageUrl; } @@ -263,7 +263,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis XControlModel xControlModel = (XControlModel) UnoRuntime.queryInterface(XControlModel.class, oDialogModel); m_xDialogControl.setModel(xControlModel); } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -303,7 +303,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis XMultiPropertySet xMultiPropertySet = (XMultiPropertySet) UnoRuntime.queryInterface(XMultiPropertySet.class, m_xDlgModelNameContainer); xMultiPropertySet.setPropertyValues(PropertyNames, PropertyValues); } catch (com.sun.star.uno.Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); }} @@ -329,7 +329,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis return m_xWindowPeer; } } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return null; } @@ -373,7 +373,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis m_xDlgModelNameContainer.insertByName(sName, oControlModel); return oControlModel; } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -416,7 +416,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xFixedText; } @@ -461,7 +461,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xTextComponent; } @@ -501,7 +501,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xPBModelPSet; } @@ -539,7 +539,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } @@ -576,7 +576,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } @@ -622,7 +622,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xTextComponent; } @@ -662,7 +662,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xTFModelPSet; } @@ -709,7 +709,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xDFModelPSet; } @@ -751,7 +751,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xPFModelPSet; } @@ -794,7 +794,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xNFModelPSet; } @@ -843,7 +843,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xSBModelPSet; } @@ -907,7 +907,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xCheckBox; } @@ -951,7 +951,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } @@ -990,7 +990,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xListBox; } @@ -1034,7 +1034,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xComboBox; } @@ -1098,7 +1098,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xFFModelPSet; } @@ -1152,7 +1152,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xTextComponent; } @@ -1188,7 +1188,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xButton; } @@ -1239,7 +1239,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } @@ -1266,7 +1266,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } @@ -1303,7 +1303,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } @@ -1384,7 +1384,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis * com.sun.star.beans.PropertyVetoException * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } @@ -1443,7 +1443,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis XItemEventBroadcaster xRMBroadcaster = (XItemEventBroadcaster) UnoRuntime.queryInterface(XItemEventBroadcaster.class, xRMControl); xRMBroadcaster.addItemListener( getRoadmapItemStateChangeListener() ); } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } } @@ -1465,7 +1465,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis xRMItemPSet.setPropertyValue("ID", new Integer(_ID)); m_xRMIndexCont.insertByIndex(Index, oRoadmapItem); } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java index 3b85eb57d306..5d9781d5dbac 100644 --- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java +++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java @@ -136,7 +136,7 @@ public class UnoDialogSample2 extends UnoDialogSample { oUnoDialogSample2.xDialog = (XDialog) UnoRuntime.queryInterface(XDialog.class, oUnoDialogSample2.m_xDialogControl); oUnoDialogSample2.xDialog.execute(); }catch( Exception ex ) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } finally{ //make sure always to dispose the component and free the memory! @@ -257,7 +257,7 @@ public class UnoDialogSample2 extends UnoDialogSample { * com.sun.star.beans.UnknownPropertyException, * com.sun.star.uno.Exception */ - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } diff --git a/odk/examples/DevelopersGuide/GUI/UnoMenu.java b/odk/examples/DevelopersGuide/GUI/UnoMenu.java index 1c62a2398928..c5fdbe218350 100644 --- a/odk/examples/DevelopersGuide/GUI/UnoMenu.java +++ b/odk/examples/DevelopersGuide/GUI/UnoMenu.java @@ -55,7 +55,7 @@ public UnoMenu(XComponentContext _xContext, XMultiComponentFactory _xMCF) { oUnoMenu.mxTopWindow = oUnoMenu.showTopWindow( new Rectangle(100, 100, 500, 500)); //oUnoDialogSample.m_xWindowPeer, oUnoMenu.addMenuBar(oUnoMenu.mxTopWindow, oUnoMenu); }catch( Exception ex ) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } } diff --git a/odk/examples/DevelopersGuide/GUI/UnoMenu2.java b/odk/examples/DevelopersGuide/GUI/UnoMenu2.java index 95bcaf9ce8c8..a9ba0a1a2062 100644 --- a/odk/examples/DevelopersGuide/GUI/UnoMenu2.java +++ b/odk/examples/DevelopersGuide/GUI/UnoMenu2.java @@ -56,7 +56,7 @@ public UnoMenu2(XComponentContext _xContext, XMultiComponentFactory _xMCF) { oUnoMenu2.addLabelForPopupMenu(); oUnoMenu2.executeDialog(); }catch( Exception ex ) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } finally{ //make sure always to dispose the component and free the memory! diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java index e1a8b3f9f35b..15a1bf42ecf0 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java @@ -107,7 +107,7 @@ public class OfficeConnect catch (java.lang.Exception ex) { System.err.println("connection failed" + ex); - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); System.exit(1); } diff --git a/odk/examples/java/Inspector/Inspector.java b/odk/examples/java/Inspector/Inspector.java index 39daa05e8826..f83f5a76b56a 100644 --- a/odk/examples/java/Inspector/Inspector.java +++ b/odk/examples/java/Inspector/Inspector.java @@ -120,7 +120,7 @@ public class Inspector{ XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xNameAccess); sRetPath = (String) xPropertySet.getPropertyValue("SDKPath"); }catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return sRetPath; } @@ -182,7 +182,7 @@ public class Inspector{ } xComponent.dispose(); }catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); }} @@ -198,7 +198,7 @@ public class Inspector{ xComponent.dispose(); } } catch (com.sun.star.uno.Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); }} @@ -211,7 +211,7 @@ public class Inspector{ getInspectorPages().put(_sTitle, oInspectorPane); m_oSwingDialogProvider.show(nPageIndex); }catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); }} @@ -284,7 +284,7 @@ public class Inspector{ m_oSwingDialogProvider.getInspectorPage(i).convertCompleteSourceCode(_nLanguage); } }catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); }} @@ -389,7 +389,7 @@ public class Inspector{ } m_oSwingDialogProvider.selectSourceCodeLanguage(nLanguage); }catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return nLanguage; } diff --git a/odk/examples/java/Inspector/InspectorAddon.java b/odk/examples/java/Inspector/InspectorAddon.java index be35f8a1988e..e2cb95ee2559 100644 --- a/odk/examples/java/Inspector/InspectorAddon.java +++ b/odk/examples/java/Inspector/InspectorAddon.java @@ -140,7 +140,7 @@ public class InspectorAddon { } } catch( Exception e ) { System.err.println( e + e.getMessage()); - e.printStackTrace(System.out); + e.printStackTrace(System.err); }} public void addStatusListener( /*IN*/XStatusListener xControl, /*IN*/com.sun.star.util.URL aURL ) { diff --git a/odk/examples/java/Inspector/InspectorPane.java b/odk/examples/java/Inspector/InspectorPane.java index 4748c1a62f77..2859ae8c212b 100644 --- a/odk/examples/java/Inspector/InspectorPane.java +++ b/odk/examples/java/Inspector/InspectorPane.java @@ -94,7 +94,7 @@ import javax.swing.event.TreeWillExpandListener; m_xDialogProvider.addInspectorPage(getTitle(), oContainer); } catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); }} @@ -291,7 +291,7 @@ import javax.swing.event.TreeWillExpandListener; } } catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); }} @@ -311,7 +311,7 @@ import javax.swing.event.TreeWillExpandListener; } } catch(Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); }} @@ -345,7 +345,7 @@ import javax.swing.event.TreeWillExpandListener; } } catch(Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); }} diff --git a/odk/examples/java/Inspector/Introspector.java b/odk/examples/java/Inspector/Introspector.java index f4078931e1ed..7bc7e39e2bda 100644 --- a/odk/examples/java/Inspector/Introspector.java +++ b/odk/examples/java/Inspector/Introspector.java @@ -160,7 +160,7 @@ public class Introspector extends WeakBase{ } } } catch (IllegalTypeException ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return bIsContainer; } @@ -422,7 +422,7 @@ public class Introspector extends WeakBase{ } return null; } catch (Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); return null; }} @@ -454,7 +454,7 @@ public class Introspector extends WeakBase{ } } } catch (Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return xTypeDescription; } @@ -637,7 +637,7 @@ public class Introspector extends WeakBase{ } return xSimpleFileAccess; } catch (com.sun.star.uno.Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); return null; }} @@ -651,7 +651,7 @@ public class Introspector extends WeakBase{ bIsValid = (getXSimpleFileAccess().exists(sIDLFolder) && getXSimpleFileAccess().exists(sIndexFile)); } } catch (com.sun.star.uno.Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return bIsValid; } diff --git a/odk/examples/java/Inspector/SourceCodeGenerator.java b/odk/examples/java/Inspector/SourceCodeGenerator.java index ae8f3c4887d7..315224acd4c9 100644 --- a/odk/examples/java/Inspector/SourceCodeGenerator.java +++ b/odk/examples/java/Inspector/SourceCodeGenerator.java @@ -1054,7 +1054,7 @@ class UnoObjectDefinition{ sReturn +="\n}"; } sReturn += "catch (" + sCurException + " " + sExceptionName + "){\n"; - sReturn += "\t" + sExceptionName + ".printStackTrace(System.out);\n"; + sReturn += "\t" + sExceptionName + ".printStackTrace(System.err);\n"; sReturn += "\t" + getCommentSign() + "Enter your Code here...\n}"; nIndex++; } diff --git a/odk/examples/java/Inspector/SwingTreeControlProvider.java b/odk/examples/java/Inspector/SwingTreeControlProvider.java index 2405e8bc36ce..e02286ee222f 100644 --- a/odk/examples/java/Inspector/SwingTreeControlProvider.java +++ b/odk/examples/java/Inspector/SwingTreeControlProvider.java @@ -264,7 +264,7 @@ public class SwingTreeControlProvider implements XTreeControlProvider{ addTreeExpandListener(); } catch( Exception exception ) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return jPnlContainer; } diff --git a/odk/examples/java/Inspector/TDocSupplier.java b/odk/examples/java/Inspector/TDocSupplier.java index 1022507eb387..4d3d02538cec 100644 --- a/odk/examples/java/Inspector/TDocSupplier.java +++ b/odk/examples/java/Inspector/TDocSupplier.java @@ -82,7 +82,7 @@ public class TDocSupplier { return xModel; } }catch(Exception exception){ - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } JOptionPane.showMessageDialog(new javax.swing.JFrame(), "The selected Document could not be opened!", "Object Inspector", JOptionPane.ERROR_MESSAGE); return null; @@ -96,7 +96,7 @@ public class TDocSupplier { return xRow.getString(1); } }catch(Exception exception){ - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } JOptionPane.showMessageDialog(new javax.swing.JFrame(), "The selected Document could not be opened!", "Object Inspector", JOptionPane.ERROR_MESSAGE); return ""; @@ -124,7 +124,7 @@ public class TDocSupplier { XRow xRow = (XRow) UnoRuntime.queryInterface(XRow.class, oAny); return xRow; }catch(Exception exception){ - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; }} diff --git a/odk/examples/java/Inspector/TestInspector.java b/odk/examples/java/Inspector/TestInspector.java index a2255dff859a..3141a666490b 100644 --- a/odk/examples/java/Inspector/TestInspector.java +++ b/odk/examples/java/Inspector/TestInspector.java @@ -48,7 +48,7 @@ public class TestInspector { System.out.println("Connected to a running office ..."); } catch( Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); System.exit(1); } diff --git a/odk/examples/java/Inspector/UnoMethodNode.java b/odk/examples/java/Inspector/UnoMethodNode.java index 57793809bc5e..30960bba1723 100644 --- a/odk/examples/java/Inspector/UnoMethodNode.java +++ b/odk/examples/java/Inspector/UnoMethodNode.java @@ -208,7 +208,7 @@ public class UnoMethodNode extends UnoNode{ aParamInfo[0] = new Object[] {}; return getXIdlMethod().invoke(getUnoObject(), aParamInfo); } catch (Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); return null; }} diff --git a/odk/examples/java/Inspector/UnoNode.java b/odk/examples/java/Inspector/UnoNode.java index 9a2958f27b5b..152785407d1e 100644 --- a/odk/examples/java/Inspector/UnoNode.java +++ b/odk/examples/java/Inspector/UnoNode.java @@ -163,7 +163,7 @@ public class UnoNode{ pv.Value = sIDLUrl; getXDispatcher(openHyperlink).dispatch(openHyperlink, new PropertyValue[] {pv}); } catch(Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); }} @@ -177,7 +177,7 @@ public class UnoNode{ xTransformer.parseStrict(oURL); return oURL[0]; } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -189,7 +189,7 @@ public class UnoNode{ XDesktop xDesktop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, oDesktop); return xDesktop.getCurrentFrame(); } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; }} @@ -202,7 +202,7 @@ public class UnoNode{ XDispatch xDispatch = xDispatchProvider.queryDispatch(oURLArray[0], "_top", FrameSearchFlag.ALL); // "_self" return xDispatch; } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; }} @@ -284,7 +284,7 @@ public class UnoNode{ aVector.toArray(sRetArray); return sRetArray; } catch (java.lang.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return new String[]{}; } diff --git a/odk/examples/java/Text/BookmarkInsertion.java b/odk/examples/java/Text/BookmarkInsertion.java index 89fb0ec4e841..ced4ddb4984c 100644 --- a/odk/examples/java/Text/BookmarkInsertion.java +++ b/odk/examples/java/Text/BookmarkInsertion.java @@ -276,7 +276,7 @@ public class BookmarkInsertion { sURL, "_blank", 0, xEmptyArgs); } catch( Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return xComponent ; diff --git a/qadevOOo/runner/util/FormTools.java b/qadevOOo/runner/util/FormTools.java index 032fe7eff2b0..19d53f60f7c9 100644 --- a/qadevOOo/runner/util/FormTools.java +++ b/qadevOOo/runner/util/FormTools.java @@ -231,7 +231,7 @@ public class FormTools { } catch (Exception ex) { System.out.println("Exception: "+ex); - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return formLoader; @@ -273,7 +273,7 @@ public class FormTools { } catch (Exception ex) { System.out.println("Exception: "+ex); - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); } return formLoader; diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java index 573cb08789e9..b622b962032d 100644 --- a/sc/qa/complex/sc/CalcRTL.java +++ b/sc/qa/complex/sc/CalcRTL.java @@ -233,7 +233,7 @@ public class CalcRTL /* extends ComplexTestCase */ } catch (com.sun.star.uno.Exception e) { // Some exception occures.FAILED worked = false; - e.printStackTrace(/*(PrintWriter) log*/ System.out); + e.printStackTrace(/*(PrintWriter) log*/ System.err); } return worked; @@ -287,9 +287,9 @@ public class CalcRTL /* extends ComplexTestCase */ oSheet = UnoRuntime.queryInterface( XSpreadsheet.class, oIndexAccess.getByIndex(0)); } catch (com.sun.star.lang.WrappedTargetException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return oSheet; diff --git a/sfx2/qa/complex/sfx2/DocumentInfo.java b/sfx2/qa/complex/sfx2/DocumentInfo.java index fca756b280e0..4822153ffcf3 100644 --- a/sfx2/qa/complex/sfx2/DocumentInfo.java +++ b/sfx2/qa/complex/sfx2/DocumentInfo.java @@ -263,7 +263,7 @@ public class DocumentInfo } } catch (Exception e) { // If anything goes wrong, give the user a stack trace - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java b/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java index 5b01be8cddfc..bbccb52bb702 100644 --- a/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java +++ b/sfx2/qa/complex/sfx2/DocumentMetadataAccess.java @@ -888,7 +888,7 @@ public class DocumentMetadataAccess public void report(Exception e) { System.out.println("Exception occurred:"); - e.printStackTrace(System.out); + e.printStackTrace(System.err); report2(e); fail(); } diff --git a/sw/qa/complex/writer/LoadSaveTest.java b/sw/qa/complex/writer/LoadSaveTest.java index ca71fe54cf54..55d5a8f20fbe 100644 --- a/sw/qa/complex/writer/LoadSaveTest.java +++ b/sw/qa/complex/writer/LoadSaveTest.java @@ -201,7 +201,7 @@ public class LoadSaveTest void report(Exception e) { System.out.println("Exception occurred:"); System.out.println(e.toString()); - e.printStackTrace(System.out); + e.printStackTrace(System.err); report2(e); // failed(); } diff --git a/wizards/com/sun/star/wizards/common/Configuration.java b/wizards/com/sun/star/wizards/common/Configuration.java index 1264873b80d3..da18fdc7b72a 100644 --- a/wizards/com/sun/star/wizards/common/Configuration.java +++ b/wizards/com/sun/star/wizards/common/Configuration.java @@ -196,7 +196,7 @@ public abstract class Configuration } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -212,7 +212,7 @@ public abstract class Configuration } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return sLocale; } @@ -349,7 +349,7 @@ public abstract class Configuration } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return snames; } } @@ -364,7 +364,7 @@ public abstract class Configuration } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; } } @@ -380,7 +380,7 @@ public abstract class Configuration } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -409,7 +409,7 @@ public abstract class Configuration } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -438,7 +438,7 @@ public abstract class Configuration } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } diff --git a/wizards/com/sun/star/wizards/common/Desktop.java b/wizards/com/sun/star/wizards/common/Desktop.java index 849b9a1182ef..170279577beb 100644 --- a/wizards/com/sun/star/wizards/common/Desktop.java +++ b/wizards/com/sun/star/wizards/common/Desktop.java @@ -71,7 +71,7 @@ public class Desktop } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } else @@ -117,7 +117,7 @@ public class Desktop } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -136,7 +136,7 @@ public class Desktop } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -230,7 +230,7 @@ public class Desktop } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return -1; } } @@ -341,7 +341,7 @@ public class Desktop } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java index 9ec373a29e8e..46e4f8a55fb9 100644 --- a/wizards/com/sun/star/wizards/common/FileAccess.java +++ b/wizards/com/sun/star/wizards/common/FileAccess.java @@ -116,7 +116,7 @@ public class FileAccess } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return PropertyNames.EMPTY_STRING; } } @@ -194,7 +194,7 @@ public class FileAccess } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); ResultPath = PropertyNames.EMPTY_STRING; } if (!bexists) @@ -275,7 +275,7 @@ public class FileAccess } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); // ResultPath = PropertyNames.EMPTY_STRING; } // if (bexists == false) @@ -394,7 +394,7 @@ public class FileAccess if (ResultPath.equals(PropertyNames.EMPTY_STRING) == false) bexists = xSimpleFileAccess.exists(ResultPath); } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); ResultPath = PropertyNames.EMPTY_STRING; } if (bexists == false) @@ -432,7 +432,7 @@ public class FileAccess } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return bExists; } @@ -450,7 +450,7 @@ public class FileAccess } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return PropertyNames.EMPTY_STRING; } if (!bexists) @@ -570,7 +570,7 @@ public class FileAccess } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); SystemDialog.showMessageBox(xMSF, "ErrorBox", VclWindowPeerAttribute.OK, sMsgFilePathInvalid); return false; } @@ -632,7 +632,7 @@ public class FileAccess } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return LocLayoutFiles; } @@ -774,7 +774,7 @@ public class FileAccess } catch (com.sun.star.ucb.CommandAbortedException exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } catch (com.sun.star.uno.Exception e) { @@ -953,11 +953,11 @@ public class FileAccess } catch (CommandAbortedException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; @@ -1139,7 +1139,7 @@ public class FileAccess } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return sFileData; } diff --git a/wizards/com/sun/star/wizards/common/Helper.java b/wizards/com/sun/star/wizards/common/Helper.java index 8dfc4c98691a..9a50753c0050 100644 --- a/wizards/com/sun/star/wizards/common/Helper.java +++ b/wizards/com/sun/star/wizards/common/Helper.java @@ -69,7 +69,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -89,7 +89,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -131,7 +131,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -181,7 +181,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -199,7 +199,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return null; } @@ -220,7 +220,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return null; } @@ -241,7 +241,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -266,7 +266,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -294,7 +294,7 @@ public class Helper } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } diff --git a/wizards/com/sun/star/wizards/common/JavaTools.java b/wizards/com/sun/star/wizards/common/JavaTools.java index c84426e53675..ab28a81df8fa 100644 --- a/wizards/com/sun/star/wizards/common/JavaTools.java +++ b/wizards/com/sun/star/wizards/common/JavaTools.java @@ -61,7 +61,7 @@ public class JavaTools } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } */ @@ -142,7 +142,7 @@ public class JavaTools } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; } } @@ -168,7 +168,7 @@ public class JavaTools } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; } } @@ -416,7 +416,7 @@ public class JavaTools } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -450,7 +450,7 @@ public class JavaTools } catch (MalformedURLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return sPath; } diff --git a/wizards/com/sun/star/wizards/common/NumberFormatter.java b/wizards/com/sun/star/wizards/common/NumberFormatter.java index 5b5476884ed2..c90ce2f2546d 100644 --- a/wizards/com/sun/star/wizards/common/NumberFormatter.java +++ b/wizards/com/sun/star/wizards/common/NumberFormatter.java @@ -151,7 +151,7 @@ public class NumberFormatter } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return -1; } } @@ -176,7 +176,7 @@ public class NumberFormatter } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return -1; } } @@ -212,7 +212,7 @@ public class NumberFormatter } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/common/Resource.java b/wizards/com/sun/star/wizards/common/Resource.java index 787df1bec3f3..58acc4eaf41a 100644 --- a/wizards/com/sun/star/wizards/common/Resource.java +++ b/wizards/com/sun/star/wizards/common/Resource.java @@ -116,7 +116,7 @@ public class Resource } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); throw new java.lang.IllegalArgumentException("Resource with ID not" + String.valueOf(nID) + "not found"); } } diff --git a/wizards/com/sun/star/wizards/common/SystemDialog.java b/wizards/com/sun/star/wizards/common/SystemDialog.java index b1726a205b1d..02a5b7962832 100644 --- a/wizards/com/sun/star/wizards/common/SystemDialog.java +++ b/wizards/com/sun/star/wizards/common/SystemDialog.java @@ -220,7 +220,7 @@ public class SystemDialog } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -285,7 +285,7 @@ public class SystemDialog } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -342,7 +342,7 @@ public class SystemDialog } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return iMessage; } @@ -384,7 +384,7 @@ public class SystemDialog catch (Exception e) { // TODO Auto-generated catch block - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return iMessage; } diff --git a/wizards/com/sun/star/wizards/db/ColumnPropertySet.java b/wizards/com/sun/star/wizards/db/ColumnPropertySet.java index 9897386e18ae..bc0be014b77b 100644 --- a/wizards/com/sun/star/wizards/db/ColumnPropertySet.java +++ b/wizards/com/sun/star/wizards/db/ColumnPropertySet.java @@ -102,7 +102,7 @@ public class ColumnPropertySet } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -121,7 +121,7 @@ public class ColumnPropertySet } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -133,7 +133,7 @@ public class ColumnPropertySet } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return 0; } } @@ -194,7 +194,7 @@ public class ColumnPropertySet } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/db/CommandMetaData.java b/wizards/com/sun/star/wizards/db/CommandMetaData.java index b29bbd48c1e7..e0ca1d67ba16 100644 --- a/wizards/com/sun/star/wizards/db/CommandMetaData.java +++ b/wizards/com/sun/star/wizards/db/CommandMetaData.java @@ -149,7 +149,7 @@ public class CommandMetaData extends DBMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -313,7 +313,7 @@ public class CommandMetaData extends DBMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } Resource oResource = new Resource(xMSF, "Database", "dbw"); String sMsgNoFieldsFromCommand = oResource.getResText(RID_DB_COMMON + 45); @@ -388,7 +388,7 @@ public class CommandMetaData extends DBMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return false; } } @@ -411,7 +411,7 @@ public class CommandMetaData extends DBMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return new String[] { }; @@ -471,7 +471,7 @@ public class CommandMetaData extends DBMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return new String[] { }; @@ -624,7 +624,7 @@ public class CommandMetaData extends DBMetaData } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return sTotReferencedTables; } @@ -687,7 +687,7 @@ public class CommandMetaData extends DBMetaData } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/db/CommandName.java b/wizards/com/sun/star/wizards/db/CommandName.java index b026266649d7..91b25e30f75a 100644 --- a/wizards/com/sun/star/wizards/db/CommandName.java +++ b/wizards/com/sun/star/wizards/db/CommandName.java @@ -74,7 +74,7 @@ public class CommandName } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -120,7 +120,7 @@ public class CommandName } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -174,7 +174,7 @@ public class CommandName } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return false; } } diff --git a/wizards/com/sun/star/wizards/db/DBMetaData.java b/wizards/com/sun/star/wizards/db/DBMetaData.java index ae23246ba1b5..2bda1a15d6a8 100644 --- a/wizards/com/sun/star/wizards/db/DBMetaData.java +++ b/wizards/com/sun/star/wizards/db/DBMetaData.java @@ -856,7 +856,7 @@ public class DBMetaData callSQLErrorMessageDialog(sqlError, null); return false; } - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } catch (SQLException e) { diff --git a/wizards/com/sun/star/wizards/db/FieldColumn.java b/wizards/com/sun/star/wizards/db/FieldColumn.java index 0499d346dd4f..9f179fde2e2e 100644 --- a/wizards/com/sun/star/wizards/db/FieldColumn.java +++ b/wizards/com/sun/star/wizards/db/FieldColumn.java @@ -165,7 +165,7 @@ public class FieldColumn } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -349,7 +349,7 @@ public class FieldColumn } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); m_nDBFormatKey = StandardFormatKey; } } @@ -373,7 +373,7 @@ public class FieldColumn } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/db/QueryMetaData.java b/wizards/com/sun/star/wizards/db/QueryMetaData.java index 4eca49d317c8..a5435e4dae66 100644 --- a/wizards/com/sun/star/wizards/db/QueryMetaData.java +++ b/wizards/com/sun/star/wizards/db/QueryMetaData.java @@ -240,7 +240,7 @@ public class QueryMetaData extends CommandMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/db/RecordParser.java b/wizards/com/sun/star/wizards/db/RecordParser.java index 2d97ddeb10a3..9f130836aef1 100644 --- a/wizards/com/sun/star/wizards/db/RecordParser.java +++ b/wizards/com/sun/star/wizards/db/RecordParser.java @@ -78,7 +78,7 @@ public class RecordParser extends QueryMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -95,7 +95,7 @@ public class RecordParser extends QueryMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -120,7 +120,7 @@ public class RecordParser extends QueryMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return Any.VOID; } @@ -223,7 +223,7 @@ public class RecordParser extends QueryMetaData } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); throw new InvalidQueryException(xMSF, Command); } } @@ -254,7 +254,7 @@ public class RecordParser extends QueryMetaData } catch (InvalidQueryException queryexception) { - queryexception.printStackTrace(System.out); + queryexception.printStackTrace(System.err); return false; } } diff --git a/wizards/com/sun/star/wizards/db/RelationController.java b/wizards/com/sun/star/wizards/db/RelationController.java index a147b24d8594..1eb3b12420e2 100644 --- a/wizards/com/sun/star/wizards/db/RelationController.java +++ b/wizards/com/sun/star/wizards/db/RelationController.java @@ -78,7 +78,7 @@ public class RelationController extends CommandName } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return sReferencedTableNames; } @@ -146,7 +146,7 @@ public class RelationController extends CommandName } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return sKeyColumnNames; } diff --git a/wizards/com/sun/star/wizards/db/TableDescriptor.java b/wizards/com/sun/star/wizards/db/TableDescriptor.java index 2419c42f5a2d..8758d366d882 100644 --- a/wizards/com/sun/star/wizards/db/TableDescriptor.java +++ b/wizards/com/sun/star/wizards/db/TableDescriptor.java @@ -123,7 +123,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return true; } @@ -192,19 +192,19 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (UnknownPropertyException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } catch (PropertyVetoException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } catch (IllegalArgumentException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } catch (WrappedTargetException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; @@ -225,7 +225,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); return false; } } @@ -296,7 +296,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); breturn = false; } if (!breturn) @@ -348,7 +348,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e1) { - e1.printStackTrace(System.out); + e1.printStackTrace(System.err); } return false; } @@ -374,7 +374,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } } @@ -388,7 +388,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); showMessageBox("ErrorBox", VclWindowPeerAttribute.OK, e.getMessage()); return false; } @@ -419,19 +419,19 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (UnknownPropertyException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } catch (PropertyVetoException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } catch (IllegalArgumentException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } catch (WrappedTargetException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; } @@ -458,7 +458,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; } @@ -484,7 +484,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -504,7 +504,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } return new String[] @@ -530,7 +530,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; } @@ -553,7 +553,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -583,7 +583,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -608,7 +608,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return xRetPropertySet; } @@ -629,7 +629,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; } @@ -645,7 +645,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return false; } } @@ -672,7 +672,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; } @@ -699,13 +699,13 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (RuntimeException e1) { - e1.printStackTrace(System.out); + e1.printStackTrace(System.err); } } } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -731,13 +731,13 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } String[] sbinaryfieldnames = new String[NonBinaryFieldNameVector.size()]; NonBinaryFieldNameVector.toArray(sbinaryfieldnames); @@ -778,7 +778,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -844,7 +844,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); bhastoinsert = false; } } diff --git a/wizards/com/sun/star/wizards/db/TypeInspector.java b/wizards/com/sun/star/wizards/db/TypeInspector.java index d2c294c90023..7abf13f00b2f 100644 --- a/wizards/com/sun/star/wizards/db/TypeInspector.java +++ b/wizards/com/sun/star/wizards/db/TypeInspector.java @@ -104,7 +104,7 @@ public class TypeInspector } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -133,7 +133,7 @@ public class TypeInspector } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return 0; } } @@ -170,7 +170,7 @@ public class TypeInspector } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return ColumnValue.NO_NULLS; } @@ -239,7 +239,7 @@ public class TypeInspector } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return -1; } @@ -393,7 +393,7 @@ public class TypeInspector } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return INVALID; diff --git a/wizards/com/sun/star/wizards/document/Control.java b/wizards/com/sun/star/wizards/document/Control.java index 90585b971676..43afd715c6a7 100644 --- a/wizards/com/sun/star/wizards/document/Control.java +++ b/wizards/com/sun/star/wizards/document/Control.java @@ -112,7 +112,7 @@ public class Control extends Shape } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -130,7 +130,7 @@ public class Control extends Shape } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -251,7 +251,7 @@ public class Control extends Shape } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; } } @@ -335,7 +335,7 @@ public class Control extends Shape } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; } } diff --git a/wizards/com/sun/star/wizards/document/DatabaseControl.java b/wizards/com/sun/star/wizards/document/DatabaseControl.java index a85abb848cc0..21f1e7af9526 100644 --- a/wizards/com/sun/star/wizards/document/DatabaseControl.java +++ b/wizards/com/sun/star/wizards/document/DatabaseControl.java @@ -95,7 +95,7 @@ public class DatabaseControl extends Control } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -115,7 +115,7 @@ public class DatabaseControl extends Control } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -130,7 +130,7 @@ public class DatabaseControl extends Control } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -250,7 +250,7 @@ public class DatabaseControl extends Control } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } /** diff --git a/wizards/com/sun/star/wizards/document/FormHandler.java b/wizards/com/sun/star/wizards/document/FormHandler.java index ed22e305b996..6aeec8b819f5 100644 --- a/wizards/com/sun/star/wizards/document/FormHandler.java +++ b/wizards/com/sun/star/wizards/document/FormHandler.java @@ -476,7 +476,7 @@ public class FormHandler // if (_xNamedForm.hasByName(sControlName)) // _xNamedForm.removeByName(sControlName); // } catch (Exception e) { -// e.printStackTrace(System.out); +// e.printStackTrace(System.err); // } } } diff --git a/wizards/com/sun/star/wizards/document/GridControl.java b/wizards/com/sun/star/wizards/document/GridControl.java index 218b9817b27b..ab78017c397b 100644 --- a/wizards/com/sun/star/wizards/document/GridControl.java +++ b/wizards/com/sun/star/wizards/document/GridControl.java @@ -78,7 +78,7 @@ public class GridControl extends Shape } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.java b/wizards/com/sun/star/wizards/document/OfficeDocument.java index 7436f26c2a5d..7a85f2d244c1 100644 --- a/wizards/com/sun/star/wizards/document/OfficeDocument.java +++ b/wizards/com/sun/star/wizards/document/OfficeDocument.java @@ -84,7 +84,7 @@ public class OfficeDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -106,7 +106,7 @@ public class OfficeDocument } catch (PropertyVetoException exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -153,7 +153,7 @@ public class OfficeDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return oDocument; } @@ -274,7 +274,7 @@ public class OfficeDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return oDocument; } @@ -312,7 +312,7 @@ public class OfficeDocument catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return false; } } diff --git a/wizards/com/sun/star/wizards/document/Shape.java b/wizards/com/sun/star/wizards/document/Shape.java index 580a97ec7888..bbb793285af3 100644 --- a/wizards/com/sun/star/wizards/document/Shape.java +++ b/wizards/com/sun/star/wizards/document/Shape.java @@ -100,7 +100,7 @@ public class Shape } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -117,7 +117,7 @@ public class Shape } catch (PropertyVetoException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/document/TimeStampControl.java b/wizards/com/sun/star/wizards/document/TimeStampControl.java index 9fcd1ef94388..84e82780bc63 100644 --- a/wizards/com/sun/star/wizards/document/TimeStampControl.java +++ b/wizards/com/sun/star/wizards/document/TimeStampControl.java @@ -84,7 +84,7 @@ public class TimeStampControl extends DatabaseControl } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -121,7 +121,7 @@ public class TimeStampControl extends DatabaseControl } catch (PropertyVetoException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/fax/FaxDocument.java b/wizards/com/sun/star/wizards/fax/FaxDocument.java index 1eb1d1f2f8a0..c4cd286dbba3 100644 --- a/wizards/com/sun/star/wizards/fax/FaxDocument.java +++ b/wizards/com/sun/star/wizards/fax/FaxDocument.java @@ -60,7 +60,7 @@ public class FaxDocument extends TextDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -115,7 +115,7 @@ public class FaxDocument extends TextDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } @@ -161,7 +161,7 @@ public class FaxDocument extends TextDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java index d5c2cd0304ad..6ee8765e8819 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.java @@ -194,7 +194,7 @@ public class FaxWizardDialogImpl extends FaxWizardDialog catch (Exception exception) { removeTerminateListener(); - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); running = false; } } @@ -771,7 +771,7 @@ public class FaxWizardDialogImpl extends FaxWizardDialog } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/form/FieldLinker.java b/wizards/com/sun/star/wizards/form/FieldLinker.java index 9e827655f62b..ea49e77db444 100644 --- a/wizards/com/sun/star/wizards/form/FieldLinker.java +++ b/wizards/com/sun/star/wizards/form/FieldLinker.java @@ -151,7 +151,7 @@ public class FieldLinker extends DBLimitedFieldSelection } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/form/FormControlArranger.java b/wizards/com/sun/star/wizards/form/FormControlArranger.java index b09683d79c6b..dc3c761e37f6 100644 --- a/wizards/com/sun/star/wizards/form/FormControlArranger.java +++ b/wizards/com/sun/star/wizards/form/FormControlArranger.java @@ -155,7 +155,7 @@ public class FormControlArranger } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } break; case DataType.BIGINT: @@ -375,7 +375,7 @@ public class FormControlArranger } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -593,7 +593,7 @@ public class FormControlArranger } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -648,7 +648,7 @@ public class FormControlArranger } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/form/FormDocument.java b/wizards/com/sun/star/wizards/form/FormDocument.java index 41095da3bc9b..10152d083e41 100644 --- a/wizards/com/sun/star/wizards/form/FormDocument.java +++ b/wizards/com/sun/star/wizards/form/FormDocument.java @@ -93,7 +93,7 @@ public class FormDocument extends TextDocument } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -140,7 +140,7 @@ public class FormDocument extends TextDocument } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -338,7 +338,7 @@ public class FormDocument extends TextDocument } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return false; } finally @@ -519,7 +519,7 @@ public class FormDocument extends TextDocument } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -562,7 +562,7 @@ public class FormDocument extends TextDocument } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/form/FormWizard.java b/wizards/com/sun/star/wizards/form/FormWizard.java index d898066be1a3..f9d63ad78eab 100644 --- a/wizards/com/sun/star/wizards/form/FormWizard.java +++ b/wizards/com/sun/star/wizards/form/FormWizard.java @@ -160,7 +160,7 @@ public class FormWizard extends DatabaseObjectWizard } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -362,7 +362,7 @@ public class FormWizard extends DatabaseObjectWizard } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } if ((!m_success) && (curFormDocument != null)) { diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java index b3424cec3bfc..7e1cfff40f82 100644 --- a/wizards/com/sun/star/wizards/form/StyleApplier.java +++ b/wizards/com/sun/star/wizards/form/StyleApplier.java @@ -171,7 +171,7 @@ public class StyleApplier // } // catch (Exception e) // { -// e.printStackTrace(System.out); +// e.printStackTrace(System.err); // } } @@ -200,7 +200,7 @@ public class StyleApplier } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -216,7 +216,7 @@ public class StyleApplier } catch (IllegalArgumentException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return (short) -1; } @@ -316,7 +316,7 @@ public class StyleApplier } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } curFormDocument.unlockallControllers(); } @@ -428,7 +428,7 @@ public class StyleApplier } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -489,7 +489,7 @@ public class StyleApplier } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/form/UIControlArranger.java b/wizards/com/sun/star/wizards/form/UIControlArranger.java index ef0596431639..72f981c48bd3 100644 --- a/wizards/com/sun/star/wizards/form/UIControlArranger.java +++ b/wizards/com/sun/star/wizards/form/UIControlArranger.java @@ -220,7 +220,7 @@ public class UIControlArranger } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/letter/LetterDocument.java b/wizards/com/sun/star/wizards/letter/LetterDocument.java index 54e31e3a3200..fd2ca0cf408b 100644 --- a/wizards/com/sun/star/wizards/letter/LetterDocument.java +++ b/wizards/com/sun/star/wizards/letter/LetterDocument.java @@ -65,7 +65,7 @@ public class LetterDocument extends TextDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -120,7 +120,7 @@ public class LetterDocument extends TextDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } @@ -165,7 +165,7 @@ public class LetterDocument extends TextDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -285,7 +285,7 @@ public class LetterDocument extends TextDocument } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -311,7 +311,7 @@ public class LetterDocument extends TextDocument } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java index 6adfc6ea3c6c..31af8c3b8859 100644 --- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java +++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java @@ -251,7 +251,7 @@ public class LetterWizardDialogImpl extends LetterWizardDialog catch (Exception exception) { removeTerminateListener(); - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); running = false; } } @@ -844,7 +844,7 @@ public class LetterWizardDialogImpl extends LetterWizardDialog } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/query/Finalizer.java b/wizards/com/sun/star/wizards/query/Finalizer.java index 3c388178ac71..f2b351e57cbe 100644 --- a/wizards/com/sun/star/wizards/query/Finalizer.java +++ b/wizards/com/sun/star/wizards/query/Finalizer.java @@ -148,7 +148,7 @@ public class Finalizer } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return PropertyNames.EMPTY_STRING; } } diff --git a/wizards/com/sun/star/wizards/query/QuerySummary.java b/wizards/com/sun/star/wizards/query/QuerySummary.java index 2076fe85f41d..5a4150352b6f 100644 --- a/wizards/com/sun/star/wizards/query/QuerySummary.java +++ b/wizards/com/sun/star/wizards/query/QuerySummary.java @@ -79,7 +79,7 @@ public class QuerySummary extends QueryMetaData } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/query/QueryWizard.java b/wizards/com/sun/star/wizards/query/QueryWizard.java index 2acf1ba1edab..0e8c4b3ec30e 100644 --- a/wizards/com/sun/star/wizards/query/QueryWizard.java +++ b/wizards/com/sun/star/wizards/query/QueryWizard.java @@ -172,7 +172,7 @@ public class QueryWizard extends DatabaseObjectWizard } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } } @@ -218,7 +218,7 @@ public class QueryWizard extends DatabaseObjectWizard } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } m_groupFilterComponent = null; m_titlesComponent = null; @@ -280,7 +280,7 @@ public class QueryWizard extends DatabaseObjectWizard } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -409,7 +409,7 @@ public class QueryWizard extends DatabaseObjectWizard } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/report/CallReportWizard.java b/wizards/com/sun/star/wizards/report/CallReportWizard.java index 768bbf120af5..d64468a4cdb4 100644 --- a/wizards/com/sun/star/wizards/report/CallReportWizard.java +++ b/wizards/com/sun/star/wizards/report/CallReportWizard.java @@ -53,7 +53,7 @@ public class CallReportWizard } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } }*/ diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java index 69321d5cb8e3..83358f2faef8 100644 --- a/wizards/com/sun/star/wizards/report/DBColumn.java +++ b/wizards/com/sun/star/wizards/report/DBColumn.java @@ -133,7 +133,7 @@ public class DBColumn } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; } @@ -291,7 +291,7 @@ public class DBColumn } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -395,7 +395,7 @@ public class DBColumn } catch (com.sun.star.beans.UnknownPropertyException exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -423,7 +423,7 @@ public class DBColumn } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -466,7 +466,7 @@ public class DBColumn { // sMsgInvalidTextField = oResource.getResText(UIConsts.RID_REPORT + 73); // SystemDialog.showMessageBox(oTextTableHandler.xMSFDoc, "ErrorBox", VclWindowPeerAttribute.OK, sMsgInvalidTextField); - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return true; //most probably this is really the Namecell!!!! } } diff --git a/wizards/com/sun/star/wizards/report/Dataimport.java b/wizards/com/sun/star/wizards/report/Dataimport.java index 19faa339a0d9..186ce145240e 100644 --- a/wizards/com/sun/star/wizards/report/Dataimport.java +++ b/wizards/com/sun/star/wizards/report/Dataimport.java @@ -98,11 +98,11 @@ public class Dataimport extends UnoDialog2 implements com.sun.star.awt.XActionLi // } // catch (Exception e) // { -// e.printStackTrace(System.out); +// e.printStackTrace(System.err); // } // catch (java.lang.Exception javaexception) // { -// javaexception.printStackTrace(System.out); +// javaexception.printStackTrace(System.err); // } // } public void showProgressDisplay(XMultiServiceFactory xMSF, boolean bgetConnection) diff --git a/wizards/com/sun/star/wizards/report/GroupFieldHandler.java b/wizards/com/sun/star/wizards/report/GroupFieldHandler.java index 18afc19732eb..b7e5ed359055 100644 --- a/wizards/com/sun/star/wizards/report/GroupFieldHandler.java +++ b/wizards/com/sun/star/wizards/report/GroupFieldHandler.java @@ -63,7 +63,7 @@ public class GroupFieldHandler extends FieldSelection } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -99,7 +99,7 @@ public class GroupFieldHandler extends FieldSelection } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/report/RecordTable.java b/wizards/com/sun/star/wizards/report/RecordTable.java index 40ffa1587588..7b4cd1a76e78 100644 --- a/wizards/com/sun/star/wizards/report/RecordTable.java +++ b/wizards/com/sun/star/wizards/report/RecordTable.java @@ -78,7 +78,7 @@ public class RecordTable } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/report/ReportFinalizer.java b/wizards/com/sun/star/wizards/report/ReportFinalizer.java index e785420eae28..73a82c2d86e7 100644 --- a/wizards/com/sun/star/wizards/report/ReportFinalizer.java +++ b/wizards/com/sun/star/wizards/report/ReportFinalizer.java @@ -184,7 +184,7 @@ public class ReportFinalizer // XSimpleFileAccess xSimpleFileAccess = (XSimpleFileAccess) com.sun.star.uno.UnoRuntime.queryInterface(XSimpleFileAccess.class, xUcbInterface); // return xSimpleFileAccess.exists(_spath); // } catch (Exception exception) { -// exception.printStackTrace(System.out); +// exception.printStackTrace(System.err); // return false; // }} public void initialize(RecordParser _CurDBMetaData) @@ -224,7 +224,7 @@ public class ReportFinalizer } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return PropertyNames.EMPTY_STRING; } } diff --git a/wizards/com/sun/star/wizards/report/ReportLayouter.java b/wizards/com/sun/star/wizards/report/ReportLayouter.java index a3ba9380000a..e07b6c783c06 100644 --- a/wizards/com/sun/star/wizards/report/ReportLayouter.java +++ b/wizards/com/sun/star/wizards/report/ReportLayouter.java @@ -210,7 +210,7 @@ public class ReportLayouter } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -323,7 +323,7 @@ public class ReportLayouter } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } // CurReportDocument.getDoc().unlockallControllers(); Helper.setUnoPropertyValue(CurUnoDialog.xDialogModel, PropertyNames.PROPERTY_ENABLED, Boolean.TRUE); diff --git a/wizards/com/sun/star/wizards/report/ReportTextDocument.java b/wizards/com/sun/star/wizards/report/ReportTextDocument.java index b65d67e0a405..ba94d3d928ec 100644 --- a/wizards/com/sun/star/wizards/report/ReportTextDocument.java +++ b/wizards/com/sun/star/wizards/report/ReportTextDocument.java @@ -535,7 +535,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen String SystemContentPath = JavaTools.convertfromURLNotation(ContentTemplatePath); String sMsgCurCommonReportError = JavaTools.replaceSubString(sMsgCommonReportError, SystemContentPath, "%PATH"); CurDBMetaData.showMessageBox("ErrorBox", VclWindowPeerAttribute.OK, sMsgCurCommonReportError); - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } public void getallDBColumns() diff --git a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java index c47561f394fa..66113172b268 100644 --- a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java +++ b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java @@ -441,7 +441,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme } // catch (java.lang.Exception javaexception) // { -// javaexception.printStackTrace(System.out); +// javaexception.printStackTrace(System.err); // } getDoc().unlockallControllers(); getDoc().setLayoutSectionsVisible(false); @@ -480,7 +480,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme // } // catch (java.lang.Exception jexception) // { -// jexception.printStackTrace(System.out); +// jexception.printStackTrace(System.err); // } // } private void replaceUserFields() diff --git a/wizards/com/sun/star/wizards/report/ReportWizard.java b/wizards/com/sun/star/wizards/report/ReportWizard.java index 9d4ddea6a2ce..f557a3b9ed6d 100644 --- a/wizards/com/sun/star/wizards/report/ReportWizard.java +++ b/wizards/com/sun/star/wizards/report/ReportWizard.java @@ -303,7 +303,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } if (!bQueryCreated) @@ -512,7 +512,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } } @@ -615,7 +615,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -639,7 +639,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/table/CGCategory.java b/wizards/com/sun/star/wizards/table/CGCategory.java index bf621a3d8bdf..f560f1ee0adb 100644 --- a/wizards/com/sun/star/wizards/table/CGCategory.java +++ b/wizards/com/sun/star/wizards/table/CGCategory.java @@ -58,7 +58,7 @@ public class CGCategory } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -71,7 +71,7 @@ public class CGCategory } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; } } diff --git a/wizards/com/sun/star/wizards/table/CGTable.java b/wizards/com/sun/star/wizards/table/CGTable.java index c9d1ef81aaed..9237901c4b07 100644 --- a/wizards/com/sun/star/wizards/table/CGTable.java +++ b/wizards/com/sun/star/wizards/table/CGTable.java @@ -48,7 +48,7 @@ public class CGTable } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -80,7 +80,7 @@ public class CGTable } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; } } diff --git a/wizards/com/sun/star/wizards/table/FieldDescription.java b/wizards/com/sun/star/wizards/table/FieldDescription.java index c941464c0959..19bfecb8c4f8 100644 --- a/wizards/com/sun/star/wizards/table/FieldDescription.java +++ b/wizards/com/sun/star/wizards/table/FieldDescription.java @@ -114,7 +114,7 @@ public class FieldDescription } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return bexists; } @@ -151,7 +151,7 @@ public class FieldDescription } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/table/FieldFormatter.java b/wizards/com/sun/star/wizards/table/FieldFormatter.java index e3dc0626a428..e64375b0b1af 100644 --- a/wizards/com/sun/star/wizards/table/FieldFormatter.java +++ b/wizards/com/sun/star/wizards/table/FieldFormatter.java @@ -92,7 +92,7 @@ public class FieldFormatter implements XItemListener } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } FontDescriptor oFontDesc = new FontDescriptor(); diff --git a/wizards/com/sun/star/wizards/table/Finalizer.java b/wizards/com/sun/star/wizards/table/Finalizer.java index 9330f2fba79d..17883abbfb78 100644 --- a/wizards/com/sun/star/wizards/table/Finalizer.java +++ b/wizards/com/sun/star/wizards/table/Finalizer.java @@ -101,7 +101,7 @@ public class Finalizer } catch (SQLException e1) { - e1.printStackTrace(System.out); + e1.printStackTrace(System.err); } CurUnoDialog.insertLabel("lblCatalog", new String[] @@ -136,7 +136,7 @@ public class Finalizer } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } nListBoxPosX = 200; } @@ -156,7 +156,7 @@ public class Finalizer } catch (Exception e1) { - e1.printStackTrace(System.out); + e1.printStackTrace(System.err); } CurUnoDialog.insertLabel("lblSchema", new String[] @@ -191,7 +191,7 @@ public class Finalizer } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } } @@ -251,7 +251,7 @@ public class Finalizer } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java b/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java index 0df75c57e827..83d33398aab9 100644 --- a/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java +++ b/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java @@ -299,7 +299,7 @@ public class PrimaryKeyHandler implements XFieldSelectionListener } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; } @@ -359,7 +359,7 @@ public class PrimaryKeyHandler implements XFieldSelectionListener } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -373,7 +373,7 @@ public class PrimaryKeyHandler implements XFieldSelectionListener } catch (IllegalArgumentException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/table/ScenarioSelector.java b/wizards/com/sun/star/wizards/table/ScenarioSelector.java index 9da13aecc37f..51a7b4175c19 100644 --- a/wizards/com/sun/star/wizards/table/ScenarioSelector.java +++ b/wizards/com/sun/star/wizards/table/ScenarioSelector.java @@ -153,7 +153,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } initializeCategory(BUSINESS); } @@ -182,7 +182,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -212,7 +212,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } String[] fieldnames = new String[afieldnameVector.size()]; @@ -238,7 +238,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } } @@ -263,7 +263,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X } catch (RuntimeException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } if (!stablename.equals(PropertyNames.EMPTY_STRING)) { diff --git a/wizards/com/sun/star/wizards/table/TableWizard.java b/wizards/com/sun/star/wizards/table/TableWizard.java index 89133a7a8a9b..ddd4be3d65bb 100644 --- a/wizards/com/sun/star/wizards/table/TableWizard.java +++ b/wizards/com/sun/star/wizards/table/TableWizard.java @@ -230,7 +230,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } */ @@ -328,7 +328,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -376,7 +376,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } return PropertyNames.EMPTY_STRING; } @@ -407,7 +407,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return true; } diff --git a/wizards/com/sun/star/wizards/text/TextDocument.java b/wizards/com/sun/star/wizards/text/TextDocument.java index 0fe10c4213be..06a885c50072 100644 --- a/wizards/com/sun/star/wizards/text/TextDocument.java +++ b/wizards/com/sun/star/wizards/text/TextDocument.java @@ -259,7 +259,7 @@ public class TextDocument } catch (PropertyVetoException e1) { - e1.printStackTrace(System.out); + e1.printStackTrace(System.err); } } Object oDoc = OfficeDocument.load(xFrame, sDefaultTemplate, "_self", loadValues); @@ -299,7 +299,7 @@ public class TextDocument } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -445,7 +445,7 @@ public class TextDocument } catch (NoSuchElementException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return false; } } diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.java b/wizards/com/sun/star/wizards/text/TextFieldHandler.java index 32b5255b9366..db25b3f147b8 100644 --- a/wizards/com/sun/star/wizards/text/TextFieldHandler.java +++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.java @@ -84,7 +84,7 @@ public class TextFieldHandler } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return PropertyNames.EMPTY_STRING; } @@ -121,7 +121,7 @@ public class TextFieldHandler } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -192,7 +192,7 @@ public class TextFieldHandler catch (Exception e) { // TODO Auto-generated catch block - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -213,7 +213,7 @@ public class TextFieldHandler } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -313,7 +313,7 @@ public class TextFieldHandler } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -333,7 +333,7 @@ public class TextFieldHandler } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/text/TextSectionHandler.java b/wizards/com/sun/star/wizards/text/TextSectionHandler.java index 7c80d722adce..931a0f30dd17 100644 --- a/wizards/com/sun/star/wizards/text/TextSectionHandler.java +++ b/wizards/com/sun/star/wizards/text/TextSectionHandler.java @@ -66,7 +66,7 @@ public class TextSectionHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -86,7 +86,7 @@ public class TextSectionHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -99,7 +99,7 @@ public class TextSectionHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -122,7 +122,7 @@ public class TextSectionHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -141,7 +141,7 @@ public class TextSectionHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -168,7 +168,7 @@ public class TextSectionHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -194,7 +194,7 @@ public class TextSectionHandler } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -234,7 +234,7 @@ public class TextSectionHandler } catch (IllegalArgumentException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -257,7 +257,7 @@ public class TextSectionHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/text/TextStyleHandler.java b/wizards/com/sun/star/wizards/text/TextStyleHandler.java index 70cbca47f91f..b1ebdc5407ea 100644 --- a/wizards/com/sun/star/wizards/text/TextStyleHandler.java +++ b/wizards/com/sun/star/wizards/text/TextStyleHandler.java @@ -61,7 +61,7 @@ public class TextStyleHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -80,7 +80,7 @@ public class TextStyleHandler } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return null; } @@ -99,7 +99,7 @@ public class TextStyleHandler } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return null; } } diff --git a/wizards/com/sun/star/wizards/text/TextTableHandler.java b/wizards/com/sun/star/wizards/text/TextTableHandler.java index 42dde2f4b36f..c992946f163b 100644 --- a/wizards/com/sun/star/wizards/text/TextTableHandler.java +++ b/wizards/com/sun/star/wizards/text/TextTableHandler.java @@ -68,7 +68,7 @@ public class TextTableHandler } catch (java.lang.Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -91,7 +91,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return xTextTable; } @@ -107,7 +107,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -127,7 +127,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -144,7 +144,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -158,7 +158,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -171,7 +171,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -187,7 +187,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -205,7 +205,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -237,7 +237,7 @@ public class TextTableHandler } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/text/ViewHandler.java b/wizards/com/sun/star/wizards/text/ViewHandler.java index 6324fdbec492..44f67a90a740 100644 --- a/wizards/com/sun/star/wizards/text/ViewHandler.java +++ b/wizards/com/sun/star/wizards/text/ViewHandler.java @@ -89,7 +89,7 @@ public class ViewHandler } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/ui/AggregateComponent.java b/wizards/com/sun/star/wizards/ui/AggregateComponent.java index 5afc462d846b..15c759c1499e 100644 --- a/wizards/com/sun/star/wizards/ui/AggregateComponent.java +++ b/wizards/com/sun/star/wizards/ui/AggregateComponent.java @@ -188,7 +188,7 @@ public class AggregateComponent extends ControlScroller } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } @@ -325,7 +325,7 @@ public class AggregateComponent extends ControlScroller } catch (SQLException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return false; } @@ -414,7 +414,7 @@ public class AggregateComponent extends ControlScroller } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -543,7 +543,7 @@ public class AggregateComponent extends ControlScroller } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -593,7 +593,7 @@ public class AggregateComponent extends ControlScroller } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/ui/CommandFieldSelection.java b/wizards/com/sun/star/wizards/ui/CommandFieldSelection.java index 1993035b5a10..a52edad88b70 100644 --- a/wizards/com/sun/star/wizards/ui/CommandFieldSelection.java +++ b/wizards/com/sun/star/wizards/ui/CommandFieldSelection.java @@ -150,7 +150,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator< } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -264,7 +264,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator< } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/ui/ControlScroller.java b/wizards/com/sun/star/wizards/ui/ControlScroller.java index b1a83bba9c4c..775e6682a964 100644 --- a/wizards/com/sun/star/wizards/ui/ControlScroller.java +++ b/wizards/com/sun/star/wizards/ui/ControlScroller.java @@ -453,7 +453,7 @@ public abstract class ControlScroller } catch (java.lang.Exception ex) { - ex.printStackTrace(System.out); + ex.printStackTrace(System.err); return null; } } diff --git a/wizards/com/sun/star/wizards/ui/FieldSelection.java b/wizards/com/sun/star/wizards/ui/FieldSelection.java index 821262643098..8abf43359f33 100644 --- a/wizards/com/sun/star/wizards/ui/FieldSelection.java +++ b/wizards/com/sun/star/wizards/ui/FieldSelection.java @@ -145,7 +145,7 @@ public class FieldSelection } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } @@ -349,7 +349,7 @@ public class FieldSelection } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -431,7 +431,7 @@ public class FieldSelection } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -465,7 +465,7 @@ public class FieldSelection } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -497,7 +497,7 @@ public class FieldSelection } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/ui/FilterComponent.java b/wizards/com/sun/star/wizards/ui/FilterComponent.java index a9af6fb390ec..e9a756ffefd2 100644 --- a/wizards/com/sun/star/wizards/ui/FilterComponent.java +++ b/wizards/com/sun/star/wizards/ui/FilterComponent.java @@ -219,7 +219,7 @@ public class FilterComponent } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return PropertyNames.EMPTY_STRING; } @@ -342,7 +342,7 @@ public class FilterComponent } catch (IllegalArgumentException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } return PropertyNames.EMPTY_STRING; } @@ -711,7 +711,7 @@ public class FilterComponent } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -758,7 +758,7 @@ public class FilterComponent } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return false; } } @@ -819,7 +819,7 @@ public class FilterComponent } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } } @@ -860,7 +860,7 @@ public class FilterComponent } catch (Exception e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); } if ((iselected.length) == 0) { @@ -885,7 +885,7 @@ public class FilterComponent } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return null; } @@ -925,7 +925,7 @@ public class FilterComponent } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } return -1; } diff --git a/wizards/com/sun/star/wizards/ui/PeerConfig.java b/wizards/com/sun/star/wizards/ui/PeerConfig.java index c506307f6b91..e01942c8d18b 100644 --- a/wizards/com/sun/star/wizards/ui/PeerConfig.java +++ b/wizards/com/sun/star/wizards/ui/PeerConfig.java @@ -138,7 +138,7 @@ public class PeerConfig implements XWindowListener } catch (RuntimeException re) { - re.printStackTrace(System.out); + re.printStackTrace(System.err); throw re; } } diff --git a/wizards/com/sun/star/wizards/ui/SortingComponent.java b/wizards/com/sun/star/wizards/ui/SortingComponent.java index 03c0fc4fce3f..32ec6c56bf85 100644 --- a/wizards/com/sun/star/wizards/ui/SortingComponent.java +++ b/wizards/com/sun/star/wizards/ui/SortingComponent.java @@ -128,7 +128,7 @@ public class SortingComponent } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -233,7 +233,7 @@ public class SortingComponent } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -274,7 +274,7 @@ public class SortingComponent } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -357,7 +357,7 @@ public class SortingComponent } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.java b/wizards/com/sun/star/wizards/ui/UnoDialog.java index d9cfffd7fffc..c2f9dba76d7c 100644 --- a/wizards/com/sun/star/wizards/ui/UnoDialog.java +++ b/wizards/com/sun/star/wizards/ui/UnoDialog.java @@ -88,7 +88,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -106,7 +106,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); iKey = 2000; } return iKey; @@ -160,7 +160,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -186,7 +186,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -200,7 +200,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { // com.sun.star.container.NoSuchElementException, com.sun.star.beans.UnknownPropertyException, - exception.printStackTrace(System.out); // com.sun.star.lang.WrappedTargetException, com.sun.star.beans.PropertyVetoException + exception.printStackTrace(System.err); // com.sun.star.lang.WrappedTargetException, com.sun.star.beans.PropertyVetoException return null; // com.sun.star.lang.IllegalArgumentException } } @@ -220,7 +220,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { // com.sun.star.container.NoSuchElementException, com.sun.star.beans.UnknownPropertyException, - exception.printStackTrace(System.out); // com.sun.star.lang.WrappedTargetException, com.sun.star.beans.PropertyVetoException + exception.printStackTrace(System.err); // com.sun.star.lang.WrappedTargetException, com.sun.star.beans.PropertyVetoException } } @@ -391,7 +391,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -425,7 +425,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -488,7 +488,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -507,7 +507,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -532,7 +532,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -554,7 +554,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -586,7 +586,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -604,7 +604,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -619,7 +619,7 @@ public class UnoDialog implements EventNames } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -646,7 +646,7 @@ public class UnoDialog implements EventNames } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); return null; } } @@ -1045,7 +1045,7 @@ public class UnoDialog implements EventNames } catch (IllegalArgumentException e) { - e.printStackTrace(System.out); + e.printStackTrace(System.err); return false; } //TODO: The following methods could be wrapped in an own class implementation diff --git a/wizards/com/sun/star/wizards/ui/WizardDialog.java b/wizards/com/sun/star/wizards/ui/WizardDialog.java index 2e5682fedbe6..5904ec6ccc9b 100644 --- a/wizards/com/sun/star/wizards/ui/WizardDialog.java +++ b/wizards/com/sun/star/wizards/ui/WizardDialog.java @@ -163,7 +163,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (com.sun.star.lang.IllegalArgumentException exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } @@ -185,7 +185,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (IllegalArgumentException exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return false; } } @@ -210,7 +210,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return -1; } } @@ -269,7 +269,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } } @@ -308,7 +308,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return -1; } } @@ -337,7 +337,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return null; } } @@ -524,7 +524,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } } @@ -618,7 +618,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return false; } } @@ -708,7 +708,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL } catch (com.sun.star.uno.Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); return -1; } } diff --git a/wizards/com/sun/star/wizards/web/CallWizard.java b/wizards/com/sun/star/wizards/web/CallWizard.java index 6f146288c335..2976bd598d62 100644 --- a/wizards/com/sun/star/wizards/web/CallWizard.java +++ b/wizards/com/sun/star/wizards/web/CallWizard.java @@ -278,7 +278,7 @@ public class CallWizard } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/web/WWD_Startup.java b/wizards/com/sun/star/wizards/web/WWD_Startup.java index 442f9a4e4269..36fb592d3d93 100644 --- a/wizards/com/sun/star/wizards/web/WWD_Startup.java +++ b/wizards/com/sun/star/wizards/web/WWD_Startup.java @@ -419,7 +419,7 @@ public abstract class WWD_Startup extends WWD_General } catch (java.lang.Exception jexception) { - jexception.printStackTrace(System.out); + jexception.printStackTrace(System.err); } } diff --git a/wizards/com/sun/star/wizards/web/WebWizard.java b/wizards/com/sun/star/wizards/web/WebWizard.java index c5556227f8e7..17ee19596c1e 100644 --- a/wizards/com/sun/star/wizards/web/WebWizard.java +++ b/wizards/com/sun/star/wizards/web/WebWizard.java @@ -52,7 +52,7 @@ public class WebWizard extends WWD_Events } catch (Exception exception) { - exception.printStackTrace(System.out); + exception.printStackTrace(System.err); } } } diff --git a/wizards/com/sun/star/wizards/web/export/FilterExporter.java b/wizards/com/sun/star/wizards/web/export/FilterExporter.java index bfe0af3f3c5a..39b81e1f8744 100644 --- a/wizards/com/sun/star/wizards/web/export/FilterExporter.java +++ b/wizards/com/sun/star/wizards/web/export/FilterExporter.java @@ -55,7 +55,7 @@ public class FilterExporter extends AbstractExporter } catch (IOException iox) { - iox.printStackTrace(System.out); + iox.printStackTrace(System.err); result = false; throw iox; } |