Fehlendes Bild besser abfangen
Wenn ein Bild fehlt, kommt es derzeit zu einem langen Eintrag im Logfile.
des_1 | javax.imageio.IIOException: Can't get input stream from URL!
des_1 | at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1409)
des_1 | at net.genealogy.des.service.PageService.generateThumbnail(PageService.java:133)
des_1 | at jdk.internal.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)
des_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
des_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:568)
des_1 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
des_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
des_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
des_1 | at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:751)
des_1 | at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
des_1 | at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:391)
des_1 | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
des_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
des_1 | at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:751)
des_1 | at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:703)
des_1 | at net.genealogy.des.service.PageService$$SpringCGLIB$$0.generateThumbnail(<generated>)
des_1 | at net.genealogy.des.controller.PageController.thumbnailImage(PageController.java:715)