agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
[Pljava-dev] Failed to create Java VM
16+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] Failed to create Java VM
@ 2004-11-08 07:14  
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2004-11-08 07:14 UTC (permalink / raw)

I have installed pl/java on postgresl 7.4.x. When executing the function ,I
am getting an error
 
 
LOG:  There was an error trying to initialize the HPI library.
LOG:  Please check your installation, HotSpot does not work correctly
LOG:  when installed in the JDK 1.2 Linux Production Release, or
LOG:  with any JDK 1.1.x release.
ERROR:  Failed to create Java VM
ERROR:  Failed to create Java VM
 
 
Help is appreciated.
Thanks
Rao
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20041108/27bbc044/attachment.html;



^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2004-11-08 08:37  
  parent: 
  0 siblings, 0 replies; 16+ messages in thread

From:  @ 2004-11-08 08:37 UTC (permalink / raw)

I need some more info in order to help. Which version of PL/Java are you
using and on what OS (platform and version)? What JDK?

 

Regards,

Thomas Hallgren

 

  _____  

From: pljava-dev-bounces at gborg.postgresql.org
[mailto:pljava-dev-bounces at gborg.postgresql.org] On Behalf Of Nageshwar Rao
Sent: Monday, November 08, 2004 8:14 AM
To: 'pljava-dev at gborg.postgresql.org'
Subject: [Pljava-dev] Failed to create Java VM

 

I have installed pl/java on postgresl 7.4.x. When executing the function ,I
am getting an error
 
 
LOG:  There was an error trying to initialize the HPI library.
LOG:  Please check your installation, HotSpot does not work correctly
LOG:  when installed in the JDK 1.2 Linux Production Release, or
LOG:  with any JDK 1.1.x release.
ERROR:  Failed to create Java VM
ERROR:  Failed to create Java VM
 
 
Help is appreciated.
Thanks
Rao

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20041108/8ee5e778/attachment.html;



^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2004-11-08 09:32  
  0 siblings, 0 replies; 16+ messages in thread

From:  @ 2004-11-08 09:32 UTC (permalink / raw)

My guess is that the LD_LIBRARY_PATH seen by the postmaster process is
incorrect. Perhaps you forgot to export it prior to starting the postmaster?
Or, perhaps it doesn?t appoint the needed directories? Normally it should
look something like this:

LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client

The last entry may end with server instead of client depending on your
needs.

Please note that this setting must be in effect for the postmaster process
and not for your client process.

Regards,
Thomas Hallgren

________________________________________
From: Nageshwar Rao [mailto:NageshwarR at PLANETASIA.COM] 
Sent: Monday, November 08, 2004 9:51 AM
To: 'Thomas Hallgren'
Subject: RE: [Pljava-dev] Failed to create Java VM

	PL/JAVA  - PL/JAVA 1.0.0.b5

	OS -    [postgres at GEML bin]$ uname -a
       Linux GEML 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
GNU/Linux
       
	JDK - 1.4.2

       Regards
       Rao
       
-----Original Message-----
From: Thomas Hallgren [mailto:thhal at mailblocks.com] 
Sent: Monday, November 08, 2004 2:08 PM
To: Nageshwar Rao; pljava-dev at gborg.postgresql.org
Subject: RE: [Pljava-dev] Failed to create Java VM

I need some more info in order to help. Which version of PL/Java are you
using and on what OS (platform and version)? What JDK?

Regards,
Thomas Hallgren

________________________________________
From: pljava-dev-bounces at gborg.postgresql.org
[mailto:pljava-dev-bounces at gborg.postgresql.org] On Behalf Of Nageshwar Rao
Sent: Monday, November 08, 2004 8:14 AM
To: 'pljava-dev at gborg.postgresql.org'
Subject: [Pljava-dev] Failed to create Java VM

I have installed pl/java on postgresl 7.4.x. When executing the function ,I
am getting an error
 
?
LOG:? There was an error trying to initialize the HPI library.
LOG:? Please check your installation, HotSpot does not work correctly
LOG:? when installed in the JDK 1.2 Linux Production Release, or
LOG:? with any JDK 1.1.x release.
ERROR:? Failed to create Java VM
ERROR:? Failed to create Java VM
 
?
Help is appreciated.
Thanks
Rao







^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2004-11-08 10:07  
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2004-11-08 10:07 UTC (permalink / raw)

