Services Partners Company
Knowledge Base


Article

Error: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit

« Go Back

Information

 
EnvironmentProduct: Rollbase Private Cloud
Version: 4.5.0.0
Question/Problem Description
The error "Could not initialize class sun.awt.X11.XToolkit" happens every time a user runs a report.
Steps to Reproduce
Clarifying Information
Java stack trace:

main.log file
version: PD4ML 3100 Pro DMS
loading additional CSS file http://localhost:8080/master/css/common/css/pacific-common.css
cache disabled. (re-)reading http://localhost:8080/master/css/common/css/pacific-common.css
loading http://localhost:8080/master/css/common/css/pacific-common.css [5ms]
loading additional CSS file http://localhost:8080/master//css/rbtheme.css
cache disabled. (re-)reading http://localhost:8080/master//css/rbtheme.css
loading http://localhost:8080/master//css/rbtheme.css [1ms]
loading CSS file for http://localhost:8080/prod1/css/common/css/pacific-common.css?v=4.5.0.0
cache disabled. (re-)reading http://localhost:8080/prod1/css/common/css/pacific-common.css?v=4.5.0.0
loading http://localhost:8080/prod1/css/common/css/pacific-common.css?v=4.5.0.0 [1ms]
loading CSS file for http://localhost:8080/prod1/css/rbtheme.css?v=4.5.0.0
cache disabled. (re-)reading http://localhost:8080/prod1/css/rbtheme.css?v=4.5.0.0
loading http://localhost:8080/prod1/css/rbtheme.css?v=4.5.0.0 [1ms]
CSS: parsing errors (http://localhost:8080/prod1/css/rbtheme.css?v=4.5.0.0)
CSS: line 609: closing brace expected [select{;font-family: 'Arial', 'Lato', 'Helvetica', sans-serif;color: black;border:1px solid #ccc;}]
CSS: line 611: closing brace expected [textarea{;font-family: 'Arial', 'Lato', 'Helvetica', sans-serif;border:1px solid #ccc;}]
CSS: line 613: closing brace expected [td.detailDataCol input, td.detailWideDataCol input{;}]
CSS: line 614: closing brace expected [td.detailDataCol select, td.detailWideDataCol select{;}]
CSS: line 615: closing brace expected [td.emailDataCol input, td.emailWideDataCol input{;}]
CSS: line 616: closing brace expected [td.emailDataCol select, td.emailWideDataCol select{;}]
CSS: line 618: closing brace expected [td.regularSize input, td.regularSize select {;}]
CSS: line 655: closing brace expected [.normal{;}]
CSS: line 1430: closing brace expected [//font-weight: bold;]
CSS: line 1472: closing brace expected [td.rbs_leftDataCol input{;}]
CSS: line 1473: closing brace expected [td.rbs_leftDataCol select{;}]
CSS: line 1477: closing brace expected [td.rbs_leftDataCol input{;}]
CSS: line 1478: closing brace expected [td.rbs_leftDataCol select{;}]
CSS: line 1482: closing brace expected [td.rbs_leftDataColWide input{;}]
CSS: line 1483: closing brace expected [td.rbs_leftDataColWide select{;}]
CSS: line 1486: closing brace expected [td.rbs_errorDataColWide input{;}]
CSS: line 1487: closing brace expected [td.rbs_errorDataColWide select{;}]
CSS: line 1490: closing brace expected [td.rbs_errorDataCol input{;}]
CSS: line 1491: closing brace expected [td.rbs_errorDataCol select{;}]
CSS: line 1494: closing brace expected [td.rbs_errorDataCol input{;}]
CSS: line 1495: closing brace expected [td.rbs_errorDataCol select{;}]
CSS: line 1504: closing brace expected [td.rbs_boldDataCol input{;}]
CSS: line 1505: closing brace expected [td.rbs_boldDataCol select{;}]
CSS: line 1509: closing brace expected [td.rbs_emailLeftDataCol select{;}]
CSS: line 1510: closing brace expected [td.rbs_emailLeftDataCol input{;}]
CSS: line 1549: closing brace expected [.rbs_helptipTable {color: #000000; width: 100%; ; background-color: #FFF8CE;}]
CSS: line 1602: closing brace expected [td.rbs_propertiesEditorRightCol input, td.rbs_propertiesEditorRightCol select {;}]
CSS: line 1623: closing brace expected [td.rbs_SetupDataColWide input{;}]
CSS: line 1624: closing brace expected [td.rbs_SetupDataColWide select{;}]
CSS: line 2154: uncnown @ rule '-webkit-keyframes' [@-webkit-keyframes fadeIn {]
CSS: line 2167: uncnown @ rule 'keyframes' [@keyframes fadeIn {]
CSS: line 2756: closing brace expected [    *margin-left: 0;]
CSS: line 2789: closing brace expected [    *margin-left: 0;]
CSS: line 3872: unexpected character ':' [position: relative;]
CSS: line 3872: closing brace expected [position: relative;]
CSS: line 3975: closing brace expected [;]
CSS: line 4148: unexpected character ':' [height: 60px;]
CSS: line 4148: closing brace expected [height: 60px;]
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at java.awt.Toolkit$2.run(Toolkit.java:860)
    at java.awt.Toolkit$2.run(Toolkit.java:855)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
    at org.zefer.font.c.o00000(Unknown Source)
    at org.zefer.font.c.<init>(Unknown Source)
    at org.zefer.cache.ResourceCache.getFontMetrics(Unknown Source)
    at org.zefer.html.doc.q.Ó00000(Unknown Source)
    at org.zefer.html.doc.q.Ö00000(Unknown Source)
    at org.zefer.html.doc.x.<init>(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at com.rb.core.services.template.impl.PD4MLRenderer.generate(PD4MLRenderer.java:94)
    at com.rb.core.services.template.impl.PdfRendererFactory.generate(PdfRendererFactory.java:65)
    at com.rb.core.logics.servlet.PdfServlet.doGet(PdfServlet.java:102)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at com.rb.core.logics.filter.SessionTimestampFilter.doFilter(SessionTimestampFilter.java:56)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at com.rb.util.web.RequestLoggingFilter.doFilter(RequestLoggingFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at com.rb.core.logics.filter.CsrfFilter.doFilter(CsrfFilter.java:101)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at com.rb.core.logics.filter.RequestPreprocessingFilter.doFilter(RequestPreprocessingFilter.java:51)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
    at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:478)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Error MessageCould not initialize class sun.awt.X11.XToolkit
Defect/Enhancement Number
Cause
The PD4ML is trying to use a monitor to output the report when the server does not have a physical input device.
Resolution
To suppress this error, set the following parameter at Tomcat's system variables:
-Djava.awt.headless=true

See the Notes section for more information.
Workaround
Notes
Attachment 
Last Modified Date5/19/2017 8:25 PM
Disclaimer

The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.



Feedback
 
Was this article helpful?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful.



Characters Remaining: 255