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 /odk | |
parent | hrc cleanup: Remove unused Strings in sfx2 (diff) | |
download | core-cdaddecc5e3ec93294492b3efc38393c91459e10.tar.gz core-cdaddecc5e3ec93294492b3efc38393c91459e10.zip |
java: printStackTrace always to stderr
like 3d3b3f656f92790225b89aa31ee61163fb2fc7e5
Change-Id: I6e80717de009e8a3a89ffc80cb945cc832917f8c
Diffstat (limited to 'odk')
26 files changed, 76 insertions, 76 deletions
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 ; |