2022年3月2日 星期三

Error creating bean with name 'dataConfig': Invocation of init method failed; nested exception is java.awt.HeadlessException

System.setProperty("java.awt.headless", "false");
//DatabaseManagerSwing前面加紅色這一行
DatabaseManagerSwing.main(new String[] { "--url", "jdbc:hsqldb:mem:testdb", "--noexit" });


完整錯誤訊息:
Caused by: java.awt.HeadlessException: null
        at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166) ~[na:na]
        at java.desktop/java.awt.Window.<init>(Window.java:553) ~[na:na]
        at java.desktop/java.awt.Frame.<init>(Frame.java:428) ~[na:na]
        at java.desktop/java.awt.Frame.<init>(Frame.java:393) ~[na:na]
        at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180) ~[na:na]
        at org.hsqldb.util.DatabaseManagerSwing.<init>(Unknown Source) ~[hsqldb-2.6.1.jar:2.6.1]
        at org.hsqldb.util.DatabaseManagerSwing.main(Unknown Source) ~[hsqldb-2.6.1.jar:2.6.1]

1 則留言:

  1. In 2005, Jupiter Research forecast that world cellular gambling services would generate revenues of greater than $19.three billion US dollars by 2009. In 2010, Gartner analysts showed the 2009 world cellular gambling revenues at $4.7 billion and forecast $5.6 billion for 2010. Such a large discrepancy between the 2005 forecast and the 2009 actuality was attributed 토토사이트 to the sudden 2006 US prohibition of all internet based mostly gambling. Technologies similar to Blockchain, IoT, and VR are changing every little thing in each subject together with on-line gambling. Virtual Reality and VR Headsets have gained lots of recognition latest years|in current times|lately} and are a revolutionary addition to the world of on-line gambling. With VR, one can enter a virtual casino and play all of the games with out having to journey.

    回覆刪除