Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gN5Bn-0008I7-Px for pgsql-general@arkaria.postgresql.org; Thu, 15 Nov 2018 00:07:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gN5Bl-0002fP-BT for pgsql-general@arkaria.postgresql.org; Thu, 15 Nov 2018 00:07:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gN58V-0000KD-QA for pgsql-general@lists.postgresql.org; Thu, 15 Nov 2018 00:03:55 +0000 Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.232] helo=dnvrco-cmomta02.email.rr.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gN58R-0006uZ-Dw for pgsql-general@postgresql.org; Thu, 15 Nov 2018 00:03:54 +0000 Received: from dnvrco-web17 ([107.14.70.248]) by cmsmtp with ESMTPA id N58MgSy8lsismN58MgKXfP; Thu, 15 Nov 2018 00:03:46 +0000 Message-ID: <20181115000346.HG2QE.48903.root@dnvrco-web17> Date: Thu, 15 Nov 2018 0:03:46 +0000 From: To: Adrian Klaver , pgsql-general Subject: Re: Java UnsatisfiedLinkError exception when connecting to Postgresql database In-Reply-To: <3b9441e2-ce3e-8984-3a4b-a05f7d6a45b4@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: from 40.132.190.3 by mail.twc.com; Thu, 15 Nov 2018 0:03:46 +0000 X-CMAE-Envelope: MS4wfARY29wRVL2Ba6vuv2dbuOmrgPc+SG9r73n76qF/8lQEUVWM26XpwINliXBtpK6UbG8lFcqlKEalHUb4TFPs1iBxxkYAIaNqaRkuoghDmgeYTmxPI7N1 JVgEfmDN1IvR2XBHnQjKTLkOuDSwvhuXGG7NGIs5kATdgArL/S5SclhFQKFt5YP2W3PjhU+GvYMcdSPssV2LWJnDPOPZoI7cjLI= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ---- Adrian Klaver wrote: > On 11/14/18 10:24 AM, dclark@cinci.rr.com wrote: > Please reply to list also. > Ccing list. > > > > ---- Adrian Klaver wrote: > >> 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 > > > > Thank you for your reply. > > > > OS on working system: Linux 3.10.0-693.11.6.el7.x86_64 x86_64 > > OS on problem system: Linux 3.10.0-693.21.1.el7.x86_64 x86_64 > > > > JDBC version on both systems: 9.4.1209 > > > > Postgres version on both systems: 9.6.5 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11), 64-bit > > > > Java version on both systems: > > > > openjdk version "1.8.0_171" > > OpenJDK Runtime Environment (build 1.8.0_171-b10) > > OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode) > > > > Hmm. > So what was the UnsatisifiedLinkError message, before the traceback above? java.lang.UnsatisfiedLinkError: sun.misc.VM.latestUserDefinedLoader0()Ljava/lang/ClassLoader; Thank you.