i want to send nested multiple arrays as json object in rest assured using java [closed] - rest-assured

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
i have api which i need to automate with restassured-java , body contains json as below , how should i proceed?
signal":{"numWindows" : 4, "continuous": {"r" : "[199.0, 230.93, 230.75, 225.45, 219.66, 217.18, 213.54, 213.04, 210.88, 207.01, 207.965, 210.2075, 212.9175, 214.02, 213.1625, 212.49, 212.13, 212.21, 211.99, 211.99, 211.91, 211.99, 211.99, 212.13, 212.9, 213.04, 213.26, 213.91, 214.05, 214.34, 214.99, 215.0, 215.05, 215.29, 215.91, 215.99, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 215.99, 215.99, 215.99, 215.99, 215.95, 215.91, 215.91, 215.91, 215.75, 215.86, 215.86, 215.5, 215.3, 215.34, 215.46, 215.5, 215.29, 215.33, 215.29, 215.49, 215.29, 215.29, 215.29, 215.29, 215.25, 215.25, 215.25, 215.05, 215.01, 215.0, 215.04, 215.5, 215.96, 216.01, 216.05, 216.13, 216.66, 216.91, 216.87, 217.0, 216.96, 216.96, 216.71, 217.0, 217.0, 217.0, 216.75, 216.5, 216.25, 216.25, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 215.99, 215.99, 216.0, 215.87, 215.87, 215.67, 215.35, 215.13, 215.62, 215.7, 215.66, 215.66, 215.47, 215.5, 215.87, 215.9, 215.91, 215.95, 215.95, 215.95, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 216.0, 215.99, 215.99, 216.0, 216.0, 216.01, 216.01, 216.05, 216.01, 216.01, 216.05, 216.0, 216.0, 216.0, 216.0, 215.99, 216.0, 216.0, 215.99, 215.99, 215.95, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 216.0, 216.0, 215.99, 216.0, 216.0, 216.0, 216.0, 216.0, 216.01, 216.01, 216.01, 216.0, 216.05, 216.01, 216.01, 216.0, 216.0, 216.0, 215.99, 215.95, 215.99, 215.99, 215.99, 215.99, 215.95, 215.99, 215.99, 215.98, 215.99, 215.99, 215.99, 215.99, 215.95, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 216.0, 216.0, 216.0, 216.0, 215.99, 215.99, 215.99, 215.95, 215.87, 215.91, 215.91, 215.91, 215.91, 215.86, 215.86, 215.86, 215.86, 215.86, 215.86, 215.86, 215.86, 215.7, 215.86, 215.95, 215.96, 215.96, 216.01, 215.99, 216.0, 216.0, 216.01, 216.01, 216.01, 215.99, 215.91, 215.87, 215.7, 215.47, 215.5, 215.46, 215.46, 215.46, 215.34, 215.3, 215.26, 215.09, 215.42, 215.41, 215.38, 215.46, 215.46, 215.5, 215.5, 215.5, 215.58, 215.58, 215.54, 215.74, 215.75, 215.9, 215.91, 215.7, 215.54, 215.5, 215.49, 215.3, 215.29, 215.17, 215.13, 215.13, 215.09, 215.09, 215.09, 215.09, 215.09, 215.09, 215.1, 215.09, 215.1, 215.1, 215.09, 215.13, 215.26, 215.3, 215.3, 215.34, 215.46, 215.86, 215.66, 215.5, 215.5, 215.46, 215.22, 215.05, 215.05, 215.05, 215.05, 215.05, 215.05, 215.0, 215.0, 215.0, 215.0, 215.0, 215.01, 215.0, 215.01, 215.01, 215.01, 215.01, 215.05, 215.05, 215.05, 215.05, 215.05, 215.05, 215.05, 215.01, 215.01, 215.0, 215.0, 214.96, 214.95, 214.99, 214.95, 214.95, 214.95, 214.95, 214.95, 214.91, 214.95, 214.95, 214.87, 214.91, 214.91,
214.91, 214.95, 214.99, 214.99, 214.99, 214.99, 214.99, 215.0, 215.0, 214.99, 214.99, 214.99, 214.99, 214.99, 214.95, 214.9, 214.86, 214.86, 214.86, 214.86, 214.78, 214.82, 214.82, 214.82, 214.62, 214.7, 214.7, 214.66, 214.7, 214.7, 214.7, 214.87, 214.86, 214.86, 214.86, 214.86, 214.9, 214.82, 214.66, 214.5, 214.5, 214.29, 214.25, 214.09, 214.14, 214.09, 214.09, 214.1, 214.09, 214.09, 214.09, 214.09, 214.1, 214.26, 214.3, 214.45, 214.62, 214.78, 214.78, 214.62, 214.62, 214.62, 214.45, 214.29, 214.09, 214.01, 214.05, 214.01, 214.01, 214.0, 214.01, 214.01, 214.01, 214.01, 214.0, 214.01, 214.01, 214.01, 214.01, 214.01, 214.01, 214.05, 214.09, 214.05, 214.09, 214.05, 214.05, 214.05, 214.03, 213.99, 213.9, 213.9, 213.86, 213.86, 213.86, 213.86, 213.86, 213.82, 213.66, 213.82, 213.86, 213.9, 213.9, 213.9, 213.91, 213.95, 213.92, 214.0, 214.0, 214.0, 214.01, 214.0, 213.99, 213.99, 213.95, 213.86, 213.86, 213.66, 213.66, 213.66, 213.44, 213.47, 213.45, 213.45, 213.46, 213.5, 213.34, 213.5, 213.46, 213.5, 213.7, 213.7, 213.7, 213.86, 213.86, 213.95, 213.99, 213.95, 213.99, 213.98, 213.84, 213.84, 213.84, 213.62, 213.3, 213.1, 213.09, 213.05, 213.01, 213.25, 213.25, 213.2, 213.27, 213.26, 213.25, 213.25, 213.26, 213.3, 213.3, 213.3, 213.46, 213.46, 213.46, 213.62, 213.62, 213.66, 213.62, 213.46, 213.13, 213.09, 213.04, 213.0, 213.03, 212.94, 212.91, 212.9, 212.86, 212.86, 212.86, 212.86, 212.91, 212.87, 212.91, 212.94, 212.94, 212.98, 212.95, 213.04, 213.01, 213.05, 213.05, 213.05, 213.25, 213.05, 213.08, 213.06, 212.97, 212.94, 213.04, 214.05, 214.34, 214.96, 215.01, 215.09, 215.34, 215.75, 216.0, 216.0, 216.05, 216.05, 216.13, 216.29, 216.3, 216.3, 216.34, 216.66, 216.86, 216.91, 216.95, 216.91, 216.99, 216.95, 216.95, 216.95, 216.95, 216.99, 216.99, 216.87, 216.7, 216.78, 216.46, 216.46, 216.42, 216.26, 216.25, 216.42, 216.58, 216.25, 216.26, 216.46, 216.7, 216.54, 216.71, 216.71, 216.71, 216.66, 216.91, 216.91, 216.95, 216.91, 216.91, 216.82, 216.62, 216.615, 216.41,216.09, 216.09, 216.05, 216.05, 216.09, 216.08, 216.08, 216.05, 216.05, 216.05, 216.04, 216.05, 216.09, 216.09, 216.09, 216.09, 216.09, 216.09, 216.13, 216.13, 216.26, 216.17, 216.13, 216.09, 216.08, 216.04, 216.0, 216.01, 216.0, 215.95, 215.99, 215.91, 215.91, 215.95, 215.91, 215.95, 215.95, 215.95, 215.95, 215.99, 215.99, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 216.0, 215.97, 215.96, 215.96, 215.96, 216.0, 216.0, 215.99, 215.95, 215.75, 215.75, 215.91, 215.9, 215.75, 215.74, 215.71, 215.71, 215.87, 215.91, 215.86, 215.91, 215.9, 215.91, 215.91, 215.99, 215.99, 215.99, 215.99, 215.99, 215.99, 215.95, 215.95, 215.9, 215.9, 215.9, 215.82, 215.7, 215.18, 215.18, 215.18, 215.17, 215.18, 215.33, 215.66, 215.5, 215.5, 215.66, 215.5, 215.66, 215.66, 215.66, 215.82, 215.87, 215.91, 215.91, 215.91, 215.75, 215.75, 215.55, 215.5, 215.18, 215.1, 215.13, 215.05, 215.13, 215.05, 215.09, 215.05, 215.05, 215.13, 215.09, 215.09, 215.13, 215.09, 215.3, 215.46, 215.3, 215.5, 215.7, 215.7, 215.74, 215.91, 215.74, 215.74, 215.7, 215.5, 215.3, 215.26, 215.1, 215.05, 215.05, 215.04, 215.05, 215.04, 215.01, 215.05, 215.05, 215.05, 215.09, 215.25, 215.42, 215.46, 215.3, 215.3, 215.46, 215.7, 215.74, 215.75, 215.86, 215.82, 215.78, 215.615, 215.58, 215.46, 215.25, 215.1, 215.09, 215.08, 215.04, 215.05, 215.0, 215.09, 215.09, 215.26, 215.26, 215.31, 215.38, 215.14, 215.34, 215.62, 215.66, 215.5, 215.66, 215.7, 215.9, 215.94, 215.9, 215.87, 215.7, 215.5, 215.45, 215.46, 215.3, 215.1, 215.09, 215.13, 215.05, 215.09, 215.09, 215.05, 215.05, 215.01, 215.09, 215.13, 215.14, 215.3]",
"g" : "[0.0, 0.0, 0.0, 0.505, 3.91, 6.43, 11.29, 12.79, 14.98, 18.01, 18.965, 22.2075, 25.9175, 28.02, 28.6625, 29.49, 29.13, 29.21, 28.99, 28.99, 28.91, 28.99, 28.99, 29.13, 29.9, 30.04, 30.26, 30.91, 31.05, 31.34, 31.99, 32.0, 32.05, 32.29, 32.91, 32.99, 33.0, 33.0, 33.0, 33.0, 33.0, 33.0, 33.0, 32.99, 32.99, 32.99, 32.99, 32.95, 32.91, 32.91, 32.91, 32.75, 32.61, 32.61, 32.25, 32.05, 32.09, 32.21, 32.25, 32.04, 32.08, 32.04, 32.24, 32.04, 32.04, 32.04, 32.04, 32.0, 32.0, 32.0, 31.8, 31.76, 31.75, 31.79, 32.0, 31.96, 32.01, 32.05, 32.13, 32.66, 32.91, 32.87, 33.0, 32.96, 32.96, 33.21, 33.0, 33.0, 33.0, 33.25, 33.5, 33.75, 33.75, 34.0, 34.0, 34.0, 34.0, 34.0, 34.0, 34.0, 34.0, 34.0, 34.0, 33.99, 33.99, 34.0, 33.87, 33.87, 33.67, 33.35, 33.13, 33.62, 33.7, 33.66, 33.66, 33.47, 33.5, 33.87, 33.9, 33.91, 33.95, 33.95, 33.95, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 34.0, 33.99, 33.99, 34.0, 34.0, 34.01, 34.01, 34.05, 34.01, 34.01, 34.05, 34.0, 34.0, 34.0, 34.0, 33.99, 34.0, 34.0, 33.99, 33.99, 33.95, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 34.0, 34.0, 33.99, 34.0, 34.0, 34.0, 34.0, 34.0, 34.01, 34.01, 34.01, 34.0, 34.05, 34.01, 34.01, 34.0, 34.0, 34.0, 33.99, 33.95, 33.99, 33.99, 33.99, 33.99, 33.95, 33.99, 33.99, 33.98, 33.99, 33.99, 33.99, 33.99, 33.95, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 34.0, 34.0, 34.0, 34.0, 33.99, 33.99, 33.99, 33.95, 33.87, 33.91, 33.91, 33.91, 33.91, 33.86, 33.86, 33.86, 33.86, 33.86, 33.86, 33.86, 33.86, 33.7, 33.86, 33.95, 33.96, 33.96, 34.01, 33.99, 34.0, 34.0, 34.01, 34.01, 34.01, 33.99, 33.91, 33.87, 33.7, 33.47, 33.5, 33.46, 33.46, 33.46, 33.34, 33.3, 33.26, 33.09, 33.42, 33.41, 33.38, 33.46, 33.46, 33.5, 33.5, 33.5, 33.58, 33.58, 33.54, 33.74, 33.75, 33.9, 33.91, 33.7, 33.54, 33.5, 33.49, 33.3, 33.29, 33.17, 33.13, 33.13, 33.09, 33.09, 33.09, 33.09, 33.09, 33.09, 33.1, 33.09, 33.1, 33.1, 33.09, 33.13, 33.26, 33.3, 33.3, 33.34, 33.46, 33.86, 33.66, 33.5, 33.5, 33.46, 33.22, 33.05, 33.05, 33.05, 33.05, 33.05, 33.05, 33.0, 33.0, 33.0, 33.0, 33.0, 33.01, 33.0, 33.01, 33.01, 33.01, 33.01, 33.05, 33.05, 33.05, 33.05, 33.05, 33.05, 33.05, 33.01, 33.01, 33.0, 33.0, 32.96, 32.95, 32.99, 32.95, 32.95, 32.95, 32.95, 32.95, 32.91, 32.95, 32.95, 32.87, 32.91, 32.91, 32.91, 32.95, 32.99, 32.99, 32.99, 32.99, 32.99, 33.0, 33.0, 32.99, 32.99, 32.99, 32.99, 32.99, 32.95, 32.9, 32.86, 32.86, 32.86, 32.86, 32.78, 32.82, 32.82, 32.82, 32.62, 32.7, 32.7, 32.66, 32.7, 32.7, 32.7, 32.87, 32.86, 32.86, 32.86, 32.86, 32.9, 32.82, 32.66, 32.5, 32.5, 32.29, 32.25, 32.09, 32.14, 32.09, 32.09, 32.1, 32.09, 32.09, 32.09, 32.09, 32.1, 32.26, 32.3, 32.45, 32.62, 32.78, 32.78, 32.62, 32.62, 32.62, 32.45, 32.29, 32.09, 32.01, 32.05, 32.01, 32.01, 32.0, 32.01, 32.01, 32.01, 32.01, 32.0, 32.01, 32.01, 32.01, 32.01, 32.01, 32.01, 32.05, 32.09, 32.05, 32.09, 32.05, 32.05, 32.05, 32.03, 31.99, 31.9, 31.9, 31.86, 31.86, 31.86, 31.86, 31.86, 31.82, 31.66, 31.82, 31.86, 31.9, 31.9, 31.9, 31.91, 31.95, 31.92, 32.0, 32.0, 32.0, 32.01, 32.0, 31.99, 31.99, 31.95, 31.86, 31.86, 31.66, 31.66, 31.66, 31.44, 31.47, 31.45, 31.45, 31.46, 31.5, 31.34, 31.5, 31.46, 31.5, 31.7, 31.7, 31.7, 31.86, 31.86, 31.95, 31.99, 31.95, 31.99, 31.98, 31.84, 31.84, 31.84, 31.62, 31.3, 31.1, 31.09, 31.05, 31.01, 31.25, 31.25, 31.2, 31.27, 31.26, 31.25, 31.25, 31.26, 31.3, 31.3, 31.3, 31.46, 31.46, 31.46, 31.62, 31.62, 31.66, 31.62, 31.46, 31.13, 31.09, 31.04, 31.0, 31.03, 30.94, 30.91, 30.9, 30.86, 30.86, 30.86, 30.86, 30.91, 30.87, 30.91, 30.94, 30.94, 30.98, 30.95, 31.04, 31.01, 31.05, 31.05, 31.05, 31.25, 31.05, 31.08, 31.06, 30.97, 30.94, 31.04, 32.05, 32.34, 32.96,
33.01, 33.09, 33.34, 33.75, 34.0, 34.0, 34.05, 34.05, 34.13, 34.29, 34.3, 34.3, 34.34, 34.66, 34.86, 34.91, 34.95, 34.91, 34.99, 34.95, 34.95, 34.95, 34.95, 34.99, 34.99, 34.87, 34.7, 34.78, 34.46, 34.46, 34.17, 34.26, 34.25, 34.42, 34.58, 34.25, 34.26, 34.46, 34.7, 34.54, 34.71, 34.71, 34.71, 34.66, 34.91, 34.91, 34.95, 34.91, 34.91, 34.82, 34.62, 34.615,34.41, 34.09, 34.09, 34.05, 34.05, 34.09, 34.08, 34.08, 34.05, 34.05, 34.05, 34.04, 34.05, 34.09, 34.09, 34.09, 34.09, 34.09, 34.09, 34.13, 34.13, 34.26, 34.17, 34.13, 34.09, 34.08, 34.04, 34.0, 34.01, 34.0, 33.95, 33.99, 33.91, 33.91, 33.95, 33.91, 33.95, 33.95, 33.95, 33.95, 33.99, 33.99, 34.0, 34.0, 34.0, 34.0, 34.0, 34.0, 34.0, 33.97, 33.96, 33.96, 33.96, 34.0, 34.0, 33.99, 33.95, 33.75, 33.75, 33.91, 33.9, 33.75, 33.74, 33.71, 33.71, 33.87, 33.91, 33.86, 33.91, 33.9, 33.91, 33.91, 33.99, 33.99, 33.99, 33.99, 33.99, 33.99, 33.95, 33.95, 33.9, 33.9, 33.9, 33.82, 33.7, 33.18, 33.18, 33.18, 33.17, 33.18, 33.33, 33.66, 33.5, 33.5, 33.66, 33.5, 33.66, 33.66, 33.66, 33.82, 33.87, 33.91, 33.91, 33.91, 33.75, 33.75, 33.55, 33.5, 33.18, 33.1, 33.13, 33.05, 33.13, 33.05, 33.09, 33.05, 33.05, 33.13, 33.09, 33.09, 33.13, 33.09, 33.3, 33.46, 33.3, 33.5, 33.7, 33.7, 33.74, 33.91, 33.74, 33.74, 33.7, 33.5, 33.3, 33.26, 33.1, 33.05, 33.05, 33.04, 33.05, 33.04, 33.01, 33.05, 33.05, 33.05, 33.09, 33.25, 33.42, 33.46, 33.3, 33.3, 33.46, 33.7, 33.74, 33.75, 33.86, 33.82, 33.78, 33.615, 33.58, 33.46, 33.25, 33.1, 33.09, 33.08, 33.04, 33.05, 33.0, 33.09, 33.09, 32.76, 32.76, 32.81, 32.88, 33.14, 33.34, 33.62, 33.66, 33.5, 33.66, 33.7, 33.9, 33.94, 33.9, 33.87, 33.7, 33.5, 33.45, 33.46, 33.3, 33.1, 33.09, 33.13, 33.05, 33.09, 33.09, 33.05, 33.05, 33.01, 33.09, 33.13, 33.14, 33.3]", "b" : "[5.25, 87.43, 86.75, 79.45, 76.16, 71.93, 57.79, 54.19, 51.88, 48.01, 46.965, 47.2075, 49.4175, 51.02, 51.1625, 51.49, 51.13, 51.21, 50.99, 50.99, 50.91, 50.99, 50.99, 51.13, 51.9, 52.04, 52.26, 52.91, 53.05, 53.34, 53.99, 54.0, 54.05, 54.29, 54.91, 54.99, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 54.99, 54.99, 54.99, 54.99, 54.95, 54.91, 54.91, 54.91, 54.75, 55.11, 55.11, 54.75, 54.55, 54.59, 54.71, 54.75, 54.54, 54.58, 54.54, 54.74, 54.54, 54.54, 54.54, 54.54, 54.5, 54.5, 54.5, 54.3, 54.26, 54.25, 54.29, 55.0, 55.96, 56.01, 56.05, 56.13, 56.66, 56.91, 56.87, 57.0, 56.96, 56.96, 57.46, 57.0, 57.0, 57.0, 57.0, 57.0, 57.0, 57.0, 57.0, 57.5, 57.5, 57.5, 57.5, 57.5, 57.5, 57.5, 57.5, 57.5, 56.99, 56.99, 57.0, 56.87, 56.87, 56.67, 56.35, 56.13, 56.62, 56.7, 56.66, 56.66, 56.47, 56.5, 56.87, 56.9, 56.91, 56.95, 56.95, 56.95, 56.99, 56.99, 56.99, 56.99, 57.49, 56.99, 56.99, 56.99, 56.99, 57.49, 57.49, 57.49, 57.49, 57.49, 57.49, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 57.0, 56.99, 56.99, 57.0, 57.0, 57.01, 57.01, 57.05, 57.01, 57.01, 57.05, 57.0, 57.0, 57.0, 57.0, 56.99, 57.0, 57.0, 56.99, 56.99, 56.95, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 57.0, 57.0, 56.99, 57.0, 57.0, 57.0, 57.0, 57.0, 57.01, 57.01, 57.01, 57.0, 57.05, 57.01, 57.01, 57.0, 57.0, 57.0, 56.99, 56.95, 56.99, 56.99, 56.99, 56.99, 56.95, 56.99, 56.99, 56.98, 56.99, 56.99, 56.99, 56.99, 56.95, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 57.0, 57.0, 57.0, 57.0, 56.99, 56.99, 56.99, 56.95, 56.87, 56.91, 56.91, 56.91, 56.91, 56.86, 56.86, 56.86, 56.86, 56.86, 56.86, 56.86, 56.86, 56.7, 56.86, 56.95, 56.96, 56.96, 57.01, 56.99, 57.0, 57.0, 57.01, 57.01, 57.01, 56.99, 56.91, 56.87, 56.7, 56.47, 56.5, 56.46, 56.46, 56.46, 56.34, 56.3, 56.26, 56.09, 56.42, 56.41, 56.38, 56.46, 56.46, 56.5, 56.5, 56.5, 56.58, 56.58, 56.54, 56.74, 56.75, 56.9, 56.91, 56.7, 56.54, 56.5, 56.49, 56.3, 56.29, 56.17, 56.13, 56.13,
56.09, 56.09, 56.09, 56.09, 56.09, 56.09, 56.1, 56.09, 56.1, 56.1, 56.09, 56.13, 56.26, 56.3, 56.3, 56.34, 56.46, 56.86, 56.66, 56.5, 56.5, 56.46, 56.22, 56.05, 56.05, 56.05, 56.05, 56.05, 56.05, 56.0, 56.0, 56.0, 56.0, 56.0, 56.01, 56.0, 56.01, 56.01, 56.01, 56.01, 56.05, 56.05, 56.05, 56.05, 56.05, 56.05, 56.05, 56.01, 56.01, 56.0, 56.0, 55.96, 55.95, 55.99, 55.95, 55.95, 55.95, 55.95, 55.95, 55.91, 55.95, 55.95, 55.87, 55.91, 55.91, 55.66, 55.7, 55.74, 55.74, 55.74, 55.49, 55.49, 55.5, 55.5, 55.49, 55.49, 55.49, 55.49, 55.49, 55.45, 55.4, 55.36, 55.11, 55.11, 55.11, 55.03, 55.07, 55.07, 54.82, 54.62, 54.7, 54.7, 54.66, 54.7, 54.7, 54.7, 54.87, 54.86, 54.86, 54.86, 54.86, 54.9, 54.82, 54.66, 54.5, 54.5, 54.29, 54.25, 54.09, 54.14, 54.09, 54.09, 54.1, 54.09, 54.09, 54.09, 54.09, 54.1, 54.26, 54.3, 54.45, 54.62, 54.78, 54.78, 54.62, 54.62, 54.62, 54.45, 54.29, 54.09, 54.01, 54.05, 54.01, 54.01, 54.0, 54.01, 54.01, 54.01, 54.01, 54.0, 54.01, 54.01, 54.01, 54.01, 54.01, 54.01, 54.05, 54.09, 54.05, 54.09, 54.05, 54.05, 54.05, 54.03, 53.99, 53.9, 53.9, 53.86, 53.86, 53.86, 53.86, 53.86, 53.82, 53.66, 53.82, 53.86, 53.9, 53.9, 53.9, 53.91, 53.95, 53.92, 54.0, 54.0, 54.0, 54.01, 54.0, 53.99, 53.99, 53.95, 53.86, 53.86, 53.66, 53.66, 53.66, 53.44, 53.47, 53.45, 53.45, 53.46, 53.5, 53.34, 53.5, 53.46, 53.5, 53.7, 53.7, 53.7, 53.86, 53.86, 53.95, 53.99, 53.95, 53.99, 53.98, 53.84, 53.84, 53.84, 53.62, 53.3, 53.1, 53.09, 53.05, 53.01, 53.25, 53.25, 53.2, 53.27, 53.26, 53.25, 53.25, 53.26, 53.3, 53.3, 53.3, 53.46, 53.46, 53.46, 53.62, 53.62, 53.66, 53.62, 53.46, 53.13, 53.09, 53.04, 53.0, 53.03, 52.94, 52.91, 52.9, 52.86, 52.86, 52.86, 52.86, 52.91, 52.87, 52.91, 52.94, 52.94, 52.98, 52.95, 53.04, 53.01, 53.05, 53.05, 53.05, 53.25, 53.05, 53.08, 53.06, 52.97, 52.94, 53.54, 55.05, 55.34, 55.96, 56.01, 56.09, 56.84, 57.25, 58.0, 58.0, 58.55, 58.55, 59.13, 59.29, 59.3, 59.3, 59.34, 59.66, 59.86, 59.91, 59.95, 59.91, 59.99, 59.95, 59.95, 59.95, 59.95, 59.99, 59.99, 59.87, 59.7, 59.78, 59.46, 59.46, 59.92, 59.26, 59.25, 59.42, 59.58, 59.25, 59.26, 59.46, 59.7, 59.54, 59.71, 59.71, 59.71, 59.66, 59.91, 59.91, 59.95, 59.91, 59.91, 59.82, 59.62, 59.615, 59.41, 59.09, 59.09, 59.05, 59.05, 59.09, 59.08, 59.08, 59.05,59.05, 59.05, 59.04, 59.05, 59.09, 59.09, 59.09, 59.09, 59.09, 59.09, 59.13, 59.13, 59.26, 59.17, 59.13, 59.09, 59.08, 58.54, 58.5, 58.51, 58.5, 58.45, 58.49, 58.41, 58.41, 58.45, 58.91, 58.45, 58.45, 58.45, 58.45, 58.49, 58.99, 59.0, 59.0, 58.5, 59.0, 58.5, 58.5, 58.5, 58.47, 58.46, 58.46, 58.46, 58.5, 58.5, 58.49, 58.45, 58.25, 58.25, 58.41, 58.4, 58.25, 57.74, 57.71, 57.21, 57.37, 57.41, 57.36, 57.41, 58.4, 57.91, 57.41, 58.49, 57.99, 58.49, 57.99, 58.49, 57.49, 57.95, 57.95, 57.9, 58.4, 57.9, 57.82, 57.2, 56.68, 56.18, 56.18, 56.17, 56.18, 56.33, 56.66, 56.5, 56.5, 57.16, 56.5, 56.66, 56.66, 56.66, 56.82, 56.87, 56.91, 56.91, 56.91, 56.75, 56.75, 56.55, 56.5, 56.18, 56.1, 56.13, 56.05, 56.13, 56.05, 56.09, 56.05, 56.05, 56.13, 56.09, 56.09, 56.13, 56.09, 56.3, 56.46, 56.3, 56.5, 56.7, 56.7, 56.74, 56.91, 56.74, 56.74, 56.7, 56.5, 56.3, 56.26, 56.1, 56.05, 56.05, 56.04, 56.05, 56.04, 55.76, 56.05, 56.05, 56.05, 56.09, 56.25, 56.42, 56.46, 56.3, 56.3, 56.46, 56.7, 56.74, 57.25, 57.36, 57.32, 57.28, 57.115, 56.58, 56.46, 56.25, 56.1, 56.09, 56.08, 56.04, 56.05, 56.0, 56.09, 56.09, 56.01, 56.01, 56.06, 56.13, 56.14, 56.34, 56.62, 56.66, 56.5, 56.66, 56.7, 56.9, 56.94, 56.9, 56.87, 56.7, 56.5, 56.45, 56.46, 56.3, 56.1, 56.09, 56.13, 56.05, 56.09, 56.09, 56.05, 56.05, 56.01, 56.09, 56.13, 56.14, 56.3]" },
"window":{"b" : ";[5.25, 87.43, 86.75, 79.45, 76.16, 71.93, 57.79, 54.19, 51.88, 48.01, 46.965, 47.2075, 49.4175, 51.02, 51.1625, 51.49, 51.13, 51.21, 50.99, 50.99, 50.91, 50.99, 50.99, 51.13, 51.9, 52.04, 52.26, 52.91, 53.05, 53.34, 53.99, 54.0, 54.05, 54.29, 54.91, 54.99, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 54.99, 54.99, 54.99, 54.99, 54.95, 54.91, 54.91, 54.91, 54.75, 55.11, 55.11, 54.75, 54.55, 54.59, 54.71, 54.75, 54.54, 54.58, 54.54, 54.74, 54.54, 54.54, 54.54, 54.54, 54.5, 54.5, 54.5, 54.3, 54.26, 54.25, 54.29, 55.0, 55.96, 56.01, 56.05, 56.13, 56.66, 56.91, 56.87, 57.0, 56.96, 56.96, 57.46, 57.0, 57.0, 57.0, 57.0, 57.0, 57.0, 57.0, 57.0, 57.5, 57.5, 57.5, 57.5, 57.5, 57.5, 57.5, 57.5, 57.5, 56.99, 56.99, 57.0, 56.87, 56.87, 56.67, 56.35, 56.13, 56.62, 56.7, 56.66, 56.66, 56.47, 56.5, 56.87, 56.9, 56.91, 56.95, 56.95, 56.95, 56.99, 56.99, 56.99, 56.99, 57.49, 56.99, 56.99, 56.99, 56.99, 57.49, 57.49, 57.49, 57.49, 57.49, 57.49, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 57.0, 56.99];[56.99, 57.0, 57.0, 57.01, 57.01, 57.05, 57.01, 57.01, 57.05, 57.0, 57.0, 57.0, 57.0, 56.99, 57.0, 57.0, 56.99, 56.99, 56.95, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 57.0, 57.0, 56.99, 57.0, 57.0, 57.0, 57.0, 57.0, 57.01, 57.01, 57.01, 57.0, 57.05, 57.01, 57.01, 57.0, 57.0, 57.0, 56.99, 56.95, 56.99, 56.99, 56.99, 56.99, 56.95, 56.99, 56.99, 56.98, 56.99, 56.99, 56.99, 56.99, 56.95, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 56.99, 57.0, 57.0, 57.0, 57.0, 56.99, 56.99, 56.99, 56.95, 56.87, 56.91, 56.91, 56.91, 56.91, 56.86, 56.86, 56.86, 56.86, 56.86, 56.86, 56.86, 56.86, 56.7, 56.86, 56.95, 56.96, 56.96, 57.01, 56.99, 57.0, 57.0, 57.01, 57.01, 57.01, 56.99, 56.91, 56.87, 56.7, 56.47, 56.5, 56.46, 56.46, 56.46, 56.34, 56.3, 56.26, 56.09, 56.42, 56.41, 56.38, 56.46, 56.46, 56.5, 56.5, 56.5, 56.58, 56.58, 56.54, 56.74, 56.75, 56.9, 56.91, 56.7, 56.54, 56.5, 56.49, 56.3, 56.29, 56.17, 56.13, 56.13, 56.09, 56.09, 56.09, 56.09, 56.09, 56.09, 56.1, 56.09, 56.1, 56.1, 56.09, 56.13, 56.26, 56.3];[56.3, 56.34, 56.46, 56.86, 56.66, 56.5, 56.5, 56.46, 56.22, 56.05, 56.05, 56.05, 56.05, 56.05, 56.05, 56.0, 56.0, 56.0, 56.0, 56.0, 56.01, 56.0, 56.01, 56.01, 56.01, 56.01, 56.05, 56.05, 56.05, 56.05, 56.05, 56.05, 56.05, 56.01, 56.01, 56.0, 56.0, 55.96, 55.95, 55.99, 55.95, 55.95, 55.95, 55.95, 55.95, 55.91, 55.95, 55.95, 55.87, 55.91, 55.91, 55.66, 55.7, 55.74, 55.74, 55.74, 55.49, 55.49, 55.5, 55.5, 55.49, 55.49, 55.49, 55.49, 55.49, 55.45, 55.4, 55.36, 55.11, 55.11, 55.11, 55.03, 55.07, 55.07, 54.82, 54.62, 54.7, 54.7, 54.66, 54.7, 54.7, 54.7, 54.87, 54.86, 54.86, 54.86, 54.86, 54.9, 54.82, 54.66, 54.5, 54.5, 54.29, 54.25, 54.09, 54.14, 54.09, 54.09, 54.1, 54.09, 54.09, 54.09, 54.09, 54.1, 54.26, 54.3, 54.45, 54.62, 54.78, 54.78, 54.62, 54.62, 54.62, 54.45, 54.29, 54.09, 54.01, 54.05, 54.01, 54.01, 54.0, 54.01, 54.01, 54.01, 54.01, 54.0, 54.01, 54.01, 54.01, 54.01, 54.01, 54.01, 54.05, 54.09, 54.05, 54.09, 54.05, 54.05, 54.05, 54.03, 53.99, 53.9, 53.9, 53.86, 53.86, 53.86, 53.86, 53.86, 53.82];[53.66, 53.82, 53.86, 53.9, 53.9, 53.9, 53.91, 53.95, 53.92, 54.0, 54.0, 54.0, 54.01, 54.0, 53.99, 53.99, 53.95, 53.86, 53.86, 53.66, 53.66, 53.66, 53.44, 53.47, 53.45, 53.45, 53.46, 53.5, 53.34, 53.5, 53.46, 53.5, 53.7, 53.7, 53.7, 53.86, 53.86, 53.95, 53.99, 53.95, 53.99, 53.98, 53.84, 53.84, 53.84, 53.62, 53.3, 53.1, 53.09, 53.05, 53.01, 53.25, 53.25, 53.2, 53.27, 53.26, 53.25, 53.25, 53.26, 53.3, 53.3, 53.3, 53.46, 53.46, 53.46, 53.62, 53.62, 53.66, 53.62, 53.46, 53.13, 53.09, 53.04, 53.0, 53.03, 52.94, 52.91, 52.9, 52.86, 52.86, 52.86, 52.86, 52.91, 52.87, 52.91, 52.94, 52.94, 52.98, 52.95, 53.04, 53.01, 53.05, 53.05, 53.05, 53.25, 53.05, 53.08,
53.06, 52.97, 52.94, 53.54, 55.05, 55.34, 55.96, 56.01, 56.09, 56.84, 57.25, 58.0, 58.0, 58.55, 58.55, 59.13, 59.29, 59.3, 59.3, 59.34, 59.66, 59.86, 59.91, 59.95, 59.91, 59.99, 59.95, 59.95, 59.95, 59.95, 59.99, 59.99, 59.87, 59.7, 59.78, 59.46, 59.46, 59.92, 59.26, 59.25, 59.42, 59.58, 59.25, 59.26, 59.46, 59.7, 59.54, 59.71, 59.71, 59.71, 59.66, 59.91, 59.91];[59.95, 59.91, 59.91, 59.82, 59.62, 59.615, 59.41, 59.09, 59.09, 59.05, 59.05, 59.09, 59.08, 59.08, 59.05, 59.05, 59.05, 59.04, 59.05, 59.09, 59.09, 59.09, 59.09, 59.09, 59.09, 59.13, 59.13, 59.26, 59.17, 59.13, 59.09, 59.08, 58.54, 58.5, 58.51, 58.5, 58.45, 58.49, 58.41, 58.41, 58.45, 58.91, 58.45, 58.45, 58.45, 58.45, 58.49, 58.99, 59.0, 59.0, 58.5, 59.0, 58.5, 58.5, 58.5, 58.47, 58.46, 58.46, 58.46, 58.5, 58.5, 58.49, 58.45, 58.25, 58.25, 58.41, 58.4, 58.25, 57.74, 57.71, 57.21, 57.37, 57.41, 57.36, 57.41, 58.4, 57.91, 57.41, 58.49, 57.99, 58.49, 57.99, 58.49, 57.49, 57.95, 57.95, 57.9, 58.4, 57.9, 57.82, 57.2, 56.68, 56.18, 56.18, 56.17, 56.18, 56.33, 56.66, 56.5, 56.5, 57.16, 56.5, 56.66, 56.66, 56.66, 56.82, 56.87, 56.91, 56.91, 56.91, 56.75, 56.75, 56.55, 56.5, 56.18, 56.1, 56.13, 56.05, 56.13, 56.05, 56.09, 56.05, 56.05, 56.13, 56.09, 56.09, 56.13, 56.09, 56.3, 56.46, 56.3, 56.5, 56.7, 56.7, 56.74, 56.91, 56.74, 56.74, 56.7, 56.5, 56.3, 56.26, 56.1, 56.05, 56.05, 56.04, 56.05, 56.04, 55.76, 56.05]", } }, "frameStartPoint" : 154, "fps" : 45.9652706843718, "startWindow" : 2, "endWindow" : 6, "model_id" : "Vivo 1907", "uid" : "76df8bb3-c594-40ba-ad66-8eb53add1014", "predicted_spo2" : 99.16

