diff options
6 files changed, 13 insertions, 10 deletions
diff --git a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/agent/AutAgent.java b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/agent/AutAgent.java index 1f61f613b..82508682d 100644 --- a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/agent/AutAgent.java +++ b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/agent/AutAgent.java @@ -291,6 +291,7 @@ public class AutAgent { try { m_autCommunicator.send(new PrepareForShutdownMessage()); } catch (CommunicationException e) { + LOG.info(e.getLocalizedMessage(), e); // As a result of not being able to send the message, // the AUT will end with a different exit code. This // may result in an unnecessary error dialog. @@ -475,6 +476,7 @@ public class AutAgent { autCommunicator.send( new PrepareForShutdownMessage()); } catch (CommunicationException e) { + LOG.info(e.getLocalizedMessage(), e); // As a result of not being able to send the message, // the AUT will end with a different exit code. This // may result in an unnecessary error dialog. @@ -730,6 +732,7 @@ public class AutAgent { clientPort, fragmentMap)); } catch (CommunicationException | ClassNotFoundException | InstantiationException | IllegalAccessException ce) { + LOG.error(ce.getLocalizedMessage(), ce); return new ConnectToAutResponseMessage( ce.getLocalizedMessage()); } diff --git a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/RecordActionCommand.java b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/RecordActionCommand.java index fcd820ed2..55343a311 100644 --- a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/RecordActionCommand.java +++ b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/RecordActionCommand.java @@ -60,7 +60,7 @@ public class RecordActionCommand implements ICommand { try { AutStarter.getInstance().getCommunicator().send(messageRecCap); } catch (CommunicationException e) { // NOPMD by al on 4/11/07 3:39 PM - // no log available here + log.error(e.getLocalizedMessage(), e); } return null; diff --git a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/remote/dialogs/ChooseCheckModeDialogBP.java b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/remote/dialogs/ChooseCheckModeDialogBP.java index 7bbfe1b57..da60d4fba 100644 --- a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/remote/dialogs/ChooseCheckModeDialogBP.java +++ b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/remote/dialogs/ChooseCheckModeDialogBP.java @@ -277,7 +277,7 @@ public class ChooseCheckModeDialogBP { try { AutStarter.getInstance().getCommunicator().send(capTestMessage); } catch (CommunicationException e) { // NOPMD by al on 4/11/07 3:39 PM - // no log available here + LOG.error(e.getLocalizedMessage(), e); } } diff --git a/org.eclipse.jubula.communication/src/org/eclipse/jubula/communication/internal/Communicator.java b/org.eclipse.jubula.communication/src/org/eclipse/jubula/communication/internal/Communicator.java index 7e9e941d6..07e45a4eb 100644 --- a/org.eclipse.jubula.communication/src/org/eclipse/jubula/communication/internal/Communicator.java +++ b/org.eclipse.jubula.communication/src/org/eclipse/jubula/communication/internal/Communicator.java @@ -481,19 +481,19 @@ public class Communicator { m_connection.send(new MessageHeader(MessageHeader.MESSAGE, message), messageToSend); } catch (SerialisationException se) { - log.error(se.getLocalizedMessage(), se); + log.debug(se.getLocalizedMessage(), se); throw new CommunicationException( "could not send message:" //$NON-NLS-1$ - + se.getMessage(), MessageIDs.E_MESSAGE_NOT_SEND); + + se.getMessage(), se , MessageIDs.E_MESSAGE_NOT_SEND); } catch (IOException ioe) { - log.error(ioe.getLocalizedMessage(), ioe); + log.debug(ioe.getLocalizedMessage(), ioe); throw new CommunicationException( "io error occured during sending a message:" //$NON-NLS-1$ - + ioe.getMessage(), MessageIDs.E_MESSAGE_SEND); + + ioe.getMessage(), ioe, MessageIDs.E_MESSAGE_SEND); } catch (IllegalArgumentException iae) { - log.error(iae.getLocalizedMessage(), iae); + log.debug(iae.getLocalizedMessage(), iae); throw new CommunicationException( - "message could not send", MessageIDs.E_MESSAGE_NOT_SEND); //$NON-NLS-1$ + "message could not send", iae, MessageIDs.E_MESSAGE_NOT_SEND); //$NON-NLS-1$ } } diff --git a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/RecordActions.java b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/RecordActions.java index c5c61a4ba..84eb7430f 100644 --- a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/RecordActions.java +++ b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/RecordActions.java @@ -736,7 +736,7 @@ public class RecordActions { new RecordActionMessage(capRecMessage); AUTServer.getInstance().getServerCommunicator().send(message); } catch (CommunicationException e) { - // no log available here + log.error(e.getLocalizedMessage(), e); } AUTServer.getInstance().setObservTimestamp(System.currentTimeMillis()); diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/RecordActionsSWT.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/RecordActionsSWT.java index 7bb07545c..432efe9ba 100644 --- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/RecordActionsSWT.java +++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/RecordActionsSWT.java @@ -736,7 +736,7 @@ public class RecordActionsSWT { new RecordActionMessage(capRecMessage); AUTServer.getInstance().getServerCommunicator().send(message); } catch (CommunicationException e) { - // no log available here + log.error(e.getLocalizedMessage(), e); } AUTServer.getInstance().setObservTimestamp(System.currentTimeMillis()); } |