[Pljava-dev] Failed to create Java VM

From: bruno at centerx(dot)com(dot)br (Bruno Domenici Ferreira)
To:
Subject: [Pljava-dev] Failed to create Java VM
Date: 2005-03-15 14:27:16
Message-ID: opsnonrqc4n5ejfj@cornolio.innovationbusiness.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

On Mon, 14 Mar 2005 20:19:57 +0100, Thomas Hallgren <thhal at mailblocks.com>
wrote:

> I googled for this and found a couple of mail-threads. One that
> suggested that the problem was related to a mismatch between your jvm
> and your OS. Perhaps your glibc is too old?

glibc-2.3.2

> Another thread claimed that the <JRE_HOME>/i386/lib/client must be the
> first entry in your LD_LIBRARY_PATH.

My actual LD_LIBRARY_PATH:
root at newbie:~# echo $LD_LIBRARY_PATH
/usr/lib/jdk1.5.0_02/jre/lib/i386/client:/usr/lib/jdk1.5.0_02/jre/lib/i386:/usr/lib/jdk1.5.0_02/jre/lib/i386/native_threads

> What platform and what version are you running on? Are other Java apps
> running OK on this platform? Any chance of upgrading your jvm to a
> 1.4.2_07 or perhaps to a 1.5.0_01?

I've upgraded the jdk:

root at newbie:~# java -version
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)

Thomas, i've installed pljava by the source and the error now is:

ERROR: attempt to redefine parameter "pljava.vmoptions"

See my postgresql.conf

<cut>
# define "pljava" as a custom variable class. This is a comma separated
# list of names.
#
custom_variable_classes = 'pljava'

# define the class path that the JVM will use when loading the
# initial library. Only meaningful for non GJC installations
#
pljava.classpath = '/downloads/pljava-1.1.0b1/build/pljava.jar'
pljava.classpath = '/usr/local/pgsql8/lib/postgresql.jar'

# Set the size of the prepared statement MRU cache
#
pljava.statement_cache_size = '1'

# If true, lingering savepoints will be released on function exit. If
false,
# the will be rolled back
#
#pljava.release_lingering_savepoints = true

# Define startup options for the Java VM.
#
pljava.vmoptions = '-Xmx64M -Dbackchannel.port=48'

# Setting debug to true will cause the postgres process to go
# into a sleep(1) loop on its first call to java. This is
# only useful if you want to debug the PL/Java internal C code.
#
pljava.debug = true
</cut>

Thanxs!

--
Bruno D.
TI - CenterX

Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2005-03-15 15:55:42 [Pljava-dev] Re: Failed to create Java VM
Previous Message Thomas Hallgren 2005-03-14 19:19:57 [Pljava-dev] Failed to create Java VM