From: | Croc <yair(dot)ohayon(at)gmail(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Headless Exception |
Date: | 2009-06-03 15:01:46 |
Message-ID: | 7a506651-239f-4093-98e1-981883afdb7e@k20g2000vbp.googlegroups.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Jun 3, 5:11 pm, Croc <yair(dot)oha(dot)(dot)(dot)(at)gmail(dot)com> wrote:
> 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.
UPDATE:
Downloaded source for jdbc3 for 8.3 and built it.
The jar product contains no reference to jscan packages and it works
beutifully , might you using J2EE as default JDK for all builds ?
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-06-03 15:25:40 | Re: [Patch] Binary Transfer v12 |
Previous Message | Croc | 2009-06-03 14:11:45 | Headless Exception |