incubator-photark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luciano Resende <luckbr1...@gmail.com>
Subject Re: java.io.IOException: Stream closed
Date Wed, 20 Oct 2010 19:00:24 GMT
On Wed, Oct 20, 2010 at 7:57 AM, Subash Chaturanga <subashsdm@gmail.com> wrote:
> Hi ,
> I have improved the patch I submitted before based on the comments, so that
> it store both flicker and picasa remote album meta data in local JCR.
>
> It adds all meta data to the repo by JCRAlbImpl.addPicture() method. But
> after that i am getting some following continuous set of exception logs in
> tomcat .
>
> java.io.IOException: Stream closed
> at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
> at java.io.FilterInputStream.read(FilterInputStream.java:90)
> at
> org.apache.sanselan.common.byteSources.ByteSourceInputStream.readBlock(ByteSourceInputStream.java:67)
> at
> org.apache.sanselan.common.byteSources.ByteSourceInputStream.getFirstBlock(ByteSourceInputStream.java:89)
> at
> org.apache.sanselan.common.byteSources.ByteSourceInputStream.access$100(ByteSourceInputStream.java:24)
> at
> org.apache.sanselan.common.byteSources.ByteSourceInputStream$CacheReadingInputStream.read(ByteSourceInputStream.java:105)
> at org.apache.sanselan.Sanselan.guessFormat(Sanselan.java:144)
> at org.apache.sanselan.Sanselan.getImageParser(Sanselan.java:596)
> at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:976)
> at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:923)
> at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:896)
> at
> org.apache.photark.util.ImageMetadataScanner.scanImageMetadata(ImageMetadataScanner.java:44)
> at org.apache.photark.Image.getImageMetadata(Image.java:170)
> at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.jackson.map.ser.BeanPropertyWriter.get(BeanPropertyWriter.java:285)
> at
> org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:240)
> at
> org.codehaus.jackson.map.ser.BeanSerializer.serializeFields(BeanSerializer.java:146)
> at
> org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:118)
> at
> org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:268)
> at
> org.codehaus.jackson.map.ser.BeanSerializer.serializeFields(BeanSerializer.java:146)
> at
> org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:118)
> at
> org.codehaus.jackson.map.ser.ArraySerializers$ObjectArraySerializer.serializeContents(ArraySerializers.java:160)
> at
> org.codehaus.jackson.map.ser.ArraySerializers$ObjectArraySerializer.serializeContents(ArraySerializers.java:93)
> at
> org.codehaus.jackson.map.ser.ArraySerializers$AsArraySerializer.serialize(ArraySerializers.java:66)
> at
> org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:296)
> at
> org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:224)
> at
> org.codehaus.jackson.map.ObjectMapper._configAndWriteValue(ObjectMapper.java:1512)
> at
> org.codehaus.jackson.map.ObjectMapper.writeValueAsString(ObjectMapper.java:1262)
> at
> org.apache.tuscany.sca.databinding.json.jackson.Object2JSON.transform(Object2JSON.java:56)
> at
> org.apache.tuscany.sca.databinding.DefaultTransformerExtensionPoint$LazyPullTransformer.transform(DefaultTransformerExtensionPoint.java:209)
> at
> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:116)
> at
> org.apache.tuscany.sca.core.databinding.transformers.Output2OutputTransformer.transform(Output2OutputTransformer.java:243)
> at
> org.apache.tuscany.sca.databinding.DefaultTransformerExtensionPoint$LazyPullTransformer.transform(DefaultTransformerExtensionPoint.java:209)
> at
> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:116)
> at
> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediateOutput(MediatorImpl.java:410)
> at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:87)
> at
> org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServiceServlet.handleJSONRPCMethodInvocation(JSONRPCServiceServlet.java:307)
> at
> org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServiceServlet.handleServiceRequest(JSONRPCServiceServlet.java:177)
> at
> org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServiceServlet.service(JSONRPCServiceServlet.java:96)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:110)
> at
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:94)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
>
> Any idea?
>
>
> Thanks
> /subash
>

You might need to tweak the code that tries to harvest photo metadata
depending on how you are creating the image as I think currently it
expects you to pass the actual image stream. If that does not help,
please attach a new patch and I can try debugging to see the problem.


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Mime
View raw message