Jump to content
Software FX Community

NullPointer exception when rendering Chart as ActiveX control in GWT


markosem
 Share

Recommended Posts

I'm trying evaluate the use of ChartFX with GWT (Google Web Toolkit) for one of our projects.

We need to have an interactive chart (ActiveX control) within our GWT Application running on Tomcat 5.5. Charts are rendered as PNG and JPG formats no problems there but when rendering as ActiveX control. It is throwing a NullPointer exception.

Here's the code which gives me the tag for embedding in the GWT panels.

 ChartServer.setConfigPath("C:\\webapps\\ROOT\\WEB-INF\\lib");

 

ChartServer chart1 = new ChartServer();

 

java.util.Random r = new java.util.Random(1);

 

chart1.setGallery(Gallery.LINES);

chart1.setMarkerSize((

short) 4);chart1.setLineWidth((short) 1);

 

//Populating the chart with random datachart1.openData(COD.VALUES, 3, 10);for (int j = 0;j<10;j++)

{

chart1.getValue().setItem(0, j, r.nextDouble() * 50);

chart1.getValue().setItem(1, j, (r.nextDouble() * 80) + 50);

chart1.getValue().setItem(2, j, (r.nextDouble() * 100) + 100);

}

chart1.closeData(COD.VALUES);

 

chart1.setImgMap(ImgMap.TITLE_TIP);chart1.setSmoothFlags(SmoothFlags.FILL | SmoothFlags.BORDER);

 

String tag = chart1.getHtmlTag("600","400","ActiveX");

 

return tag;

 

And here's the exception stacktrace.

java.lang.NullPointerException

at SoftwareFX.internal.ChartFX.Internet.Server.xzx.XZX(Unknown Source)

at SoftwareFX.internal.ChartFX.Internet.Server.vxv.Wvz(Unknown Source)

at SoftwareFX.internal.ChartFX.Internet.Server.vvv.Wvz(Unknown Source)

at SoftwareFX.internal.ChartFX.Internet.Server.Chart.vxww(Unknown Source)

at SoftwareFX.internal.ChartFX.Internet.Server.Chart.VWYw(Unknown Source)

at SoftwareFX.internal.ChartFX.Internet.Server.Chart.vZYw(Unknown Source)

at SoftwareFX.internal.ChartFX.Internet.Server.Chart.XZYw(Unknown Source)

at SoftwareFX.ChartFX.Chart.getHtmlTag(Unknown Source)

at SoftwareFX.ChartFX.ChartServer.getHtmlTag(Unknown Source)

at com.dss.pip.server.demo.service.ChartServiceImpl.getNewDemoChart(ChartServiceImpl.java:802)

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)

at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(

RPC.java:528)at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:265)

at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(

RemoteServiceServlet.java:187)at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

at javax.servlet.http.HttpServlet.service(

HttpServlet.java:802)at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:252)

at javax.servlet.http.HttpServlet.service(

HttpServlet.java:802)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(

ApplicationFilterChain.java:157)at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)

at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(

FilterSecurityInterceptor.java:107)at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)

at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(

FilterChainProxy.java:275)at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)

at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(

FilterChainProxy.java:275)at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286)

at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(

FilterChainProxy.java:275)at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)

at org.acegisecurity.util.FilterToBeanProxy.doFilter(

FilterToBeanProxy.java:98)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(

ApplicationFilterChain.java:157)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

at org.apache.catalina.core.StandardValveContext.invokeNext(

StandardValveContext.java:104)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardContextValve.invokeInternal(

StandardContextValve.java:198)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

at org.apache.catalina.core.StandardValveContext.invokeNext(

StandardValveContext.java:104)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardHostValve.invoke(

StandardHostValve.java:137)at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.valves.ErrorReportValve.invoke(

ErrorReportValve.java:118)at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(

StandardPipeline.java:520)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.core.StandardValveContext.invokeNext(

StandardValveContext.java:104)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.ContainerBase.invoke(

ContainerBase.java:929)at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

at org.apache.coyote.http11.Http11Processor.process(

Http11Processor.java:799)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(

PoolTcpEndpoint.java:577)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(

Thread.java:595)

Any help would be appreciated.

 Thanks

BarLabelIssue.zip

Link to comment
Share on other sites

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...