473,545 Members | 2,019 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problems using sqlj and db2-8.1 (SET CURRENT PACKAGESET )

Hello,

i have problems using sqlj in the following environment.

I use type 4 driver com.ibm.db2.jcc .DB2Driver and connect succesful to
8.1. db2-Database(DRDA)( Informational tokens are "DB2 v8.1.0.32",
"s031027", "MI00060", and FixPak "4".Product is installed at
"/opt/IBM/db2/V8.1"). It runs in an applicationcont ainer (jdk1.4,
linux). I tried all other drivers without success.
I execute sqlj-Statement
#sql [ctx] { SET CURRENT PACKAGESET = :packageSet };

and get an exception.

com.ibm.db2.jcc .a.SqlException : DB2 SQL error: SQLCODE: -725,
SQLSTATE: 42721, SQLERRMC: CLIENT APPLNAME;A1DB0A ;
at com.ibm.db2.jcc .a.bx.e(Lcom.ib m.db2.jcc.a.da; )I(bx.java:33)
at com.ibm.db2.jcc .a.bx.c(Lcom.ib m.db2.jcc.a.da; )V(bx.java:44)
at com.ibm.db2.jcc .c.bc.j(Lcom.ib m.db2.jcc.a.ct; )V(bc.java:284)
at com.ibm.db2.jcc .c.bc.f(Lcom.ib m.db2.jcc.a.ct; )V(bc.java:98)
at com.ibm.db2.jcc .c.q.f(Lcom.ibm .db2.jcc.a.ct;) V(q.java:119)
at com.ibm.db2.jcc .c.b.a(Lcom.ibm .db2.jcc.a.by;) V(b.java:1655)
at com.ibm.db2.jcc .a.by.b(Lcom.ib m.db2.jcc.a.cq; )V(by.java:35)
at com.ibm.db2.jcc .a.cd.b(Lcom.ib m.db2.jcc.a.cq; )V(cd.java:41)
at com.ibm.db2.jcc .a.f.b(Lcom.ibm .db2.jcc.a.cq;) V(f.java:123)
at com.ibm.db2.jcc .a.f.j(Lcom.ibm .db2.jcc.a.cq;) V(f.java:314)
at com.ibm.db2.jcc .c.a.j(Lcom.ibm .db2.jcc.a.cq;) V(a.java:450)
at com.ibm.db2.jcc .a.f.c(Lcom.ibm .db2.jcc.a.cq;) V(f.java:201)
at com.ibm.db2.jcc .a.cr.a(Lcom.ib m.db2.jcc.a.j;) V(cr.java:1624)
at com.ibm.db2.jcc .a.l.prepareSQL JStatement(Ljav a.lang.String;I Lcom.ibm.db2.jc c.SQLJSection;L com.ibm.db2.jcc .SQLJColumnMeta Data;Lcom.ibm.d b2.jcc.SQLJColu mnMetaData;ZZII II)Lcom.ibm.db2 .jcc.SQLJPrepar edStatement;(l. java:2004)
at com.ibm.db2.jcc .sqlj.f.<init>( Lcom.ibm.db2.jc c.SQLJConnectio n;Lcom.ibm.db2. jcc.sqlj.EntryI nfo;Lcom.ibm.db 2.jcc.sqlj.Stat icPackage;Lsqlj .runtime.profil e.BatchContext; Z)V(f.java:205)
at com.ibm.db2.jcc .sqlj.c.getStat ement(ILsqlj.ru ntime.profile.B atchContext;Lja va.util.Map;)Ls qlj.runtime.pro file.RTStatemen t;(c.java:112)
at sqlj.runtime.Ex ecutionContext$ StatementStack. setStatement(Ls qlj.runtime.pro file.ConnectedP rofile;ILsqlj.r untime.profile. BatchContext;Lj ava.util.Map;)L sqlj.runtime.pr ofile.RTStateme nt;(ExecutionCo ntext.java:1088 )
at sqlj.runtime.Ex ecutionContext. registerStateme nt(Lsqlj.runtim e.ConnectionCon text;Ljava.lang .Object;I)Lsqlj .runtime.profil e.RTStatement;( ExecutionContex t.java:622)

The packageset is correct and exist. All other conditions are also
correct. (precompile,bin d...)
Nov 12 '05 #1
1 3126
the applicationserv er is weblogic 8.1.

The same sqlj-programm runs without the applicationcont ainer and also
in an own thread(not threadpool weblogic) in the same
applicationcont ainer. But this is not really good solution.

ka***********@f inanzit.com (chaos) wrote in message news:<de******* *************** ****@posting.go ogle.com>...
Hello,

i have problems using sqlj in the following environment.

I use type 4 driver com.ibm.db2.jcc .DB2Driver and connect succesful to
8.1. db2-Database(DRDA)( Informational tokens are "DB2 v8.1.0.32",
"s031027", "MI00060", and FixPak "4".Product is installed at
"/opt/IBM/db2/V8.1"). It runs in an applicationcont ainer (jdk1.4,
linux). I tried all other drivers without success.
I execute sqlj-Statement
#sql [ctx] { SET CURRENT PACKAGESET = :packageSet };

and get an exception.

