PageManager.create(...) causes java.lang.StringIndexOutOfBoundsException error in error.log
Hi,
I create set of pages automatically in my AEM6 bundle using create(String parentPath, String pageName, String template, String title) method of PageManager interface. The results is good - the required pages get created, however I see lots of error messages (which are not related to my code) in error.log during the page creation. Stack trace:
23.06.2015 10:14:17.734 *ERROR* [Adobe Granite Offloading job cloner queue processor] com.adobe.granite.offloading.impl.OffloadingJobCloner String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1911)
at com.adobe.granite.offloading.impl.util.OffloadingUtil.getJobPathFromJobId(OffloadingUtil.java:119)
at com.adobe.granite.offloading.impl.util.OffloadingResourceUtil.getJobResourceFromJobNotification(OffloadingResourceUtil.java:96)
at com.adobe.granite.offloading.impl.OffloadingJobCloner.processEvent(OffloadingJobCloner.java:171)
at com.adobe.granite.offloading.impl.OffloadingJobCloner.access$200(OffloadingJobCloner.java:74)
at com.adobe.granite.offloading.impl.OffloadingJobCloner$1.run(OffloadingJobCloner.java:151)
at java.lang.Thread.run(Thread.java:744)
Any idea how to get rid of this nasty error?
Thanks,
Jiri