Topic
  • 3 replies
  • Latest Post - ‏2010-04-15T22:18:10Z by alexbag
azarets
azarets
1 Post

Pinned topic java.awt.HeadlessException on the Websphere 6.1

‏2010-04-14T20:56:13Z |
I am getting this error thrown on the 6.1 server when Running on SunOS
java.awt.HeadlessException
at sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:189)

Same code works with no issues when running on local computert on the 6.1 server.

We have tried setting java.awt.Headless=true and that did not help at all.

Please help.
Updated on 2010-04-15T22:18:10Z at 2010-04-15T22:18:10Z by alexbag
  • SystemAdmin
    SystemAdmin
    37422 Posts

    Re: java.awt.HeadlessException on the Websphere 6.1

    ‏2010-04-15T13:35:26Z  
    Hello,
    Try technote java.awt.HeadlessException on WebSphere Application Server V6.1 at http://www.ibm.com/support/docview.wss?uid=swg21248987.

    Thanks,
    David Yang
    WebSphere Portal support

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
  • azaretskiy
    azaretskiy
    1 Post

    Re: java.awt.HeadlessException on the Websphere 6.1

    ‏2010-04-15T21:31:47Z  
    Hello,
    Try technote java.awt.HeadlessException on WebSphere Application Server V6.1 at http://www.ibm.com/support/docview.wss?uid=swg21248987.

    Thanks,
    David Yang
    WebSphere Portal support

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
    We have tried this as well prior to me posting. When set to false application breaks.
    I have found this article on ibm site as well:
    http://www-01.ibm.com/support/docview.wss?rs=404&context=SS7K4U&dc=DB520&uid=swg21252243&loc=en_US&cs=UTF-8&lang=en&rss=ct404websphere

    It make sense to set headless to true since we are runing on Sun server that does not have keybord, mouse and etc.

    Any other suggestions? Any special properties on server we can set?
    Again this totally works on my local workstation, without even this headless property set, and does not on the Sun server.
  • alexbag
    alexbag
    13 Posts

    Re: java.awt.HeadlessException on the Websphere 6.1

    ‏2010-04-15T22:18:10Z  
    We have tried this as well prior to me posting. When set to false application breaks.
    I have found this article on ibm site as well:
    http://www-01.ibm.com/support/docview.wss?rs=404&context=SS7K4U&dc=DB520&uid=swg21252243&loc=en_US&cs=UTF-8&lang=en&rss=ct404websphere

    It make sense to set headless to true since we are runing on Sun server that does not have keybord, mouse and etc.

    Any other suggestions? Any special properties on server we can set?
    Again this totally works on my local workstation, without even this headless property set, and does not on the Sun server.
    http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Toolkit.html#getScreenResolution%28%29

    Throws:
    HeadlessException - if GraphicsEnvironment.isHeadless() returns true
    Not all operations are supported in headless mode.
    Thanks,
    Alex