Hello
My application is suppose to print graphs in pdf format using iText library on web based environment.
When I deploy my application on Linux I get following errors -
java.lang.NoClassDefFoundError
at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java:548)
at com.git.esurvey.GraphCreator.createPieChart(GraphCreator.java:132)
at com.git.esurvey.GraphCreator.createGraph(GraphCreator.java:55)
at com.git.esurvey.ESurveyReportGenerator.createESurveyReport(ESurveyReportGenerator.java:135)
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:324)
at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:96)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1622)
at cfpdfEsurveyReport2ecfm261524627.runPage(/var/www/html/survey/pdfEsurveyReport.cfm:11)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
and when try to deploy it on windows I get following errors -
java.lang.NoSuchFieldError: DARK_GRAY
at com.git.esurvey.ESurveyReportGenerator.getPageHeader(ESurveyReportGenerator.java:188)
at com.git.esurvey.ESurveyReportGenerator.createESurveyReport(ESurveyReportGenerator.java:117)
at java.lang.reflect.Method.invoke(Native Method)
at coldfusion.runtime.java.JavaProxy.invoke(Unknown Source)
at coldfusion.runtime.CfJspPage._invoke(Unknown Source)
at cfpdfEsurveyReport2ecfm571260296.runPage(D:\hemanshu\cftrials\pdfEsurveyReport.cfm:12)
at coldfusion.runtime.CfJspPage.invoke(Unknown Source)
at coldfusion.tagext.lang.IncludeTag.doStartTag(Unknown Source)
at coldfusion.filter.CfincludeFilter.invoke(Unknown Source)
at coldfusion.filter.ApplicationFilter.invoke(Unknown Source)
at coldfusion.filter.PathFilter.invoke(Unknown Source)
at coldfusion.filter.ExceptionFilter.invoke(Unknown Source)
at coldfusion.filter.BrowserDebugFilter.invoke(Unknown Source)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(Unknown Source)
at coldfusion.filter.BrowserFilter.invoke(Unknown Source)
at coldfusion.filter.GlobalsFilter.invoke(Unknown Source)
at coldfusion.filter.DatasourceFilter.invoke(Unknown Source)
at coldfusion.CfmServlet.service(Unknown Source)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:198)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Can you please help?
Thank you
Hemanshu
Error occured while deploying on coldfusion application
Error occured while deploying on coldfusion application
Last edited by Hemanshu on Mon Aug 23, 2004 1:57 pm, edited 1 time in total.
I use coldfusion
Hello David
I am using coldfusion to invoke my java component.
Yes, I included jCommon and jFreeChart jar files in the library along with iText and MsSQL library files.
My java component returns me the pdf file path with charts embeded on it. This works perfect when I create pdf file using my java program. The only problem is when I integrate it with my coldfusion program.
This is not the first time I am invoking iText using coldfusion. I have done it before several times successfully.
I will really appreciate your help on this as I am stuck here.
thank you
Hemanshu
I am using coldfusion to invoke my java component.
Yes, I included jCommon and jFreeChart jar files in the library along with iText and MsSQL library files.
My java component returns me the pdf file path with charts embeded on it. This works perfect when I create pdf file using my java program. The only problem is when I integrate it with my coldfusion program.
This is not the first time I am invoking iText using coldfusion. I have done it before several times successfully.
I will really appreciate your help on this as I am stuck here.
thank you
Hemanshu
Problem with only jFreechart
Hello
I figured out that problem is only in case of deploying jFreeChart on web based environment. How did I arrive at this conclusion?
1. I am embedding jFreeChart on pdf file created using iText. If I create PDF file minus charts, I do not face any problem
2. When I use jFreeChart through standalone java program it works fine.
So the problem remains - how to deploy jFreeChart and jCommon in web enviroment.
Please advise.
Hemanshu
I figured out that problem is only in case of deploying jFreeChart on web based environment. How did I arrive at this conclusion?
1. I am embedding jFreeChart on pdf file created using iText. If I create PDF file minus charts, I do not face any problem
2. When I use jFreeChart through standalone java program it works fine.
So the problem remains - how to deploy jFreeChart and jCommon in web enviroment.
Please advise.
Hemanshu
still not solved
Hello Friends
I am still seeking someone to help me. I tried all the possible ways but no luck.
regards
Hemanshu
I am still seeking someone to help me. I tried all the possible ways but no luck.
regards
Hemanshu
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The error message you get under windows doesn't look like it is related to JFreeChart. Under Linux, you might be running into the "headless" Java problem, there is some info in the FAQ about it.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
problem is with jfreechart
Hello David,
I tested my program- I removed jfreechart library and tried creating PDF file using iText library it works as desired on windows and linux environments. The moment I plug jfreechart and jcommon again the errors start coming.
Do you suggest that we should run coldfusion over tomcat instead of jrun? I am thinking of trying that option. Can you advise?
regards
Hemanshu
PS - Its often very difficult to post requests on the forum using the username and password. Whenever I post it says - Invalid session. It happened more than 25 times today. Please do something about it.
I tested my program- I removed jfreechart library and tried creating PDF file using iText library it works as desired on windows and linux environments. The moment I plug jfreechart and jcommon again the errors start coming.
Do you suggest that we should run coldfusion over tomcat instead of jrun? I am thinking of trying that option. Can you advise?
regards
Hemanshu
PS - Its often very difficult to post requests on the forum using the username and password. Whenever I post it says - Invalid session. It happened more than 25 times today. Please do something about it.