• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Sonic MQ error logs

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
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?
    Bookmark Topic Watch Topic
  • New Topic