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 1idvS0-0003pz-Kp for pgsql-jdbc@arkaria.postgresql.org; Sun, 08 Dec 2019 12:14:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1idvRx-0002pq-6J for pgsql-jdbc@arkaria.postgresql.org; Sun, 08 Dec 2019 12:14:09 +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 1idvRw-0002pj-PT for pgsql-jdbc@lists.postgresql.org; Sun, 08 Dec 2019 12:14:08 +0000 Received: from out2-server.securespamfilter.com ([89.187.86.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idvRp-0007fa-Fw for pgsql-jdbc@lists.postgresql.org; Sun, 08 Dec 2019 12:14:08 +0000 Received: from phantom.hostingseries.net ([89.187.86.9]) by server.securespamfilter.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1idvRl-0005tU-2a for pgsql-jdbc@lists.postgresql.org; Sun, 08 Dec 2019 12:13:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=scapps.co.uk; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8dPCeUX7HolZ0p36/sm40J5flEQq7wSqkfXhAyy5wc0=; b=WkEnplocmpVTwvAAMJHPbPuKF qdwiBDLCbXNkw0Ch0QQOQ86JHBUMSVUDgP4ZxFV81vboYJ3BwQszncJDd89nnRsRRMLRST5+kSXOL 8yV3VvqE7GoRvEUef20+7UFvQ5qglep7nFxzrpTWs7QTotFrRFZuN98LJkR2PDK+6cJJewfgyxDTI /+5qa7ELImBwrjXCr5tB0+Lex/O/FtHh5Ts7LB0ZjLz3qo1Snz+N56JO2+rTgN8WUj1HGatAPngBr H7TR97CSDyhXQyoNmqBuPYOjVoorb77fQDGTsd8yjxH6VOK8cEBAsXgOjoF5yOOroc2GFssnQHYa8 gbTYvY7Fg==; Received: from host86-136-239-16.range86-136.btcentralplus.com ([86.136.239.16]:52898 helo=[192.168.1.123]) by phantom.hostingseries.net with esmtpa (Exim 4.92) (envelope-from ) id 1idvRk-000XA8-40 for pgsql-jdbc@lists.postgresql.org; Sun, 08 Dec 2019 12:13:56 +0000 Subject: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC To: pgsql-jdbc@lists.postgresql.org References: <157580485223.6591.10998780803617504400@malur.postgresql.org> From: Dan Message-ID: Date: Sun, 8 Dec 2019 12:13:55 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <157580485223.6591.10998780803617504400@malur.postgresql.org> Content-Type: multipart/alternative; boundary="------------7F5D1A27B9B08A6D97F26225" Content-Language: en-US X-AuthUser: dan@scapps.co.uk X-Originating-IP: 89.187.86.9 X-SpamExperts-Domain: pickaweb.co.uk X-SpamExperts-Username: phantom Authentication-Results: securespamfilter.com; auth=pass (login) smtp.auth=phantom@pickaweb.co.uk X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0fKZ8wcD78QFAaYhvfMzLIKpSDasLI4SayDByyq9LIhVUZbR67CQ7/vm /hHDJU4RXkTNWdUk1Ol2OGx3IfrIJKywOmJyM1qr8uRnWBrbSAGDGgvQgrFHkMsK+MxZafA8MjFp bcgbE3qPOr09841lwf7EV6mG7REFdc/y+N+WUcRULTB1EdAYx6Ehei4DtX8s+/q2Gb7u1BCYlN7N u1YChztOXfRwLlOgI8leqmQSALINd5jZqX81Xy6+aknzdjlvdRKA1PaQ+dvFQi3ZPO24kEAADz4v DbDdvmRYP5oxomdE0FSNaCiusx/00cmUpKEwSq11qc5TTtnihBuF8qtjLQ/YOACnRq3hbWW5upKA BHmcPEg+PVRTiaxPY52n0Pp/8yWZ4SOzQFmgsMTstbIfeOKPPhkxeOWI8nHYm5pmBDqF795RJuoF f0U+tDc4YKQbd6MmVY6QhZHtr2lppRWL1y4bDOdTMnvHqOmP4VxBW3PTCJuKmef1JCbmfgcv6zoJ wNHToS9GINVVq1m0bpuruMZHsEWcU0wbSTy9e22GzfiemUo5plW9Y81go6R4YdVo2al1r07cmbef hNqx0U8Yjj0Cn996kLU2Kwz4sRK+A9mnrSOIPpeqwlm2NDGXIJ2x7DVdgw/NW00ST122KyhGqrUq IchqIsr/BeYfJr8B2EAelK8d51+URNlYc8UWHLEetL9eSsgU9d1TTLFJRWJa9AENX9JUybkXc7N6 4Ln1Bi/g+p7RcSyEW4r8ak1PtqvzGwRk3TJw+95xgL+qe5oyLipSOhM9IDpSeshZ8tB9PLHX/fu3 x7erbsjFB4F58vtkzXd3m7S1Vho6gZPtYGjiKlxBVOXg5rQpAeTeMxTVHqBuJDz1WK79FX5eWhaX Cxd+7cwqz5GcrHBF1uy1yDsmSHhbF5BcqrjMpfEiJ01r+8ndKVZhyd6KNWESP0G0BsxHB/osEiDo HNVfQ4IxKKhQCaiVfYorWugPDreWe4LL6HPgad4U7hQTEbIk2zG7JSdEmcH5B7NWQqcDBDbYkE7m 28pSC+R7aMa2r7zf2uRSAePAc24qANBppXF2JSAe/99rGA== X-Report-Abuse-To: spam@server.securespamfilter.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------7F5D1A27B9B08A6D97F26225 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hello, I hope it is appropriate to send this question to this address.  If not, kindly redirect me. I am trying to configure Hibernate to use a Unix socket connection to my local PostgreSQL installation.  I have referred to this doc: https://jdbc.postgresql.org/documentation/head/connect.html#connection-parameters and have been trying entries in hibernate.cfg.xml along these lines: jdbc:postgresql:kokodoko?socketFactory=org.newsclub.net.unix.socketfactory.PostgresqlAFUNIXSocketFactory&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432 The XML validator in Eclipse is flagging this error:     The reference to entity "socketFactoryArg" must end with the ';' delimiter. (Of course I have tried many variations such as inserting semicolons in various places, quoting the argument, using square brackets and so on.) If I ignore the error and try to use config file I get this error: {  "error": {   "errors": [    {     "domain": "global",     "reason": "backendError",     "message": "org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 0 and column 0 in RESOURCE hibernate.cfg.xml. Message: null"    }   ],   "code": 503,   "message": "org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 0 and column 0 in RESOURCE hibernate.cfg.xml. Message: null"  } } which I take to mean that the config file is unusable. Is what I am trying to do (Hibernate, JDBC, PostgreSQL, hibernate.cfg.xml, Unix socket) possible?  If so, kindly give me some guidance.  If not, can you suggest a different approach that uses a Unix socket? I am posting a similar request on the Hibernate forum. Thanks very much. -Dan --------------7F5D1A27B9B08A6D97F26225 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hello,

I hope it is appropriate to send this question to this address.  If not, kindly redirect me.

I am trying to configure Hibernate to use a Unix socket connection to my local PostgreSQL installation.  I have referred to this doc:
https://jdbc.postgresql.org/documentation/head/connect.html#connection-parameters

and have been trying entries in hibernate.cfg.xml along these lines:

<property name="hibernate.connection.url">jdbc:postgresql:kokodoko?socketFactory=org.newsclub.net.unix.socketfactory.PostgresqlAFUNIXSocketFactory&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432</property>

The XML validator in Eclipse is flagging this error:

    The reference to entity "socketFactoryArg" must end with the ';' delimiter.


(Of course I have tried many variations such as inserting semicolons in various places, quoting the argument, using square brackets and so on.)

If I ignore the error and try to use config file I get this error:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "backendError",
    "message": "org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 0 and column 0 in RESOURCE hibernate.cfg.xml. Message: null"
   }
  ],
  "code": 503,
  "message": "org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 0 and column 0 in RESOURCE hibernate.cfg.xml. Message: null"
 }
}

which I take to mean that the config file is unusable.

Is what I am trying to do (Hibernate, JDBC, PostgreSQL, hibernate.cfg.xml, Unix socket) possible?  If so, kindly give me some guidance.  If not, can you suggest a different approach that uses a Unix socket?

I am posting a similar request on the Hibernate forum.

Thanks very much.

-Dan


--------------7F5D1A27B9B08A6D97F26225--