First time trying to startup Chainsaw with the new dependency:

Exception in thread "main" java.lang.NullPointerException
at org.apache.log4j.chainsaw.receivers.ReceiversPanel.<init> (ReceiversPanel.java:395)
        at org.apache.log4j.chainsaw.LogUI.setupReceiverPanel(LogUI.java:493)
        at org.apache.log4j.chainsaw.LogUI.initGUI(LogUI.java:397)
        at org.apache.log4j.chainsaw.LogUI.activateViewer(LogUI.java:610)
        at org.apache.log4j.chainsaw.LogUI.createChainsawGUI(LogUI.java:339)
        at org.apache.log4j.chainsaw.LogUI.main(LogUI.java:257)

This is because the LoggerRepository is not of type LoggerRepositoryEx. Chainsaw makes extensive use of the PluginRegistry, and right now we have no central place where it can access a PluginRegistry.

What I'll do is create a PluginRegistry somewhere higher up, and hand this down to the components that need that; bit more IoC like. I wish I was more IoC aware earlier on.. :)

cheers,

Paul

Reply via email to