Hi all, Looking at the code, this looks related to the Component#logService. The NPE might be prevented if you set the LogService#loggerName property to a non-null value. Otherwise, I've added more checks in SVN trunk to make sure it doesn't fail like this.
Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : Ben R Vesco [mailto:[email protected]] Envoyé : mardi 29 décembre 2009 19:59 À : [email protected] Objet : Re: slf4j extension posted? Did you also import one of the slf4j implementations? Try simple just to make sure it is working. On Mon, Dec 28, 2009 at 10:21 AM, Jeff Ramsdale <[email protected]> wrote: > Hmmm... > > That's quite confusing since 2.0-SNAPSHOT still exists under the old groupId. > Makes it look like both are currently under development? > > I get an NPE when I turn on slf4j facade using the system property: > > Exception in thread "main" java.lang.NullPointerException > at org.restlet.engine.log.LogFilter.<init>(LogFilter.java:88) > at > org.restlet.service.LogService.createInboundFilter(LogService.java:113) > at > org.restlet.engine.component.ComponentHelper.start(ComponentHelper.java:210) > at org.restlet.Component.startHelper(Component.java:530) > at org.restlet.Component.start(Component.java:503) > at com.example.MyServer.start(MyServer.java:27) > at com.example.MyServer.main(MyServer.java:36) > > Any thoughts on what might be going on? > > -jeff > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2433437 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2433657 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2433754