com.ibm.db2.jcc .a.SqlException : DB2 SQL error: SQLCODE: -725,
SQLSTATE: 42721, SQLERRMC: CLIENT APPLNAME;A1DB0A ;
at com.ibm.db2.jcc .a.bx.e(Lcom.ib m.db2.jcc.a.da; )I(bx.java:33)
at com.ibm.db2.jcc .a.bx.c(Lcom.ib m.db2.jcc.a.da; )V(bx.java:44)
at com.ibm.db2.jcc .c.bc.j(Lcom.ib m.db2.jcc.a.ct; )V(bc.java:284)
at com.ibm.db2.jcc .c.bc.f(Lcom.ib m.db2.jcc.a.ct; )V(bc.java:98)
at com.ibm.db2.jcc .c.q.f(Lcom.ibm .db2.jcc.a.ct;) V(q.java:119)
at com.ibm.db2.jcc .c.b.a(Lcom.ibm .db2.jcc.a.by;) V(b.java:1655)
at com.ibm.db2.jcc .a.by.b(Lcom.ib m.db2.jcc.a.cq; )V(by.java:35)
at com.ibm.db2.jcc .a.cd.b(Lcom.ib m.db2.jcc.a.cq; )V(cd.java:41)
at com.ibm.db2.jcc .a.f.b(Lcom.ibm .db2.jcc.a.cq;) V(f.java:123)
at com.ibm.db2.jcc .a.f.j(Lcom.ibm .db2.jcc.a.cq;) V(f.java:314)
at com.ibm.db2.jcc .c.a.j(Lcom.ibm .db2.jcc.a.cq;) V(a.java:450)
at com.ibm.db2.jcc .a.f.c(Lcom.ibm .db2.jcc.a.cq;) V(f.java:201)
at com.ibm.db2.jcc .a.cr.a(Lcom.ib m.db2.jcc.a.j;) V(cr.java:1624)
at com.ibm.db2.jcc .a.l.prepareSQL JStatement(Ljav a.lang.String;I Lcom.ibm.db2.jc c.SQLJSection;L com.ibm.db2.jcc .SQLJColumnMeta Data;Lcom.ibm.d b2.jcc.SQLJColu mnMetaData;ZZII II)Lcom.ibm.db2 .jcc.SQLJPrepar edStatement;(l. java:2004)
at com.ibm.db2.jcc .sqlj.f.<init>( Lcom.ibm.db2.jc c.SQLJConnectio n;Lcom.ibm.db2. jcc.sqlj.EntryI nfo;Lcom.ibm.db 2.jcc.sqlj.Stat icPackage;Lsqlj .runtime.profil e.BatchContext; Z)V(f.java:205)
at com.ibm.db2.jcc .sqlj.c.getStat ement(ILsqlj.ru ntime.profile.B atchContext;Lja va.util.Map;)Ls qlj.runtime.pro file.RTStatemen t;(c.java:112)
at sqlj.runtime.Ex ecutionContext$ StatementStack. setStatement(Ls qlj.runtime.pro file.ConnectedP rofile;ILsqlj.r untime.profile. BatchContext;Lj ava.util.Map;)L sqlj.runtime.pr ofile.RTStateme nt;(ExecutionCo ntext.java:1088 )
at sqlj.runtime.Ex ecutionContext. registerStateme nt(Lsqlj.runtim e.ConnectionCon text;Ljava.lang .Object;I)Lsqlj .runtime.profil e.RTStatement;( ExecutionContex t.java:622)

The packageset is correct and exist. All other conditions are also
correct. (precompile,bin d...)

Nov 12 '05 #2

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

Similar topics

5
8602
by: ipg | last post by:
I am running into issues passing a parameter (that is a XML string) into a stylesheet and using msxsl:node-set to parse the string. Can someone please explain why. my html: var xsl = new ActiveXObject("MSXML2.FreeThreadedDomDocument.3.0"); xsl.async = false; xsl.load("campaignHtml.xsl"); var template = new...
1
8886
by: TimMcConechy | last post by:
Hi, In a trigger I need to do a SET CURRENT SCHEMA so that I update the right set of tables based on some "new" values I recieve in the trigger.. the logic looks a little like: DECLARE lschema varchar(20); set lschema=(select company from shared.logos where
1
2847
by: keiko ishikawa | last post by:
Can anyone advise on security implications of allowing SET CURRENT SQLID='xxx' ? I am running DB2 v7.1 on OS/390. Thanks. K Ishikawa
8
2564
by: Mark A | last post by:
The DB2 8.2 SQL Reference says SET CURRENT LOCK TIMEOUT is not under transaction control. I assume that means that changing it via the SQL command affects all connections to the database in the same way the db cfg parm LOCKTIMEOUT does? Anyone know if IBM is considering NO WAIT option (LOCKTIMEOUT =0) for an individual transaction or SQL...
2
2355
by: Paul Duncan | last post by:
diggityduncs (Programmer) Nov 13, 2003 Hello, I'm tring to use a win32/api dll in c# The vendor I received the dll from doesn't know anything about .net I received two files ACGAPI.DLL +
1
3078
by: pike | last post by:
DB2 8.1 FP7a on AIX 5.2. $ db2 SET CURRENT LOCK TIMEOUT NOT WAIT DB20000I The SQL command completed successfully. $ db2 values current lock timeout 1 ----------- 0
3
2740
by: db2admin | last post by:
hi, our db2advis is broken and i am trying to find other ways to get recommended indexes i tried using command "SET CURRENT EXPLAIN MODE RECOMMEND INDEXES" and it populated ADVISE_INDEXES table. new indexes recommended by this command does not have runstats on it. how can i evaluate new suggested indexes ? do i have to physically create...
3
13431
by: Brett R. Wesoloski | last post by:
I am having problems using HttpContext.Current.Request.Url.Host. I have some code that does this... if (HttpContext.Current != null) { subdomain = HttpContext.Current.Request.Url.Host; }
8
10998
dmjpro
by: dmjpro | last post by:
How do I get current directory in JAVA? And how do I set Current Directory in JAVA? When JVM runs a class file then what is it's current directory? Is it the JVM running path??? Please help! Debasis Jana.
0
7401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7808
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7757
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...
0
5972
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...
1
5329
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1884
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
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
704
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.