Headless Exception
От | Croc |
---|---|
Тема | Headless Exception |
Дата | |
Msg-id | 4cf9094f-1bc1-49d7-b0bf-85206228053c@r33g2000yqn.googlegroups.com обсуждение исходный текст |
Список | pgsql-jdbc |
Hi All , I have a process working with a server 8.2 which runs without a GUI. I am doing porting to 8.3 , on CentOS 5.0 , The server compiled fine, and installed + running. USING JDBC:postgresql-8.3-604.jdbc4.jar and tried postgresql-8.3-604.jdbc3.jar too. When i start my process , i am getting the following Exception: java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless (GraphicsEnvironment.java:159) at java.awt.Window.<init>(Window.java:431) at java.awt.Frame.<init>(Frame.java:403) at java.awt.Frame.<init>(Frame.java:368) at com.trend.iwss.jscan.runtime.BaseDialog.getActiveFrame (BaseDialog.java:75) at com.trend.iwss.jscan.runtime.AllowDialog.make (AllowDialog.java:32) at com.trend.iwss.jscan.runtime.PolicyRuntime.showAllowDialog (PolicyRuntime.java:325) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopActionInner (PolicyRuntime.java:240) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopAction (PolicyRuntime.java:172) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopAction (PolicyRuntime.java:165) at com.trend.iwss.jscan.runtime.NetworkPolicyRuntime._preFilter (NetworkPolicyRuntime.java:140) at com.trend.iwss.jscan.runtime.PolicyRuntime.preFilter (PolicyRuntime.java:132) at com.trend.iwss.jscan.runtime.NetworkPolicyRuntime.preFilter (NetworkPolicyRuntime.java:108) at org.postgresql.core.PGStream.<init>(PGStream.java:62) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl (ConnectionFactoryImpl.java:77) at org.postgresql.core.ConnectionFactory.openConnection (ConnectionFactory.java:66) at org.postgresql.jdbc2.AbstractJdbc2Connection.<init> (AbstractJdbc2Connection.java:124) at org.postgresql.jdbc3.AbstractJdbc3Connection.<init> (AbstractJdbc3Connection.java:30) at org.postgresql.jdbc3.Jdbc3Connection.<init> (Jdbc3Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:386) at org.postgresql.Driver.connect(Driver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java: 582) at java.sql.DriverManager.getConnection(DriverManager.java: 185) at com.orbotech.loganalyser.irg.util.StorageHandler.createConnection (StorageHandler.java:177) The process is compiled and running with Java 1.6 , and i tried assigning -Djava.awt.headless=true and false , and it doesn't help - naturally since that jscan needs X. Is there a way to bypass the X need? and use the driver with no X ? The process is working fine with postgresql-8.2-506.jdbc3.jar - but i am guessing it will show starnge errors in time (since the server is 8.3). Any help would be appreciated.
В списке pgsql-jdbc по дате отправления: