Can't connect to X11 Windows ............ error message during installation
ok, so i searched through the long list of messages on the forum and still don't have an answer. I am using a PC with redhat FC4 installed and trying to install Oracle 9 on the same PC. I tried to export my DISPLAY=hostname:0.0 and export DISPLAY=127.0.0.1:0.0 and neither worked.
From the replies on the same error message, i gather that i do not need to run
xhost +
because i am on the same machine.
What else can i check to get rid of this frustrating message ?
Most replies on the erorr messages were from a few years ago as well.
Thanks
I solved my problem. It might be useful for other redhat FC users as well.
I changed the default terminal to be an Xwindows terminal instead of the standard terminal. You can do that by clicking on "Desktop", "Preferences" or "More Preferences" and configuring your default terminal to be Xwindows.
I was able to start installer WITHOUT exporting my display or any other command to get display going.
The installer did complain about some font messages, but apparently it didn't pose a problem.
BTW, i got Oracle 9.2.0.1 running on Redhat FC 4 using installation instructions i easily found on google. You need to use an old version of GCC (only during installation of software) and JRE (1.3.1_15); but it works. It will only be my "play at home" database. Probably not recommended for a production database.
Similar Messages
-
i m using repot engin to disply report its running in windows well in my local machine but whn i deployeed it to test server (AIX) it gave me this error server is websphere
E SRVE0026E: [Servlet Error]-[Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.]: 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:175)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Font.initializeFont(Font.java:333)
at java.awt.Font.<init>(Font.java:368)
at com.actuate.ereport.engine.templateio.TmplReader.getFont(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.getFont(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.handleFont(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.closeObjects(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.endElement(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.startParsing(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.readTemplate(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.ReadTemplateFromBytes(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.readTemplate(Unknown Source)
at com.actuate.ereport.engine.ACJEngine.readTemplate(Unknown Source)
at com.actuate.ereport.engine.ACJEngine.readTemplate(Unknown Source)
at com.actuate.ereport.eapi.factory.DesignFactoryImpl.load(Unknown Source)
at com.actuate.ereport.eapi.factory.DesignFactoryImpl.load(Unknown Source)
at ccrmsweb.actions.PrintRpts.execute(PrintRpts.java:129)
Please tell me wht exactly i have to do, i men exactly its very urgentCheck this thread:
Re: Can't connect to X11 window server using 'localhost:0.0' -
Can't connect to X11 Windows Server - Error
Dear All,
Greetings!!
We had successfully installed ECC6.0 EHP7 with HANA Database on SUSE 11 SP3. Now we are in the process of upgrading the components in the ECC via SUM. When we try to start the upgrade via SUM using <SID>ADM userid in the Linux Machine, we are getting an JAVA Error like "Can't connect to X11 Windows Server". Please find the complete error log in the attached screenshot (SUM.pmg).
But when we try the same with the root userid, we can able to see the SUM GUI Opening Screen.
Please help us with suggestions or solutions at the earliest.
Regards,
ElaHello Ella,
Please follow the SUM upgrade guide for starting the SUM tool.
Start the SL controller on primary application server with command :
./STARTUP
After this, you can access the GUI from the browser :
http://<host>:4239/
Problem you described, seems to be related to variables.
Please set the variable DISPLAY for the SIDADM user.
Thanks.
Regards,
Gaurav -
Deployment error : Can't connect to X11 window server
Hello All,
i am facing an issue with deployment of the VC Model.
I obtained the log and it says " Can't connect to X11 window server ". The detailed log is below:
Error in compiling Flex application: 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:139)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at macromedia.fonts.JREFontManager.initializeSystemFonts(JREFontManager.java:242)
at macromedia.fonts.JREFontManager.createSetForSystemFont(JREFontManager.java:58)
at macromedia.fonts.CachedFontManager$FontCache.fetch(CachedFontManager.java:109)
at macromedia.util.LRUCache.get(LRUCache.java:114)
at macromedia.fonts.JREFontManager.getEntryFromSystem(JREFontManager.java:186)
at macromedia.swf.builder.tags.FontBuilder.<init>(FontBuilder.java:52)
at macromedia.css.FontFaceRule.initialize(FontFaceRule.java:82)
at macromedia.css.StyleDocumentHandler.endFontFace(StyleDocumentHandler.java:36)
at org.apache.batik.css.parser.Parser.parseFontFaceRule(Unknown Source)
at org.apache.batik.css.parser.Parser.parseStyleSheet(Unknown Source)
at macromedia.css.StyleParser.init(StyleParser.java:165)
at macromedia.css.StyleParser.<init>(StyleParser.java:89)
at macromedia.css.StyleSheet.parse(StyleSheet.java:71)
at flex.compiler.parser.MxmlParser$4.end(MxmlParser.java:1123)
at flex.compiler.parser.MxmlParser.endElement(MxmlParser.java:402)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
at flex.compiler.parser.MxmlParser.parseDocument(MxmlParser.java:4363)
at flex.compiler.MxmlLoader.parse(MxmlLoader.java:277)
at flex.compiler.MxmlLoader.loadComponentType(MxmlLoader.java:178)
at flex.compiler.MxmlLoader.loadComponent(MxmlLoader.java:204)
at flex.compiler.CachedComponentLoader.getComponent(CachedComponentLoader.java:197)
at flex.compiler.CachedComponentLoader.loadDefinition(CachedComponentLoader.java:101)
at flex.compiler.CachedComponentLoader.getDefinition(CachedComponentLoader.java:263)
at flex.compiler.CompositeLoader.getDefinition(CompositeLoader.java:54)
at flex.compiler.linker.Loader.getType(Loader.java:266)
at flex.compiler.linker.Loader.findType(Loader.java:248)
at flex.compiler.CompilerPackageManager.loadType(CompilerPackageManager.java:629)
at flex.compiler.MxmlCompiler.openDocument(MxmlCompiler.java:61)
at flex.compiler.MxmlCompiler.compile(MxmlCompiler.java:234)
at flex.tools.Mxmlc.main(Mxmlc.java:166
The version of VC is :
GML : 700.15.0.1
Client : 700.15.0.1
VCServer : 700.15.0.1
Flex : 700.15.0.1
Portal Content(HTMLBKit) : 700.15.0.1
Portal Connector : 700.15.0.1
I allready saw de note 886209 but this not working.
Is there any body who knows how to solve this
Thanks ,
Kurt RanftHi Kurt,
I am getting the same error, Can u just explain a little bit briefly, Because I am entirely new into SAP VC.
Where is that XML file and what is the chage that has to be made in that XML file?
Please help me to solve the problem.
Regards,
Palani -
Installation error : Can't connect to X11 window server using ':0.0
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
WHILE INSTALLING ORACLE10g ON FC1 GETING THIS ERROR
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
:0.0
:0.0
Unable to start an interactive install session because of the following error:Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. The DISPLAY environment variable should be set to <hostname or IP address>:<screen>, where the <screen> is usually '0.0'.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh: % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
HOW SHOULD I MAKE THE REQUIRED CHANGESCheck this thread:
Re: Can't connect to X11 window server using 'localhost:0.0' -
Dear all,
i am installing sap4.7 in hp-ux, after installing CI, i start DI, in 17 th step it asking to install oracle by executing RUNINSTALLER.....just i open new termenal (xshell) with orasid user i executed RUNINSTALLER but after some time it will show like this---- 172.16.1.254 is my local machine 80.0.0.151 is server
/oracle/stage/920_64/Disk1/SAP/SVRCUSTOM.RSP --> /tmp/.orainst_rsp.8848: Done
Initializing Java Virtual Machine from ../../stage/Components/oracle.swd.jre/1.3.1.0.0a/1/DataFiles/Expanded/bin/java. Please wait...
$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '172.16.1.254:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)
at java.awt.Window.<init>(Window.java:183)
at java.awt.Frame.<init>(Frame.java:310)
at java.awt.Frame.<init>(Frame.java:289)
at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
at oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.<init>(OiifmMainFrame.java:296)
at oracle.sysman.oii.oiic.OiicInstaller.<init>(OiicInstaller.java:231)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:599)
How to resolve this issue, what is the problem.
Regards,
satish-kIf you logon to the console with a user, only that user is permitted to "send" the display to the screen. If you do an "su - ora<sid>" that user must be enable to do so too.
- logon as root
- open a terminal windows (a new one)
- execute "xhost +"
- use another terminal window
- execute "su - ora<sid>"
- execute "setenv DISPLAY <ip>:<port>"
- then execute ./RUNINSTALLER in the SAP subdirectory of Disk1 (NOT runInstaller)
Markus -
Can't connect to X11 window server using ':0.0'
I tried to deploy a sampel BIBean application (JSP+BIBean) to standalone OC4J( install on AIX).
When I launch the jsp from windows browser,I got the following error message.
And I export DISPLAY=IP address:0.0 and bounce the OC4J, the IP address is the machine which I launch the browser and JSP. The I can lanuch the BIBean sample application successfuly (I can see the crosstab, grap...).
But this means that only my machine's browser can access application, not others.. Is ther anything wrong with my configurations.. Please help!!!
500 Internal Server Error
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:77) at java.lang.Class.forName1(Native Method) at java.lang.Class.forName(Class.java:142) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:72) at java.awt.Font.initializeFont(Font.java:285) at java.awt.Font.<init>(Font.java:319) at oracle.dss.dataView.managers.ViewStyle.<clinit>(ViewStyle.java:6600) at oracle.dss.thin.beans.dataView.BaseTitle.<init>(BaseTitle.java:50) at oracle.dss.thin.beans.dataView.Title.<init>(Title.java:31) at oracle.dss.thin.beans.dataView.Title.<init>(Title.java:42) at oracle.dss.thin.beans.dataView.ThinDataview.<init>(ThinDataview.java:131) at oracle.dss.thin.beans.gridView.ThinGridView.<init>(ThinGridView.java:123) at oracle.dss.thin.beans.crosstab.ThinCrosstab.<init>(ThinCrosstab.java:216) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:262) at oracle.dss.persistence.persistencemanager.client.DefaultObjectFactory.getObjectInstance(DefaultObjectFactory.java:199) at oracle.dss.persistence.persistencemanager.client.DefaultStateHandler.recreatePersistableFromStateAgent(DefaultStateHandler.java:357) at oracle.dss.metadataManager.client.handlers.persistence.PersistenceMetadataHandler.getObjectInstance(PersistenceMetadataHandler.java:242) at oracle.dss.metadataManager.client.MetadataManager.getUserObject(MetadataManager.java:3168) at oracle.dss.metadataManager.common.MDFolder.lookup(MDFolder.java:355) at oracle.dss.metadataManager.common.MDFolder.lookup(MDFolder.java:539) at oracle.dss.addins.thin.common.BaseThinSession.loadView(BaseThinSession.java:110) at oracle.dss.addins.thin.common.BasePresentationHandler.createBIThinObject(BasePresentationHandler.java:806) at oracle.dss.addins.jspTags.PresentationTag.createThinObject(PresentationTag.java:102) at oracle.dss.addins.jspTags.BIBaseTag.getThinObject(BIBaseTag.java:72) at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:162) at viewerJSP.jspService(_viewerJSP.java:84) [SRC:/viewerJSP.jsp:7] at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code)) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code)) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code)) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java(Compiled Code)) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797) at java.lang.Thread.run(Thread.java:512)Hi, Kelly
Thanks for your kind response.
The X-server should work, when I export DISPLY to a remote X-server.
How about ImageServlet.. It seems that the ImageServlet has more advantages than X-server or XVBF
I tried to configure OC4J using ImageServlet follow UIX developer's guide. But I was not able to force OC4J to use ImageSevlet. But OC4J is stll try to find X-sever..
I modified the web.xml file for the sample application I deployed.
Is this a right configuration? What is the different
<servlet>^M
<servlet-name>uix</servlet-name>^M
<servlet-class>oracle.cabo.servlet.UIXServlet</servlet-class>^M
<init-param>^M
<servlet-name>uix</servlet-name>^M
<servlet-class>oracle.cabo.image.servlet.ImageServlet</servlet-class>^M -
Deployment Aborted - Can't connect to X11 window server
Hello All,
In coninuation with my previous Charts in Visual Composer, i am facing an issue with deployment of the VC Model.
I obtained the log and it says " Can't connect to X11 window server ". The detailed log is below:
Kindly help me understand the error.
Error in compiling Flex application: 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:139)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at macromedia.fonts.JREFontManager.initializeSystemFonts(JREFontManager.java:242)
at macromedia.fonts.JREFontManager.createSetForSystemFont(JREFontManager.java:58)
at macromedia.fonts.CachedFontManager$FontCache.fetch(CachedFontManager.java:109)
at macromedia.util.LRUCache.get(LRUCache.java:114)
at macromedia.fonts.JREFontManager.getEntryFromSystem(JREFontManager.java:186)
at macromedia.swf.builder.tags.FontBuilder.<init>(FontBuilder.java:52)
at macromedia.css.FontFaceRule.initialize(FontFaceRule.java:82)
at macromedia.css.StyleDocumentHandler.endFontFace(StyleDocumentHandler.java:36)
at org.apache.batik.css.parser.Parser.parseFontFaceRule(Unknown Source)
at org.apache.batik.css.parser.Parser.parseStyleSheet(Unknown Source)
at macromedia.css.StyleParser.init(StyleParser.java:165)
at macromedia.css.StyleParser.<init>(StyleParser.java:89)
at macromedia.css.StyleSheet.parse(StyleSheet.java:71)
at flex.compiler.parser.MxmlParser$4.end(MxmlParser.java:1123)
at flex.compiler.parser.MxmlParser.endElement(MxmlParser.java:402)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
at flex.compiler.parser.MxmlParser.parseDocument(MxmlParser.java:4363)
at flex.compiler.MxmlLoader.parse(MxmlLoader.java:277)
at flex.compiler.MxmlLoader.loadComponentType(MxmlLoader.java:178)
at flex.compiler.MxmlLoader.loadComponent(MxmlLoader.java:204)
at flex.compiler.CachedComponentLoader.getComponent(CachedComponentLoader.java:197)
at flex.compiler.CachedComponentLoader.loadDefinition(CachedComponentLoader.java:101)
at flex.compiler.CachedComponentLoader.getDefinition(CachedComponentLoader.java:263)
at flex.compiler.CompositeLoader.getDefinition(CompositeLoader.java:54)
at flex.compiler.linker.Loader.getType(Loader.java:266)
at flex.compiler.linker.Loader.findType(Loader.java:248)
at flex.compiler.CompilerPackageManager.loadType(CompilerPackageManager.java:629)
at flex.compiler.MxmlCompiler.openDocument(MxmlCompiler.java:61)
at flex.compiler.MxmlCompiler.compile(MxmlCompiler.java:234)
at flex.tools.Mxmlc.main(Mxmlc.java:166
Thanks ,
Sharath MG
The version of VC is :
GML : 700.10.0.1
Client : 700.10.0.1
VCServer : 700.10.0.1
Flex : 700.10.0.1
Portal Content(HTMLBKit) : 700.10.0.1
Portal Connector : 700.10.0.1
Message was edited by:
Sharath M GHi,
due to the message "X11 window server" I guess that maybe your VC Server a so called "headless server", i.e. some kind of virtual device without a monitor. In this case, you have to set a flag in a configuration file. You will find information on this topic in a SAP Note. Maybe this solves your problem.
Best Regards, Benni -
Can't connect to X11 window server using 'localhost:0.0 help please
Hi all,
I am new to oracle, and its my first time to install oralce 9i to our hp ux version 11.23 remotely(ssh), and i got this error messages,
$ ./runInstaller
$ Initializing Java Virtual Machine from /data/OraInstall2008-06-17_05-21-49PM/jre/bin/java. Please wait...
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'md2:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:63)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.<init>(Window.java:188)
at java.awt.Frame.<init>(Frame.java:315)
at java.awt.Frame.<init>(Frame.java:262)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)
$ xhost +
xhost: unable to open display "md2:0.0"
$ export DISPLAY=127.0.0.1:0.0
$ xhost +
xhost: unable to open display "127.0.0.1:0.0"
$ export DISPLAY=:0
$ xhost +
xhost: unable to open display ":0"
I already followed all the suggestion from the forum, like in
Can't connect to X11 window server using '127.0.0.1:0.0'
but still got the same error, someone please help ?? please...Can't connect to X11 window server using 'md2:0.0' asWell... Is there a X display server running? (on the hp-ux, if named md2)
As suggested, you may need to talk to a sys admin / unix guy or girl. -
Hi,
I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
following error:
java.rmi.RemoteException: 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:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.(Font.java:298)
at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
caused by the following code fragment:
Font f = new Font(fontName, fontStyle, fontHeight);
FontMetrics fm = (new Panel()).getFontMetrics(f);
Have I just forgotten to set an environment variable? I would prefer
not to install bulky pieces of software, but if that's what it takes
to get over this error, so be it.
Thanks, Dave A.A Java AWT, X11 problem posted in the weblogic ejb newsgroup. I haven't been in here for long, but
that has to be a first.
If you have the DISPLAY env variable set to :0.0, you have to be at the console on a Solaris box
running the XServer. 'xdm' I think is the code that has to be running. Also, I think the format is
<hostname:0.0> or better <hostname:0> unless you are on a multi-headed workstation. Something like:
export DISPLAY=hostname:0
where hostname is the name of the host running an XServer and the .xhosts file allows access to the
XServer from the display client.
Apparently, you are not at the console?
Anyway, I don't think there is a newsgroup here that I could even recommend to cross-post this to as
it is not a WebLogic question. I think I would try the Discussion Forums at http://java.sun.com.
Bill
"D. Alvarado" wrote:
Hi,
I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
following error:
java.rmi.RemoteException: 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:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.(Font.java:298)
at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
caused by the following code fragment:
Font f = new Font(fontName, fontStyle, fontHeight);
FontMetrics fm = (new Panel()).getFontMetrics(f);
Have I just forgotten to set an environment variable? I would prefer
not to install bulky pieces of software, but if that's what it takes
to get over this error, so be it.
Thanks, Dave A. -
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY
i try to use jfreechart to create a piechart on a aix os with jdk1.3.1 and the aix system does not have a xwindow installed
and the found the following error
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:77)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:72)
at java.awt.Font.initializeFont(Font.java:285)
at java.awt.Font.<init>(Font.java:319)
at org.jfree.chart.plot.PiePlot.<clinit>(PiePlot.java:230)
i got the tip of passing -Djava.awt.headless=true to vm to disable system graphic calls but after restart weblogic i still get the same error
i am wondering if this case has something to do with jdk 1.3.1, and perhaps newer versions of jdk can take the parameter and operate correctly
is that right?is headless option supported in jdk1.3.1?No,
It was added in JDK 1.4:
http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4281163
Kaj -
Can't connect to X11 window server using
java.lang.InternalError: Can't connect to X11 window server using "Ip" as the value of the DISPLAY variable.
I get the above error when I try to create an instance of the JProgressBar.
I have not been able to create a workaround.
One suggestion that I had was to use the following system command.
System.setProperty("java.awt.headless","true");
That gave me a null pointer exception.
I also tried setting the compiler parameters to make this process headless, but it did not make any difference.
I am running this code in a Unix environment.
Any ideas?Hi
Generally in Unix environment the server should accept the connections from clients. Run the xhost + command on the server to which you are trying to connect and then try your application.
Thanks
Srinivas -
Hi all,
I am getting the following error while running the JSP program.
Actually we are running our applications in REMOTE LINUX SERVER (Redhat 7.0).
Installed Softwares : jdk1.3.1_02 & Resin-2.1.0
500 Servlet Exception
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:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.<init>(Font.java:298)
at CreateImage.create(CreateImage.java:22)
at send2trinity_jsp._jspService(/sms/send2trinity.jsp:136)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:181)
at com.caucho.server.http.Invocation.service(Invocation.java:291)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:271)
at com.caucho.server.TcpConnection.run(TcpConnection.java:136)
at java.lang.Thread.run(Thread.java:484)
After getting this error i have logged in from local and set the DISPLAY varible as ':0.0'.
But there is no improvemnt and getting the error like,
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.<init>(Font.java:298)
at CreateImage.create(CreateImage.java:22)
at send2trinity_jsp._jspService(/sms/send2trinity.jsp:136)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:181)
at com.caucho.server.http.Invocation.service(Invocation.java:291)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:271)
at com.caucho.server.TcpConnection.run(TcpConnection.java:136)
at java.lang.Thread.run(Thread.java:484)
How should i solve this problem? Have anybody faced the same problem ?
Please help.
Thanks in advance.
Bye.Hi all,
Thanks a lot for ur reply. It worked me atlast.I have installed JDK1.4 and try to run my program.But it was creating some junk value instaed of creating picture. Actullay my programme needs some third party fonts , it was not loading after i have upgraded. But what i did is , copied the fonts file in to <Java_home>/jre/lib/fonts/ directory. Now it's working fine.
I have done another thing .I am using resin-2.1.0 to serve my JSp pages . So i have added $JAVA_ARGS="-Djava.awt.headless=true"; in wrapper.pl . If u will not add this line then iot will not work for you.
Thank u once again.
Bye. -
Can't connect to X11 window server
hi,
I get the above error when I run a JSP.
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:54)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)
at java.awt.Font.initializeFont(Font.java:259)
at java.awt.Font.(Font.java:293)
at com.sanderson.tallyman.util.PerformMultiFormat.get_no_of_lines(PerformMultiFormat.java:477)
The line which is throwing this error is as follows:
new Font(strfont_name,Font.PLAIN,istrfont_size_to_int);
We are running our WebServer (Borland Application Server) in Solaris machine and calling the JSP from a windows client.
I think it is somewhere related to DISPLAY parameter of the Solaris machine and the xhost file???
Any inputs???
RegardsYou need to connect to a X-Server, since you are using java.awt.Font
The Font implementation needs a graphical subsystem (it has something to do with Frame.addNotify, ...)
I've heard about a simple (FrameBuffer?) XServer implementation without a graphical output. Perhaps you may find some more information in the FAQ section for JAVA/JSP -
Can't connect to X11 windows server
Hi all, I am having problems installing oracle in Fedora Core 1.
This is where i'm stuck at and im not sure what to do.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2004-11-24_09-23-44AM. Please wait ...[student@BI GCPU026 Disk1]$ Oracle Universal Installer, Version 10.1.0.3.0 Production
Copyright (C) 1999, 2004, Oracle. All rights reserved.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
:0.0
:0.0
Unable to start an interactive install session because of the following error:Can't connect to X11 window server usi ng ':0.0' as the value of the DISPLAY variable. The DISPLAY environment variable should be set to <hostname or IP ad dress>:<screen>, where the <screen> is usually '0.0'.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment va riable:
- For csh: % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the sessio n and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native o perating system such as 'xclock':
% <full path to xclock... see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance .
Typical path for 'xclock': '/usr/X11R6/bin/xclock'The problem maybe in (Fedora):
1. X server is running with "nolisten tcp" parameter. Check the configuration
2. Check the settings of GDM or KDM -
Can't connect to X11 window server using '127.0.0.1:0.0'
Oracle 9i R2 on Redhat Fedora Core 2
In the terminal on Xwindow enviroment
# xhost +
# su - oracle
$ export DISPLAY=127.0.0.1:0.0
$./runInstaller
It display error messege below
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable.
Why can't connect to X11 window server? Can you tell me how to solve that problem? Thankshello
I am trying to install Oracle 10g in Sun Solaris 10 all the while I ahve the following error. Please help to install oracle in sun solaris environment.
I have tried all the step of installation
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be 5.6, 5.7, 5.8 or 5.9. Actual 5.10 Failed <<<<
Ignoring required pre-requisite failures. Continuing...Preparing to launch Oracle Universal Installer from /tmp/OraInstall2005-08-07_10-51-43AM. Please wait ...$ Oracle Universal Installer, Version 10.1.0.3.0 Production
Copyright (C) 1999, 2004, Oracle. All rights reserved.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
:0
:0
Unable to start an interactive install session because of the following error:Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. The DISPLAY environment variable should be set to <hostname or IP address>:<screen>, where the <screen> is usually '0.0'.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh: % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 basedprogram that comes with the native operating system such as 'xclock':
% <full path to xclock... see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for 'xclock': ''
Maybe you are looking for
-
Possibility of Stock posting when the inspection lot is in created status?
Dear, Is it possible to do stock posting when the inspection lot is in created status? Please help. Yor suggestion will be appriciated. Regards Vivek Deshpande
-
How to make a still from a movie in iPhoto
Hi, can anyone tell me if it is possible to make a still photo from a movie clip stored in iphoto? thanks jude
-
Hey i just changed my user name and my email on the ipod and computer. So when i did the sinc i lost all my old apps and im asking how can i get my old user names apps on my new one?
-
How to control font size in express vi windows popups?
My Windows XP user interface uses many popup messages generated by the "Display Msg" express vi. Is there a way to customize the appearance of those popups, e.g. larger font? Jeff Climbing the Labview learning curve! Sanarus Medical Pleasanton, CA
-
Browse app missing in CS6, downloaded upgrade from CS4
I purchased an online download for an upgrade to PS CS4 to CS6 in December 2012. I have not used CS6 much and am most comfortable in CS4 so have been using pretty much exclusively. I would like to learn CS6 at this point. When I went to browse in