Hpp is missing initialiation of local variable the

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: lue="-1"/> </map:read> </map:match> I did not specify pool-max. The default value is set to 1, is it? Becouse it always refers to the same instance .../jpeg/image.jpg?widht=100 pipeline works fine until you specify parameter grayscale and set to true .../jpeg/image.jpg?width=100&grayscale=true - works fine but after that you can't create not grayscale image .../jpeg/image.jpg?width=200&grayscale=false you will get grayscale image any way, Because: in Setup method you set this.grayscaleFilter if (par.getParameterAsBoolean("grayscale", GRAYSCALE_DEFAULT)) { this.grayscaleFilter = new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY), null); } and never set to null, so when the pool of that ImageReader will be full of instances with grayscaleFilter set it wont be possible to get original image Strange behaviour Take a look on the application attached. On Tomcat it works fine, but on Geronimo+tomcat the behaviour is very strange. After 1 button click - image hides After 2 button click - image shows again After 3 button click - application throws exception about id duplication Stack trace: 17:08:09,703 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception javax.faces.FacesException: cannot add component with id '_id6' and path : {Comp onent-Path : [Class: org.apache.myfaces.tobago.component.UICommand,Id: _id6]} to its parent component. This might be a problem due to duplicate ids. at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:4 01) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219) at org.apache.myfaces.tobago.taglib.component.TobagoTag.doStartTag(Tobag oTag.java:51) at org.apache.jsp.helloWorld_jsp._jspx_meth_t_button_0(org.apache.jsp.he lloWorld_jsp:147) at org.apache.jsp.helloWorld_jsp.access$1(org.apache.jsp.helloWorld_jsp: 136) at org.apache.jsp.helloWorld_jsp$helloWorld_jspHelper.invoke0(org.apache .jsp.helloWorld_jsp:174) at org.apache.jsp.helloWorld_jsp$helloWorld_jspHelper.invoke(org.apache. jsp....
View Full Document

This document was uploaded on 10/12/2012.

Ask a homework question - tutors are online