Jump to content
Software FX Community

Nullpointer in ChartFX7


jayandh78
 Share

Recommended Posts

Hi 

We are using ChartFX 6.5 currently, for my new requirement i required to have AJAX functionality with chartFX,so i tried to download ChartFX 7.

 

I tried to install the sample application of chartFX7, i can run the sample application in TOMCAT5.5 without any issues.

When i tried to run chartFX7 in my development weblogic env. i get the following error

java.lang.NullPointerException
  at com.softwarefx.sfxnet.internal.km.I(SourceFile:119)
  at com.softwarefx.chartfx.server.internal.aa$b.a(SourceFile:111)
  at com.softwarefx.chartfx.server.internal.aa.a(SourceFile:45)
  at com.softwarefx.chartfx.server.internal.ej.a(SourceFile:70)
  at com.softwarefx.chartfx.server.internal.Chart.m(SourceFile:4274)
  Truncated. see log file for complete stacktrace

 

Following are the things i have done

1. i have copied ChartFX 7 license and config file in my WEB-INF/lib ,

2. i copied all the chartFX 7 related JAR file from samples into my WEB-INF/lib folder

3. i made sure there is no older version of (chartfx6.5) JAR file in server cache or lib folder

 

Am i missing something?, your help would be appreciated.

 

regards,

Jayandh

Link to comment
Share on other sites

Hi RB,

 

I tried adding 'chartfx70/temp'  under my application folder 'CRMApp' and i have the config set as below

<CfxIESettings>
  <Relative>/chartfx70/temp</Relative>
  <AxCompat>True</AxCompat>
  <RequiredRoot>.</RequiredRoot>
  <DefaultHandler>ChartFX.WebForms.Internal.OutputFileHandler,ChartFX.WebForms</DefaultHandler>
</CfxIESettings>

Following is the error message im getting.

 nl.ikarus.nxt.priv.imageio.icoreader.lib.ICOReader loaded, version: 0.06.064 build: 691java.lang.IllegalStateException: strict servlet API : cannot call getWriter after getOutputStream()   at weblogicx.servlet.gzip.filter.GZIPResponseWrapper.getWriter(GZIPResponseWrapper.java:41)   at com.softwarefx.sfxnet.internal.ho.hU(SourceFile:34)   at com.softwarefx.chartfx.server.internal.Chart.nQ(SourceFile:4733)   at com.softwarefx.chartfx.server.ChartServer.renderControl(SourceFile:72)   at jsp_servlet._pages._safety.__barchart._jspService(__barchart.java:116)   at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)   at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)   at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)   at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)   at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)   at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)   at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)   at weblogicx.servlet.gzip.filter.GZIPFilter.doFilter(GZIPFilter.java:70)   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3212)   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)   at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)   at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)   at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)   at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)<Feb 25, 2009 4:53:48 PM GMT> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@3d55da - appName: 'CRMApp', name: 'CRMApp', context-path: '/CRMApp'] Servlet failed with Exceptionjava.lang.NullPointerException   at com.softwarefx.sfxnet.internal.pd.<init>(SourceFile:28)   at com.softwarefx.sfxnet.internal.dj.<init>(SourceFile:7)   at com.softwarefx.chartfx.server.internal.Chart.nQ(SourceFile:4733)   at com.softwarefx.chartfx.server.ChartServer.renderControl(SourceFile:72)   at jsp_servlet._pages._safety.__barchart._jspService(__barchart.java:116)   Truncated. see log file for complete stacktrace

 

I assume that it cannot identify the 'temp' directory 

regards,

Jayandh

Link to comment
Share on other sites

ChartFX70 has already a temp folder, so for the initial configuration and in order to make charts appears, please try first without modifying the config file. In Chart FX 7, different to 6.5, there are others steps to follow in order to configure an application, so I strongly recommend you to use a simple project, deploy it make sure it is running and then you can continue customizing your environment.

 

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