<div dir="ltr">I'll try to look into it shortly and post back onto the ML.</div><div class="gmail_extra"><br><div class="gmail_quote">On 30 January 2017 at 16:16, Balu S <span dir="ltr"><<a href="mailto:sbalu27@gmail.com" target="_blank">sbalu27@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Marc,<div>thanks for your quick response. Unfortunately it doesn't work.</div><div><br></div><div>Although, what I am trying to achieve is to use "Slf4jLoggerFactory" and it fails with same null pointer.</div><div><br></div><div><div>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.<wbr>default-server.default-host./<wbr>apiman-gateway: org.jboss.msc.service.<wbr>StartException in service jboss.undertow.deployment.<wbr>default-server.default-host./<wbr>apiman-gateway: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at org.wildfly.extension.<wbr>undertow.deployment.<wbr>UndertowDeploymentService$1.<wbr>run(UndertowDeploymentService.<wbr>java:85)</div><span class=""><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at java.util.concurrent.<wbr>Executors$RunnableAdapter.<wbr>call(Executors.java:511)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at java.util.concurrent.<wbr>FutureTask.run(FutureTask.<wbr>java:266)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1142)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:617)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at java.lang.Thread.run(Thread.<wbr>java:745)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at org.jboss.threads.JBossThread.<wbr>run(JBossThread.java:320)</div></span><div>Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at io.undertow.servlet.core.<wbr>DeploymentManagerImpl.deploy(<wbr>DeploymentManagerImpl.java:<wbr>236)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at org.wildfly.extension.<wbr>undertow.deployment.<wbr>UndertowDeploymentService.<wbr>startContext(<wbr>UndertowDeploymentService.<wbr>java:100)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at org.wildfly.extension.<wbr>undertow.deployment.<wbr>UndertowDeploymentService$1.<wbr>run(UndertowDeploymentService.<wbr>java:82)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>... 6 more</div><div>Caused by: java.lang.RuntimeException: java.lang.NullPointerException</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at io.apiman.gateway.engine.impl.<wbr>ConfigDrivenEngineFactory.<wbr>instantiate(<wbr>ConfigDrivenEngineFactory.<wbr>java:179)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at io.apiman.gateway.engine.impl.<wbr>ConfigDrivenEngineFactory.<wbr>create(<wbr>ConfigDrivenEngineFactory.<wbr>java:163)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at io.apiman.gateway.engine.impl.<wbr>ConfigDrivenEngineFactory.<wbr>createLoggerFactory(<wbr>ConfigDrivenEngineFactory.<wbr>java:152)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at io.apiman.gateway.engine.impl.<wbr>AbstractEngineFactory.<wbr>createEngine(<wbr>AbstractEngineFactory.java:60)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at io.apiman.gateway.platforms.<wbr>war.WarGateway.init(<wbr>WarGateway.java:55)</div><div><span class="m_-1550235240926911364gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>at io.apiman.gateway.platforms.<wbr>war.listeners.<wbr>WarGatewayBootstrapper.<wbr>contextInitialized(<wbr>WarGatewayBootstrapper.java:</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 30, 2017 at 5:07 PM, Marc Savy <span dir="ltr"><<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I think you want </div><div>io.apiman.common.logging.Defau<wbr>ltDelegateFactory in that field rather than SystemOutLogger directly.</div><div><br></div><div>Does that work?</div><div><br></div><div>The name is probably confusing - it *was* the default one at some point.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1550235240926911364h5">On 30 January 2017 at 15:57, Balu S <span dir="ltr"><<a href="mailto:sbalu27@gmail.com" target="_blank">sbalu27@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1550235240926911364h5"><div dir="ltr">Hello,<div><br></div><div>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.</div><div><br></div><div>#apiman-gateway.logger-factory<wbr>=io.apiman.common.logging.impl<wbr>.NoOpLoggerFactory<br></div><div>apiman-gateway.logger-factory=<wbr>io.apiman.common.logging.impl.<wbr>SystemOutLogger <br></div><div><br></div><div>Also, If I try to change to Slf4jLoggerFactory, then even the Slf4jLoggerFactory.class is not found.</div><div><br></div><div>Could you please advise if there is any reference to be added and causes below error. Thanks</div><div><br></div><div><div>. Falling back to the Default. [No IDataEncrypter class configured.]</div><div>16:50:52,028 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 69) MSC000001: Failed</div><div>to start service jboss.undertow.deployment.defa<wbr>ult-server.default-host./apima<wbr>n-gateway-api: org.jbos</div><div>s.msc.service.StartException in service jboss.undertow.deployment.defa<wbr>ult-server.default-host./apima</div><div>n-gateway-api: java.lang.RuntimeException: java.lang.ClassCastException: io.apiman.common.logging.impl.<wbr>SystemOutLogger cannot be cast to io.apiman.common.logging.IDele<wbr>gateFactory</div><div> at org.wildfly.extension.undertow<wbr>.deployment.UndertowDeployment<wbr>Service$1.run(UndertowDeploym</div><div>entService.java:85)</div><div> at java.util.concurrent.Executors<wbr>$RunnableAdapter.call(Executor<wbr>s.java:511)</div><div> at java.util.concurrent.FutureTas<wbr>k.run(FutureTask.java:266)</div><div> at java.util.concurrent.ThreadPoo<wbr>lExecutor.runWorker(ThreadPool<wbr>Executor.java:1142)</div><div> at java.util.concurrent.ThreadPoo<wbr>lExecutor$Worker.run(ThreadPoo<wbr>lExecutor.java:617)</div><div> at java.lang.Thread.run(Thread.ja<wbr>va:745)</div><div> at org.jboss.threads.JBossThread.<wbr>run(JBossThread.java:320)</div><div>Caused by: java.lang.RuntimeException: java.lang.ClassCastException: io.apiman.common.logging.impl.<wbr>SystemOutLogger cannot be cast to io.apiman.common.logging.IDele<wbr>gateFactory</div><div> at io.undertow.servlet.core.Deplo<wbr>ymentManagerImpl.deploy(Deploy<wbr>mentManagerImpl.java:236)</div><div> at org.wildfly.extension.undertow<wbr>.deployment.UndertowDeployment<wbr>Service.startContext(Undertow</div><div>DeploymentService.java:100)</div><div> at org.wildfly.extension.undertow<wbr>.deployment.UndertowDeployment<wbr>Service$1.run(UndertowDeploym</div></div><div><br></div><div><br></div><div>regards</div><span class="m_-1550235240926911364m_-7575538498470148778HOEnZb"><font color="#888888"><div>Balu</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>