activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <>
Subject [jira] Commented: (AMQ-1132) activeio test package inclusion and logging properties
Date Mon, 07 Apr 2008 17:23:32 GMT


Glen Mazza commented on AMQ-1132:

This is an annoying, ugly bug.  Even the Camel samples[1] are returning this error trace before

log4j:ERROR setFile(null,true) call failed. /target/test.log (No such file or directory)
        at Method)
        at org.apache.log4j.FileAppender.setFile(
        at org.apache.log4j.FileAppender.activateOptions(
        at org.apache.log4j.config.PropertySetter.activate(
        at org.apache.log4j.config.PropertySetter.setProperties(
        at org.apache.log4j.config.PropertySetter.setProperties(
        at org.apache.log4j.PropertyConfigurator.parseAppender(
        at org.apache.log4j.PropertyConfigurator.parseCategory(
        at org.apache.log4j.PropertyConfigurator.configureRootCategory(
        at org.apache.log4j.PropertyConfigurator.doConfigure(
        at org.apache.log4j.PropertyConfigurator.doConfigure(
        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
        at org.apache.log4j.LogManager.<clinit>(
        at org.apache.log4j.Logger.getLogger(
        at org.apache.commons.logging.impl.Log4JLogger.getLogger(
        at org.apache.commons.logging.impl.Log4JLogger.<init>(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
        at org.apache.commons.logging.LogFactory.getLog(
        at org.apache.camel.impl.DefaultCamelContext.<clinit>(
        at org.apache.camel.example.jmstofile.CamelJmsToFileExample.main(

If it would mean turning off this error, perhaps best to go to stdout by default as the OP
says or just trapping this message with a more user-friendly exception.

[1] (run
"mvn clean install" followed by mvn exec:java.)

> activeio test package inclusion and logging properties
> ------------------------------------------------------
>                 Key: AMQ-1132
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: incubation
>            Reporter: Dejan Bosanac
>            Priority: Minor
>             Fix For: 5.2.0
> When you include activemq-core as a dependency on an empty project, even simplest examples
fails with
> /target/test.log (No such file or directory)
> exception.
> First of all, the core package includes dependency on activeio-core test jar 
>     <dependency>
>       <groupId>${pom.groupId}</groupId>
>       <artifactId>activeio-core</artifactId>
>       <optional>false</optional>
>       <type>test-jar</type>
>     </dependency>
> for which I'm not sure is needed.
> Second, in this test activeio package is configured so that root logger
writes into ${basedir}/target/test.log, which causes application to fail. It would be better
to set it to write to stdout by default.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message