Re: EOFException(java.net.SocketException: Connection reset by peer: socket write error)

2011-11-18 Thread yadav1776
Hi Martin 

I also tried 
this.getRequestCycle().getOriginalResponse().setContentType("image/jpg"); 
getResponse().setContentType("image/jpeg"); 

but still getting same exception.. 

Please let me know how can I set content type (mime type ) of response so
that content type of response and image should be same. 

I know the mime type of Image is JPEG... 


Thanks in advance.. 

Thanks 
Shail

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/EOFException-java-net-SocketException-Connection-reset-by-peer-socket-write-error-tp4043286p4083480.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: EOFException(java.net.SocketException: Connection reset by peer: socket write error)

2011-11-18 Thread yadav1776
Hi 

I am facing this problem in IE9 also..

Thanks
Shail

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/EOFException-java-net-SocketException-Connection-reset-by-peer-socket-write-error-tp4043286p4083475.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: EOFException(java.net.SocketException: Connection reset by peer: socket write error)

2011-11-18 Thread yadav1776
Hi Iver/Martin

I also tried 
this.getRequestCycle().getOriginalResponse().setContentType("image/jpg");
getResponse().setContentType("image/jpeg");

but still getting same exception..

Please let me know how can I set content type (mime type ) of response so
that content type of response and image should be same.

I know the mime type of Image is JPEG...


Thanks in advance..

Thanks
Shail

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/EOFException-java-net-SocketException-Connection-reset-by-peer-socket-write-error-tp4043286p4083468.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: EOFException(java.net.SocketException: Connection reset by peer: socket write error)

2011-11-16 Thread yadav1776
Hi Martin

Thanks for reply.

But when I set content type of response
"*this.getRequestCycle().getOriginalResponse().setContentType("jpg");*"
then getImageData() function for *DynamicImageResource* class is not called.
So image on the page in not rendered.
I am using *NonCachingImage* class.

Thanks in advance.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/EOFException-java-net-SocketException-Connection-reset-by-peer-socket-write-error-tp4043286p4076778.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



EOFException(java.net.SocketException: Connection reset by peer: socket write error)

2011-11-16 Thread yadav1776
Hi 

I am getting "EOFException(java.net.SocketException: Connection reset by
peer: socket write error)" exception while returning byte[] from
getImageData() function of DynamicImageResource class in onBeforeRender()
function of component. 

Stack trace is as below. 

org.apache.wicket.WicketRuntimeException: Unable to write the response 
at org.apache.wicket.Response.handleException(Response.java:286) 
at org.apache.wicket.Response.write(Response.java:310) 
at
org.apache.wicket.request.target.resource.ResourceStreamRequestTarget.respond(ResourceStreamRequestTarget.java:160)
 
at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 
at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1269) 
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1336) 
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438) 
at org.apache.wicket.RequestCycle.request(RequestCycle.java:546) 
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486) 
at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) 
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
 
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
 
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:344)
 
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:110)
 
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:98)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:95)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:79)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:55)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:36)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:108)
 
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
 
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:150)
 
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
 
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
 
at
org.mortbay.jetty.servlet.W