User (Legacy) Posted August 10, 2006 Author Report Share Posted August 10, 2006 Hi, I am using the Java trial version 6.2 On my servlet (Servlet1) I have 4 images, each image's source points to another servlet (Servlet2) that generate the actual image. In Servlet2, I created the chart and call getHtmlData. I get NullPointerException intermittenly on some of the charts. Usually only one shows up correctly and the rest show up as X. However, if I put and breakpoint and step through it does not fail. I also tried getHtmlDataEx but still exhibits the same behaviour. Thanks, Minh Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 10, 2006 Report Share Posted August 10, 2006 Hi, I am using the Java trial version 6.2 On my servlet (Servlet1) I have 4 images, each image's source points to another servlet (Servlet2) that generate the actual image. In Servlet2, I created the chart and call getHtmlData. I get NullPointerException intermittenly on some of the charts. Usually only one shows up correctly and the rest show up as X. However, if I put and breakpoint and step through it does not fail. I also tried getHtmlDataEx but still exhibits the same behaviour. Thanks, Minh Link to comment Share on other sites More sharing options...
Software FX Posted August 10, 2006 Report Share Posted August 10, 2006 Please provide some more information regarding your environment: OS, application server, Java version etc, and information about the chart as well so we can try to reproduce the error. Thanks, GA SoftwareFX "Ming Goi" <mgoi@angoss.com> wrote in message news:w$mA33IvGHA.1292@webserver3.softwarefx.com... > Hi, > I am using the Java trial version 6.2 > On my servlet (Servlet1) I have 4 images, each image's source points to > another servlet (Servlet2) that generate the actual image. > > In Servlet2, I created the chart and call getHtmlData. I get > NullPointerException intermittenly on some of the charts. Usually only > one > shows up correctly and the rest show up as X. However, if I put and > breakpoint and step through it does not fail. > > I also tried getHtmlDataEx but still exhibits the same behaviour. > Thanks, > Minh > > Link to comment Share on other sites More sharing options...
Software FX Posted August 10, 2006 Report Share Posted August 10, 2006 Please provide some more information regarding your environment: OS, application server, Java version etc, and information about the chart as well so we can try to reproduce the error. Thanks, GA SoftwareFX "Ming Goi" <mgoi@angoss.com> wrote in message news:w$mA33IvGHA.1292@webserver3.softwarefx.com... > Hi, > I am using the Java trial version 6.2 > On my servlet (Servlet1) I have 4 images, each image's source points to > another servlet (Servlet2) that generate the actual image. > > In Servlet2, I created the chart and call getHtmlData. I get > NullPointerException intermittenly on some of the charts. Usually only > one > shows up correctly and the rest show up as X. However, if I put and > breakpoint and step through it does not fail. > > I also tried getHtmlDataEx but still exhibits the same behaviour. > Thanks, > Minh > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 11, 2006 Author Report Share Posted August 11, 2006 After further debugging, I think, the exception is thrown at this line (before getHtmlData): ImageBorder ib = new ImageBorder(props.BorderType); It usually happends on the first time when a border type is selected in current session. Then, click "Refresh", it works. Note: I allow user to select diff. border type, then render image with the selected border. I attached code snip (from both servlets), hopefully it can speedup your investigation. Here is my invironment: Win2K, JDK1.4.1_01_01b, Tomcat 4.1.* Thanks again, Minh "SoftwareFX Support" <noreply> wrote in message news:ixZMpSMvGHA.2572@webserver3.softwarefx.com... > Please provide some more information regarding your environment: OS, > application server, Java version etc, and information about the chart as > well so we can try to reproduce the error. > > Thanks, > GA > SoftwareFX > > "Ming Goi" <mgoi@angoss.com> wrote in message > news:w$mA33IvGHA.1292@webserver3.softwarefx.com... > > Hi, > > I am using the Java trial version 6.2 > > On my servlet (Servlet1) I have 4 images, each image's source points to > > another servlet (Servlet2) that generate the actual image. > > > > In Servlet2, I created the chart and call getHtmlData. I get > > NullPointerException intermittenly on some of the charts. Usually only > > one > > shows up correctly and the rest show up as X. However, if I put and > > breakpoint and step through it does not fail. > > > > I also tried getHtmlDataEx but still exhibits the same behaviour. > > Thanks, > > Minh > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 11, 2006 Author Report Share Posted August 11, 2006 After further debugging, I think, the exception is thrown at this line (before getHtmlData): ImageBorder ib = new ImageBorder(props.BorderType); It usually happends on the first time when a border type is selected in current session. Then, click "Refresh", it works. Note: I allow user to select diff. border type, then render image with the selected border. I attached code snip (from both servlets), hopefully it can speedup your investigation. Here is my invironment: Win2K, JDK1.4.1_01_01b, Tomcat 4.1.* Thanks again, Minh "SoftwareFX Support" <noreply> wrote in message news:ixZMpSMvGHA.2572@webserver3.softwarefx.com... > Please provide some more information regarding your environment: OS, > application server, Java version etc, and information about the chart as > well so we can try to reproduce the error. > > Thanks, > GA > SoftwareFX > > "Ming Goi" <mgoi@angoss.com> wrote in message > news:w$mA33IvGHA.1292@webserver3.softwarefx.com... > > Hi, > > I am using the Java trial version 6.2 > > On my servlet (Servlet1) I have 4 images, each image's source points to > > another servlet (Servlet2) that generate the actual image. > > > > In Servlet2, I created the chart and call getHtmlData. I get > > NullPointerException intermittenly on some of the charts. Usually only > > one > > shows up correctly and the rest show up as X. However, if I put and > > breakpoint and step through it does not fail. > > > > I also tried getHtmlDataEx but still exhibits the same behaviour. > > Thanks, > > Minh > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.