Git Product home page Git Product logo

Comments (3)

elena-lebeda avatar elena-lebeda commented on August 18, 2024

I have the same problem with in our installation of PL/Java. Segmentation fault received.

SELECT sqlj.install_jar(:triggersJar, 'triggers', false);
psql:triggers/install_triggers.sql:1: WARNING: java.lang.UnsatisfiedLinkError: org.postgresql.pljava.internal.Backend._getStatementCacheSize()I
psql:triggers/install_triggers.sql:1: ERROR: Unable to load class org/postgresql/pljava/internal/ExecutionPlan using CLASSPATH '-Djava.class.path=/usr/local/pgsql-9.1/lib/activemq-all.jar:/usr/local/pgsql-9.1/lib/postgresql.jar:/usr/local/pgsql-9.1/lib/pljava.jar:/usr/local/pgsql-9.1/lib/pljava.so:/usr/local/pgsql-9.1/lib/slf4j-log4j12-1.6.4.jar:/usr/local/pgsql-9.1/lib/log4j-1.2.15.jar:/usr/local/pgsql-9.1/lib/commons-logging-1.1.1.jar:/opt/jetty/resources'
SELECT sqlj.set_classpath('public', 'triggers');

Looks rather like incompatibility of the PL/Java and version 9.1

from pljava.

jcflack avatar jcflack commented on August 18, 2024

Hi @elena-lebeda

I am a bit perplexed by this bug report - are you still in a position where you could give more details, or did you get it working eventually?

From the information above, I don't think this can involve an incompatibility with a PostgreSQL version. The _getStatementCacheSize function is not part of PostgreSQL, it's part of PL/Java itself, so somehow PL/Java got built in a way that left it with problems finding its own function symbols. What's more strange is that the line that registers that function with JNI and the function definition itself don't appear to have changed in the source code at all in eleven years.

To figure this out, it might take more details on the exact environment where you built PL/Java, maybe a log from the build ... if you are still able to provide that.

Thanks!

from pljava.

jcflack avatar jcflack commented on August 18, 2024

Nothing heard from the original reporter in a couple of months, the report is old, and 1.5.0-SNAPSHOT is testing well on several platforms and PG versions up to 9.5. Closing.

from pljava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.