Questions tagged [pljava]

PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, and Functions to the PostgreSQL™ backend.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

The sample program packaging of pljava cannot find maven dependencies?

https://tada.github.io/pljava/use/hello.html I want to package a jar according to the sample program, but pljava-api cannot be found in maven. What is the reason or from which repository can I ...
咕噜流氓兔's user avatar
0 votes
1 answer
39 views

Trying to build PLJAVA 1.5.6 on java 8 + enterprisedb 15.2 fails

Modified the Changes for PLJAVA 1.5.6 since we cannot update the java version to 9 . but now linker is failing while i do the mvn clean install . doing the mvn command from microsoft visual studio ...
Maverick's user avatar
  • 131
0 votes
2 answers
154 views

Install PLJava in Postgresql 14.7 running on Ubuntu 22.04 - maven clean install fails

I have installed the following in Ubuntu 22.04: g++ gcc openjdk maven postgresql 14.7 openssl I checked the above are installed correctly: oot@ubuntu:~# g++ --version g++ (Ubuntu 11.3.0-1ubuntu1~22....
Debraj Bhowmik's user avatar
1 vote
1 answer
257 views

What is the alternative of PL/Java for PostgreSQL 11 and 12?

Understand from: https://www.enterprisedb.com/edb-docs/d/edb-postgres-advanced-server/user-guides/user-guide/11/EDB_Postgres_Advanced_Server_Guide.1.80.html that PL/Java is deprecated in Advanced ...
Jacky's user avatar
  • 11
1 vote
0 answers
79 views

mvn clean install - pljava deployment error - require assistance

I am getting the below error while trying to do Mvn Clean Install .. what should be done here- this is preventing the installation of the Pl java - pls assist [ERROR] Plugin org.apache.maven.plugins:...
Radhakrishnan Rajendran's user avatar
0 votes
2 answers
430 views

How to deploy compiled PL/Java code straight to Postgres database from application?

I have set up a Postgres database server with PL/Java binary installed on it. I have observed the process of getting an example PL/Java code to install and run on the database as it starts with ...
Silence's user avatar
  • 73
1 vote
1 answer
552 views

mvn clean install returning build failed when installing PL/Java

I am trying to install PL/Java on Ubuntu 16.0.4 and getting PL/Java backend native code ........................ FAILURE error when running mvn clean install command. Complete error logs are given ...
Tajinder's user avatar
  • 2,278
1 vote
1 answer
121 views

How to fix "SPI_ERROR_UNCONNECTED" error while installing PL/Java on Postgresql-9.5

I'm trying to install PL/Java on PostgreSQL-9.5. My current server is Ubuntu 16.04. My reference link to install PL/Java is the official website: https://tada.github.io/pljava/install/install.html ...
surajKrish211's user avatar
0 votes
1 answer
153 views

Missing type mapping byte[] to bytea - plJava

i want to execute a plJava function like: @Function public static byte[] enrypt_rsa(String message, byte[] public_key) {...} But if i try to create a .jar file with maven (mvn clean package) i get ...
henuahinge's user avatar
0 votes
0 answers
618 views

CREATE EXTENSION pljava failed on PostgreSql 9.6

I try to install pljava for postgesql 9.6 in Ubuntu 16.04, but it fails with error. A gradlew script makes an installation, but it fails with the following error" Failed to execute: CREATE ...
needpower's user avatar
1 vote
1 answer
244 views

Error while creating extension in postgresql

I am using https://tada.github.io/pljava/install/install.html link to create pljava extension in postgresql. Build is ok and there is no unsuccessful operation. However when i tried to create ...
Alper's user avatar
  • 771
0 votes
1 answer
141 views

pljava installation 1.5.1-snapshot on postgresql 10beta2 - undefined symbol: DatumGetFloat8

When installing pljava-1.5.1-snapshot on postgresql 10b2 I get undefined symbol: DatumGetFloat8 when executing create extension pljava; Works for me on postgres96. Is there an issue installing ...
Peter Balon's user avatar
0 votes
2 answers
497 views

Issues while installing "sqlj" schema using pljava in postgres 9.3 for windows 7

I am trying to install Postgres 9.3.16 on Windows7 (64 bit operating system). While Installing sqlj schema using pljava and the following command: java -cp "C:\Softwares\PostgreSQL\9.3\share\pljava\...
Neelam's user avatar
  • 360
0 votes
1 answer
795 views

install pljava on Windows 7 with Postgres 9.6

I am struggling to install pljava on Windows 7 Sp1 with Postgres 9.6. When I run the following command: CREATE FUNCTION sqlj.java_call_handler() RETURNS language_handler AS 'pljava' LANGUAGE C; I ...
Siva's user avatar
  • 1
0 votes
1 answer
893 views

Postgres PL/JAVA: java.lang.ClassNotFoundException error after loading JAR file in database

I am getting the java.lang.ClassNotFoundException: error inside Postgres when running a function that calls a JAR file I have loaded. I have installed and configured PL/JAVA (including the delivered ...
MasterSchema's user avatar
0 votes
0 answers
246 views

Postgres Listener - Pull last inserted/deleted row

I'm trying to create a database listener (postgres) in Java. Every time a user inserts or deletes an entry of a table I want to receive the value that was inserted or deleted, respectively. For that ...
Pedro Chaves's user avatar
0 votes
2 answers
218 views

postgresql-9.3-pljava-gcj for 64 bit architecture

I need to install pljava for postgresql 9.3 on Ubuntu 14.04. I installed the 64bit version of postgre using the apt-get packet manager of Ubuntu, and I tried installing pljava in the same way sudo ...
McKracken's user avatar
  • 389
0 votes
1 answer
247 views

Error: java.lang.SecurityException: execute on /home/<user>/test.sh JAR file trying to read shell file (Pljava)

I am trying to call a pl/Sql function which calls a Java class and it reads a shell file and execute the same. I placed this shell file in my home directory. I created a JAR using that class and ...
Nikhil Krishnatrey's user avatar
2 votes
1 answer
2k views

Install PL/Java on Unix with Postgres Ver. 9.2+

I have been struggling to install PL/Java on Postgres (9.2,9.3, or 9.4) on OpenSuse, Mageia, or Manjaro...I don't like to complain -but the PL/Java documentation is horrible. And I've googled ...
user3107700's user avatar
0 votes
1 answer
535 views

Can I make a call to a java class/method from a Trigger in a PostgreSQL (in Heroku)?

I need to make my PostgreSQL database execute a java class called by a trigger. I read that you can install java on your PostgreSQL db, but to do this I might need superuser privileges, and don't ...
SGj's user avatar
  • 21
1 vote
1 answer
318 views

Building PL/Java for PostgreSQL 9.4.1 on OpenSuse 13.2

I followed the build instructions on pljava github page, fixed all the required environment variables and attempted to build it. I got this error. $ make make[1]: Entering directory /host/clara/...
Charity's user avatar
  • 11
0 votes
1 answer
798 views

How to avoid nullpointer exception on compiling pl/java?

I'm trying to build pljava sources on Linux Mint 17 Qiana (32bit) with maven 3.2.5, JDK 1.7.0_72-b14, gpp is installed (2.24) and all modules are compiled fine except one: pl/java server side library. ...
Filosssof's user avatar
  • 1,288
1 vote
0 answers
407 views

erroer while installing pl/java postgresql

I am trying to install pljava in my Linux system. the below is my command and error root@pega-5-instance:/etc/postgresql/9.1/share/pljava# su postgres -c "/usr/bin/psql -d pegadb -f /...
Chandan Reddy's user avatar
0 votes
1 answer
531 views

Create so instead of dylib using nar maven plugin

I now have pljava building on the Mac. pljava uses maven and the maven nar plugin for building. This maven nar build is currently creating a dylib instead of a .so. It looks like that postgres wants ...
Gareth's user avatar
  • 936
1 vote
2 answers
1k views

Postgres pl/java caveats [closed]

I would very much prefer writing DB side code in Java but would like to know if doing so has any disadvantages compared to pl/pgsql (especially performance & error handling related).
Dojo's user avatar
  • 5,432
0 votes
1 answer
221 views

Using PL/Java with JPA or other persistence library

I'm wondering if it's possible to use JPA or other persistence library with PL/Java together? I mean using JPA persistence for manipulationg database over the special JDBC connection provided by PL/...
NagyI's user avatar
  • 5,917
1 vote
1 answer
401 views

PL/Java - user function execution error

I installed pl/java on Ubuntu with: sudo apt-get install postgresql-9.1-pljava-gcj but have hit a snag which I think is a gcj/jdk 1.7 incompatibility between the jar and pl/java. These are the ...
user1351848's user avatar
-4 votes
1 answer
571 views

Connection to PostgreSQL using PL/Java in a trigger fails

I defined a trigger in PostgreSQL 9.1 that should fire whenever a record is updated using: CREATE OR REPLACE FUNCTION check() RETURNS TRIGGER AS $$ BEGIN SELECT doubletEngine.checkForDoublet(NEW....
Nico Haase's user avatar
  • 11.6k
0 votes
1 answer
544 views

Porting PL/pgSQL stored procedures?

We have some PL/pgSQL stored procedures in our DB (PostgreSQL 9.x). These are strictly sequential, and under some circumstances, can be very slow. We are thinking on porting these to PL/Java, PL/...
gyorgyabraham's user avatar
0 votes
2 answers
629 views

postgresql triggers - defining a global resource (java)

I have a PostgreSQL server and I need to run some code whenever an update happens on some table. The PostgreSQL triggers (using PL/java) allows me to call a static java method. The method I need to ...
Aman's user avatar
  • 639
0 votes
1 answer
521 views

java.lang.SecurityException: JAR file trying to read txt file (Pljava)

I am trying to package a JAR where some classes may need to read a txt file. I include the txt file in the root directory of the JAR package. This JAR package gets loaded on Pl/Java. However, when ...
Larry's user avatar
  • 11.5k
0 votes
1 answer
1k views

Problems setting JARs to classpath in Pl/Java

I seem to be having a problem setting multiple JAR files to the classpath for Pl/Java. For each JAR file, I have installed the JARs, using install_jar. But what I now need to do is add each JAR to ...
Larry's user avatar
  • 11.5k
0 votes
1 answer
569 views

PostgreSQL view to read another table, transform data and return results

Could some please suggest the best way to implement this: Essentially what I want to have is a virtual-table in PostgreSQL that when queried, it looks up the data from some other table (call this the ...
Larry's user avatar
  • 11.5k
0 votes
1 answer
999 views

Installing PL/Java on MAC

I’m really having trouble installing Pl/Java on Mac, any help would be appreciated. I’ll describe the exact steps I’ve done in accordance with the README here, but I still get some errors that I ...
Larry's user avatar
  • 11.5k
2 votes
2 answers
6k views

Problem in installing pljava on windows

Error on installing pl/java on windows 7 x64 and PostgreSQL 9.0. CREATE FUNCTION sqlj.java_call_handler() RETURNS language_handler AS 'pljava' LANGUAGE C; Error: ERROR: could not load ...
Reza's user avatar
  • 106
1 vote
2 answers
789 views

Is it possible to debug PL/Java (ideally from Eclipse)?

Although I found PL/Java a powerful add-on for PostgreSQL, I couldn't find a way of remotely debug the clases loaded on the PSQL DBMS. Is this possible to achieve? Thanks in advance!
Federico Cristina's user avatar
0 votes
1 answer
647 views

Postgres Error (Getting PLJava set up)

I have been struggling with a problem trying to get PLJava to work on PostgreSQL on RHEL. Here is what I have (based off of this: PL/Java README) .cshrc setenv JAVA_HOME /opt/jdk1.6.0_17/ setenv ...
mainstringargs's user avatar