logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balaraman Sujatha <sujat...@cisco.com>
Subject Getting rid of the log4j:Error Could not connect to remote log4j server at [localhost]
Date Fri, 08 Feb 2002 01:03:13 GMT
Hi,
I am using a socketappender for my application. I get this error whenever 
my socket server is not running. I want to suppress this error. How can I 
do it, is there any easy way to do this from the configuration file itself ?

Please let me know.

Thanks,
Sujatha.
-----------

log4j:ERROR Could not connect to remote log4j server at [localhost]. We 
will try again later.
java.net.SocketException: connect (code=10061)
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:306)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:126)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:113)
         at java.net.Socket.<init>(Socket.java:262)
         at java.net.Socket.<init>(Socket.java:118)
         at 
org.apache.log4j.net.SocketAppender.connect(SocketAppender.java:301)
         at 
org.apache.log4j.net.SocketAppender.activateOptions(SocketAppender.java:255)
         at 
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
         at 
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java, 
Compiled Code)
         at 
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
         at 
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:637)
         at 
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java, 
Compiled Code)
         at 
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:502)
         at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:410)
         at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:436)
         at 
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:455)
         at org.apache.log4j.Category.<clinit>(Category.java:146)
         at com.cisco.nm.xms.ctm.server.CTMServer.<clinit>(CTMServer.java:38)
         at TestServer.main(TestServer.java:18)


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message