I think, you can save your large data in files and use POJO as usual.
For example:
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import lombok.Data;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public class Test3 {
#Data
static class RequestBody {
private Signal signal;
private int frameStartPoint;
}
#Data
static class Signal {
private int numWindow;
private Continuous continuous;
private Window window;
}
#Data
static class Continuous {
private String r;
private String g;
private String b;
}
#Data
static class Window {
private String b;
}
#Test
void name() throws IOException {
String r = Files.readString(Path.of("src/test/resources/r.text"));
String g = Files.readString(Path.of("src/test/resources/g.text"));
String b = Files.readString(Path.of("src/test/resources/b.text"));
Window window = new Window();
window.setB(b);
Continuous continuous = new Continuous();
continuous.setR(r);
continuous.setG(g);
continuous.setB(b);
Signal signal = new Signal();
signal.setNumWindow(2);
signal.setContinuous(continuous);
signal.setWindow(window);
RequestBody requestBody = new RequestBody();
requestBody.setFrameStartPoint(154);
requestBody.setSignal(signal);
RestAssured.given().log().body()
.contentType(ContentType.JSON)
.body(requestBody)
.post("https://postman-echo.com/post");
}
}
Result (I just save a small data in files to make result readable)
Body:
{
"signal": {
"numWindow": 2,
"continuous": {
"r": "[199.0, 230.93, 215.14, 215.3]",
"g": "[0.0, 0.0, 0.0, 0.505, 33.3]",
"b": "[5.25, 87.43, 56.3]"
},
"window": {
"b": "[5.25, 87.43, 56.3]"
}
},
"frameStartPoint": 154
}

