jkirby Posted October 3, 2007 Report Share Posted October 3, 2007 Here's an interesting error. I have a single JSP which gets called multiple times (with different parameters) to display the same gauge with different values. Occasionally I get the error thrown ...usually after the first gauge is displayed. Is this thread safe? BTW I'm using renderToStream() in a JSP on GlassFish v2 -b58 Mac OSX 10.4.10 StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exceptionSfxNETGauges.SfxAWTDelegateException: java.lang.reflect.InvocationTargetException at SfxNETGauges.SfxAWTBaseDelegate.yzYz(Unknown Source) at SfxNETGauges.SfxAWTBaseDelegate.Invoke(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.wwyw.Xz$(Unknown Source) at ChartFX.internal.yxvyw.$vyw(Unknown Source) at ChartFX.internal.yxvyw.Ww$(Unknown Source) at ChartFX.internal.xwvy.wxVW(Unknown Source) at ChartFX.internal.xwvy.wxVW(Unknown Source) at ChartFX.internal.xwvy.wxVW(Unknown Source) at ChartFX.internal.xwvy.zxVW(Unknown Source) at ChartFX.internal.xwvy.WxVW(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.vxyzw.Zxvz(Unknown Source) at ChartFX.internal.WebForms.Gauge.BaseGauge.Z$ZW(Unknown Source) at ChartFX.internal.WebForms.Gauge.BaseGauge.xXZW(Unknown Source) at ChartFX.internal.WebForms.Gauge.BaseGauge.wxZW(Unknown Source) at ChartFX.internal.WebForms.Gauge.BaseGauge.VVZW(Unknown Source) at ChartFX.internal.WebForms.Gauge.BaseGauge.wVZW(Unknown Source) at ChartFX.internal.WebForms.Gauge.BaseGauge.yVZW(Unknown Source) at SfxNETGauges.System.Web.UI.zvwyw.VZVw(Unknown Source) at ChartFX.internal.WebForms.Gauge.BaseGauge.zyZW(Unknown Source) at com.softwarefx.chartfx.gauge.BaseGauge.renderControl(Unknown Source) at org.apache.jsp.Chart2_jsp._jspService(Chart2_jsp.java:55) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:371) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:624) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:624) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:624) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:268) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:631) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:562) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:803) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) ... 58 moreCaused by: SfxNETGauges.System.IO.xxwww: lPathState??????????????????????????????????`ChartFX.WebForms.Gauge at SfxNETGauges.System.Reflection.Assembly.Load(Unknown Source) at ChartFX.internal.WebForms.Gauge.Internal.zvw.Vzz(Unknown Source) at ChartFX.internal.WebForms.Gauge.Internal.zyxw.$VWW(Unknown Source) at ChartFX.internal.WebForms.Gauge.Internal.zyxw.VyWW(Unknown Source) at ChartFX.internal.WebForms.Gauge.Internal.zyxw.$XV(Unknown Source) at ChartFX.internal.WebForms.Gauge.Internal.zyxw.WyWW(Unknown Source) at ChartFX.internal.WebForms.Gauge.Internal.zyxw.VyWW(Unknown Source) at ChartFX.internal.WebForms.Gauge.Internal.zyxw.$XV(Unknown Source) at ChartFX.internal.WebForms.Gauge.VectorialEngine.VectorialImageState.xXz(Unknown Source) at ChartFX.internal.WebForms.Gauge.VectorialEngine.Serialization.zxzw.X$v(Unknown Source) at ChartFX.internal.vxxx.WYwW(Unknown Source) at ChartFX.internal.WebForms.Gauge.Customization.ResourceLibrary.ZY$W(Unknown Source) at ChartFX.internal.WebForms.Gauge.Customization.zvzzw.$vwW(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.yyxv.WxZz(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.yyxv.wxZz(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.yyyx.Wywz(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.yyyx.<init>(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.yyyx.<init>(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.yyyx.<init>(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.zyzv.Xz$(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.xvvyw.Yvyw(Unknown Source) at ChartFX.internal.WebForms.Gauge.Tree.zyzv.zvvW(Unknown Source) at ChartFX.internal.WebForms.Gauge.LinearBorder.WwVW(Unknown Source) at ChartFX.internal.WebForms.Gauge.Border.outerBorderNode_Update(Unknown Source) ... 62 more Quote Link to comment Share on other sites More sharing options...
jkirby Posted October 4, 2007 Author Report Share Posted October 4, 2007 Moved the application to Solaris 10 on Tomcat 6.0. Same problem with the InvocationTargetException on renderToStream() when a page makes multiple calls to the same JSP (passing different arguments) to display the same gauge. Quote Link to comment Share on other sites More sharing options...
jkirby Posted October 5, 2007 Author Report Share Posted October 5, 2007 Found a work around for preventing invocationTargetException on renderToStream() (or renderControl). Synchronize the code block that generates outputstream of the gauge. It appears that multiple calls (in rapid fashion) to the same JSP where the first call has not finished writing to the stream causes the exception? This makes me wonder if renderToStream is thread safe? Quote Link to comment Share on other sites More sharing options...
GabrielA Posted October 8, 2007 Report Share Posted October 8, 2007 Hi, it should be thread-safe, this may be a bug, we'll look into it right away. Quote Link to comment Share on other sites More sharing options...
GabrielA Posted October 9, 2007 Report Share Posted October 9, 2007 Can you please email support@softwarefx.com with this issue, I'd like to open a formal support ticket for this. No need to include all detail there. Just a brief description and a reference to this forum post. Thanks. Quote Link to comment Share on other sites More sharing options...
chenyun Posted October 17, 2007 Report Share Posted October 17, 2007 I have the same problem. How to fix the bug? Any answer? Quote Link to comment Share on other sites More sharing options...
maximop Posted October 18, 2007 Report Share Posted October 18, 2007 Please contact support regarding this issue to support@softwarefx.com. We have been testing a new build where this issue has been fixed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.