Could not initialize class java.util.logging.LogRecord

Lev Shock dein at hackerdom.ru
Sat Aug 20 09:22:56 EDT 2011


I've had some application crashes with default logging configuration in
Netty. And I don't think it is normal behaviour. Maybe it is related to
jdk/jre version.

You can use sl4fj if you want. Put this before all your Netty
startup-related code (you'll need to import org.jboss.netty.logging.*):

InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());

On Sat, Aug 20, 2011 at 5:23 PM, jadamcrain <jadamcrain at gmail.com> wrote:

> Forgive me if this is standard java logging foo, I've only worked with
> slf4j
> based systems. When I run my netty program I end up getting a crash because
> of a no class def found:
>
> java.lang.NoClassDefFoundError: Could not initialize class
> java.util.logging.LogRecord
>        at java.util.logging.Logger.logp(Logger.java:699)
>        at org.jboss.netty.logging.JdkLogger.warn(JdkLogger.java:86)
>        at
>
> org.jboss.netty.logging.InternalLoggerFactory$1.warn(InternalLoggerFactory.java:133)
>        at
>
> org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:383)
>        at
>
> org.jboss.netty.channel.DefaultChannelFuture.addListener(DefaultChannelFuture.java:148)
>        at
>
> What do I need to do to remedy this? Is it like slf4j where some logging
> something or other has to be on the classpath?
>
> thanks,
> Adam
>
> --
> View this message in context:
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Could-not-initialize-class-java-util-logging-LogRecord-tp6706094p6706094.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20110820/dc11852c/attachment.html 


More information about the netty-users mailing list