Runtime error "AWT-EventQueue-0"


Has anyone seen this error before? - I’m running OH1.8.2 on Windows.

Does it has anything to do with ‘Timers’?


Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: sun.java2d.HeadlessGraphicsEnvironment cannot be cast to sun.awt.Win32G
        at$ Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$300(Unknown Source)
        at java.awt.EventQueue$ Source)
        at java.awt.EventQueue$ Source)
        at Method)
        at$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at Source)

It has nothing to do with timers. What Java are you running?

Thanks @rlkoshak

I’m using java version "1.7.0_75"
Java™ SE Runtime Environment (build 1.7.0_75-b13)

I don’t use oh on Windows, but that error is really deep and fundamental to Java. You might try upgrading to the latest 1.8 are from Oracle. Beyond that I’ve no ideas but something is seriously broken.

Alright, I’ll look into that :slight_smile:

I have this too. OH2b3 on Windows 10.

Only happens when switching on/off my TV (which is also my PC monitor that runs OH).
The Switch works fine though.

I have not yet updated my java to v1.8 to see if that would solve my issue, however I did find this thread

I tried to delete the parameter “-Djava.awt.headless=true” from the start.bat file as mentioned in the above link. Not I just wait and see. I’m not able to force the error to show itself.

BR Søren