I'll try to look into it shortly and post back onto the ML.On 30 January 2017 at 16:16, Balu S <sbalu27@gmail.com> wrote:Hi Marc,thanks for your quick response. Unfortunately it doesn't work.Although, what I am trying to achieve is to use "Slf4jLoggerFactory" and it fails with same null pointer.2017-01-30 17:12:59,911 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 64) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./apima n-gateway: org.jboss.msc.service.StartExc eption in service jboss.undertow.deployment.defa ult-server.default-host./apima n-gateway: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException at org.wildfly.extension.undertow.deployment.UndertowDeployment Service$1.run( UndertowDeploymentService.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(ThreadPool Executor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.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.RuntimeException: java.lang.NullPointerExceptionat io.undertow.servlet.core.DeploymentManagerImpl.deploy(Deploy mentManagerImpl.java:236) at org.wildfly.extension.undertow.deployment.UndertowDeployment Service.startContext(UndertowD eploymentService.java:100) at org.wildfly.extension.undertow.deployment.UndertowDeployment Service$1.run( UndertowDeploymentService.java :82) ... 6 moreCaused by: java.lang.RuntimeException: java.lang.NullPointerExceptionat io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.inst antiate(ConfigDrivenEngineFact ory.java:179) at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.crea te(ConfigDrivenEngineFactory.j ava:163) at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.crea teLoggerFactory(ConfigDrivenEn gineFactory.java:152) at io.apiman.gateway.engine.impl.AbstractEngineFactory.createEn gine(AbstractEngineFactory. java:60) at io.apiman.gateway.platforms.war.WarGateway.init(WarGateway. java:55) at io.apiman.gateway.platforms.war.listeners.WarGatewayBootstra pper.contextInitialized(WarGat ewayBootstrapper.java: On Mon, Jan 30, 2017 at 5:07 PM, Marc Savy <marc.savy@redhat.com> wrote:I think you wantio.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@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: Failedto start service jboss.undertow.deployment.default-server.default-host./apima n-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.IDele gateFactory at org.wildfly.extension.undertow.deployment.UndertowDeployment Service$1.run(UndertowDeploym entService.java:85)at java.util.concurrent.Executors$RunnableAdapter.call(Executor s.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool Executor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.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.IDele gateFactory at io.undertow.servlet.core.DeploymentManagerImpl.deploy(Deploy mentManagerImpl.java:236) at org.wildfly.extension.undertow.deployment.UndertowDeployment Service.startContext(Undertow DeploymentService.java:100)at org.wildfly.extension.undertow.deployment.UndertowDeployment Service$1.run(UndertowDeploym regardsBalu_________________
Apiman-user mailing list
Apiman-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/apiman-user