我得linux 下应用程序无法生成图片.. 这个图片是程序画出来的.
我在redflag 服务器中 有一个应用. 此应用中有个栏目要生成图片!!
这个图片是程序画出来的.
如:图表
我们通常在服务器字符界面启动,中间件..tongweb
今天发现 , 要生成图片时 出现了下列问题:
加入说,要我进入图形界面启动服务.. 可以解决此问题的话.
我想问,在不起图形界面情况下,如何解决?
===============
- Error: 500
- Location: /ReportTableDetail.do
- Internal Servlet Error:
- javax.servlet.ServletException: Servlet execution threw an exception
- at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
- at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)
- at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:185)
- at java.security.AccessController.doPrivileged(Native Method)
- at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:181)
- at com.tongweb.webbase.core.ApplicationFilterChain.wrappedDoFilter(ApplicationFilterChain.java:160)
- at com.tongweb.webbase.core.ContextManager.internalService(ContextManager.java:964)
- at com.tongweb.webbase.core.ContextManager.service(ContextManager.java:866)
- at com.tongweb.webbase.startup.TabascoAdapter.service(TabascoAdapter.java:393)
- at com.tongweb.servlet.servletManager.ServletManager.service(ServletManager.java:1066)
- at com.tongweb.servlet.connectionMethods.http.HttpHandler.doARequest(HttpHandler.java:339)
- at com.tongweb.servlet.connectionMethods.http.HttpHandler.processRequests(HttpHandler.java:356)
- at com.tongweb.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:93)
- at java.lang.Thread.run(Thread.java:534)
- Root cause:
- java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
- at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
- at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:134)
- at java.lang.Class.forName0(Native Method)
- at java.lang.Class.forName(Class.java:141)
- at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
- at java.awt.Font.initializeFont(Font.java:308)
- at java.awt.Font.(Font.java:344)
- at org.jfree.chart.axis.AxisConstants.(AxisConstants.java:67)
- at org.jfree.chart.axis.Axis.(Axis.java:180)
- at org.jfree.chart.axis.CategoryAxis.(CategoryAxis.java:137)
- at org.jfree.chart.axis.CategoryAxis3D.(CategoryAxis3D.java:78)
- at org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:506)
- at DataBase.ReportTable.ReportTable.getListReportTable(ReportTable.java:838)
- at struts.action.ResourceManager.ReportTableDetailAction.getReportTableImage(ReportTableDetailAction.java:146)
- at struts.action.ResourceManager.ReportTableDetailAction.execute(ReportTableDetailAction.java:100)
- at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
- at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
- at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
- at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
- at com.tongweb.webbase.facade.ServletHandler.doService(ServletHandler.java:532)
- at com.tongweb.webbase.core.Handler.invoke(Handler.java:322)
- at com.tongweb.webbase.core.Handler.service(Handler.java:235)
- at com.tongweb.webbase.facade.ServletHandler.service(ServletHandler.java:464)
- at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
- at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)
- at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:185)
- at java.security.AccessController.doPrivileged(Native Method)
- at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:181)
- at com.tongweb.webbase.core.ApplicationFilterChain.wrappedDoFilter(ApplicationFilterChain.java:160)
- at com.tongweb.webbase.core.ContextManager.internalService(ContextManager.java:964)
- at com.tongweb.webbase.core.ContextManager.service(ContextManager.java:866)
- at com.tongweb.webbase.startup.TabascoAdapter.service(TabascoAdapter.java:393)
- at com.tongweb.servlet.servletManager.ServletManager.service(ServletManager.java:1066)
- at com.tongweb.servlet.connectionMethods.http.HttpHandler.doARequest(HttpHandler.java:339)
- at com.tongweb.servlet.connectionMethods.http.HttpHandler.processRequests(HttpHandler.java:356)
- at com.tongweb.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:93)
- at java.lang.Thread.run(Thread.java:534)
复制代码
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我需要帮助...我需要帮助...我需要帮助...我需要帮助...v