Related

Cannot name a Redis client in Rails 6 app

I am currently trying to improve my Redis configuration by allowing a Redis client pool to my Rails 6 app as per this thread What is the best way to use Redis in a Multi-threaded Rails environment? (Puma / Sidekiq)
Though before implementing the above I am trying to name the only Redis client my Rails app is sharing and can't manage to make this work.
redis.yml
development:
url: redis://localhost:6379/
db: 0
id: my_rails_redis
production:
url:
db: 0
test:
url: redis://localhost:6379/
db: 1
redis.rb
conf = Rails.application.config_for(:redis)
redis = Redis.new(conf)
Everything works fine. My calls to Redis.current are working properly yet in redis-cli when I type client list I get the following list :
id=57 addr=127.0.0.1:60754 fd=19 name= age=1099 idle=422 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=58 addr=127.0.0.1:60756 fd=20 name=ActionCable-PID-18018 age=1099 idle=422 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=publish
id=47 addr=127.0.0.1:60702 fd=8 name= age=1110 idle=1 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
id=48 addr=127.0.0.1:60704 fd=9 name= age=1110 idle=1 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
id=65 addr=127.0.0.1:32896 fd=17 name=ActionCable-PID-19465 age=460 idle=422 flags=N db=0 sub=3 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=subscribe
id=49 addr=127.0.0.1:60706 fd=10 name= age=1110 idle=1 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
id=50 addr=127.0.0.1:60708 fd=11 name= age=1110 idle=5 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=scard
id=63 addr=127.0.0.1:32784 fd=15 name= age=472 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
id=66 addr=127.0.0.1:32994 fd=18 name= age=424 idle=424 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=67 addr=127.0.0.1:32996 fd=21 name=Sidekiq-server-PID-19455 age=424 idle=424 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=exec
id=64 addr=127.0.0.1:32790 fd=16 name= age=460 idle=447 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hvals
id=62 addr=127.0.0.1:32782 fd=14 name=ActionCable-PID-19477 age=474 idle=460 flags=N db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=unsubscribe
id=51 addr=127.0.0.1:60710 fd=12 name= age=1110 idle=1 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
id=52 addr=127.0.0.1:60712 fd=13 name= age=1110 idle=1 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
with clients belonging to Actioncable or sidekiq being flagged properly though I can't see any client called my_rails_redis.
Am I missing something ?
My mistake after further Puma restart it seems to have picked it up.
The result is pretty funny as I expected to have a single Redis client created but it looks like this now :
id=79 addr=127.0.0.1:33576 fd=19 name=Sidekiq-server-PID-21977 age=5 idle=5 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=exec
id=73 addr=127.0.0.1:33458 fd=11 name=my_rails_redis age=17 idle=2 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
id=74 addr=127.0.0.1:33460 fd=12 name=my_rails_redis age=17 idle=0 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=brpop
id=63 addr=127.0.0.1:32784 fd=15 name= age=1829 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
id=69 addr=127.0.0.1:33450 fd=14 name=ActionCable-PID-21999 age=34 idle=14 flags=N db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=unsubscribe
id=80 addr=127.0.0.1:33586 fd=20 name= age=4 idle=3 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=81 addr=127.0.0.1:33588 fd=21 name=ActionCable-PID-22041 age=4 idle=3 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=publish
id=77 addr=127.0.0.1:33568 fd=17 name=my_rails_redis age=12 idle=2 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=exec
id=70 addr=127.0.0.1:33452 fd=8 name=my_rails_redis age=17 idle=1 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
id=71 addr=127.0.0.1:33454 fd=9 name=my_rails_redis age=17 idle=2 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
id=76 addr=127.0.0.1:33566 fd=16 name=ActionCable-PID-21987 age=13 idle=3 flags=N db=0 sub=3 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=subscribe
id=75 addr=127.0.0.1:33464 fd=13 name= age=14 idle=14 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hvals
id=72 addr=127.0.0.1:33456 fd=10 name=my_rails_redis age=17 idle=2 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=brpop
id=78 addr=127.0.0.1:33574 fd=18 name= age=5 idle=5 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
I am not even sure I need to create a pool if the only created Redis client redis = Redis.new(conf) turns into many different client ..
Mystery to be dug further ..
EDIT for those who will ever get the same problem as me :
Actually I used my redis.yml conf into Sidekiq. Eventhough some Sidekiq redis clients were named, some others werent (the server part of the Sidekiq.rb config file).
then I removed id: my_rails_redis from redis.yml not to spoil every config file using Redis config
and I changed Sidekiq.rb as per below :
conf = Rails.application.config_for(:redis)
confid = conf.merge({id: "Sidekiq-server-PID-#{::Process.pid}"})
confservid = conf.merge({id: "Sidekiq-server"})
if Rails.env.development?
Sidekiq.configure_client do |config|
config.redis = confid
end
Sidekiq.configure_server do |config|
config.redis = confservid
end
end
Which happened to name EVERY Sidekiq Redis client.
Also, the key of the problem, in redis.rb I was initializing a Redis client though I was not using it in my code as it was assigned a local instance ("redis") :
conf = Rails.application.config_for(:redis)
conf[:id] = "Rails_redis_client"
redis = Redis.new(conf)
Actually that's true: I was using Redis.current in my code. redis not being available.
Then switching to a constant :
Red_g = Redis.new(conf)
And using Red_g (for Redis_global ) instead of Redis.current happened to fix my problem: naming work.