Hi,
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client is
set. I have checked all the parameters but still it is giving me the same
error.

-----Original Message-----
From: Thomas Hallgren [mailto:thhal at mailblocks.com] 
Sent: Monday, November 08, 2004 3:03 PM
To: Nageshwar Rao
Cc: pljava-dev at gborg.postgresql.org
Subject: RE: [Pljava-dev] Failed to create Java VM

My guess is that the LD_LIBRARY_PATH seen by the postmaster process is
incorrect. Perhaps you forgot to export it prior to starting the postmaster?
Or, perhaps it doesn't appoint the needed directories? Normally it should
look something like this:

LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client

The last entry may end with server instead of client depending on your
needs.

Please note that this setting must be in effect for the postmaster process
and not for your client process.

Regards,
Thomas Hallgren

________________________________________
From: Nageshwar Rao [mailto:NageshwarR at PLANETASIA.COM] 
Sent: Monday, November 08, 2004 9:51 AM
To: 'Thomas Hallgren'
Subject: RE: [Pljava-dev] Failed to create Java VM

	PL/JAVA  - PL/JAVA 1.0.0.b5

	OS -    [postgres at GEML bin]$ uname -a
       Linux GEML 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
GNU/Linux
       
	JDK - 1.4.2

       Regards
       Rao
       
-----Original Message-----
From: Thomas Hallgren [mailto:thhal at mailblocks.com] 
Sent: Monday, November 08, 2004 2:08 PM
To: Nageshwar Rao; pljava-dev at gborg.postgresql.org
Subject: RE: [Pljava-dev] Failed to create Java VM

I need some more info in order to help. Which version of PL/Java are you
using and on what OS (platform and version)? What JDK?

Regards,
Thomas Hallgren

________________________________________
From: pljava-dev-bounces at gborg.postgresql.org
[mailto:pljava-dev-bounces at gborg.postgresql.org] On Behalf Of Nageshwar Rao
Sent: Monday, November 08, 2004 8:14 AM
To: 'pljava-dev at gborg.postgresql.org'
Subject: [Pljava-dev] Failed to create Java VM

I have installed pl/java on postgresl 7.4.x. When executing the function ,I
am getting an error
 
?
LOG:? There was an error trying to initialize the HPI library.
LOG:? Please check your installation, HotSpot does not work correctly
LOG:? when installed in the JDK 1.2 Linux Production Release, or
LOG:? with any JDK 1.1.x release.
ERROR:? Failed to create Java VM
ERROR:? Failed to create Java VM
 
?
Help is appreciated.
Thanks
Rao






^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2004-11-08 10:08  
  0 siblings, 0 replies; 16+ messages in thread

From:  @ 2004-11-08 10:08 UTC (permalink / raw)

The JDK version is 1.4.2 on linux and x86 machine.
 
-----Original Message-----
From: Thomas Hallgren [mailto:thhal at mailblocks.com] 
Sent: Monday, November 08, 2004 2:08 PM
To: Nageshwar Rao; pljava-dev at gborg.postgresql.org
Subject: RE: [Pljava-dev] Failed to create Java VM
 
I need some more info in order to help. Which version of PL/Java are you
using and on what OS (platform and version)? What JDK?
 
Regards,
Thomas Hallgren
 
  _____  

From: pljava-dev-bounces at gborg.postgresql.org
[mailto:pljava-dev-bounces at gborg.postgresql.org] On Behalf Of Nageshwar Rao
Sent: Monday, November 08, 2004 8:14 AM
To: 'pljava-dev at gborg.postgresql.org'
Subject: [Pljava-dev] Failed to create Java VM
 
I have installed pl/java on postgresl 7.4.x. When executing the function ,I
am getting an error
 
 
LOG:  There was an error trying to initialize the HPI library.
LOG:  Please check your installation, HotSpot does not work correctly
LOG:  when installed in the JDK 1.2 Linux Production Release, or
LOG:  with any JDK 1.1.x release.
ERROR:  Failed to create Java VM
ERROR:  Failed to create Java VM
 
 
Help is appreciated.
Thanks
Rao
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20041108/582400dc/attachment.html;



^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2004-11-08 14:40  
  parent: 
  0 siblings, 0 replies; 16+ messages in thread

From:  @ 2004-11-08 14:40 UTC (permalink / raw)

Hi,
I've done some investigating (Google'd for "HPI library"). The solutions
vary but one that repeats itself is to add
$JAVA_HOME/jre/lib/i386/native_threads to your LD_LIBRARY_PATH.

