[logback-dev] [Bug 99] New: logback 0.9.8 keeps dropping and recreating connections

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Sep 25 13:03:23 CEST 2007


http://bugzilla.qos.ch/show_bug.cgi?id=99

           Summary: logback 0.9.8 keeps dropping and recreating connections
           Product: logback-general
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: build-structure
        AssignedTo: logback-dev at qos.ch
        ReportedBy: joern at huxhorn.de


I have a serious problem with logback 0.9.8 that forced me to downgrade to
0.9.7 again.

The socket-appender keeps dropping and recreating connections, missing
log-events in the process. It does so at least once, i.e. creating a connection
without writing a single event and then closing it again immeditaly.

I tried to reporduce the behaviour in a simple test program but didn't succeed.
Everything is fine in a simple test.

In both of our "real" applications, however, this problem is definitly
reproducible and just vanishes after a downgrade to 0.9.7. I suspect that the
problem is connected to log4j-over-slf4j because that's one of the differences
to my small test.

We have the following dependencies:
<dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <scope>compile</scope>
</dependency>

<dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <scope>provided</scope>
</dependency>
<dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl104-over-slf4j</artifactId>
        <scope>runtime</scope>
</dependency>

<dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>log4j-over-slf4j</artifactId>
        <scope>runtime</scope>
</dependency>
<dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <scope>provided</scope>
</dependency>

<dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-core</artifactId>
        <scope>compile</scope>
</dependency>
<dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <scope>compile</scope>
</dependency>

with slf4j 1.4.3 and logback 0.9.8 as version.

We use several third-party jars in our apps, e.g. spring, commons-stuff etc.,
so we have to map both commons-logging as well as log4j to logback.

This worked perfectly up to version 0.9.7 but doesn't work anymore!

I'm sorry about this rather obscure error report but I'm really quite clueless
about the problem myself. I just checked the svn repos and the last socket
appender change was done 4 month ago so that can't be responsible...

I'll try to investigate this some more but you might already know what's wrong
since you know what changed between 0.9.7 and 0.9.8.

The problem exists on at least Windows and Solaris, btw.


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the logback-dev mailing list