Deploy failed: java.lang.reflect.UndeclaredThrowableException

hello when i want to import bonita getting started tutorial, this error accrued. what i must to do for solve it?thanks

my bonita studio log:

java.lang.reflect.UndeclaredThrowableException
    at com.sun.proxy.$Proxy69.login(Unknown Source)
    at org.bonitasoft.studio.engine.BOSEngineManager.postEngineStart(BOSEngineManager.java:180)
    at org.bonitasoft.studio.engine.BOSEngineManager.start(BOSEngineManager.java:145)
    at org.bonitasoft.studio.engine.BOSEngineManager.start(BOSEngineManager.java:174)
    at org.bonitasoft.studio.engine.BOSEngineManager.loginTenant(BOSEngineManager.java:307)
    at org.bonitasoft.studio.engine.BOSEngineManager.loginDefaultTenant(BOSEngineManager.java:298)
    at org.bonitasoft.studio.engine.operation.GetApiSessionOperation.run(GetApiSessionOperation.java:59)
    at org.bonitasoft.studio.application.handler.DeployArtifactsHandler.lambda$15(DeployArtifactsHandler.java:273)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.io.IOException: Error while executing POST request (http code: 404) <POST http://localhost:8080/bonita/serverAPI/org.bonitasoft.engine.api.LoginAPI/login HTTP/1.1>
    at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:144)
    at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:79)
    at com.sun.proxy.$Proxy69.login(Unknown Source)
    at org.bonitasoft.studio.engine.BOSEngineManager.postEngineStart(BOSEngineManager.java:180)
    at org.bonitasoft.studio.engine.BOSEngineManager.start(BOSEngineManager.java:145)
    at org.bonitasoft.studio.engine.BOSEngineManager.start(BOSEngineManager.java:174)
    at org.bonitasoft.studio.engine.BOSEngineManager.loginTenant(BOSEngineManager.java:307)
    at org.bonitasoft.studio.engine.BOSEngineManager.loginDefaultTenant(BOSEngineManager.java:298)
    at org.bonitasoft.studio.engine.operation.GetApiSessionOperation.run(GetApiSessionOperation.java:59)
    at org.bonitasoft.studio.application.handler.DeployArtifactsHandler.lambda$15(DeployArtifactsHandler.java:273)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
    at     < ========== Beginning of the server stack trace ========== >. ( )
    at org.bonitasoft.engine.api.HTTPServerAPI.executeHttpPost(HTTPServerAPI.java:177)
    at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:139)
    at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:79)
    ... 9 more
Caused by: org.apache.http.client.HttpResponseException: status code: 404
    at org.apache.http.impl.client.AbstractResponseHandler.handleResponse(AbstractResponseHandler.java:70)
    at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:66)
    at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:52)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)
    at org.bonitasoft.engine.api.HTTPServerAPI.executeHttpPost(HTTPServerAPI.java:169)
    ... 11 more

Hi,

It looks like the Bonita Runtime failed to start properly.
You can have a look to the Runtime logs from the Help menu > Bonita Engine logs.

HTH
Romain

Hello,

I solved it by going to the Restart Server option and using the drop database option flag.

HTH