Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activiti + Spring Boot + Gradle build hangs while gradle clean test

I am having an issue with executing gradle clean test command. My application is using activiti for workflow. Git url: https://github.com/sanelib/eBOSS/tree/merge-before-dev Branch: "merge-before-dev" is having more tests for activiti worflow process. But it execute only 6 of 12 integration tests from "core" module. If I use @Ignore to any random 6 tests then it success for rest 6. I have put some console out to debug and found it hangs on starting activiti process.

This source has also included database schema in /scripts folder. Let me know if you miss any required file for testing in your environment.

Can anybody look into this and give me solution?

like image 277
Sunny Rajwadi Avatar asked Jan 12 '16 11:01

Sunny Rajwadi


1 Answers

I got also result: 23 tests completed, 14 failed :core:test FAILED

Than I randomly picked one of your tests and it failed in isolation also. It doesn't seem to be concurrency problem.

Root cause seem to be this:

2016-02-05 20:56:16.556  WARN 16072 --- [           main] o.h.e.jdbc.internal.JdbcServicesImpl     : HHH000342: Could not obtain connection to query metadata : Cannot create PoolableConnectionFactory (Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)

Place break-point on this line in Hibernate.

So it does seem to be connection problem.

like image 192
luboskrnac Avatar answered Oct 04 '22 18:10

luboskrnac