ChartFx 7 for Java "NullPointerException" Error.


이번 글은 제가 "ChartFx 7 for Java" Trial 버전을 받아 테스트 하던 중 발생한 "NullPointerException" 에 대한 해결과정을 기록해 두는 글입니다.

나중에 해결하고 알게 된 사실이지만 문제는 저의 실수였네요. ㅡㅡㅋ
혹시나 저 같은 고초를 겪는 분이 계실까봐 그리고 나중에 저도 다시 실수하지 않기 위해 기록합니다.

※ 해결방법 : 
http://support.softwarefx.com/OnlineDoc/CfxJava70// 
Integrating Chart FX 7 to an existing application에 보면 3가지 설정해야 할 것이 있고 그것을 따르면 문제없이 작동함.

※ TT 의 의미 : 나의 질문에 답을 해준 분의 아이디가 TomasT 였고 아마도 그거의 약자인듯... 
※ 모자란 나의 영어 실력으로 질문하느라 무지 애 먹었음.. ㅠㅠ 

http://community.softwarefx.com/forums/t/9872.aspx
Hi,
Does anyone knows what this  error means?
Tomcat5 is works, but the chart doesn't show.
(Use ChartFx 7 for Java Trial Version.)

================================================================

ERROR [org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:253)] - Servlet.service() for servlet action threw exception
java.lang.NullPointerException
at com.softwarefx.sfxnet.internal.kt.&ltinit>(SourceFile:33)
at com.softwarefx.chartfx.server.internal.aw.&ltinit>(SourceFile:7)
at com.softwarefx.chartfx.server.internal.Internal.OutputFileHandler.a(SourceFile:175)
at com.softwarefx.chartfx.server.internal.Internal.OutputFileHandler.a(SourceFile:190)
at com.softwarefx.chartfx.server.internal.cj.a(SourceFile:148)
at com.softwarefx.chartfx.server.internal.Chart.nz(SourceFile:4547)
at com.softwarefx.chartfx.server.internal.Chart.a(SourceFile:4273)
at com.softwarefx.sfxnet.internal.jq.e(SourceFile:117)
at com.softwarefx.chartfx.server.internal.Chart.nB(SourceFile:4733)
at com.softwarefx.chartfx.server.ChartServer.renderControl(SourceFile:71)
at org.apache.jsp.da_005fservice.simpletest.ChartTest_jsp._jspService(ChartTest_jsp.java:531)
.
.
.
.
.
.
.
================================================================

Thanks for the help.

Hi,
There were some issues in some systems with the license validation on previous versions of the Chart FX 7 for Java Installation. Please go to our website and download the latest trial installer.  
http://www.softwarefx.com/sfxTrial/Trial_downloads.aspx?ProductID=CfxJava70
 Simply run the installation again and if you are working on an existing application, please make sure to use the new cfxjava70.lic file created in the chartfx70/config folder fo the cfxjava70_samples reference application in your installation directory. That should solve any problems.
 Let me know if you continue to run into issues.
 
TT

Hi,
Thank you for your reply.

I have another question now.
This question's contents is add in my first question's contents.
================================================================
My tomcat5's folder hierarchy

tomcat5 -----
                 | ----- webapps -----
                                           | ----- cfxjava70_samples
                                           | ----- simpletest
-------------------------------------------------------------------------------------------------------------------------------------------

cfxjava70_samples's chart does show, but another my simpletest page's chart doesn't show.
What this case means?
================================================================
Thanks for the help.

Hi,
 
Please note that the temporary images generated by Chart FX will be saved inside a ChartFX70/Temp folder. The generated Html will look for the image in  the relative path "/chartfx70/temp/image.png". In the case of the simpletest application, have you copied the required Chart FX folders and made the necessary changes  to the web.xml file?
 Please refer to the article titled "Integrating Chart FX 7 to an existing application" located in the Quick Start Section of the programmers guide:
http://support.softwarefx.com/OnlineDoc/CfxJava70// 
That should provide the necessary detail to help you configure your own app.
Hope it helps.
 
TT 

This was the problem.
"From the ChartFX70_samples folder located in your installation directory, copy the chartfx70 folder to the root of your existing application."

With the help of you solves this problem.
Thank you very much.