RE: JspTagException- Stream closed
Here is the body of the method doEndTag(). The exception is thrown for line number 146, which isthis.iter = null; of the reset method. public int doEndTag() throws JspException { if (this.jdField_bodyContent_of_type_JavaxServletJspTagextBodyContent != null) { try { this.jdField_bodyContent_of_type_JavaxServletJspTagextBodyContent.writeOut(this.jdField_bodyContent_of_type_JavaxServletJspTagextBodyContent.getEnclosingWriter()); } catch (IOException localIOException) { this.jdField_pageContext_of_type_JavaxServletJspPageContext.getServletContext().log(Res.getString(4), localIOException); throw new JspTagException(localIOException.getMessage()); } } reset(); return 6; } private void reset() { this.sDataSource = null; this.changeCurrentRow = true; this.useRange = false; this.ds = null; this.rs = null; this.iter = null; } -Original Message- From: Babu, Tinu [mailto:tinu.b...@amd.com] Sent: Monday, August 26, 2013 2:51 PM To: Tomcat Users List Subject: RE: JspTagException- Stream closed The RowSetIterate tag is declared in the JSP itself. All the JSPs having this RowSetIterate tag is throwing Stream closed exception. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, August 21, 2013 9:41 PM To: Tomcat Users List Subject: Re: JspTagException- Stream closed -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tinu, On 8/20/13 9:59 PM, Babu, Tinu wrote: Here is the piece of codes which is throwing the error. select name=list1 size=15 multiple jbo:RowsetIterate datasource=userRole option value=jbo:ShowValue datasource=userRole dataitem=RoleName / jbo:ShowValue datasource=userRole dataitem=RoleDesc / /option /jbo:RowsetIterate /select select name=list2 size=15 multiple jbo:RowsetIterate datasource=roles option value=jbo:ShowValue datasource=roles dataitem=RoleName / jbo:ShowValue datasource=roles dataitem=RoleDesc / /option /jbo:RowsetIterate /select Exception is always being thrown from the RowSetIterate Tags in JSPs. This was working properly with Tomcat4 version and when we upgraded our Tomcat to version 6 we started getting this strange exception. Please share your thoughts. Where is the row set itself declared? In the JSP? In a servlet somewhere that executes before the JSP? In general, I wouldn't recommend making any JDBC calls from within a JSP: I prefer to take care of all data acquisition in a servlet (or similar) before delegating the creation of a response to the view layer. But that's just me. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSFMNUAAoJEBzwKT+lPKRYRDUQAMs3ugmVpr/K0kGMRIV2xHvG cb7Kd2uWrvAnFLqgbj6GuMFQvWsTXcbA3tlaa+iY3FSQEchFnzktONVdqml6CGsB UdumVqg0GFPI9vPM7nq4EOxTZg6QlaVsy2LJ0hbmc4vFaYD6s4uz21yd2IMZ8MJy FjGx6JylFn1c9RjLBegWRWUS3ykkapaZ8lwJU+QUnI1WxLp8mg37FV7ziwKIk5u5 yKc1nquQ/cj2aqUiEdpC2CEwmy05m2APiDmGT/UkKuZoHMRG1/OzLFlKg65RhlvB x0iPSDZv6iP/neZEtGmOsYiQLG9F5/v4ziV+kgsJYbhmb6jtYIYiHcBYrn425Q2W ERhqEuYRXR+2yRxt3/xzB0uSyg3eikhfwNoOrFH2OGgk4cpzSZJRW/E0N2EUYUwr ZRuGpOr4wgpPOrJ3A02hGYpBz2ZtbiingTl/72IlLcgBnBUapWzSazPl4BE7gPe/ VToMDtlxm74qiqtvr8C8swGAK9Y2xwmFkFI2GF2tu7STgbDfIA7f8eILYo3+m57S 3oI/O4aVf38HiKuA5pZmahSU5mLtCi4Fj0RmzDSSwLgi0WYfgUzCsqKDJKFns2qe PRNEyA8w7X4IKI4oJKgP/C7+gl3g8xycEo2C04Q6ZlZHjqfSBqJi6KnxJfdZLoYt t18eSlW8KZBzKKHP7QpT =011K -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: JspTagException- Stream closed
The RowSetIterate tag is declared in the JSP itself. All the JSPs having this RowSetIterate tag is throwing Stream closed exception. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, August 21, 2013 9:41 PM To: Tomcat Users List Subject: Re: JspTagException- Stream closed -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tinu, On 8/20/13 9:59 PM, Babu, Tinu wrote: Here is the piece of codes which is throwing the error. select name=list1 size=15 multiple jbo:RowsetIterate datasource=userRole option value=jbo:ShowValue datasource=userRole dataitem=RoleName / jbo:ShowValue datasource=userRole dataitem=RoleDesc / /option /jbo:RowsetIterate /select select name=list2 size=15 multiple jbo:RowsetIterate datasource=roles option value=jbo:ShowValue datasource=roles dataitem=RoleName / jbo:ShowValue datasource=roles dataitem=RoleDesc / /option /jbo:RowsetIterate /select Exception is always being thrown from the RowSetIterate Tags in JSPs. This was working properly with Tomcat4 version and when we upgraded our Tomcat to version 6 we started getting this strange exception. Please share your thoughts. Where is the row set itself declared? In the JSP? In a servlet somewhere that executes before the JSP? In general, I wouldn't recommend making any JDBC calls from within a JSP: I prefer to take care of all data acquisition in a servlet (or similar) before delegating the creation of a response to the view layer. But that's just me. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSFMNUAAoJEBzwKT+lPKRYRDUQAMs3ugmVpr/K0kGMRIV2xHvG cb7Kd2uWrvAnFLqgbj6GuMFQvWsTXcbA3tlaa+iY3FSQEchFnzktONVdqml6CGsB UdumVqg0GFPI9vPM7nq4EOxTZg6QlaVsy2LJ0hbmc4vFaYD6s4uz21yd2IMZ8MJy FjGx6JylFn1c9RjLBegWRWUS3ykkapaZ8lwJU+QUnI1WxLp8mg37FV7ziwKIk5u5 yKc1nquQ/cj2aqUiEdpC2CEwmy05m2APiDmGT/UkKuZoHMRG1/OzLFlKg65RhlvB x0iPSDZv6iP/neZEtGmOsYiQLG9F5/v4ziV+kgsJYbhmb6jtYIYiHcBYrn425Q2W ERhqEuYRXR+2yRxt3/xzB0uSyg3eikhfwNoOrFH2OGgk4cpzSZJRW/E0N2EUYUwr ZRuGpOr4wgpPOrJ3A02hGYpBz2ZtbiingTl/72IlLcgBnBUapWzSazPl4BE7gPe/ VToMDtlxm74qiqtvr8C8swGAK9Y2xwmFkFI2GF2tu7STgbDfIA7f8eILYo3+m57S 3oI/O4aVf38HiKuA5pZmahSU5mLtCi4Fj0RmzDSSwLgi0WYfgUzCsqKDJKFns2qe PRNEyA8w7X4IKI4oJKgP/C7+gl3g8xycEo2C04Q6ZlZHjqfSBqJi6KnxJfdZLoYt t18eSlW8KZBzKKHP7QpT =011K -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: JspTagException- Stream closed
Here is the piece of codes which is throwing the error. select name=list1 size=15 multiple jbo:RowsetIterate datasource=userRole option value=jbo:ShowValue datasource=userRole dataitem=RoleName / jbo:ShowValue datasource=userRole dataitem=RoleDesc / /option /jbo:RowsetIterate /select select name=list2 size=15 multiple jbo:RowsetIterate datasource=roles option value=jbo:ShowValue datasource=roles dataitem=RoleName / jbo:ShowValue datasource=roles dataitem=RoleDesc / /option /jbo:RowsetIterate /select Exception is always being thrown from the RowSetIterate Tags in JSPs. This was working properly with Tomcat4 version and when we upgraded our Tomcat to version 6 we started getting this strange exception. Please share your thoughts. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, August 19, 2013 9:39 PM To: Tomcat Users List Subject: Re: JspTagException- Stream closed -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Babu, On 8/19/13 2:59 AM, Babu, Tinu wrote: Thank you Konstantin and Chris for your valuable comments. No image IO operation has been performed by the thread. Basically what it does is, we have a database view for admin user which is like a package tree. On click of each package will show the contents of the package in the right panel. This works always. But when the user clicks on packages very fast, this Stream closed error is getting displayed in the GUI. Now iIf the user click on the package again which has thrown the exception previously will show the contents properly. I don’t have the source for RowsetIterateTag and so not very sure about the content of do EndTag or what it actually does. I don’t think that any other exception is being thrown along with the Stream closed exception. I am new to this server-client applications, so please correct me if I am wrong. This sounds like you may be inappropriately sharing a resource between threads -- most likely a database Connection, Statement, or even ResultSet object. Is this all implemented in a JSP or a servlet? Can you post some of the relevant code? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSEiARAAoJEBzwKT+lPKRYktAQAJZ7OoktKQw2Y+FKgfWHpeen Md4BBd6rEebSfzEAd9qm88UEvOKNn/kks7uj27vRe1zpZdWf4S7xQ1TEnNVIhi+q TxjolFmj6NvDIDuGQV1W8M0Js2kORm14X0GlokFY4Pg5qBBZ5LjxyrzAtOlvyGK9 qJjlvkJFfC/pmRI0zLtiLCAhEisLBZJdAh2O6StFB65HcE+XzawZYtJ2FrnkzfYu l4eY16Qf0kqZs8dSXsbIMf3S27Oik/ApsNMNp8FuyrvQ5+Zh2UIN07/pPSzEPIEG /jb+qyMgd+nqiS4LMsgNXoR+VzyGZ977HZv/Toxv+pSSbr5MPdRT8mBXan6wa5zc y0U1GVPuaOyIV9J1+8x+UqojXafYvHSCFRq9hpTKZODBxgtIMRVkQimUdriibU92 Sy6p4O/bhhCBU0L1D7fhsu/7yw3eZcQWLMNuNk6cLCKhDVMOmnpUF9ILWx1Ginsf Kqs/uZStSXEg9p5Q8N8T7pHaVnoMRUcoJpzQ2JvQ7hYDX535Qq6T2NiI7+c09xz+ uKW1ATMUkQiRuwfYGE2GLZKUbEgI9agrBTC4u/+b3Px22I4WniUa/rln7QGyXg3v o/nCLcQn8w1kckNte5uIloyocuUBcO5aP3qzX146+icZrBl8dMQYUvdKzD9dh4tj dsdC+WWP9kHMo2PGScYo =UGQ8 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org