libgcj7-0 breaks postgresql-8.1-pljava

Bug #68572 reported by Tiziano Tissino
4
Affects Status Importance Assigned to Milestone
postgresql-pljava (Debian)
Fix Released
Unknown
postgresql-pljava (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

on edgy, I installed postgresql-8.1-pljava and than tried to install pljava on db template1, getting this error:

postgres@eumeo:/usr/share/postgresql-8.1-pljava$ psql template1 < install.sql
[...snip...]
ERROR: could not load library "/usr/lib/postgresql/8.1/lib/pljava.so": /usr/lib/postgresql/8.1/lib/pljava.so: undefined symbol: JNI_CreateJavaVM
ERROR: function sqlj.java_call_handler() does not exist
ERROR: could not load library "/usr/lib/postgresql/8.1/lib/pljava.so": /usr/lib/postgresql/8.1/lib/pljava.so: undefined symbol: JNI_CreateJavaVM
ERROR: function sqlj.java_call_handler() does not exist
[...snip...]

Searching the Internet, I found these threads:
http://comments.gmane.org/gmane.comp.db.postgresql.pljava/973
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=390661

After I updated my system from libgcj7 to libgcj7-0,
postgresql-8.1-pljava-gcj no longer works, because the libgcj.so.70 does
no longer define JNI_CreateJavaVM, as libgcj.so.7 did.

Changed in postgresql-pljava:
status: Unknown → Unconfirmed
Revision history for this message
Andrea Garbarini (garba) wrote :

same problem here, btw this issue is affecting debian etch as well and it's preventing me from running adempiere

Revision history for this message
Josef Hopfgartner (josef-netzagentur) wrote :

I had the same problem and did the following:
- apt-get source postgresql-8.3-pljava-gcj
- debuild...

read readme.html

I had to manually copy pljava.jar into the classpath-folder, since the binary-package didn't contain this file.

Added the following entries in postgresql.conf (as described):
custom_variable_classes = 'pljava' # list of custom variable class names
pljava.classpath='/usr/share/postgresql-8.3-pljava/pljava.jar'

so, now it work's

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 alpha?

Changed in postgresql-pljava:
status: New → Incomplete
Revision history for this message
Andreas Moog (ampelbein) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in postgresql-pljava (Ubuntu):
status: Incomplete → Invalid
Changed in postgresql-pljava (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.