[Apiman-user] Logger exception

Marc Savy marc.savy at redhat.com
Mon Jan 30 11:07:28 EST 2017


I think you want
io.apiman.common.logging.DefaultDelegateFactory in that field rather than
SystemOutLogger directly.

Does that work?

The name is probably confusing - it *was* the default one at some point.



On 30 January 2017 at 15:57, Balu S <sbalu27 at gmail.com> wrote:

> Hello,
>
> I'm trying to simply replace the NoOpLoggerFactory to SystemOutLogger in
> apiman.properties and get below exception. It is quite strange as
> SystemOutLogger  is infact implements IDelegateFactory.
>
> #apiman-gateway.logger-factory=io.apiman.common.
> logging.impl.NoOpLoggerFactory
> apiman-gateway.logger-factory=io.apiman.common.logging.impl.
> SystemOutLogger
>
> Also, If I try to change to Slf4jLoggerFactory, then even
> the Slf4jLoggerFactory.class is not found.
>
> Could you please advise if there is any reference to be added and causes
> below error. Thanks
>
> .  Falling back to the Default. [No IDataEncrypter class configured.]
> 16:50:52,028 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool
> -- 69) MSC000001: Failed
> to start service jboss.undertow.deployment.default-server.default-host./apiman-gateway-api:
> org.jbos
> s.msc.service.StartException in service jboss.undertow.deployment.
> default-server.default-host./apima
> n-gateway-api: java.lang.RuntimeException: java.lang.ClassCastException:
> io.apiman.common.logging.impl.SystemOutLogger cannot be cast to
> io.apiman.common.logging.IDelegateFactory
>         at org.wildfly.extension.undertow.deployment.
> UndertowDeploymentService$1.run(UndertowDeploym
> entService.java:85)
>         at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>         at org.jboss.threads.JBossThread.run(JBossThread.java:320)
> Caused by: java.lang.RuntimeException: java.lang.ClassCastException:
> io.apiman.common.logging.impl.SystemOutLogger cannot be cast to
> io.apiman.common.logging.IDelegateFactory
>         at io.undertow.servlet.core.DeploymentManagerImpl.deploy(
> DeploymentManagerImpl.java:236)
>         at org.wildfly.extension.undertow.deployment.
> UndertowDeploymentService.startContext(Undertow
> DeploymentService.java:100)
>         at org.wildfly.extension.undertow.deployment.
> UndertowDeploymentService$1.run(UndertowDeploym
>
>
> regards
> Balu
>
> _______________________________________________
> Apiman-user mailing list
> Apiman-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/apiman-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20170130/6e622a79/attachment-0001.html 


More information about the Apiman-user mailing list