Fatal error running an SWT application from OpenOffice

依然范特西╮ 提交于 2019-12-01 13:11:00

Looks like a bug inside JVM native dll code. I found some help on Oracle Java homepage, you can try it, check Error: Exception_Access_Violation.

othman

I figured out the issue. I was having a finally block in which I was forcing a system exit. When I commented out this line everything worked OK. It seems that exiting in this code portion causes my whole OOo addon to crash.

    } 
    catch (Throwable t) //NOPMD
    {
        ExceptionUtils.printRootCauseStackTrace(t);
    } 
    finally 
    {
        System.out.println("Done.");
        // log.info ("Exit {}", rc);
        //I commented line below and this resolved the issue!
        // System.exit(rc);
    }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!