Skip to main content
Kofax

MarkView File Capture - -java.lang.InternalError: Can't connect to X11 window server- when sending in documents.

Summary 

After sending documents into MarkView File Capture the documents are not processed and a Java error is seen in the log file. 4698

Applies To

  • ERP System : Oracle
  • MarkView Version (Oracle): MarkView 5.0 to 5.10.x

Behavior

When emailing PDF files into MarkView the file is not processed and the following error appears in the mvfilecapture.log file.

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.<clinit>(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.<init>(Font.java:344)
at com.qoppa.g.h.v.<clinit>(Unknown Source)
at com.qoppa.k.b$1.a(Unknown Source)
at com.qoppa.g.h.s.a(Unknown Source)
at com.qoppa.k.b.do(Unknown Source)
at com.qoppa.k.b.<init>(Unknown Source)
at com.qoppa.pdfImages.PDFDocument.<init>(Unknown Source)
at com.markview.emailattach.convert.PDF2TIFFConverter.convert(PDF2TIFFConverter.java:38)
at com.markview.emailattach.convert.TiffFormatConverter.convert(TiffFormatConverter.java:48)
at com.markview.emailattach.inbound.Pop3ImapMailConnector.convertImageFormater(Pop3ImapMailConnector.java:1074)
at com.markview.emailattach.inbound.Pop3ImapMailConnector.parseMsgs(Pop3ImapMailConnector.java:696)
at com.markview.emailattach.inbound.Pop3ImapMailConnector.run(Pop3ImapMailConnector.java:285)

Known Causes

When installing the MarkView File Capture component in a 5.10 environment the DTM Startup script needs to be modified to run in "headless" mode.

Resolution

To resolve this issue you will need to edit your start-mvas-dtm.sh (Unix) or start-mvas-dtm.bat (Windows) file.

  1. Search for java. You should find a line similar to the following:
    nohup java -jar oc4j.jar …
  2. If the line does not already include -Djava.awt.headless=true then change it, by adding -Djava.awt.headless=true after java, so that the line now looks like:
    nohup java -Djava.awt.headless=true -jar oc4j.jar …
  3. Save and close the file.
  4. Stop and Start the DTM.

Keywords: x11.X11,window server, mvfc, file, capture, file capture