KB Article #182133

REST API v2 node does not running

Problem

--B2Bi starts without the rest v2 node simultaneously. The errors thrown in rest logs indicate there is a null parameter for the REST properties file.


--2022-02-10 11:38:04,372 - FATAL [Container] (RestApiStarter) - Fatal error during initialization. Cannot start REST API v2.
rest.log: at com.axway.b2bi.rest.RestApiStarter.getRestConfigFile(RestApiStarter.java:410) ~[interchange-server.jar:26.5.0-6]
rest.log: at com.axway.b2bi.rest.RestApiStarter.writePropertiesFile(RestApiStarter.java:356) ~[interchange-server.jar:26.5.0-6]
rest.log: at com.axway.b2bi.rest.RestApiStarter.start(RestApiStarter.java:147) [interchange-server.jar:26.5.0-6]
rest.log: at com.axway.b2bi.rest.RestApiNode.main(RestApiNode.java:23) [interchange-server.jar:26.5.0-6]


Resolution


*Check if the argument for the REST v2 node is null from the filereg.xml file. If the argument is missing the REST API section should be re-loaded as follows:

*Navigate to <B2Bi_Install_Dir>/Interchange/conf/filereg.xml

*Insert the REST section on the bottom of file.

*<!-- REST API v2 configuration file -->
*<File name="rest.properties" path="conf/rest/application.properties"/>

*Restart B2Bi

**In addition, it might worth to be check if the rest.properties file is valid.