logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LOG4J2-64) Log4j 2 is not working with JDK 1.7
Date Wed, 08 Aug 2012 06:33:10 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ralph Goers resolved LOG4J2-64.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0-alpha1)
                   2.0-alpha2
         Assignee: Ralph Goers

I have committed the fixes in revision 1370673. Everything compiles and all the unit tests
pass for me with Java 6 & 7.  Please verify that this works for you.
                
> Log4j 2 is not working with JDK 1.7
> -----------------------------------
>
>                 Key: LOG4J2-64
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-64
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-alpha1
>         Environment: OS: Mac OS X and Linux CentOS 6.3
> javac 1.7.0_05
> java version "1.7.0_05"
> Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
>            Reporter: Ivan Anev
>            Assignee: Ralph Goers
>             Fix For: 2.0-alpha2
>
>
> Even a simple example as:
> import org.apache.logging.log4j.LogManager;
> import org.apache.logging.log4j.Logger;
> public class Test {
>     private static final Logger logger = LogManager.getLogger(Test.class.getName());
>     public static void main(String[] args) {
>         logger.error("Testing...");
>     }
> }
> Results in:
> Exception in thread "main" java.lang.VerifyError: class org.apache.logging.log4j.core.impl.ThrowableProxy
overrides final method addSuppressed.(Ljava/lang/Throwable;)V
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
> 	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> 	at org.apache.logging.log4j.core.config.LoggerConfig.createEvent(LoggerConfig.java:334)
> 	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:262)
> 	at org.apache.logging.log4j.core.Logger.log(Logger.java:115)
> 	at org.apache.logging.log4j.spi.AbstractLogger.error(AbstractLogger.java:965)
> 	at Test.main(Test.java:9)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message