[ 
http://issues.apache.org/jira/browse/FORTRESS-20?page=comments#action_12331784 
] 

Siegfried Goeschl commented on FORTRESS-20:
-------------------------------------------

Environment
==================================================================

+) avalon-framework-*-4.3.jar
+) log4j-1.3alpha-6.jar

log4j.properties
=================================================================

log4j.rootLogger=DEBUG, stdout

#
# configure the stdout appender to go to the console
#

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n


Offending Code
==================================================================
Logger logger = org.apache.log4j.Logger.getLogger( "yaafi" );
Log4JLogger log4JLogger = new Log4JLogger( logger ); // it blows up here

Stacktrace
==================================================================

(class: org/apache/avalon/framework/logger/Log4JLogger, method: 
isFatalErrorEnabled signature: ()Z) Incompatible argument to function
java.lang.VerifyError: (class: org/apache/avalon/framework/logger/Log4JLogger, 
method: isFatalErrorEnabled signature: ()Z) Incompatible argument to function
    at 
at.it20one.eprocurement.service.signature.SignatureServiceTestSetup.initialize(SignatureServiceTestSetup.java:98)
    at 
at.it20one.eprocurement.service.signature.SignatureServiceTestSetup.access$100(SignatureServiceTestSetup.java:25)
    at 
at.it20one.eprocurement.service.signature.SignatureServiceTestSetup$1.setUp(SignatureServiceTestSetup.java:65)
    at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
    at junit.extensions.TestSetup.run(TestSetup.java:23)


Digging through the code
==================================================================

+) in org.apache.log4j.Logger there is no isFatalEnabled() but it is not used 
by avalon-framework anyway (my oversight)
+) having said that I can't see what's actually causing the problem
+) for me it also works for log4j-1.2.12

> Avalon Framework does not work with newer LOG4J versions
> --------------------------------------------------------
>
>          Key: FORTRESS-20
>          URL: http://issues.apache.org/jira/browse/FORTRESS-20
>      Project: Excalibur Fortress
>         Type: Bug
>   Components: Implementation
>     Reporter: Siegfried Goeschl

>
> In Log4J 1.2.12 and  1.3alpha-6 the methods isFatalEnabled, isErrorEnabled 
> and isWarnEnabled are removed and result in a runtime error.  This affects 
> all versions of the Avalon framework.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to