我試圖使用Wicket WebResource
動態地同時加載大量圖像。問題是,它需要大量的時間來加載它們,並在某些情況下,花費超過一分鐘,然後我收到以下錯誤:如何在Wicket中動態快速加載圖像?
org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[http-8443-2,5,main], giving up trying to get the page for path: 6:documentList:scroller:batchElem:11:content:item:7:cols:9:batchItemContent:linkToPreview:imageThumbnail
at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
有誰知道其他的解決方案,以動態地加載圖像,爲了避免錯誤?
可能相關:http://stackoverflow.com/questions/5714229/wicket-image-component-not-found-on-page – Pops 2011-04-20 14:26:21