Zuul proxy forwarding error because of timout

I have created a zuul api gateway. It is throwing timeout for long running request.
Below is the log
2018-11-02 18:47:55.593 ERROR [SERVICEGATEWAYV1,0f51d4fe1d259272,9a68568956eacd45,false] 17880 --- [nio-9091-exec-6] c.i.s.gateway.filter.error.ErrorFilter : Service is not available {}
2018-11-02 18:47:55.598 DEBUG [SERVICEGATEWAYV1,0f51d4fe1d259272,9a68568956eacd45,false] 17880 --- [nio-9091-exec-6] c.i.s.gateway.filter.error.ErrorFilter : Debug :
org.springframework.cloud.netflix.zuul.util.ZuulRuntimeException: com.netflix.zuul.exception.ZuulException: Forwarding error
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.run(RibbonRoutingFilter.java:116) ~[spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at com.netflix.zuul.ZuulFilter.runFilter(ZuulFilter.java:112) ~[zuul-core-1.3.0.jar!/:1.3.0]
at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:193) ~[zuul-core-1.3.0.jar!/:1.3.0]
at com.netflix.zuul.FilterProcessor.runFilters(FilterProcessor.java:157) ~[zuul-core-1.3.0.jar!/:1.3.0]
at com.netflix.zuul.FilterProcessor.route(FilterProcessor.java:118) ~[zuul-core-1.3.0.jar!/:1.3.0]
at com.netflix.zuul.ZuulRunner.route(ZuulRunner.java:96) ~[zuul-core-1.3.0.jar!/:1.3.0]
at com.netflix.zuul.http.ZuulServlet.route(ZuulServlet.java:116) ~[zuul-core-1.3.0.jar!/:1.3.0]
at com.netflix.zuul.http.ZuulServlet.service(ZuulServlet.java:81) ~[zuul-core-1.3.0.jar!/:1.3.0]
at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:157) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.cloud.netflix.zuul.web.ZuulController.handleRequest(ZuulController.java:44) [spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843) [spring-webmvc-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110) [spring-boot-actuator-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.cloud.sleuth.instrument.web.TraceFilter.doFilter(TraceFilter.java:164) [spring-cloud-sleuth-core-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106) [spring-boot-actuator-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_181]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]
Caused by: com.netflix.zuul.exception.ZuulException: Forwarding error
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.handleException(RibbonRoutingFilter.java:189) ~[spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:164) ~[spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.run(RibbonRoutingFilter.java:111) ~[spring-cloud-netflix-core-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
... 67 common frames omitted
Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: PassengerService timed-out and no fallback available.
at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:819) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:804) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87) ~[rxjava-1.2.0.jar!/:1.2.0]
at com.netflix.hystrix.AbstractCommand$DeprecatedOnFallbackHookApplication$1.onError(AbstractCommand.java:1472) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.AbstractCommand$FallbackHookApplication$1.onError(AbstractCommand.java:1397) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.observers.Subscribers$5.onError(Subscribers.java:230) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeThrow.call(OnSubscribeThrow.java:44) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeThrow.call(OnSubscribeThrow.java:28) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:142) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87) ~[rxjava-1.2.0.jar!/:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribeDoOnEach.java:87) ~[rxjava-1.2.0.jar!/:1.2.0]
at com.netflix.hystrix.AbstractCommand$HystrixObservableTimeoutOperator$1$1.run(AbstractCommand.java:1154) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.strategy.concurrency.HystrixContextRunnable$1.call(HystrixContextRunnable.java:45) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.strategy.concurrency.HystrixContextRunnable$1.call(HystrixContextRunnable.java:41) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at org.springframework.cloud.sleuth.instrument.hystrix.SleuthHystrixConcurrencyStrategy$HystrixTraceCallable.call(SleuthHystrixConcurrencyStrategy.java:188) ~[spring-cloud-sleuth-core-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
at com.netflix.hystrix.strategy.concurrency.HystrixContextRunnable.run(HystrixContextRunnable.java:61) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.AbstractCommand$HystrixObservableTimeoutOperator$1.tick(AbstractCommand.java:1159) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.util.HystrixTimer$1.run(HystrixTimer.java:99) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_181]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[na:1.8.0_181]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_181]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[na:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_181]
... 1 common frames omitted
Caused by: java.util.concurrent.TimeoutException: null
at com.netflix.hystrix.AbstractCommand.handleTimeoutViaFallback(AbstractCommand.java:997) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.AbstractCommand.access$500(AbstractCommand.java:60) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.AbstractCommand$12.call(AbstractCommand.java:610) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at com.netflix.hystrix.AbstractCommand$12.call(AbstractCommand.java:601) ~[hystrix-core-1.5.12.jar!/:1.5.12]
at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140) ~[rxjava-1.2.0.jar!/:1.2.0]
... 16 common frames omitted
Below is my application .yml.
server:
session:
timeout: 99000
port: ${service.gateway.server.port}
configuration:
service:
name: ${configuration.service}
serviceURL:
metadata: serviceUrl
eureka:
client:
service-url:
defaultZone: http://${eureka.server.hostname}:${eureka.server.port}/eureka
hostname: ${eureka.server.hostname}
register-with-eureka: false
ribbon:
ConnectTimeout: 990000
ReadTimeout: 990000
zuul:
host:
socket-timeout-millis: 990000
prefix: /api
routes:
service:
path: /as/**
service-id: ${auth.service}
logging:
level:
com.iag.service.gateway: DEBUG
com.netflix.loadbalancer.LoadBalancerContext: DEBUG
path:
log
file:
${logging.path}/serviceGatewayServiceLog.log
spring:
application:
name: ${service.gateway.service.name}
profiles:
active: local
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 990000
circuitBreaker:
enabled: false
requestVolumeThreshold: 3
sleepWindowInMilliseconds: 5000
errorThresholdPercentage: 50
I have tried lot of things but not succeeded
Any help will be highly appreciable.
Thanks
I applied the below in both Zuul and the underlying application and it worked fine for me.
ribbon:
ReadTimeout: 300000
FYI: I use Zuul v1.4.x running on Sprint Boot v1.5.x.

Spring Boot Actuator returning down for applications on Docker

I have a running application on Docker.
But when I try to check its health like server:port/health it says DOWN.
Why? Is it a common problem with Docker?
Thank you
EDIT:
2017-09-27 14:56:30.495 WARN 22559 --- [nio-8234-exec-4] o.s.b.actuate.health.JmsHealthIndicator : Health check failed
javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [vm]
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:333) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:346) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:304) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:244) ~[activemq-client-5.14.5.jar:5.14.5]
at org.springframework.boot.actuate.health.JmsHealthIndicator.doHealthCheck(JmsHealthIndicator.java:38) ~[spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:43) ~[spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:68) [spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at org.springframework.boot.actuate.endpoint.HealthEndpoint.invoke(HealthEndpoint.java:81) [spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.getHealth(HealthMvcEndpoint.java:171) [spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(HealthMvcEndpoint.java:145) [spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) [spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55) [spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110) [spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:105) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106) [spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) [tomcat-embed-core-8.5.15.jar:8.5.15]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.15.jar:8.5.15]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.15.jar:8.5.15]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
Caused by: java.io.IOException: Transport scheme NOT recognized: [vm]
at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:28) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:185) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:64) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:331) ~[activemq-client-5.14.5.jar:5.14.5]
... 75 common frames omitted
Caused by: java.io.IOException: Could not find factory class for resource: META-INF/services/org/apache/activemq/transport/vm
at org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.loadProperties(FactoryFinder.java:98) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:60) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:148) ~[activemq-client-5.14.5.jar:5.14.5]
at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:182) ~[activemq-client-5.14.5.jar:5.14.5]
... 77 common frames omitted
I didn't find where and why in my project it tries to connect with ActiveMQ, but I managed to disable JMS in health check with
management.health.jms.enabled=false

spring-cloud-config in docker-compose https certificate not found

I am writing spring cloud application my config service point to my repository. In my development machine everything is working properly but when I create the docker with the help of docker-compose, my virtual machines give the following errors:
2017-02-28T03:14:10.847459300Z
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) ~[na:1.8.0_91]
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) ~[na:1.8.0_91]
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) ~[na:1.8.0_91]
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382) ~[na:1.8.0_91]
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292) ~[na:1.8.0_91]
at sun.security.validator.Validator.validate(Validator.java:260) ~[na:1.8.0_91]
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) ~[na:1.8.0_91]
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) ~[na:1.8.0_91]
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) ~[na:1.8.0_91]
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491) ~[na:1.8.0_91]
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) ~[na:1.8.0_91]
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) ~[na:1.8.0_91]
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) ~[na:1.8.0_91]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) ~[na:1.8.0_91]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[na:1.8.0_91]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ~[na:1.8.0_91]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) ~[na:1.8.0_91]
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) ~[na:1.8.0_91]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[na:1.8.0_91]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) ~[na:1.8.0_91]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) ~[na:1.8.0_91]
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[na:1.8.0_91]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) ~[na:1.8.0_91]
at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:196) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:489) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:311) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1201) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:203) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:136) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar!/:4.6.0.201612231935-r]
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.cloneToBasedir(JGitEnvironmentRepository.java:399) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.copyRepository(JGitEnvironmentRepository.java:373) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.createGitClient(JGitEnvironmentRepository.java:358) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.refresh(JGitEnvironmentRepository.java:177) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.getLocations(JGitEnvironmentRepository.java:155) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.getLocations(MultipleJGitEnvironmentRepository.java:132) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.AbstractScmEnvironmentRepository.findOne(AbstractScmEnvironmentRepository.java:42) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.findOne(MultipleJGitEnvironmentRepository.java:170) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.CompositeEnvironmentRepository.findOne(CompositeEnvironmentRepository.java:45) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.EnvironmentEncryptorEnvironmentRepository.findOne(EnvironmentEncryptorEnvironmentRepository.java:53) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at org.springframework.cloud.config.server.environment.EnvironmentController.labelled(EnvironmentController.java:112) ~[spring-cloud-config-server-1.3.0.BUILD-SNAPSHOT.jar!/:1.3.0.BUILD-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_91]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) ~[spring-webmvc-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55) ~[spring-boot-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:108) ~[spring-boot-actuator-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:105) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.cloud.sleuth.instrument.web.TraceFilter.doFilter(TraceFilter.java:145) ~[spring-cloud-sleuth-core-1.2.0.BUILD-SNAPSHOT.jar!/:1.2.0.BUILD-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106) ~[spring-boot-actuator-1.5.1.RELEASE.jar!/:1.5.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.6.RELEASE.jar!/:4.3.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) ~[tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_91]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.11.jar!/:8.5.11]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_91]
I assume that I my config cannot access the https certificates. How to compose the image with yaml to tell the docker about the ssl certificates?
First, you’ll want to create a directory where you can hold the docker compose yaml file and the ssl certificates.
├── docker-compose.yml
└── ssl
├── cert.key
└── cert.pem
In the docker-compose.yml mount the volumes inside the container something like this and copy the cert:
version: '2'
services:
image: hub:application-service
volumes:
- ./ssl:/etc/ssl

Neo4j-spatial: don't work with geoserver

I'm trying to use Neo4j-spatial (v. 0.12) to display some map views in geoserver.
To do that I've followed the README.md in the github project, but when I try to add a new Neo4j datasource geoserver arises this error:
java.lang.NullPointerException
at org.geoserver.catalog.impl.DataStoreInfoImpl.getDataStore(DataStoreInfoImpl.java:37)
at org.geoserver.web.data.store.DataAccessNewPage.onSaveDataStore(DataAccessNewPage.java:91)
at org.geoserver.web.data.store.Abst ractDataAccessPage$1.onSubmit(AbstractDataAccessPage.java:162)
at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:68)
at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300)
at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:301)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.geoserver.security.filter.GeoServerUserNamePasswordAuthenticationFilter.doFilter(GeoServerUserNamePasswordAuthenticationFilter.java:115)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:46)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:103)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:652)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
The permissions on the directory of the Neo4j-spatial database created are 777.
Neo4j version 2.1.2
Geoserver versions tested 2.3.2 and 2.4.5 deployed in Tomcat 8
OS Debian 7 GNU/Linux
another error that occurs with the same process:
2014-06-30 17:55:35,922 WARN [data.store] - Error obtaining new data store
java.io.IOException
at org.geoserver.catalog.ResourcePool.getDataStore(ResourcePool.java:590)
at org.geoserver.catalog.impl.DataStoreInfoImpl.getDataStore(DataStoreInfoImpl.java:37)
at org.geoserver.web.data.store.DataAccessNewPage.onSaveDataStore(DataAccessNewPage.java:91)
at org.geoserver.web.data.store.AbstractDataAccessPage$1.onSubmit(AbstractDataAccessPage.java:162)
at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:68)
at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300)
at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:301)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:70)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70)
at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.geoserver.security.filter.GeoServerUserNamePasswordAuthenticationFilter.doFilter(GeoServerUserNamePasswordAuthenticationFilter.java:115)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:134)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:652)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.neo4j.graphdb.NotInTransactionException
at org.neo4j.kernel.impl.persistence.PersistenceManager.getCurrentTransaction(PersistenceManager.java:297)
at org.neo4j.kernel.impl.persistence.PersistenceManager.getResource(PersistenceManager.java:249)
at org.neo4j.kernel.impl.persistence.PersistenceManager.currentKernelTransactionForReading(PersistenceManager.java:235)
at org.neo4j.kernel.impl.core.ThreadToStatementContextBridge.instance(ThreadToStatementContextBridge.java:55)
at org.neo4j.kernel.impl.core.NodeProxy.getRelationships(NodeProxy.java:167)
at org.neo4j.kernel.impl.core.NodeProxy.getRelationships(NodeProxy.java:161)
at org.neo4j.kernel.impl.core.NodeProxy.getRelationships(NodeProxy.java:76)
at org.neo4j.gis.spatial.SpatialDatabaseService.getLayerNames(SpatialDatabaseService.java:94)
at org.geotools.data.neo4j.Neo4jSpatialDataStore.getTypeNames(Neo4jSpatialDataStore.java:102)
at org.vfny.geoserver.util.DataStoreUtils.getDataAccess(DataStoreUtils.java:95)
at org.geoserver.catalog.ResourcePool.getDataStore(ResourcePool.java:550)
... 111 more
the first error could be due to a neo datastore from a neo version different to that installed in geoserver, or maybe a db copy taken from a running instance of neo, or it's locked for other reasons. it's hard to tell.
the second is definitely an api call in the spatial extension that is reading from Neo outside of a transaction. you need to wrap the call, recompile the extension and reinstall in geoserver.

Resources