Unix Technical Forum

sqlj.install problem

This is a discussion on sqlj.install problem within the Informix forums, part of the Database Server Software category; --> Hello all I am quite new in the informix database. When i was trying to install java jar file ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 10:39 AM
Maroon
 
Posts: n/a
Default sqlj.install problem

Hello all
I am quite new in the informix database. When i was trying to
install java jar file in the informix, i get the following error.

EXECUTE PROCEDURE sqlj.install_jar
# ^
# 9799: User Defined Routine (install_jar) VP context switch failed.
#
#
('file:E:\Informix\src\ninesync.jar',
'nine_jar');


My OS- Windows

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 10:39 AM
Claus Samuelsen
 
Posts: n/a
Default Re: sqlj.install problem

Maroon wrote:
> Hello all
> I am quite new in the informix database. When i was trying to
> install java jar file in the informix, i get the following error.
>
> EXECUTE PROCEDURE sqlj.install_jar
> # ^
> # 9799: User Defined Routine (install_jar) VP context switch failed.
> #
> #
> ('file:E:\Informix\src\ninesync.jar',
> 'nine_jar');
>
>
> My OS- Windows
>


If you want to create a user defined function (UDF) written in java, you
should first ensure that your IDS java environment is correct. Have you
initialized a java VP? See the last 10 lines or so in $ONCONFIG.
Uncomment the '#VPCLASS jvp' and check that JVPCLASSPATH is correct.
Then bounce IDS.

Ensure that you have intialized the java VP (jvp), use 'onstat -g glo'.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 10:39 AM
Maroon
 
Posts: n/a
Default Re: sqlj.install problem

Hello dear,
Thanks for your quick reply,
I have changed the $ONCONFIG file in the location of \informix\etc,
but still i have found the same error.

I am looking forward for ur kind reply.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 10:39 AM
Guy Bowerman
 
Posts: n/a
Default Re: sqlj.install problem

Maroon wrote:
> Hello dear,
> Thanks for your quick reply,
> I have changed the $ONCONFIG file in the location of \informix\etc,
> but still i have found the same error.
>
> I am looking forward for ur kind reply.
>

Can you paste your onconfig file here, or at least the following entries:
VPCLASS
JVP*
JDK*
MULTIPROCESSOR
NUMCPUVPS
SBSPACENAME

> My OS- Windows


What is the exact OS and version? e.g. "XP Professional Service Pack 2"

What is the IDS version (output from onstat -V)?

Can you run onstat -d to confirm you have an sbspace?

Guy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 10:40 AM
Maroon
 
Posts: n/a
Default Re: sqlj.install problem


Here i have send the part of the onconfig file. I am looking forward
for your kind reply.


VPCLASS jvp,num=1 # Number of JVPs to start with

JVPJAVAHOME # JDK installation root directory
JVPHOME # Krakatoa installation directory

JVPLOGFILE jvp.log # JVP log file.
JVPPROPFILE .jvpprops # JVP property file

JDKVERSION 1.3 # JDK version supported by this server

# The path to the JRE libraries relative to JVPJAVAHOME
JVPJAVALIB \bin\

JVPJAVAVM hpi;server;verify;java;net;zip;jpeg

# Classpath to use upon Java VM start-up (use _g version for debugging)
JVPCLASSPATH

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 10:40 AM
Guy Bowerman
 
Posts: n/a
Default Re: sqlj.install problem

You didn't answer these questions:
What is the exact OS and version? e.g. "XP Professional Service Pack 2"
What is the IDS version (output from onstat -V)?
Can you run onstat -d to confirm you have an sbspace?

But from the values you pasted it looks like you're quoting
"onconfig.std" which is a template onconfig and not the onconfig file
your server uses when it is set up by the install program. Please paste
the same settings for the file: onconfig.%INFORMIXSERVER%

Thanks
Guy

Maroon wrote:
> Here i have send the part of the onconfig file. I am looking forward
> for your kind reply.
>
>
> VPCLASS jvp,num=1 # Number of JVPs to start with
>
> JVPJAVAHOME # JDK installation root directory
> JVPHOME # Krakatoa installation directory
>
> JVPLOGFILE jvp.log # JVP log file.
> JVPPROPFILE .jvpprops # JVP property file
>
> JDKVERSION 1.3 # JDK version supported by this server
>
> # The path to the JRE libraries relative to JVPJAVAHOME
> JVPJAVALIB \bin\
>
> JVPJAVAVM hpi;server;verify;java;net;zip;jpeg
>
> # Classpath to use upon Java VM start-up (use _g version for debugging)
> JVPCLASSPATH
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2008, 10:41 AM
Maroon
 
Posts: n/a
Default Re: sqlj.install problem

Guy,
I paste the onconfig file, Sorry i am quite new in the informix
database.

OS---->"XP Professional Service Pack 1"
IDS version--->IBM Informix Dynamic Server Version 9.40.TC5

#
# The following are default settings for enabling Java in the database.
#

VPCLASS jvp,num=3 # Number of JVPs to start with

JVPJAVAHOME E:\program\informix\extend\krakatoa\jre # JDK installation
root directory
JVPHOME E:\program\informix\extend\krakatoa # Krakatoa installation
directory

JVPLOGFILE E:\program\informix\extend\krakatoa\coffee_jvp.log # VP log
file
JVPPROPFILE E:\program\informix\extend\krakatoa\.jvpprops_coff ee # JVP
property file

JDKVERSION 1.3 # JDK version supported by this server

# The path to the JRE libraries relative to JVPJAVAHOME
JVPJAVALIB \bin\

JVPJAVAVM hpi;server;verify;java;net;zip;jpeg

# Classpath to use upon Java VM start-up (use _g version for debugging)
JVPCLASSPATH E:\program\informix\extend\krakatoa\krakatoa.jar;E :\program\informix\extend\krakatoa\jdbc.jar

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-20-2008, 10:42 AM
Guy Bowerman
 
Posts: n/a
Default Re: sqlj.install problem

Maroon,

You could try two things.

1. Make sure SINGLE_CPU_VP is set to 0 in the onconfig file.
2. Try changing the VPCLASS parameter to: VPCLASS jvp,num=1

After checking 1. and changing 2. restart IDS and try again.

If still no luck, try the examples in %INFORMIXDIR%\extend\krakatoa\examples
and see if they work.

Regards
Guy

Maroon wrote:
> Guy,
> I paste the onconfig file, Sorry i am quite new in the informix
> database.
>
> OS---->"XP Professional Service Pack 1"
> IDS version--->IBM Informix Dynamic Server Version 9.40.TC5
>
> #
> # The following are default settings for enabling Java in the database.
> #
>
> VPCLASS jvp,num=3 # Number of JVPs to start with
>
> JVPJAVAHOME E:\program\informix\extend\krakatoa\jre # JDK installation
> root directory
> JVPHOME E:\program\informix\extend\krakatoa # Krakatoa installation
> directory
>
> JVPLOGFILE E:\program\informix\extend\krakatoa\coffee_jvp.log # VP log
> file
> JVPPROPFILE E:\program\informix\extend\krakatoa\.jvpprops_coff ee # JVP
> property file
>
> JDKVERSION 1.3 # JDK version supported by this server
>
> # The path to the JRE libraries relative to JVPJAVAHOME
> JVPJAVALIB \bin\
>
> JVPJAVAVM hpi;server;verify;java;net;zip;jpeg
>
> # Classpath to use upon Java VM start-up (use _g version for debugging)
> JVPCLASSPATH E:\program\informix\extend\krakatoa\krakatoa.jar;E :\program\informix\extend\krakatoa\jdbc.jar
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-20-2008, 10:42 AM
Maroon
 
Posts: n/a
Default Re: sqlj.install problem

Hello Guy,
thanks,
I could not find the vpclass parameter error.

EXECUTE PROCEDURE sqlj.install_jar
('file:E:\program\informix\jar\ninesync.jar',
'ninesync_jar', 1);

9498: Incorrect path to JAR file specified:
(java.io.FileNotFoundException: \tmp\coffee.informix.ninesync_jar.jar
(T). Error in line 3 Near character position 16

But the location of my jar file is correct. Is anything worng here?


Guy Bowerman wrote:
> Maroon,
>
> You could try two things.
>
> 1. Make sure SINGLE_CPU_VP is set to 0 in the onconfig file.
> 2. Try changing the VPCLASS parameter to: VPCLASS jvp,num=1
>
> After checking 1. and changing 2. restart IDS and try again.
>
> If still no luck, try the examples in %INFORMIXDIR%\extend\krakatoa\examples
> and see if they work.
>
> Regards
> Guy
>
> Maroon wrote:
> > Guy,
> > I paste the onconfig file, Sorry i am quite new in the informix
> > database.
> >
> > OS---->"XP Professional Service Pack 1"
> > IDS version--->IBM Informix Dynamic Server Version 9.40.TC5
> >
> > #
> > # The following are default settings for enabling Java in the database.
> > #
> >
> > VPCLASS jvp,num=3 # Number of JVPs to start with
> >
> > JVPJAVAHOME E:\program\informix\extend\krakatoa\jre # JDK installation
> > root directory
> > JVPHOME E:\program\informix\extend\krakatoa # Krakatoa installation
> > directory
> >
> > JVPLOGFILE E:\program\informix\extend\krakatoa\coffee_jvp.log # VP log
> > file
> > JVPPROPFILE E:\program\informix\extend\krakatoa\.jvpprops_coff ee # JVP
> > property file
> >
> > JDKVERSION 1.3 # JDK version supported by this server
> >
> > # The path to the JRE libraries relative to JVPJAVAHOME
> > JVPJAVALIB \bin\
> >
> > JVPJAVAVM hpi;server;verify;java;net;zip;jpeg
> >
> > # Classpath to use upon Java VM start-up (use _g version for debugging)
> > JVPCLASSPATH E:\program\informix\extend\krakatoa\krakatoa.jar;E :\program\informix\extend\krakatoa\jdbc.jar
> >


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-20-2008, 10:42 AM
Guy Bowerman
 
Posts: n/a
Default Re: sqlj.install problem

>>You could try two things.
>>
>>1. Make sure SINGLE_CPU_VP is set to 0 in the onconfig file.
>>2. Try changing the VPCLASS parameter to: VPCLASS jvp,num=1


> I could not find the vpclass parameter error.


I don't understand your answer. Did you check the SINGLE_CPU_VP onconfig
paramter? Did you change the VPCLASS parameter to "jvp,num=1" ?

You seem to be getting a new error now, earlier you were reporting a
context switch error. Is that because you made the above changes?

Did you try running the examples in %INFORMIXDIR%\extend\krakatoa\examples ?

Guy

Maroon wrote:
> Hello Guy,
> thanks,


>
> EXECUTE PROCEDURE sqlj.install_jar
> ('file:E:\program\informix\jar\ninesync.jar',
> 'ninesync_jar', 1);
>
> 9498: Incorrect path to JAR file specified:
> (java.io.FileNotFoundException: \tmp\coffee.informix.ninesync_jar.jar
> (T). Error in line 3 Near character position 16
>
> But the location of my jar file is correct. Is anything worng here?
>
>
> Guy Bowerman wrote:
>
>>Maroon,
>>



>>
>>After checking 1. and changing 2. restart IDS and try again.
>>
>>If still no luck, try the examples in %INFORMIXDIR%\extend\krakatoa\examples
>>and see if they work.
>>
>>Regards
>>Guy
>>
>>Maroon wrote:
>>
>>>Guy,
>>>I paste the onconfig file, Sorry i am quite new in the informix
>>>database.
>>>
>>>OS---->"XP Professional Service Pack 1"
>>> IDS version--->IBM Informix Dynamic Server Version 9.40.TC5
>>>
>>>#
>>># The following are default settings for enabling Java in the database.
>>>#
>>>
>>>VPCLASS jvp,num=3 # Number of JVPs to start with
>>>
>>>JVPJAVAHOME E:\program\informix\extend\krakatoa\jre # JDK installation
>>>root directory
>>>JVPHOME E:\program\informix\extend\krakatoa # Krakatoa installation
>>>directory
>>>
>>>JVPLOGFILE E:\program\informix\extend\krakatoa\coffee_jvp.log # VP log
>>>file
>>>JVPPROPFILE E:\program\informix\extend\krakatoa\.jvpprops_coff ee # JVP
>>>property file
>>>
>>>JDKVERSION 1.3 # JDK version supported by this server
>>>
>>># The path to the JRE libraries relative to JVPJAVAHOME
>>>JVPJAVALIB \bin\
>>>
>>>JVPJAVAVM hpi;server;verify;java;net;zip;jpeg
>>>
>>># Classpath to use upon Java VM start-up (use _g version for debugging)
>>>JVPCLASSPATH E:\program\informix\extend\krakatoa\krakatoa.jar;E :\program\informix\extend\krakatoa\jdbc.jar
>>>

>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com