camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11328) camel-example-cdi-test - Fix invalid logging format
Date Fri, 09 Jun 2017 07:52:18 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-11328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16044107#comment-16044107
] 

ASF GitHub Bot commented on CAMEL-11328:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/camel/pull/1744


> camel-example-cdi-test - Fix invalid logging format
> ---------------------------------------------------
>
>                 Key: CAMEL-11328
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11328
>             Project: Camel
>          Issue Type: Test
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: onder sezgin
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.camel.example.cdi.test.AdviceTest
> 2017-05-25 11:02:47,918 [main           ] INFO  DefaultTypeConverter           - Loaded
192 type converters
> 2017-05-25 11:02:47,933 main ERROR Invalid date format: [now:hh:mm:ss a], using default
java.lang.IllegalArgumentException: Illegal pattern character 'n'
> 	at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:826)
> 	at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:634)
> 	at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:605)
> 	at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:580)
> 	at org.apache.logging.log4j.core.lookup.DateLookup.formatDate(DateLookup.java:64)
> 	at org.apache.logging.log4j.core.lookup.DateLookup.lookup(DateLookup.java:57)
> 	at org.apache.logging.log4j.core.lookup.Interpolator.lookup(Interpolator.java:183)
> 	at org.apache.logging.log4j.core.lookup.StrSubstitutor.resolveVariable(StrSubstitutor.java:1054)
> 	at org.apache.logging.log4j.core.lookup.StrSubstitutor.substitute(StrSubstitutor.java:976)
> 	at org.apache.logging.log4j.core.lookup.StrSubstitutor.substitute(StrSubstitutor.java:872)
> 	at org.apache.logging.log4j.core.lookup.StrSubstitutor.replace(StrSubstitutor.java:427)
> 	at org.apache.logging.log4j.core.pattern.MessagePatternConverter.format(MessagePatternConverter.java:127)
> 	at org.apache.logging.log4j.core.pattern.PatternFormatter.format(PatternFormatter.java:38)
> 	at org.apache.logging.log4j.core.layout.PatternLayout$PatternSerializer.toSerializable(PatternLayout.java:333)
> 	at org.apache.logging.log4j.core.layout.PatternLayout.toText(PatternLayout.java:232)
> 	at org.apache.logging.log4j.core.layout.PatternLayout.encode(PatternLayout.java:217)
> 	at org.apache.logging.log4j.core.layout.PatternLayout.encode(PatternLayout.java:57)
> 	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.directEncodeEvent(AbstractOutputStreamAppender.java:177)
> 	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.tryAppend(AbstractOutputStreamAppender.java:170)
> 	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:161)
> 	at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
> 	at org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
> 	at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
> 	at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
> 	at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:448)
> 	at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:433)
> 	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:417)
> 	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:403)
> 	at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63)
> 	at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146)
> 	at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2091)
> 	at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1993)
> 	at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1852)
> 	at org.apache.logging.slf4j.Log4jLogger.info(Log4jLogger.java:179)
> 	at org.apache.camel.builder.AdviceWithTasks$4.task(AdviceWithTasks.java:347)
> 	at org.apache.camel.model.RouteDefinition.adviceWith(RouteDefinition.java:288)
> 	at org.apache.camel.example.cdi.test.AdviceTest.advice(AdviceTest.java:51)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
> 	at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
> 	at org.jboss.weld.injection.MethodInvocationStrategy$DefaultMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:109)
> 	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:299)
> 	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:277)
> 	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:255)
> 	at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:269)
> 	at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:258)
> 	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
> 	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:136)
> 	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:689)
> 	at org.jboss.weld.util.ForwardingBeanManager.fireEvent(ForwardingBeanManager.java:101)
> 	at org.apache.camel.cdi.CdiEventNotifier.notify(CdiEventNotifier.java:67)
> 	at org.apache.camel.util.EventHelper.doNotifyEvent(EventHelper.java:805)
> 	at org.apache.camel.util.EventHelper.notifyCamelContextStarting(EventHelper.java:70)
> 	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3223)
> 	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:203)
> 	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3096)
> 	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3092)
> 	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3115)
> 	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3092)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
> 	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3029)
> 	at org.apache.camel.impl.DefaultCamelContext$Proxy$_$$_WeldClientProxy.start(Unknown
Source)
> 	at org.apache.camel.cdi.CdiCamelExtension.afterDeploymentValidation(CdiCamelExtension.java:425)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
> 	at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
> 	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:299)
> 	at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)
> 	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:277)
> 	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:255)
> 	at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:269)
> 	at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:258)
> 	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
> 	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)
> 	at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
> 	at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
> 	at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
> 	at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:458)
> 	at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
> 	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:737)
> 	at org.apache.camel.test.cdi.CamelCdiDeployment$1.evaluate(CamelCdiDeployment.java:71)
> 	at org.junit.rules.Verifier$1.evaluate(Verifier.java:35)
> 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
> 2017-05-25 11:02:47,930 [main           ] INFO  AdviceWithTasks                - AdviceWith
(*) : [Log[${body} from ${camelContext.name} at 5/25/17 11:02 AM!]] --> after [pipeline
-> [[To[mock:messages]]]]
> 2017-05-25 11:02:47,940 main ERROR Invalid date format: [now:hh:mm:ss a], using default
java.lang.IllegalArgumentException: Illegal pattern character 'n'



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message