java.awt.HeadlessException: - Raspberry Pi Forums
i trying enable 2-way audio communication using java servlets between rpi , windows machine. same java program works fine between 2 windows 8 machines not between rpi , window machine.it threw following exception when invoked using browser. how deal awt error? also, rpi not have mic
http status 500 -
type exception report
message
description server encountered internal error prevented fulfilling request.
exception
java.awt.headlessexception:
no x11 display variable set, program performed operation requires it.
java.awt.graphicsenvironment.checkheadless(graphicsenvironment.java:207)
java.awt.window.<init>(window.java:536)
java.awt.frame.<init>(frame.java:420)
javax.swing.jframe.<init>(jframe.java:225)
com.teqnihome.tech.client1.starter(client1.java:55)
com.teqnihome.tech.clientservlet.doget(clientservlet.java:21)
javax.servlet.http.httpservlet.service(httpservlet.java:622)
javax.servlet.http.httpservlet.service(httpservlet.java:729)
org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52)
note full stack trace of root cause available in apache tomcat/8.0.24 logs.
http status 500 -
type exception report
message
description server encountered internal error prevented fulfilling request.
exception
java.awt.headlessexception:
no x11 display variable set, program performed operation requires it.
java.awt.graphicsenvironment.checkheadless(graphicsenvironment.java:207)
java.awt.window.<init>(window.java:536)
java.awt.frame.<init>(frame.java:420)
javax.swing.jframe.<init>(jframe.java:225)
com.teqnihome.tech.client1.starter(client1.java:55)
com.teqnihome.tech.clientservlet.doget(clientservlet.java:21)
javax.servlet.http.httpservlet.service(httpservlet.java:622)
javax.servlet.http.httpservlet.service(httpservlet.java:729)
org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52)
note full stack trace of root cause available in apache tomcat/8.0.24 logs.
you need start x via
not matter whether real display connected or not.
ghans
code: select all
startx &
ghans
raspberrypi
Comments
Post a Comment