Hi Rick, Program aborts with ClassNotFoundException or NoClassDefFoundError? Would you please attach full stacktrace?
On Tue, Apr 4, 2017 at 12:47 PM, rick_tem <[email protected]> wrote: > Hi, > > I have the following code where log4JFile is a valid log4j2 conf file...If > however, ignite-log4j2-1.9.0.jar is not copied into the CLASSPATH, I never > hit the exception below...The program aborts with ClassNotFound. The java > doc says this should throw an IgniteCheckedException in case "logger can't > be created". I consider this a bug. Do you agree? Ignite version is 1.9 > > > try { > log = new > org.apache.ignite.logger.log4j2.Log4J2Logger(log4JFile); > conf.setGridLogger(log); > } catch (Exception e) { > // In version 1.9 this exception not caught. > logger.error("Failed instantiating Ignite logger. Is > the ignite-log4j2 jar in your classpath?", e); > } > > Thanks, > Rick > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Ignite-Logger-error-tp11702.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Best regards, Andrey V. Mashenkov
