Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#936 closed enhancement (worksforme)

Clearer exception from jobagent

Reported by: Johan Enell Owned by: Johan Enell
Priority: trivial Milestone:
Component: jobagent Version: trunk
Keywords: Cc:

Description

When doing a 'jobagent.sh info' on a jobagent I get a ConnectException? and a stacktrace. Of course... But this is not what the user expect to get. A line just staying that the agent i stopped or information could not be retrieved would be much clearer.

Change History (4)

comment:1 Changed 14 years ago by Johan Enell

Component: corejobagent
Owner: changed from everyone to Johan Enell

comment:2 Changed 14 years ago by Nicklas Nordborg

Resolution: worksforme
Status: newclosed

This is probably because the log4j has been configured to print log messages to standard output. The regular output if the job agent isn't running is, when logging is disabled or printed to a file:

nicklas@auster:~/projects/eclipse/Base2/bin> ./jobagent.sh info
Getting info from job agent...
Exception when executing command info: Connection refused

and if the job agent is running:

nicklas@auster:~/projects/eclipse/Base2/bin> ./jobagent.sh info
Getting info from job agent...
Status:Running

comment:3 Changed 14 years ago by Johan Enell

Well once again i was testing with wrong version...

comment:4 Changed 14 years ago by Nicklas Nordborg

Milestone: BASE 2.7
Note: See TracTickets for help on using tickets.