Project

General

Profile

Bug #13822

Updated by Sandali Kavishka 10 days ago

*deployment.toml* 
 [webapp_publisher_configs] 
 host="https://localhost:9443" 
 publish_api=false 
 enable_update_api=false 

 *When When API publishing is disabled using the above configuration, cannot start the server and throws a NullPointerException with the following errors.* 

 -------------------------------------------------------------------------------------------------------------------------------------------------------- errors. 

 TID: [-1234] [] [2025-08-19 15:36:17,460] ERROR {org.apache.catalina.core.ContainerBase} - A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]] 
	 at java.util.concurrent.FutureTask.report(FutureTask.java:122) 
	 at java.util.concurrent.FutureTask.get(FutureTask.java:192) 
	 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926) 
	 at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) 
	 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 
	 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) 
	 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) 
	 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
	 at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) 
	 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) 
	 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) 
	 at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) 
	 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 
	 at org.wso2.carbon.tomcat.ext.service.ExtendedStandardService.startInternal(ExtendedStandardService.java:52) 
	 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 
	 at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) 
	 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 
	 at org.wso2.carbon.tomcat.internal.CarbonTomcat.start(CarbonTomcat.java:113) 
	 at org.wso2.carbon.tomcat.internal.ServerManager$1.run(ServerManager.java:167) 
	 at java.lang.Thread.run(Thread.java:750) 
 Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]] 
	 at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) 
	 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) 
	 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) 
	 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) 
	 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
	 at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) 
	 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) 
	 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) 
	 ... 17 more 
 Caused by: java.lang.NullPointerException 
	 at io.entgra.device.mgt.core.apimgt.webapp.publisher.lifecycle.listener.APIPublisherLifecycleListener.lifecycleEvent(APIPublisherLifecycleListener.java:158) 
	 at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) 
	 at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) 
	 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:193) 
	 ... 23 more

Back