Jump to content
Software FX Community

jkirby

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jkirby

  • Rank
    Member
  1. jkirby

    Export To SVG

    How do you export a gauge to svg format to display on a JSP?
  2. I'm running trying to run 6.5 in a swing application. I'm getting Invalid License (0x00a00000) error. How do you setup/configure the license for a swing application?
  3. 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?
  4. 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.
  5. This is definitely a Mac issue because I moved it (same gauge) to a Solaris 10 (x86) on Glassfish and the rendering is fine. Probably a Mac JDK issue?
  6. I removed the title but the tickers are being overlayed if the value is > 1 in length I'm on Mac OSX (10.4.10) JDK 1.5 on FireFox 2.x
  7. 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
  8. Thanks ... The space trick worked on the template but still throws outstream() exception. My other question is on the demos (and my code) the ticker labels (e.g number > two digits) get "super-imposed" on each other. The same affect happens with title text. How does one get the labels to display properly?
  9. OK .. I have built a horizontal gauge with designer (Community Edition) and call it via JSP: <% com.softwarefx.chartfx.gauge.HorizontalGauge.initWeb(pageContext,request,response); com.softwarefx.chartfx.gauge.HorizontalGauge gauge = new com.softwarefx.chartfx.gauge.HorizontalGauge(); gauge.importGauge(com.softwarefx.chartfx.gauge.FileFormat.XML, application.getRealPath("smallChart.hgfx")); gauge.renderToStream(); %> smallChart.hgfx is located in my context root. First I get this error message in my Glassfish server log: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: PWC3991: getOutputStream() has already been called for this response at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:700) at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:210) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:135) Here is my template: <?xml version="1.0" encoding="UTF-8"?> <HorizontalGauge> <WIDTH>300</WIDTH> <HEIGHT>113</HEIGHT> <BORDER> <VISIBLE>true</VISIBLE> <COLOR>#ff003333</COLOR> <GLARE>false</GLARE> <STYLE>LinearBorder03</STYLE> </BORDER> <INNERGAUGES> <ITEM type="ChartFX.WebForms.Gauge.InnerDigitalPanel"> <LAYOUT> <ALIGNMENT>BottomCenter</ALIGNMENT> <ANCHORPOINT> <X>0.75</X> <Y>1.1</Y> </ANCHORPOINT> <TARGET>AnchorPoint</TARGET> </LAYOUT> <INNERGAUGE> <BORDER> <VISIBLE>false</VISIBLE> </BORDER> <APPEARANCE> <COLOR>#ffff0000</COLOR> <LAYOUT> <ALIGNMENT>BottomCenter</ALIGNMENT> <ANCHORPOINT> <Y>0.37</Y> </ANCHORPOINT> <TARGET>AnchorPoint</TARGET> </LAYOUT> <SIZE>0.25</SIZE> <STYLE>FourteenSegments01</STYLE> </APPEARANCE> <VALUE>50.0</VALUE> </INNERGAUGE> <LINKTOMAINVALUE>true</LINKTOMAINVALUE> <SIZE> <WIDTH>0.5</WIDTH> <HEIGHT>0.5</HEIGHT> </SIZE> </ITEM> </INNERGAUGES> <TITLES> <ITEM> <LAYOUT> <ALIGNMENT>TopCenter</ALIGNMENT> <ANCHORPOINT> <X>0.5</X> <Y>0.03</Y> </ANCHORPOINT> <TARGET>AnchorPoint</TARGET> </LAYOUT> <VERTICALPOSITION>AboveIndicators</VERTICALPOSITION> <FONT type="ChartFX.WebForms.Gauge.GaugeFont"> <FAMILYNAME>SansSerif</FAMILYNAME> <FONTSTYLE>Bold</FONTSTYLE> </FONT> <TEXT>CPU</TEXT> </ITEM> </TITLES> <SCALES> <ITEM> <INDEX>0</INDEX> <INDICATORS> <ITEM type="ChartFX.WebForms.Gauge.Filler"> <COLOR>#ff006600</COLOR> <INDEX>0</INDEX> <FORMAT> <FORMATTYPE>Percentage</FORMATTYPE> </FORMAT> <STYLE>Repeater01</STYLE> </ITEM> </INDICATORS> </ITEM> </SCALES> </HorizontalGauge> How can I get this to go away? I also get this error running the example Combination.jsp but that gauge does appear. So my main question is can I define the complete L&F/behavior in the template then just render it to a stream? A good code example would be useful :-) regards, .j
  10. The plugins for Netbeans work with Netbeans 5.x but not 6.x. Netbeans 6.x complains that a dependencies on module.org.netbeans.modules.autoupdate/1 > 2.16.1. Is there a way around this to use designer in 6.x? regards, .j
×
×
  • Create New...