You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Matthew Bingham <te...@gmail.com> on 2011/03/29 14:06:27 UTC

Having trouble getting XMLSocketAppender to reconnect

I have been using XMLSocketAppender without much issue, except for when the
connection is lost log4cxx is never reconnecting.  I have ReconnectionDelay
set to 1000 and when the connection goes I see log4cxx display "log4cxx:
Detected problem with connection: log4cxx: IO Exception : status code =
730053"  This is with a 64 bit build with VS2008.  I configure log4cxx from
an xml file and in the the source just call

logger_ = Logger::getLogger("Server");
LOG4CXX_DEBUG(logger_,"Server logging");


Any suggestions?  Below is the log4cxx debug information.  Thanks.

log4cxx: Threshold ="".
log4cxx: Level value for root is [all].
log4cxx: OptionConverter::toLevel: no class name specified, level=[all]
log4cxx: root level set to ALL
log4cxx: Retreiving an instance of Logger.
log4cxx: Setting [Server] additivity to [true].
log4cxx: Level value for Server is [debug].
log4cxx: OptionConverter::toLevel: no class name specified, level=[debug]
log4cxx: Server level set to DEBUG
log4cxx: Class name: [org.apache.log4j.net.XMLSocketAppender]
log4cxx: Setting option name=[Port], value=[12345]
log4cxx: Setting option name=[RemoteHost], value=[192.168.1.102]
log4cxx: Setting option name=[ReconnectionDelay], value=[1000]
log4cxx: Setting option name=[LocationInfo], value=[true]
log4cxx: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4cxx: Setting option name=[ConversionPattern], value=[%d %-5p [%c] %m%n]
log4cxx: Adding appender named [MyXmlAppenderFormated] to logger [Server].
log4cxx: Retreiving an instance of Logger.
log4cxx: Setting [multicastListener] additivity to [true].
log4cxx: Level value for multicastListener is [warn].
log4cxx: OptionConverter::toLevel: no class name specified, level=[warn]
log4cxx: multicastListener level set to WARN
log4cxx: Detected problem with connection:
log4cxx: IO Exception : status code = 730053

Re: Having trouble getting XMLSocketAppender to reconnect

Posted by RDX <ro...@infosys.com>.
Matthew Bingham <texbingham <at> gmail.com> writes:

> 
> I have been using XMLSocketAppender without much issue, except for when the 
connection is lost log4cxx is never reconnecting.  I have ReconnectionDelay 
set to 1000 and when the connection goes I see log4cxx display "log4cxx: 
Detected problem with connection: log4cxx: IO Exception : status code = 
730053"  This is with a 64 bit build with VS2008.  I configure log4cxx from an 
xml file and in the the source just calllogger_ = Logger::getLogger
("Server");LOG4CXX_DEBUG(logger_,"Server logging");      Any suggestions?  
Below is the log4cxx debug information.  Thanks.  log4cxx: Threshold ="".
> log4cxx: Level value for root is [all].log4cxx: OptionConverter::toLevel: no 
class name specified, level=[all]log4cxx: root level set to ALLlog4cxx: 
Retreiving an instance of Logger.log4cxx: Setting [Server] additivity to 
[true].
> log4cxx: Level value for Server is [debug].log4cxx: 
OptionConverter::toLevel: no class name specified, level=[debug]log4cxx: 
Server level set to DEBUGlog4cxx: Class name: 
[org.apache.log4j.net.XMLSocketAppender]
> log4cxx: Setting option name=[Port], value=[12345]log4cxx: Setting option 
name=[RemoteHost], value=[192.168.1.102]log4cxx: Setting option name=
[ReconnectionDelay], value=[1000]log4cxx: Setting option name=[LocationInfo], 
value=[true]
> log4cxx: Parsing layout of class: "org.apache.log4j.PatternLayout"log4cxx: 
Setting option name=[ConversionPattern], value=[%d %-5p [%c] %m%n]log4cxx: 
Adding appender named [MyXmlAppenderFormated] to logger [Server].
> log4cxx: Retreiving an instance of Logger.log4cxx: Setting 
[multicastListener] additivity to [true].log4cxx: Level value for 
multicastListener is [warn].log4cxx: OptionConverter::toLevel: no class name 
specified, level=[warn]
> log4cxx: multicastListener level set to WARNlog4cxx: Detected problem with 
connection:log4cxx: IO Exception : status code = 730053

====================================

Hi Matthew,

I am also getting the similar error while i am sending request to a TCP port.
My server is listening on a port (1234). When i fire request to the port, the 
conenction is proper, but in server side while doing a receive i get problem.

Server Side error :-
----------------------
Socket operation Failed [0]
ECHOSERV: Error calling close()
Socket operation Failed [10038]

My log4cxx error :-
-------------------

log4cxx: Detected problem with connection:
log4cxx: IO Exception : status code = 730053

Please suggest, if you have solved this issue.

Thanks in advance.

Warm Regards,
Romel