Lost connection throws an java.lang.reflect.UndeclaredThrowableException

1
0
-1

Hi,

Connecting to server for API Call, after a time, when connection is lost, an exception is throwed :

2017-02-09 09:23:46,290 [DEBUG] Connection request: [route: {}->http://localhost:8280][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
2017-02-09 09:23:46,290 [DEBUG] Connection leased: [id: 0][route: {}->http://localhost:8280][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
2017-02-09 09:23:46,290 [DEBUG] Stale connection check
2017-02-09 09:23:46,305 [DEBUG] CookieSpec selected: best-match
2017-02-09 09:23:46,305 [DEBUG] Auth cache not set in the context
2017-02-09 09:23:46,305 [DEBUG] Target auth state: UNCHALLENGED
2017-02-09 09:23:46,305 [DEBUG] Proxy auth state: UNCHALLENGED
2017-02-09 09:23:46,305 [DEBUG] Attempt 1 to execute request
2017-02-09 09:23:46,305 [DEBUG] Sending request: POST /bonita/serverAPI/org.bonitasoft.engine.api.ProcessAPI/searchArchivedProcessInstances HTTP/1.1
2017-02-09 09:23:46,305 [DEBUG] >> "POST /bonita/serverAPI/org.bonitasoft.engine.api.ProcessAPI/searchArchivedProcessInstances HTTP/1.1[\r][\n]"
2017-02-09 09:23:46,305 [DEBUG] >> "Content-Length: 1679[\r][\n]"
2017-02-09 09:23:46,305 [DEBUG] >> "Content-Type: application/x-www-form-urlencoded; charset=UTF-8[\r][\n]"
2017-02-09 09:23:46,305 [DEBUG] >> "Host: localhost:8280[\r][\n]"
2017-02-09 09:23:46,305 [DEBUG] >> "Connection: Keep-Alive[\r][\n]"
2017-02-09 09:23:46,305 [DEBUG] >> "User-Agent: Apache-HttpClient/4.2.5 (java 1.5)[\r][\n]"
2017-02-09 09:23:46,305 [DEBUG] >> "[\r][\n]"
2017-02-09 09:23:46,305 [DEBUG] >> POST /bonita/serverAPI/org.bonitasoft.engine.api.ProcessAPI/searchArchivedProcessInstances HTTP/1.1
2017-02-09 09:23:46,305 [DEBUG] >> Content-Length: 1679
2017-02-09 09:23:46,305 [DEBUG] >> Content-Type: application/x-www-form-urlencoded; charset=UTF-8
2017-02-09 09:23:46,305 [DEBUG] >> Host: localhost:8280
2017-02-09 09:23:46,305 [DEBUG] >> Connection: Keep-Alive
2017-02-09 09:23:46,305 [DEBUG] >> User-Agent: Apache-HttpClient/4.2.5 (java 1.5)
2017-02-09 09:23:46,305 [DEBUG] >> "options=%3Cobject-stream%3E%0A++%3Cmap%3E%0A++++%3Centry%3E%0A++++++%3Cstring%3Esession%3C%2Fstring%3E%0A++++++%3Corg.bonitasoft.engine.session.impl.APISessionImpl%3E%0A++++++++%3Cid%3E-1838460270621457042%3C%2Fid%3E%0A++++++++%3CcreationDate%3E2017-02-09+07%3A43%3A11.330+UTC%3C%2FcreationDate%3E%0A++++++++%3Cduration%3E3600000%3C%2Fduration%3E%0A++++++++%3CuserName%3Esuperviseur%3C%2FuserName%3E%0A++++++++%3CuserId%3E3%3C%2FuserId%3E%0A++++++++%3CtechnicalUser%3Efalse%3C%2FtechnicalUser%3E%0A++++++++%3CtenantName%3Edefault%3C%2FtenantName%3E%0A++++++++%3CtenantId%3E1%3C%2FtenantId%3E%0A++++++%3C%2Forg.bonitasoft.engine.session.impl.APISessionImpl%3E%0A++++%3C%2Fentry%3E%0A++%3C%2Fmap%3E%0A%3C%2Fobject-stream%3E&classNameParameters=%3Cobject-stream%3E%0A++%3Clist%3E%0A++++%3Cstring%3Eorg.bonitasoft.engine.search.SearchOptions%3C%2Fstring%3E%0A++%3C%2Flist%3E%0A%3C%2Fobject-stream%3E&parametersValues=%3Cobject-stream%3E%0A++%3Cobject-array%3E%0A++++%3Corg.bonitasoft.engine.search.impl.SearchOptionsImpl%3E%0A++++++%3Cfilters%3E%0A++++++++%3Corg.bonitasoft.engine.search.impl.SearchFilter%3E%0A++++++++++%3Cfield%3EarchiveDate%3C%2Ffield%3E%0A++++++++++%3Coperation%3EBETWEEN%3C%2Foperation%3E%0A++++++++++%3Cfrom+class%3D%22long%22%3E1486594800000%3C%2Ffrom%3E%0A++++++++++%3Cto+class%3D%22long%22%3E1486628626290%3C%2Fto%3E%0A++++++++%3C%2Forg.bonitasoft.engine.search.impl.SearchFilter%3E%0A++++++%3C%2Ffilters%3E%0A++++++%3CstartIndex%3E0%3C%2FstartIndex%3E%0A++++++%3CnumberOfResults%3E2147483647%3C%2FnumberOfResults%3E%0A++++++%3Csorts%2F%3E%0A++++%3C%2Forg.bonitasoft.engine.search.impl.SearchOptionsImpl%3E%0A++%3C%2Fobject-array%3E%0A%3C%2Fobject-stream%3E"
2017-02-09 09:23:46,305 [DEBUG] Connection 0.0.0.0:51901<->127.0.0.1:8280 closed
2017-02-09 09:23:46,305 [DEBUG] Closing the connection.
2017-02-09 09:23:46,305 [DEBUG] Connection 0.0.0.0:51901<->127.0.0.1:8280 closed
2017-02-09 09:23:46,305 [DEBUG] Connection 0.0.0.0:51901<->127.0.0.1:8280 shut down
2017-02-09 09:23:46,305 [DEBUG] Connection 0.0.0.0:51901<->127.0.0.1:8280 closed
2017-02-09 09:23:46,305 [DEBUG] Connection released: [id: 0][route: {}->http://localhost:8280][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
2017-02-09 09:23:46,305 [ERROR] majProcessus : java.lang.reflect.UndeclaredThrowableException

Is it a problem somewhere or can I declare ti as a bug in JIRA ?

Thanks.

Comments

Submitted by Lionel Palacin on Thu, 02/09/2017 - 19:53

Hi,

Not sure how to reproduce that on my environment. Could you please share more information about how to reproduce the behavior?

Also what is "majProcessus"? Is it a method from your code?

Cheers

Submitted by 3Fred9 on Fri, 02/10/2017 - 08:58

Hi,

I have a program which make some treatments includind majProcessus witch search archived process instances that have been terminated durind the day like this code :

DateTime maintenant = new DateTime();
DateTime debutJour = maintenant.withTimeAtStartOfDay();
SearchOptionsBuilder builder = new SearchOptionsBuilder(0, Integer.MAX_VALUE);
builder.between(ArchivedProcessInstancesSearchDescriptor.ARCHIVE_DATE, debutJour.toDate().getTime(), maintenant.toDate().getTime());
SearchResult<ArchivedProcessInstance> processusArchives = processAPI.searchArchivedProcessInstances(builder.done());

This program go on every minutes,and sometimes, this methode throw the exception.

Thanks for your investigation.

No answers yet.
Notifications