Jump to content
Software FX Community

Reflection Errors With Gauges


jkirby
 Share

Recommended Posts

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

Link to comment
Share on other sites

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? 

Link to comment
Share on other sites

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...