I have many data, which are transported using camel from destination A to destination B, until there is something in A.. That is causing stackoverflowException. There is no recursion, just simply: Load Groups from source, save each group to target, load users for each group, save each user. Source and target are reached using Restlet component. Whole process is started each hour by timer component.
As a result is extremely long stacktrace (aprox 1000 lines). Solution is to increase stack size: How to increase the Java stack size?