Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1fHi-0006Oh-26 for pgsql-pkg-debian@arkaria.postgresql.org; Sun, 16 Sep 2018 22:12:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g1fHg-0005KA-0g for pgsql-pkg-debian@arkaria.postgresql.org; Sun, 16 Sep 2018 22:12:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1fHf-0005K2-Oj for pgsql-pkg-debian@lists.postgresql.org; Sun, 16 Sep 2018 22:12:51 +0000 Received: from bay.acenet.us ([173.230.252.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1fHY-0000eS-Ij for pgsql-pkg-debian@postgresql.org; Sun, 16 Sep 2018 22:12:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc: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=ZdPKl2AAOynR7MYliuvZ6pX0Ps5Aal89Nxy6NCNozaI=; b=YaiHb64EW85pz+zooPYSh/wy9g Pyn1WLs79KJawIvkoqED0SXQ09gNH14HxsD8K2uH4woAZ6M8SS+pSN3bMy4dijGHn2lDJLa+aFBCz IlHZJt+FwbBDIp/i5eU3Rh92WJyxTStj7YrPhfJvWZKDNxShsRBmkVUkpBd2DWgYpwD8FHRVL2NOT P9/A6ljNUIr44sL37FksuuKAnn1mak7yULqJ7tuDWTGl2DeoqAcICjkhZ8vytHceLbTMetJD5y5S8 WK2Xdy6F85GiEJw76jZeBynG525hABMZuCLagOgIpKdU1/ia6qGqMkb3ZLhJRzV3zwwKiya1I0Ham IdS7yhcQ==; Received: from [50.127.85.184] (port=54068) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1g1fHW-008UBo-5G; Sun, 16 Sep 2018 18:12:43 -0400 Subject: Re: PL/Java 1.5.1_BETA2 To: Christoph Berg , pgsql-pkg-debian@postgresql.org References: <5B96B226.2080803@anastigmatix.net> <20180915203221.GA19015@msg.df7cb.de> <5B9D73A2.2090402@anastigmatix.net> <20180916201808.GA30681@msg.df7cb.de> <20180916202733.GB30681@msg.df7cb.de> From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5B9ED559.5080208@anastigmatix.net> Date: Sun, 16 Sep 2018 18:12:41 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <20180916202733.GB30681@msg.df7cb.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-96.3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap+anastigmatix.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 09/16/18 16:27, Christoph Berg wrote: >> 20:07:07 CONTEXT: SQL statement "SELECT javatest.assertHasValues( CAST('(1,2)' AS javatest.complextuple), 1, 2)" Yup, ComplexTuple again.... > 20:06:38 CONTEXT: SQL statement "SELECT javatest.assertHasValues(CAST('(1,2)' AS point), 1, 2)" Point this time. Sigh. Same issue. Instead of the silly boot functions, I should probably add to PL/Java a way to request a CommandCounterIncrement, and have install_jar always use it, after loading the jar, before running the DDR commands. > Also, does it have to be that verbose all the time, even if things > worked? I don't have very good control yet. There's a page on the wiki for how I *want* the logging to work: https://github.com/tada/pljava/wiki/Thoughts-on-logging ... and I also want, eventually, the testing to happen in a more standard way, such as TAP (tap4j and pgtap). But those goals still need a substantial development effort. For now, I am stuck with one example function that writes verbose log messages, and using INFO for the succeeding ones and WARNING for the failing ones. And even different PostgreSQL versions have different amounts of verbose logging that they do for CREATE TYPE commands, etc. > 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)); 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.... -Chap