Petals ESB Container

NPE if no property 'handlers' is defined in logging configuration

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 4.1.0
  • Fix Version/s: 4.2.0
  • Component/s: Configuration, Logging
  • Security Level: Public
  • Description:
    Hide

    If no property named 'handlers' is defined in the logging configuration, the following error occurs and Petals ESB startup fails:

    ___   ____ __   ___    __    ____   ____ ____ ___  
        / _ \ / __// /_ / _ |  / /   / __/  / __// __// _ ) 
       / ___// _/ / __// __ | / /__ _\ \   / _/ _\ \ / _  | 
      /_/   /___/ \__//_/ |_|/____//___/  /___//___//____/  
    
    Initializing server ...
    Listening for transport dt_socket at address: 8000
    ERROR: null
    java.lang.reflect.InvocationTargetException
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.ow2.petals.launcher.PetalsLauncher.launchPetalsServer(PetalsLauncher.java:103)
    	at org.ow2.petals.launcher.PetalsLauncher.main(PetalsLauncher.java:202)
    Caused by: org.ow2.petals.kernel.api.server.PetalsException: Problem while initializing Petals
    	at org.ow2.petals.kernel.server.PetalsServerImpl.init(PetalsServerImpl.java:169)
    	... 6 more
    Caused by: java.lang.NullPointerException
    	at com.ebmwebsourcing.easycommons.properties.PropertiesHelper.parsePropertyValues(PropertiesHelper.java:330)
    	at org.ow2.petals.kernel.server.PetalsServerImpl.finalizeLoggingInitialization(PetalsServerImpl.java:702)
    	at org.ow2.petals.kernel.server.PetalsServerImpl.initializeLogger(PetalsServerImpl.java:656)
    	at org.ow2.petals.kernel.server.PetalsServerImpl.init(PetalsServerImpl.java:163)
    	... 6 more
    Show
    If no property named 'handlers' is defined in the logging configuration, the following error occurs and Petals ESB startup fails:
    ___   ____ __   ___    __    ____   ____ ____ ___  
        / _ \ / __// /_ / _ |  / /   / __/  / __// __// _ ) 
       / ___// _/ / __// __ | / /__ _\ \   / _/ _\ \ / _  | 
      /_/   /___/ \__//_/ |_|/____//___/  /___//___//____/  
    
    Initializing server ...
    Listening for transport dt_socket at address: 8000
    ERROR: null
    java.lang.reflect.InvocationTargetException
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.ow2.petals.launcher.PetalsLauncher.launchPetalsServer(PetalsLauncher.java:103)
    	at org.ow2.petals.launcher.PetalsLauncher.main(PetalsLauncher.java:202)
    Caused by: org.ow2.petals.kernel.api.server.PetalsException: Problem while initializing Petals
    	at org.ow2.petals.kernel.server.PetalsServerImpl.init(PetalsServerImpl.java:169)
    	... 6 more
    Caused by: java.lang.NullPointerException
    	at com.ebmwebsourcing.easycommons.properties.PropertiesHelper.parsePropertyValues(PropertiesHelper.java:330)
    	at org.ow2.petals.kernel.server.PetalsServerImpl.finalizeLoggingInitialization(PetalsServerImpl.java:702)
    	at org.ow2.petals.kernel.server.PetalsServerImpl.initializeLogger(PetalsServerImpl.java:656)
    	at org.ow2.petals.kernel.server.PetalsServerImpl.init(PetalsServerImpl.java:163)
    	... 6 more
  • Environment:
    -

Issue Links

Activity

People

Dates

  • Created:
    Wed, 11 Jul 2012 - 18:05:02 +0200
    Updated:
    Tue, 12 Mar 2013 - 08:18:51 +0100
    Resolved:
    Mon, 3 Sep 2012 - 12:52:41 +0200