Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

HeadlessException - X11 OK

Thread view: 
iksrazal@gmail.com - 22 Dec 2005 12:17 GMT
Hi all,

I'm trying to run tcpmon remotely. I'm using X11 forwarding over ssh.
X11 is
working fine - I can type 'xclock' via ssh on the remote machine and it
works.

However, I get this error:

/home/iksrazal/axis-1_3/lib> java -cp axis.jar -Djava.awt.headless=true

org.apache.axis.utils.tcpmon 8090 localhost 9081
java.awt.HeadlessException
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
       at java.awt.Window.<init>(Window.java:274)
       at java.awt.Frame.<init>(Frame.java:401)
       at javax.swing.JFrame.<init>(JFrame.java:198)
       at org.apache.axis.utils.tcpmon.<init>(tcpmon.java:1814)
       at org.apache.axis.utils.tcpmon.<init>(tcpmon.java:1861)
       at org.apache.axis.utils.tcpmon.main(tcpmon.java:1900)

As you can see I've tried java.awt.headless=true . Any ideas?

iksrazal
Stefan Schulz - 22 Dec 2005 15:57 GMT
On Thu, 22 Dec 2005 04:17:29 -0800, iksrazal wrote:

> As you can see I've tried java.awt.headless=true . Any ideas?

What happens if you do not specify headless? After all, if X forwarding
works, why castrate your application in this way?

Signature

You can't run away forever,
But there's nothing wrong with getting a good head start.
          --- Jim Steinman, "Rock and Roll Dreams Come Through"
         

iksrazal@gmail.com - 23 Dec 2005 18:26 GMT
> On Thu, 22 Dec 2005 04:17:29 -0800, iksrazal wrote:
>
[quoted text clipped - 7 lines]
> But there's nothing wrong with getting a good head start.
>            --- Jim Steinman, "Rock and Roll Dreams Come Through"

Yeah that was it. Moral of the story - X11 forwarding needs to be
turned on server-side - don't use java.awt.headless=true .

iksrazal


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.