Try modifying your application to handle AWT errors gracefully. Use GraphicsEnvironment.isHeadless() to determine the state dynamically and disable UI components in headless mode.
Hope this helps. Let me know if it doesn't!