I'm puzzled by this since it hasn't come up before. Perhaps the JVM must use
native threads on your particular platform.

Anyway, please let me know if this helps.

Regards,
Thomas Hallgren

> -----Original Message-----
> From: Nageshwar Rao [mailto:NageshwarR at PLANETASIA.COM]
> Sent: Monday, November 08, 2004 11:07 AM
> To: 'Thomas Hallgren'
> Cc: pljava-dev at gborg.postgresql.org
> Subject: RE: [Pljava-dev] Failed to create Java VM
> 
> Hi,
> LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client is
> set. I have checked all the parameters but still it is giving me the same
> error.
> 
> -----Original Message-----
> From: Thomas Hallgren [mailto:thhal at mailblocks.com]
> Sent: Monday, November 08, 2004 3:03 PM
> To: Nageshwar Rao
> Cc: pljava-dev at gborg.postgresql.org
> Subject: RE: [Pljava-dev] Failed to create Java VM
> 
> My guess is that the LD_LIBRARY_PATH seen by the postmaster process is
> incorrect. Perhaps you forgot to export it prior to starting the
> postmaster?
> Or, perhaps it doesn't appoint the needed directories? Normally it should
> look something like this:
> 
> LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client
> 
> The last entry may end with server instead of client depending on your
> needs.
> 
> Please note that this setting must be in effect for the postmaster process
> and not for your client process.
> 
> Regards,
> Thomas Hallgren
> 
> ________________________________________
> From: Nageshwar Rao [mailto:NageshwarR at PLANETASIA.COM]
> Sent: Monday, November 08, 2004 9:51 AM
> To: 'Thomas Hallgren'
> Subject: RE: [Pljava-dev] Failed to create Java VM
> 
> 	PL/JAVA  - PL/JAVA 1.0.0.b5
> 
> 	OS -    [postgres at GEML bin]$ uname -a
>        Linux GEML 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
> GNU/Linux
> 
> 	JDK - 1.4.2
> 
>        Regards
>        Rao
> 
> -----Original Message-----
> From: Thomas Hallgren [mailto:thhal at mailblocks.com]
> Sent: Monday, November 08, 2004 2:08 PM
> To: Nageshwar Rao; pljava-dev at gborg.postgresql.org
> Subject: RE: [Pljava-dev] Failed to create Java VM
> 
> I need some more info in order to help. Which version of PL/Java are you
> using and on what OS (platform and version)? What JDK?
> 
> Regards,
> Thomas Hallgren
> 
> ________________________________________
> From: pljava-dev-bounces at gborg.postgresql.org
> [mailto:pljava-dev-bounces at gborg.postgresql.org] On Behalf Of Nageshwar
> Rao
> Sent: Monday, November 08, 2004 8:14 AM
> To: 'pljava-dev at gborg.postgresql.org'
> Subject: [Pljava-dev] Failed to create Java VM
> 
> I have installed pl/java on postgresl 7.4.x. When executing the function
> ,I
> am getting an error
> 
> 
> LOG:? There was an error trying to initialize the HPI library.
> LOG:? Please check your installation, HotSpot does not work correctly
> LOG:? when installed in the JDK 1.2 Linux Production Release, or
> LOG:? with any JDK 1.1.x release.
> ERROR:? Failed to create Java VM
> ERROR:? Failed to create Java VM
> 
> 
> Help is appreciated.
> Thanks
> Rao
> 







^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2005-03-14 17:49  
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2005-03-14 17:49 UTC (permalink / raw)


Hi List,


I've installed pl/java on a PostgreSQL 8.01 (Slackware 10), but i'm have a  
problem:

my logs:

LOG:  There was an error trying to initialize the HPI library.
LOG:  Please check your installation, HotSpot does not work correctly
LOG:  when installed in the JDK 1.2 Linux Production Release, or
LOG:  with any JDK 1.1.x release.
ERROR:  Failed to create Java VM

My test function:

CREATE FUNCTION sqlj.getsysprop(VARCHAR)
   RETURNS VARCHAR
   AS 'java.lang.System.getProperty'
   LANGUAGE java;

my usage function:

SELECT sqlj.getsysprop('user.homevc');
ERROR:  Failed to create Java VM

#java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

echo $LD_LIBRARY_PATH
/usr/lib/java/jre/lib/i386:/usr/lib/java/jre/lib/i386/client:/usr/lib/java/jre/lib/i386/native_threads:/usr/local/pgsql8/lib/


I've searched in history list, sun and google and no one solutions works
Whats wrong here!? Anyone could help-me!?

Thanxs!

-- 
Bruno D.
TI - CenterX

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




^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2005-03-14 18:11  
  parent: 
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2005-03-14 18:11 UTC (permalink / raw)

Bruno Domenici Ferreira wrote:

>
> Hi List,
>
>
> I've installed pl/java on a PostgreSQL 8.01 (Slackware 10), but i'm 
> have a  problem:
>
> my logs:
>
> LOG:  There was an error trying to initialize the HPI library.
> LOG:  Please check your installation, HotSpot does not work correctly
> LOG:  when installed in the JDK 1.2 Linux Production Release, or
> LOG:  with any JDK 1.1.x release.
> ERROR:  Failed to create Java VM
>
> My test function:
>
> CREATE FUNCTION sqlj.getsysprop(VARCHAR)
>   RETURNS VARCHAR
>   AS 'java.lang.System.getProperty'
>   LANGUAGE java;
>
> my usage function:
>
> SELECT sqlj.getsysprop('user.homevc');
> ERROR:  Failed to create Java VM
>
> #java -version
> java version "1.4.2_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
>
> echo $LD_LIBRARY_PATH
> /usr/lib/java/jre/lib/i386:/usr/lib/java/jre/lib/i386/client:/usr/lib/java/jre/lib/i386/native_threads:/usr/local/pgsql8/lib/ 
>
>
>
> I've searched in history list, sun and google and no one solutions works
> Whats wrong here!? Anyone could help-me!?

Just a hunch, but have you tried what's listed under "zlib conflict" in 
the release notes 
http://gborg.postgresql.org/project/pljava/genpage.php?readme

Regards,
Thomas Hallgren





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2005-03-14 19:05  
  parent: 
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2005-03-14 19:05 UTC (permalink / raw)


hhumm....yeah!

I did recompile the PostgreSQL --without-zlib now, but not work yet.

Other junch!?

:0/

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

> Just a hunch, but have you tried what's listed under "zlib conflict" in  
> the release notes http://gborg.postgresql.org/project/
> pljava/genpage.php?readme



-- 
Bruno D.
TI - CenterX

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




^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2005-03-14 19:19  
  parent: 
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2005-03-14 19:19 UTC (permalink / raw)

Bruno Domenici Ferreira wrote:

> hhumm....yeah!
>
> I did recompile the PostgreSQL --without-zlib now, but not work yet.
>
> Other junch!?

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? Another thread claimed that 
the <JRE_HOME>/i386/lib/client must be the first entry in your 
LD_LIBRARY_PATH.

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? Can you try upgrading your GLIBC?

I know Nageshwar Rao had problems with HPI in November last year. Don't 
know how, or even if, he solved it though.

Regards,
Thomas Hallgren





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create Java VM
@ 2005-03-15 14:27  
  parent: 
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2005-03-15 14:27 UTC (permalink / raw)

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/




^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Re: Failed to create Java VM
@ 2005-03-15 15:55  
  parent: 
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2005-03-15 15:55 UTC (permalink / raw)

Bruno Domenici Ferreira wrote:
> 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>
> 
When do you get this error? Are you trying to do use the SQL SET command 
for pljava.vmoptions in a session where PL/Java is already active?

There's no way you can get it from settings in the postgresql.conf file 
since that file will allow multiple settings of the same custom variable 
(if it didn't you'd get this error for pljava.classpath since you set 
that twice).

Be adviced that numeric custom variables are broken at the moment. Thus, 
you will not be able to set the pljava.statement_cache_size.

Regards,
Thomas Hallgren





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Re: Failed to create Java VM
@ 2005-03-15 17:58  
  parent: 
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2005-03-15 17:58 UTC (permalink / raw)

Thomas Hallgren wrote:
> When do you get this error? Are you trying to do use the SQL SET command 
> for pljava.vmoptions in a session where PL/Java is already active?
> 
> There's no way you can get it from settings in the postgresql.conf file 
> since that file will allow multiple settings of the same custom variable 
> (if it didn't you'd get this error for pljava.classpath since you set 
> that twice).
> 
Hmm, I think I can answer my own question here. What happens is that you 
first get the error:

   1 is outside the valid range for parameter 
"pljava.statement_cache_size" (0 .. 0)

Then you do a renewed attempt in the same session. That's when you get:

   attempt to redefine parameter "pljava.vmoptions"

You get this since it was succesfully set on the first attempt but then 
failed on the statement_cache_size. If I'm correct then just remove the 
setting of the pljava.statement_cache_size.

Regards,
Thomas Hallgren





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Re: Failed to create Java VM
@ 2005-03-15 18:36  
  parent: 
  0 siblings, 0 replies; 16+ messages in thread

From:  @ 2005-03-15 18:36 UTC (permalink / raw)


Works Thomas!!!!

Thank you very much! :0)

I've tried it on older version of jdk. I guess the problem was in package
of pljava. Installing with the source works fine.

Thanks for your patience.

:op

[]s

On Tue, 15 Mar 2005 18:58:49 +0100, Thomas Hallgren <thhal at mailblocks.com>
wrote:

> You get this since it was succesfully set on the first attempt but then  
> failed on the statement_cache_size. If I'm correct then just remove the  
> setting of the pljava.statement_cache_size.



-- 
Bruno D.
TI - CenterX

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




^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create java VM
@ 2006-03-16 22:35  
  0 siblings, 1 reply; 16+ messages in thread

From:  @ 2006-03-16 22:35 UTC (permalink / raw)

Hi,
I made the necessary configuration for installing pljava (changing postgresql.conf, defining the PATH and using the Deployer of deployer.jar) and when I use the method sqlj.install_jar(..,..,..) The Error of "Failed to create Java VM" appears.
I'm using pljava 1.2 on postgresql 8.0.3 with Windows 2000.
I used also Jsdk 1.4 and Jsdk 1.5.

So now I have no idea how to proceed.

regards,
MAS


More than 300,000 seals could be killed in Canada this year - most of 
them babies. Tell Canada's Prime Minister to stop the hunt now! 
http://go.care2.com/stophunt


http://www.Care2.com  Free e-mail. 100MB storage.  Helps nonprofits. 




^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* [Pljava-dev] Failed to create java VM
@ 2006-03-17 07:22  
  parent: 
  0 siblings, 0 replies; 16+ messages in thread

From:  @ 2006-03-17 07:22 UTC (permalink / raw)

MAS,
Please convey the following.
- PATH setting (in effect for the postmaster)
- Location of your JDK
- How you run your PostgreSQL (as a service or from the command line)
- The PostgreSQL backend log at the time of failure.

Regards,
Thomas Hallgren


MAS wrote:
> Hi,
> I made the necessary configuration for installing pljava (changing postgresql.conf, defining the PATH and using the Deployer of deployer.jar) and when I use the method sqlj.install_jar(..,..,..) The Error of "Failed to create Java VM" appears.
> I'm using pljava 1.2 on postgresql 8.0.3 with Windows 2000.
> I used also Jsdk 1.4 and Jsdk 1.5.
>
> So now I have no idea how to proceed.
>
> regards,
> MAS
>
>
> More than 300,000 seals could be killed in Canada this year - most of 
> them babies. Tell Canada's Prime Minister to stop the hunt now! 
> http://go.care2.com/stophunt
>
>
> http://www.Care2.com  Free e-mail. 100MB storage.  Helps nonprofits. 
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>   





^ permalink  raw  reply  [nested|flat] 16+ messages in thread


end of thread, other threads:[~2006-03-17 07:22 UTC | newest]

Thread overview: 16+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08 07:14 [Pljava-dev] Failed to create Java VM 
2004-11-08 08:37 ` 
2004-11-08 09:32 [Pljava-dev] Failed to create Java VM 
2004-11-08 10:07 [Pljava-dev] Failed to create Java VM 
2004-11-08 14:40 ` 
2004-11-08 10:08 [Pljava-dev] Failed to create Java VM 
2005-03-14 17:49 [Pljava-dev] Failed to create Java VM 
2005-03-14 18:11 ` 
2005-03-14 19:05   ` 
2005-03-14 19:19     ` 
2005-03-15 14:27       ` 
2005-03-15 15:55         ` 
2005-03-15 17:58           ` 
2005-03-15 18:36             ` 
2006-03-16 22:35 [Pljava-dev] Failed to create java VM 
2006-03-17 07:22 ` [Pljava-dev] Failed to create java VM 

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox