Questions tagged [pljava]
PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, and Functions to the PostgreSQL™ backend.
37
questions
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 ...
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 ...
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....
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 ...
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:...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
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\...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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/...
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.
...
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 /...
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 ...
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).
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/...
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 ...
-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....
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/...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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!
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 ...