pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: Chapman Flack <chap@anastigmatix.net>
Cc: pgsql-pkg-debian@postgresql.org
Subject: Re: PL/Java 1.5.1_BETA2
Date: Mon, 17 Sep 2018 16:47:16 +0200
Message-ID: <20180917144716.GF27331@msg.df7cb.de> (raw)
In-Reply-To: <5B9ED559.5080208@anastigmatix.net>
References: <5B96B226.2080803@anastigmatix.net>
	<20180915203221.GA19015@msg.df7cb.de>
	<5B9D73A2.2090402@anastigmatix.net>
	<20180916201808.GA30681@msg.df7cb.de>
	<20180916202733.GB30681@msg.df7cb.de>
	<5B9ED559.5080208@anastigmatix.net>

Re: Chapman Flack 2018-09-17 <5B9ED559.5080208@anastigmatix.net>
> > 20:22:25 Exception in thread "main" java.lang.ClassCastException: sun.org.mozilla.javascript.ConsString cannot be cast to java.lang.String
> 
> Could you try changing pljava-packaging/build.xml at line 353 from
> 
> computedPath = replacement + computedPath.slice(plen);
> 
> to
> 
> computedPath = new java.lang.String(replacement + computedPath.slice(plen));

That shifted the problem a bit:

+ java -Dpgsql.pgconfig=/usr/lib/postgresql/9.4/bin/pg_config -Dpgconfig.pkglibdir=debian/postgresql-9.4-pljava/usr/lib/postgresql/9.4/lib -Dpgconfig.sharedir=debian/postgresql-9.4-pljava/usr/share/postgresql/9.4 -jar build-9.4/pljava-pg9.4-amd64-Linux-gpp.jar
Exception in thread "main" java.lang.ClassCastException: sun.org.mozilla.javascript.NativeJavaObject cannot be cast to java.lang.String
	at org.gjt.cuspy.JarX.extract(JarX.java:670)
	at org.gjt.cuspy.JarX.extract(JarX.java:445)
	at org.gjt.cuspy.JarX.main(JarX.java:419)

> I keep being surprised by differences in the JavaScript interpreter
> supplied in different Java runtimes; the unchanged code has worked
> without problems on so many. But I *think* this should work on your jdk7
> and not break others....

We could just declare openjdk-8 to be required on the packaging side,
that excludes jessie and trusty which will be EOL soonish anyway.

Christoph




view thread (17+ messages)  latest in thread

Message-ID: <20180917144716.GF27331@msg.df7cb.de>
Permalink:  ../20180917144716.GF27331@msg.df7cb.de/
Also on:    postgresql.org/message-id/20180917144716.GF27331@msg.df7cb.de

 · 

reply

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-pkg-debian@postgresql.org
  Cc: myon@debian.org, chap@anastigmatix.net
  Subject: Re: PL/Java 1.5.1_BETA2
  In-Reply-To: <20180917144716.GF27331@msg.df7cb.de>
  References: <5B96B226.2080803@anastigmatix.net> <20180915203221.GA19015@msg.df7cb.de> <5B9D73A2.2090402@anastigmatix.net> <20180916201808.GA30681@msg.df7cb.de> <20180916202733.GB30681@msg.df7cb.de> <5B9ED559.5080208@anastigmatix.net> <20180917144716.GF27331@msg.df7cb.de>

* 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