This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Java Products and Servers and the fly likes Sonic MQ error logs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Sonic MQ error logs" Watch "Sonic MQ error logs" New topic
Author

Sonic MQ error logs

Alita Bear
Greenhorn

Joined: Apr 07, 2005
Posts: 1
I have an application that makes use of the Sonic library. My question is, does anyone know how not to show Sonic errors in the console? An example is when I try to create a progress.message.jclient.TopicConnectionFactory when the Sonic server is down. I have something like this in my code:

try {
topicConnectionFactory = new progress.message.jclient.TopicConnectionFactory();
topicConnection = topicConnectionFactory.createTopicConnection(username, password);
} catch (Exception e) {
getLogger().log(Level.FINER,"Problem in connecting, "e);
}

When the Sonic broker is down, I was expecting to just get the FINER log from my class's logger but I get this extraneous log:

[103] progress.message.client.EUnknownBrokerHost: java.net.UnknownHostException:
<my host name>:https://<my host name>:<its port number>
at progress.message.zclient.Connection.WPB_(Unknown Source)
at progress.message.zclient.Connection.connectWithRecoveryOpt(Unknown So
urce)
at progress.message.zclient.ReconnectHelper.connectAndChaseSingleFailove
rRedirect(Unknown Source)
at progress.message.zclient.ReconnectHelper.connect(Unknown Source)
at progress.message.zclient.FaultTolerantDropHandler.LV_(Unknown Source)
at progress.message.zclient.FaultTolerantDropHandler.socketDropped(Unkno
wn Source)
at progress.message.zclient.Connection.qPB_(Unknown Source)
at progress.message.zclient.ClientListener.hBC_(Unknown Source)
at progress.message.zclient.ClientListener.gBC_(Unknown Source)
at progress.message.zclient.ClientListener.threadMain(Unknown Source)
at progress.message.zclient.DebugThread.run(Unknown Source)


before my FINER log. Are Sonic errors by default logged to the console? Is there a way to suppress all of these messages?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Sonic MQ error logs