Dear all,
When I am trying to create a lesson, the preview image of a sequence is not loading. I am not sure if the problem occurs while creating the image or while loading the image. I do not see any error in the server log file while creating the image, but the server sometimes returns this error after waiting several minutes when loading the image:
[STDERR] org.apache.batik.bridge.BridgeException: null:0
The URI "http://url/lams/images/svg/icon_htmlnb.png"
on element <image> can't be opened because:
The URI can't be opened:
Connection timed out
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.UserAgentAdapter.getBroke nLinkDocument(UserAgentAdapter.java:449)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.SVGImageElementBridge.cre ateBrokenImageNode(SVGImageElementBridge.java:993)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.SVGImageElementBridge.cre ateImageGraphicsNode(SVGImageElementBridge.java:247)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.SVGImageElementBridge.bui ldImageGraphicsNode(SVGImageElementBridge.java:177)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.SVGImageElementBridge.cre ateGraphicsNode(SVGImageElementBridge.java:119)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.GVTBuilder.buildGraphicsN ode(GVTBuilder.java:213)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.GVTBuilder.buildComposite (GVTBuilder.java:171)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.GVTBuilder.buildGraphicsN ode(GVTBuilder.java:219)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.GVTBuilder.buildComposite (GVTBuilder.java:171)
18:54:05,241 ERROR [STDERR] at org.apache.batik.bridge.GVTBuilder.buildGraphicsN ode(GVTBuilder.java:219)
18:54:05,242 ERROR [STDERR] at org.apache.batik.bridge.GVTBuilder.buildComposite (GVTBuilder.java:171)
18:54:05,242 ERROR [STDERR] at org.apache.batik.bridge.GVTBuilder.build(GVTBuild er.java:82)
18:54:05,242 ERROR [STDERR] at org.apache.batik.transcoder.SVGAbstractTranscoder .transcode(SVGAbstractTranscoder.java:208)
18:54:05,242 ERROR [STDERR] at org.apache.batik.transcoder.image.ImageTranscoder .transcode(ImageTranscoder.java:92)
18:54:05,242 ERROR [STDERR] at org.apache.batik.transcoder.XMLAbstractTranscoder .transcode(XMLAbstractTranscoder.java:142)
18:54:05,242 ERROR [STDERR] at org.apache.batik.transcoder.SVGAbstractTranscoder .transcode(SVGAbstractTranscoder.java:156)
18:54:05,242 ERROR [STDERR] at org.lamsfoundation.lams.util.svg.SVGGenerator.str eamOutDocument(SVGGenerator.java:163)
18:54:05,242 ERROR [STDERR] at org.lamsfoundation.lams.learningdesign.service.Le arningDesignService.createDesignSVG(LearningDesignService.java:313)
18:54:05,242 ERROR [STDERR] at org.lamsfoundation.lams.learningdesign.service.Le arningDesignService.createLearningDesignSVG(LearningDesignService.java:214)
18:54:05,242 ERROR [STDERR] at org.lamsfoundation.lams.learningdesign.service.Le arningDesignService$$FastClassByCGLIB$$b0f1c7cb.invoke(<generated>)
18:54:05,242 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy .java:149)
18:54:05,242 ERROR [STDERR] at org.springframework.aop.framework.Cglib2AopProxy$ DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
18:54:05,242 ERROR [STDERR] at org.lamsfoundation.lams.learningdesign.service.Le arningDesignService$$EnhancerByCGLIB$$78c28e68.createLearningDesignSVG(<generated>)
18:54:05,242 ERROR [STDERR] at org.lamsfoundation.lams.web.HomeAction.createLear ningDesignThumbnail(HomeAction.java:421)
18:54:05,242 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Nati ve Method)
18:54:05,242 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Nativ eMethodAccessorImpl.java:39)
18:54:05,242 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(D elegatingMethodAccessorImpl.java:25)
18:54:05,242 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
18:54:05,242 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.dispatch Method(DispatchAction.java:270)
18:54:05,243 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.execute( DispatchAction.java:187)
18:54:05,243 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process ActionPerform(RequestProcessor.java:431)
18:54:05,243 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:236)
18:54:05,243 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(Ac tionServlet.java:1196)
18:54:05,243 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(Acti onServlet.java:414)
18:54:05,243 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServle t.java:617)
18:54:05,243 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServle t.java:717)
18:54:05,243 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.i nternalDoFilter(ApplicationFilterChain.java:290)
18:54:05,243 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.d oFilter(ApplicationFilterChain.java:206)
18:54:05,243 ERROR [STDERR] at org.lamsfoundation.lams.web.filter.LocaleFilter.d oFilterInternal(LocaleFilter.java:142)
18:54:05,243 ERROR [STDERR] at org.springframework.web.filter.OncePerRequestFilt er.doFilter(OncePerRequestFilter.java:76)
18:54:05,243 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.i nternalDoFilter(ApplicationFilterChain.java:235)
18:54:05,243 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.d oFilter(ApplicationFilterChain.java:206)
18:54:05,243 ERROR [STDERR] at org.springframework.orm.hibernate3.support.OpenSe ssionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
18:54:05,243 ERROR [STDERR] at org.springframework.web.filter.OncePerRequestFilt er.doFilter(OncePerRequestFilter.java:76)
18:54:05,243 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.i nternalDoFilter(ApplicationFilterChain.java:235)
18:54:05,243 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.d oFilter(ApplicationFilterChain.java:206)
18:54:05,243 ERROR [STDERR] at org.lamsfoundation.lams.web.session.SystemSession Filter.doFilter(SystemSessionFilter.java:69)
18:54:05,243 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.i nternalDoFilter(ApplicationFilterChain.java:235)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.d oFilter(ApplicationFilterChain.java:206)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.inv oke(StandardWrapperValve.java:235)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.inv oke(StandardContextValve.java:191)
18:54:05,244 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociation Valve.invoke(SecurityAssociationValve.java:190)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBa se.invoke(AuthenticatorBase.java:525)
18:54:05,244 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.in voke(JaccContextValve.java:92)
18:54:05,244 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEsta blishmentValve.process(SecurityContextEstablishmentValve.java:126)
18:54:05,244 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEsta blishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:127)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invok e(ErrorReportValve.java:102)
18:54:05,244 ERROR [STDERR] at org.lamsfoundation.lams.integration.security.Sing leSignOn.invoke(SingleSignOn.java:118)
18:54:05,244 ERROR [STDERR] at org.lamsfoundation.lams.integration.security.Logi nRequestValve.invoke(LoginRequestValve.java:68)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke( AccessLogValve.java:567)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invo ke(StandardEngineValve.java:109)
18:54:05,244 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.servi ce(CoyoteAdapter.java:330)
18:54:05,244 ERROR [STDERR] at org.apache.coyote.ajp.AjpProcessor.process(AjpPro cessor.java:436)
18:54:05,244 ERROR [STDERR] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHa ndler.process(AjpProtocol.java:384)
18:54:05,244 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447)
18:54:05,244 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)
2015-01-19 18:54:05,254 FATAL [CustomStrutsExceptionHandler] fatal System exception: [java.io.IOException: Error while transcoding SVG into PNG] :Error while transcodin g SVG into PNG
java.io.IOException: Error while transcoding SVG into PNG
at org.lamsfoundation.lams.util.svg.SVGGenerator.streamOutDocument(SVGGenera tor.java:165)
at org.lamsfoundation.lams.learningdesign.service.LearningDesignService.crea teDesignSVG(LearningDesignService.java:313)
at org.lamsfoundation.lams.learningdesign.service.LearningDesignService.crea teLearningDesignSVG(LearningDesignService.java:214)
at org.lamsfoundation.lams.learningdesign.service.LearningDesignService$$Fas tClassByCGLIB$$b0f1c7cb.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedIntercepto r.intercept(Cglib2AopProxy.java:628)
at org.lamsfoundation.lams.learningdesign.service.LearningDesignService$$Enh ancerByCGLIB$$78c28e68.createLearningDesignSVG(<generated>)
at org.lamsfoundation.lams.web.HomeAction.createLearningDesignThumbnail(Home Action.java:421)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI mpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.ja va:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestPro cessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:2 36)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat ionFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rChain.java:206)
at org.lamsfoundation.lams.web.filter.LocaleFilter.doFilterInternal(LocaleFi lter.java:142)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReque stFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat ionFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilt erInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReque stFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat ionFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rChain.java:206)
at org.lamsfoundation.lams.web.session.SystemSessionFilter.doFilter(SystemSe ssionFilter.java:69)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat ionFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve .java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve .java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAss ociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB ase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.ja va:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(S ecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(Se curityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102)
at org.lamsfoundation.lams.integration.security.SingleSignOn.invoke(SingleSi gnOn.java:118)
at org.lamsfoundation.lams.integration.security.LoginRequestValve.invoke(Log inRequestValve.java:68)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j ava:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:33 0)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtoco l.java:384)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
null:0
The URI "http://url/lams/images/svg/icon_htmlnb.png"
on element <image> can't be opened because:
The URI can't be opened:
Connection timed out
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTr anscoder.java:227)
at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscod er.java:92)
at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTr anscoder.java:142)
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTr anscoder.java:156)
at org.lamsfoundation.lams.util.svg.SVGGenerator.streamOutDocument(SVGGenera tor.java:163)
... 50 more
2015-01-19 18:54:05,257 FATAL [CustomStrutsExceptionHandler] java.io.IOException: Er ror while transcoding SVG into PNG
at org.lamsfoundation.lams.util.svg.SVGGenerator.streamOutDocument(SVGGenera tor.java:165)
at org.lamsfoundation.lams.learningdesign.service.LearningDesignService.crea teDesignSVG(LearningDesignService.java:313)
at org.lamsfoundation.lams.learningdesign.service.LearningDesignService.crea teLearningDesignSVG(LearningDesignService.java:214)
at org.lamsfoundation.lams.learningdesign.service.LearningDesignService$$Fas tClassByCGLIB$$b0f1c7cb.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedIntercepto r.intercept(Cglib2AopProxy.java:628)
at org.lamsfoundation.lams.learningdesign.service.LearningDesignService$$Enh ancerByCGLIB$$78c28e68.createLearningDesignSVG(<generated>)
at org.lamsfoundation.lams.web.HomeAction.createLearningDesignThumbnail(Home Action.java:421)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI mpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.ja va:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestPro cessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:2 36)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat ionFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rChain.java:206)
at org.lamsfoundation.lams.web.filter.LocaleFilter.doFilterInternal(LocaleFi lter.java:142)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReque stFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat ionFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilt erInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReque stFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat ionFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rChain.java:206)
at org.lamsfoundation.lams.web.session.SystemSessionFilter.doFilter(SystemSe ssionFilter.java:69)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat ionFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve .java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve .java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAss ociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB ase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.ja va:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(S ecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(Se curityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102)
at org.lamsfoundation.lams.integration.security.SingleSignOn.invoke(SingleSi gnOn.java:118)
at org.lamsfoundation.lams.integration.security.LoginRequestValve.invoke(Log inRequestValve.java:68)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j ava:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:33 0)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtoco l.java:384)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
null:0
The URI "http://url/lams/images/svg/icon_htmlnb.png"
on element <image> can't be opened because:
The URI can't be opened:
Connection timed out
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTr anscoder.java:227)
at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscod er.java:92)
at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTr anscoder.java:142)
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTr anscoder.java:156)
at org.lamsfoundation.lams.util.svg.SVGGenerator.streamOutDocument(SVGGenera tor.java:163)
... 50 more
Posted by Nikos Ploskas