pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format
3+ messages / 3 participants
[nested] [flat]

* BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format
@ 2018-01-17 14:26 PG Bug reporting form <noreply@postgresql.org>
  2018-01-18 19:33 `  Re: BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format Dave Cramer <davecramer@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2018-01-17 14:26 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: jt@leutek.de

The following bug has been logged on the website:

Bug reference:      15013
Logged by:          Junior Tcheho
Email address:      jt@leutek.de
PostgreSQL version: 10.1
Operating system:   Windows 2008 Server R2
Description:        

Hello,

I get the following error after execution a query which was created throw
JNI:
org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format.

I have created the String for the query using the call:
String(byte[] bytes, String charsetName).


When working with env->NewStringUTF(pcCharArray), there is no error, but not
all characters are properly handled. E.g: €(Euro-Char)

Regard.
 Junior Tcheho



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

*  Re: BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format
  2018-01-17 14:26 BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format PG Bug reporting form <noreply@postgresql.org>
@ 2018-01-18 19:33 ` Dave Cramer <davecramer@gmail.com>
  2018-01-19 05:11   ` Re: BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
  0 siblings, 1 reply; 3+ messages in thread

From: Dave Cramer @ 2018-01-18 19:33 UTC (permalink / raw)
  To: jt@leutek.de; pgsql-bugs@lists.postgresql.org

Hi,

I'm at a loss here. What interface is this ? pl/java ?

Dave Cramer

On 17 January 2018 at 09:26, PG Bug reporting form <noreply@postgresql.org>
wrote:

> The following bug has been logged on the website:
>
> Bug reference:      15013
> Logged by:          Junior Tcheho
> Email address:      jt@leutek.de
> PostgreSQL version: 10.1
> Operating system:   Windows 2008 Server R2
> Description:
>
> Hello,
>
> I get the following error after execution a query which was created throw
> JNI:
> org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format.
>
> I have created the String for the query using the call:
> String(byte[] bytes, String charsetName).
>
>
> When working with env->NewStringUTF(pcCharArray), there is no error, but
> not
> all characters are properly handled. E.g: €(Euro-Char)
>
> Regard.
>  Junior Tcheho
>
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format
  2018-01-17 14:26 BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format PG Bug reporting form <noreply@postgresql.org>
  2018-01-18 19:33 `  Re: BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format Dave Cramer <davecramer@gmail.com>
@ 2018-01-19 05:11   ` Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
  0 siblings, 0 replies; 3+ messages in thread

From: Kyotaro HORIGUCHI @ 2018-01-19 05:11 UTC (permalink / raw)
  To: davecramer@gmail.com; +Cc: jt@leutek.de; pgsql-bugs@lists.postgresql.org

Hello.

At Thu, 18 Jan 2018 14:33:35 -0500, Dave Cramer <davecramer@gmail.com> wrote in <CADK3HHK+JXypTQ1dVCXNTS2GP69MmXzV40iJicaH=b=1CpyuOg@mail.gmail.com>
> Hi,
> 
> I'm at a loss here. What interface is this ? pl/java ?
> 
> Dave Cramer

It seems a CPU-native client program that uses JDBC driver via
JNI and some kind of protocol error happened. (I recomment to use
libpq directly..)

At first, please provide the version of the JDBC driver and a
full stack exception, not only the last one, then ask the
following mailling list.

https://jdbc.postgresql.org/community/mailinglist.html#general

If you can parepre a small self-contained stuff to replay your
problem, it would be a great help for others. I suppose it is
feasible as a small Java program not using JNI.

> 
> On 17 January 2018 at 09:26, PG Bug reporting form <noreply@postgresql.org>
> wrote:
> 
> > The following bug has been logged on the website:
> >
> > Bug reference:      15013
> > Logged by:          Junior Tcheho
> > Email address:      jt@leutek.de
> > PostgreSQL version: 10.1
> > Operating system:   Windows 2008 Server R2
> > Description:
> >
> > Hello,
> >
> > I get the following error after execution a query which was created throw
> > JNI:
> > org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format.
> >
> > I have created the String for the query using the call:
> > String(byte[] bytes, String charsetName).
> >
> >
> > When working with env->NewStringUTF(pcCharArray), there is no error, but
> > not
> > all characters are properly handled. E.g: €(Euro-Char)

It takes (modified) UTF8 string. As far as I can see '0x80' (�
in CP1252) doesn't work for the function..

If you NewByteArray'ed the pcCharArray and using "CP1252" in the
former case, it would work on a German environment and you will
get 'ungültige Zeichenkette in Message' instead if something's
wrong in sending a query. It seems that the error happend at bind
time. Anyway full stack exception gives a crue to that.


> > Regard.
> >  Junior Tcheho

regards,

-- 
Kyotaro Horiguchi
NTT Open Source Software Center


^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-01-19 05:11 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-17 14:26 BUG #15013: JNI-JDBC: org.postgresql.util.PSQLException: FEHLER: ungültiges Message-Format PG Bug reporting form <noreply@postgresql.org>
2018-01-18 19:33 ` Dave Cramer <davecramer@gmail.com>
2018-01-19 05:11   ` Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>

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