From: Adrian Klaver <adrian.klaver@aklaver.com>
To: dclark@cinci.rr.com
To: pgsql-general@lists.postgresql.org
Subject: Re: Java UnsatisfiedLinkError exception when connecting to Postgresql database
Date: Wed, 14 Nov 2018 09:28:42 -0800
Message-ID: <9f2d4201-58d2-f061-fe60-710cee474d58@aklaver.com> (raw)
In-Reply-To: <20181114172500.QN500.45436.root@dnvrco-web17>
References: <20181114172500.QN500.45436.root@dnvrco-web17>
On 11/14/18 9:25 AM, dclark@cinci.rr.com wrote:
> Hello;
>
> I've written a Java program which uses Postgresql via JDBC. The program works fine on all RedHat systems I've tested except one, where it yields an UnsatisifiedLinkError. Here is the stack trace:
>
> sun.misc.VM.latestUserDefinedLoader0(Native
> Method)
> sun.misc.VM.latestUserDefinedLoader(VM.java:411)
> java.io.ObjectInputStream.latestUserDefinedLoader(ObjectInputStream.java:2351)
> java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:686)
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1866)
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1749)
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2040)
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1571)
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
> org.postgresql.ds.common.BaseDataSource.readBaseObject(BaseDataSource.java:1210)
> org.postgresql.ds.common.BaseDataSource.initializeFrom(BaseDataSource.java:1220)
> org.postgresql.ds.PGPoolingDataSource.initialize(PGPoolingDataSource.java:267)
> org.postgresql.ds.PGPoolingDataSource.getConnection(PGPoolingDataSource.java:324)
>
> Any ideas?
What is different about the system that throws the error?
For example:
OS version
JDBC version
Postgres version
Java version
>
> Thanks in advance.
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, dclark@cinci.rr.com
Subject: Re: Java UnsatisfiedLinkError exception when connecting to Postgresql database
In-Reply-To: <9f2d4201-58d2-f061-fe60-710cee474d58@aklaver.com>
References: <20181114172500.QN500.45436.root@dnvrco-web17> <9f2d4201-58d2-f061-fe60-710cee474d58@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox