473,756 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding a parameter to a Java SP

I need to add an additional String parameter to a Java SP (DB2 8.1 0 using
DB2 Development Center - FP4).

Everytime I do this I get the following error message when building:-
"G2REPORT.G2REP _INTERMEDIARY_S S" contains an invalidly formatted
library/function identification in the EXTERNAL NAME clause. LINE
NUMBER=12. SQLSTATE=42878

G2REPORT.G2REP_ Intermediary_SS - Build failed.
G2REPORT.G2REP_ Intermediary_SS - Roll back completed successfully.

The current parameters for the SP look as below - which works/builds fine.
As soon as I add an additional String parameter (immediately before the
resultset) I get the error above when building. Any ideas ?, are there any
limitations on size/number of parameters a Java SP can take ?

Thanks

public class G2REP_Intermedi ary_SS
{

public static void g2REP_Intermedi ary_SS ( String prmRoleName,

String prmFSAReference No,

String prmRelationship Type,

String prmHeadIntermed iaryNo,

String prmIntermediary No,

String prmIntermediary Name,

String prmFSAChngOptnC ode,

String prmClientMoneyO ptn,

ResultSet[] rs ) throws SQLException, Exception
Nov 12 '05 #1
4 2374
Steve,

Can you post the create procedure statement, and anything that appears
in the db2diag.log during the build? One possibility could be that the
old version of the class is loaded, and is preventing the new jar from
being laid down...you might want to recycle db2 and retry as a sanity check.

Steve Smith wrote:
I need to add an additional String parameter to a Java SP (DB2 8.1 0 using
DB2 Development Center - FP4).

Everytime I do this I get the following error message when building:-
"G2REPORT.G2REP _INTERMEDIARY_S S" contains an invalidly formatted
library/function identification in the EXTERNAL NAME clause. LINE
NUMBER=12. SQLSTATE=42878

G2REPORT.G2REP_ Intermediary_SS - Build failed.
G2REPORT.G2REP_ Intermediary_SS - Roll back completed successfully.

The current parameters for the SP look as below - which works/builds fine.
As soon as I add an additional String parameter (immediately before the
resultset) I get the error above when building. Any ideas ?, are there any
limitations on size/number of parameters a Java SP can take ?

Thanks

public class G2REP_Intermedi ary_SS
{

public static void g2REP_Intermedi ary_SS ( String prmRoleName,

String prmFSAReference No,

String prmRelationship Type,

String prmHeadIntermed iaryNo,

String prmIntermediary No,

String prmIntermediary Name,

String prmFSAChngOptnC ode,

String prmClientMoneyO ptn,

ResultSet[] rs ) throws SQLException, Exception


Nov 12 '05 #2
Steve,

Can you please e-mail me your jar file? I want to see what's up, but
can't hit the error path without having the jar file installed (we fail
because we can't find a matching jar file first)...

Thanks!

Steve Smith wrote:
Sean,

There's nothing in db2diag.log

The output from the build (including the create proc stmt is attached).

We have stopped & restarted DB2 a few times too. Doesn't seem to make any
difference. I've also played around with the parameter sizes a bit (as 8
time 32 is 256 - a suspicious number if ever I saw one). That doesn't seem
to make any difference either.

Steve

"Sean McKeough" <mc******@nospa m.ca.ibm.com> wrote in message
news:bp******** **@hanover.toro lab.ibm.com...
Steve,

Can you post the create procedure statement, and anything that appears
in the db2diag.log during the build? One possibility could be that the
old version of the class is loaded, and is preventing the new jar from
being laid down...you might want to recycle db2 and retry as a sanity


check.
Steve Smith wrote:
I need to add an additional String parameter to a Java SP (DB2 8.1 0
using
DB2 Development Center - FP4).

Everytime I do this I get the following error message when building:-
"G2REPORT.G2 REP_INTERMEDIAR Y_SS" contains an invalidly formatted
library/function identification in the EXTERNAL NAME clause. LINE
NUMBER=12. SQLSTATE=42878

G2REPORT.G2R EP_Intermediary _SS - Build failed.
G2REPORT.G2R EP_Intermediary _SS - Roll back completed successfully.

The current parameters for the SP look as below - which works/builds
fine.
As soon as I add an additional String parameter (immediately before the
resultset) I get the error above when building. Any ideas ?, are there
any
limitation s on size/number of parameters a Java SP can take ?

Thanks

public class G2REP_Intermedi ary_SS
{

public static void g2REP_Intermedi ary_SS ( String prmRoleName,

String prmFSAReference No,

String prmRelationship Type,

String prmHeadIntermed iaryNo,

String prmIntermediary No,

String prmIntermediary Name,

String prmFSAChngOptnC ode,

String prmClientMoneyO ptn,

ResultSet[] rs ) throws SQLException, Exception

G2REPORT.G2REP_ Intermediary_SS - Build started.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\javac -classpath ".;C:\PROGRA~1\ IBM\SQLLIB\java \db2java.zip;C: \PROGRA~1\IBM\S QLLIB\java\runt ime.zip;C:\PROG RA~1\IBM\SQLLIB \java\sqlj.zip" "G2REP_Intermed iary_SS.java"
G2REPORT.G2REP_ Intermediary_SS - Javac completed.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\jar cf SQL310180410077 90.jar G2REP_Intermedi ary_SS.class
G2REPORT.G2REP_ Intermediary_SS - Jar file created.
Call sqlj.install_ja r ('file:///C|/Documents and Settings/A261009/Application Data/IBM/DB2/DC/Projects/bld106931592304 7/SQL310180410077 90.jar', '"G2REPORT".SQL 31018041007790' , 0)
G2REPORT.G2REP_ Intermediary_SS - sqlj.install_ja r using jar name "G2REPORT".SQL3 1018041007790 completed.
Call sqlj.refresh_cl asses( )
G2REPORT.G2REP_ Intermediary_SS - sqlj.refresh_cl asses completed.
Call sqlj.updatejari nfo ('"G2REPORT".SQ L31018041007790 ', 'G2REP_Intermed iary_SS', 'file:///C|/Documents and Settings/A261009/Application Data/IBM/DB2/DC/Projects/bld106931592304 7/dc_1')
G2REPORT.G2REP_ Intermediary_SS - Source updated.
CREATE PROCEDURE G2REPORT.G2REP_ Intermediary_SS ( IN prmRoleName CHARACTER(32),
IN prmFSAReference No CHARACTER(32),
IN prmRelationship Type CHARACTER(32),
IN prmHeadIntermed iaryNo CHARACTER(32),
IN prmIntermediary No CHARACTER(32),
IN prmIntermediary Name CHARACTER(32),
IN prmFSAChngOptnC ode CHARACTER(32),
IN prmClientMoneyO ptn CHARACTER(32),
IN prmTest1 CHARACTER(32) )
DYNAMIC RESULT SETS 1
NOT DETERMINISTIC
LANGUAGE Java
EXTERNAL NAME '"G2REPORT".SQL 31018041007790: G2REP_Intermedi ary_SS.g2REP_In termediary_SS'
FENCED
PARAMETER STYLE JAVA
[IBM][CLI Driver][DB2/6000] SQL0449N The statement defining routine "G2REPORT.G2REP _INTERMEDIARY_S S" contains an invalidly formatted library/function identification in the EXTERNAL NAME clause. LINE NUMBER=12. SQLSTATE=42878

G2REPORT.G2REP_ Intermediary_SS - Build failed.
G2REPORT.G2REP_ Intermediary_SS - Roll back completed successfully.


Nov 12 '05 #3
Sean,

jar file attached.

Thanks
Steve
"Sean McKeough" <mc******@nospa m.ca.ibm.com> wrote in message
news:bp******** **@hanover.toro lab.ibm.com...
Steve,

Can you please e-mail me your jar file? I want to see what's up, but
can't hit the error path without having the jar file installed (we fail
because we can't find a matching jar file first)...

Thanks!

Steve Smith wrote:
Sean,

There's nothing in db2diag.log

The output from the build (including the create proc stmt is attached).

We have stopped & restarted DB2 a few times too. Doesn't seem to make any difference. I've also played around with the parameter sizes a bit (as 8
time 32 is 256 - a suspicious number if ever I saw one). That doesn't seem to make any difference either.

Steve

"Sean McKeough" <mc******@nospa m.ca.ibm.com> wrote in message
news:bp******** **@hanover.toro lab.ibm.com...
Steve,

Can you post the create procedure statement, and anything that appears
in the db2diag.log during the build? One possibility could be that the
old version of the class is loaded, and is preventing the new jar from
being laid down...you might want to recycle db2 and retry as a sanity


check.
Steve Smith wrote:

I need to add an additional String parameter to a Java SP (DB2 8.1 0


using
DB2 Development Center - FP4).

Everytime I do this I get the following error message when building:-
"G2REPORT.G2 REP_INTERMEDIAR Y_SS" contains an invalidly formatted
library/function identification in the EXTERNAL NAME clause. LINE
NUMBER=12. SQLSTATE=42878

G2REPORT.G2R EP_Intermediary _SS - Build failed.
G2REPORT.G2R EP_Intermediary _SS - Roll back completed successfully.

The current parameters for the SP look as below - which works/builds


fine.
As soon as I add an additional String parameter (immediately before the
resultset) I get the error above when building. Any ideas ?, are there


any
limitation s on size/number of parameters a Java SP can take ?

Thanks

public class G2REP_Intermedi ary_SS
{

public static void g2REP_Intermedi ary_SS ( String prmRoleName,

String prmFSAReference No,

String prmRelationship Type,

String prmHeadIntermed iaryNo,

String prmIntermediary No,

String prmIntermediary Name,

String prmFSAChngOptnC ode,

String prmClientMoneyO ptn,

ResultSet[] rs ) throws SQLException, Exception

G2REPORT.G2REP_ Intermediary_SS - Build started.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\javac -classpath ".;C:\PROGRA~1\ IBM\SQLLIB\java \db2java.zip;C: \PROGRA~1\IBM\S QLLIB\java\runt i
me.zip;C:\PROGR A~1\IBM\SQLLIB\ java\sqlj.zip" "G2REP_Intermed iary_SS.java" G2REPORT.G2REP_ Intermediary_SS - Javac completed.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\jar cf SQL310180410077 90.jar G2REP_Intermedi ary_SS.class G2REPORT.G2REP_ Intermediary_SS - Jar file created.
Call sqlj.install_ja r ('file:///C|/Documents and Settings/A261009/Application
Data/IBM/DB2/DC/Projects/bld106931592304 7/SQL310180410077 90.jar',
'"G2REPORT".SQL 31018041007790' , 0) G2REPORT.G2REP_ Intermediary_SS - sqlj.install_ja r using jar name "G2REPORT".SQL3 1018041007790 completed. Call sqlj.refresh_cl asses( )
G2REPORT.G2REP_ Intermediary_SS - sqlj.refresh_cl asses completed.
Call sqlj.updatejari nfo ('"G2REPORT".SQ L31018041007790 ', 'G2REP_Intermed iary_SS', 'file:///C|/Documents and
Settings/A261009/Application
Data/IBM/DB2/DC/Projects/bld106931592304 7/dc_1') G2REPORT.G2REP_ Intermediary_SS - Source updated.
CREATE PROCEDURE G2REPORT.G2REP_ Intermediary_SS ( IN prmRoleName CHARACTER(32), IN prmFSAReference No CHARACTER(32), IN prmRelationship Type CHARACTER(32), IN prmHeadIntermed iaryNo CHARACTER(32), IN prmIntermediary No CHARACTER(32), IN prmIntermediary Name CHARACTER(32), IN prmFSAChngOptnC ode CHARACTER(32), IN prmClientMoneyO ptn CHARACTER(32), IN prmTest1 CHARACTER(32) ) DYNAMIC RESULT SETS 1
NOT DETERMINISTIC
LANGUAGE Java
EXTERNAL NAME '"G2REPORT".SQL 31018041007790: G2REP_Intermedi ary_SS.g2REP_In termediary_SS' FENCED
PARAMETER STYLE JAVA
[IBM][CLI Driver][DB2/6000] SQL0449N The statement defining routine "G2REPORT.G2REP _INTERMEDIARY_S S" contains an invalidly formatted
library/function identification in the EXTERNAL NAME clause. LINE
NUMBER=12. SQLSTATE=42878
G2REPORT.G2REP_ Intermediary_SS - Build failed.
G2REPORT.G2REP_ Intermediary_SS - Roll back completed successfully.



Nov 12 '05 #4
Steve,

The install & create proc went ok for me on 8.2...I couldn't find a fp4
build to try this on. You may just need to move up...if fp4 doesn't work
for you, then you'll need to contact service to get a special build
containing whatever was done to fix this.

Steve Smith wrote:
Sean,

jar file attached.

Thanks
Steve
"Sean McKeough" <mc******@nospa m.ca.ibm.com> wrote in message
news:bp******** **@hanover.toro lab.ibm.com...
Steve,

Can you please e-mail me your jar file? I want to see what's up, but
can't hit the error path without having the jar file installed (we fail
because we can't find a matching jar file first)...

Thanks!

Steve Smith wrote:
Sean,

There's nothing in db2diag.log

The output from the build (including the create proc stmt is attached).

We have stopped & restarted DB2 a few times too. Doesn't seem to make
any
difference . I've also played around with the parameter sizes a bit (as 8
time 32 is 256 - a suspicious number if ever I saw one). That doesn't
seem
to make any difference either.

Steve

"Sean McKeough" <mc******@nospa m.ca.ibm.com> wrote in message
news:bp***** *****@hanover.t orolab.ibm.com. ..
Steve,

Can you post the create procedure statement, and anything that appears
in the db2diag.log during the build? One possibility could be that the
old version of the class is loaded, and is preventing the new jar from
being laid down...you might want to recycle db2 and retry as a sanity

check.
Steve Smith wrote:
>I need to add an additional String parameter to a Java SP (DB2 8.1 0

using
>DB2 Development Center - FP4).
>
>Everytim e I do this I get the following error message when building:-
>"G2REPORT. G2REP_INTERMEDI ARY_SS" contains an invalidly formatted
>library/function identification in the EXTERNAL NAME clause. LINE
>NUMBER=1 2. SQLSTATE=42878
>
>G2REPORT.G 2REP_Intermedia ry_SS - Build failed.
>G2REPORT.G 2REP_Intermedia ry_SS - Roll back completed successfully.
>
>The current parameters for the SP look as below - which works/builds

fine.
>As soon as I add an additional String parameter (immediately before the
>resultse t) I get the error above when building. Any ideas ?, are there

any
>limitation s on size/number of parameters a Java SP can take ?
>
>Thanks
>
>public class G2REP_Intermedi ary_SS
>{
>
>public static void g2REP_Intermedi ary_SS ( String prmRoleName,
>
>String prmFSAReference No,
>
>String prmRelationship Type,
>
>String prmHeadIntermed iaryNo,
>
>String prmIntermediary No,
>
>String prmIntermediary Name,
>
>String prmFSAChngOptnC ode,
>
>String prmClientMoneyO ptn,
>
>ResultSe t[] rs ) throws SQLException, Exception
>
>
G2REPORT.G2R EP_Intermediary _SS - Build started.
C:\PROGRA~1\ IBM\SQLLIB\java \jdk\bin\javac -classpath
".;C:\PROGRA~1\ IBM\SQLLIB\java \db2java.zip;C: \PROGRA~1\IBM\S QLLIB\java\runt i
me.zip;C:\PROGR A~1\IBM\SQLLIB\ java\sqlj.zip" "G2REP_Intermed iary_SS.java"
G2REPORT.G2R EP_Intermediary _SS - Javac completed.
C:\PROGRA~1\ IBM\SQLLIB\java \jdk\bin\jar cf SQL310180410077 90.jar
G2REP_Intermedi ary_SS.class
G2REPORT.G2R EP_Intermediary _SS - Jar file created.
Call sqlj.install_ja r ('file:///C|/Documents and
Settings/A261009/Application
Data/IBM/DB2/DC/Projects/bld106931592304 7/SQL310180410077 90.jar',
'"G2REPORT".SQL 31018041007790' , 0)
G2REPORT.G2R EP_Intermediary _SS - sqlj.install_ja r using jar name
"G2REPORT".SQL3 1018041007790 completed.
Call sqlj.refresh_cl asses( )
G2REPORT.G2R EP_Intermediary _SS - sqlj.refresh_cl asses completed.
Call sqlj.updatejari nfo ('"G2REPORT".SQ L31018041007790 ',
'G2REP_Intermed iary_SS', 'file:///C|/Documents and
Settings/A261009/Application
Data/IBM/DB2/DC/Projects/bld106931592304 7/dc_1')
G2REPORT.G2R EP_Intermediary _SS - Source updated.
CREATE PROCEDURE G2REPORT.G2REP_ Intermediary_SS ( IN prmRoleName
CHARACTER(32),
IN prmFSAReference No
CHARACTER(32),
IN prmRelationship Type
CHARACTER(32),
IN
prmHeadIntermed iaryNo CHARACTER(32),
IN prmIntermediary No
CHARACTER(32),
IN prmIntermediary Name
CHARACTER(32),
IN prmFSAChngOptnC ode
CHARACTER(32),
IN prmClientMoneyO ptn
CHARACTER(32),
IN prmTest1
CHARACTER(32) )
DYNAMIC RESULT SETS 1
NOT DETERMINISTIC
LANGUAGE Java
EXTERNAL NAME
'"G2REPORT".SQL 31018041007790: G2REP_Intermedi ary_SS.g2REP_In termediary_SS'
FENCED
PARAMETER STYLE JAVA
[IBM][CLI Driver][DB2/6000] SQL0449N The statement defining routine
"G2REPORT.G2REP _INTERMEDIARY_S S" contains an invalidly formatted
library/function identification in the EXTERNAL NAME clause. LINE
NUMBER=12. SQLSTATE=42878
G2REPORT.G2R EP_Intermediary _SS - Build failed.
G2REPORT.G2R EP_Intermediary _SS - Roll back completed successfully.



Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6928
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on a type mismatch. It is positively because of the boolean(java primitive)parameter. It goes fine if I change this parameter to int or String. This inteface has a lot more methods which works fine, it is just the
8
5010
by: gimme_this_gimme_that | last post by:
I have the following Java code : package com.rhi.bb.udf.utils; import java.sql.Clob; import java.sql.SQLException; import java.util.regex.Pattern; import java.util.regex.Matcher;
0
7815
by: Sivajee Akula | last post by:
Hello All, I am trying to consume a .NET Service from Adobe LiveCycle Workflow. The service deals with complex objects. I am getting the following exception at the time of invocation of the service, and due to which my workflow gets stalled. When I searched the net, I found many posts reporting this error, but none with a solution. There is no code involved in the invocation, everything is handled by Adobe tool itself. I just specify the...
2
2375
by: tamasu | last post by:
Hi, I am retrieving a selected item from a list/menu component on an HTML page. The said value is passed as a parameter to a method initiated through <jsp:useBean. I am aware that when the user selects an item from the list/menu an onChange event is triggered. I have handled this event by a javascript function.
0
9455
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10031
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9838
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9708
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5140
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3354
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.