472,805 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

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 applicationcontainer (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.ibm.db2.jcc.a.da;)I(bx .java:33)
at com.ibm.db2.jcc.a.bx.c(Lcom.ibm.db2.jcc.a.da;)V(bx .java:44)
at com.ibm.db2.jcc.c.bc.j(Lcom.ibm.db2.jcc.a.ct;)V(bc .java:284)
at com.ibm.db2.jcc.c.bc.f(Lcom.ibm.db2.jcc.a.ct;)V(bc .java:98)
at com.ibm.db2.jcc.c.q.f(Lcom.ibm.db2.jcc.a.ct;)V(q.j ava:119)
at com.ibm.db2.jcc.c.b.a(Lcom.ibm.db2.jcc.a.by;)V(b.j ava:1655)
at com.ibm.db2.jcc.a.by.b(Lcom.ibm.db2.jcc.a.cq;)V(by .java:35)
at com.ibm.db2.jcc.a.cd.b(Lcom.ibm.db2.jcc.a.cq;)V(cd .java:41)
at com.ibm.db2.jcc.a.f.b(Lcom.ibm.db2.jcc.a.cq;)V(f.j ava:123)
at com.ibm.db2.jcc.a.f.j(Lcom.ibm.db2.jcc.a.cq;)V(f.j ava:314)
at com.ibm.db2.jcc.c.a.j(Lcom.ibm.db2.jcc.a.cq;)V(a.j ava:450)
at com.ibm.db2.jcc.a.f.c(Lcom.ibm.db2.jcc.a.cq;)V(f.j ava:201)
at com.ibm.db2.jcc.a.cr.a(Lcom.ibm.db2.jcc.a.j;)V(cr. java:1624)
at com.ibm.db2.jcc.a.l.prepareSQLJStatement(Ljava.lan g.String;ILcom.ibm.db2.jcc.SQLJSection;Lcom.ibm.db 2.jcc.SQLJColumnMetaData;Lcom.ibm.db2.jcc.SQLJColu mnMetaData;ZZIIII)Lcom.ibm.db2.jcc.SQLJPreparedSta tement;(l.java:2004)
at com.ibm.db2.jcc.sqlj.f.<init>(Lcom.ibm.db2.jcc.SQL JConnection;Lcom.ibm.db2.jcc.sqlj.EntryInfo;Lcom.i bm.db2.jcc.sqlj.StaticPackage;Lsqlj.runtime.profil e.BatchContext;Z)V(f.java:205)
at com.ibm.db2.jcc.sqlj.c.getStatement(ILsqlj.runtime .profile.BatchContext;Ljava.util.Map;)Lsqlj.runtim e.profile.RTStatement;(c.java:112)
at sqlj.runtime.ExecutionContext$StatementStack.setSt atement(Lsqlj.runtime.profile.ConnectedProfile;ILs qlj.runtime.profile.BatchContext;Ljava.util.Map;)L sqlj.runtime.profile.RTStatement;(ExecutionContext .java:1088)
at sqlj.runtime.ExecutionContext.registerStatement(Ls qlj.runtime.ConnectionContext;Ljava.lang.Object;I) Lsqlj.runtime.profile.RTStatement;(ExecutionContex t.java:622)

The packageset is correct and exist. All other conditions are also
correct. (precompile,bind...)
Nov 12 '05 #1
1 3050
the applicationserver is weblogic 8.1.

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

ka***********@finanzit.com (chaos) wrote in message news:<de**************************@posting.google. 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 applicationcontainer (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.ibm.db2.jcc.a.da;)I(bx .java:33)
at com.ibm.db2.jcc.a.bx.c(Lcom.ibm.db2.jcc.a.da;)V(bx .java:44)
at com.ibm.db2.jcc.c.bc.j(Lcom.ibm.db2.jcc.a.ct;)V(bc .java:284)
at com.ibm.db2.jcc.c.bc.f(Lcom.ibm.db2.jcc.a.ct;)V(bc .java:98)
at com.ibm.db2.jcc.c.q.f(Lcom.ibm.db2.jcc.a.ct;)V(q.j ava:119)
at com.ibm.db2.jcc.c.b.a(Lcom.ibm.db2.jcc.a.by;)V(b.j ava:1655)
at com.ibm.db2.jcc.a.by.b(Lcom.ibm.db2.jcc.a.cq;)V(by .java:35)
at com.ibm.db2.jcc.a.cd.b(Lcom.ibm.db2.jcc.a.cq;)V(cd .java:41)
at com.ibm.db2.jcc.a.f.b(Lcom.ibm.db2.jcc.a.cq;)V(f.j ava:123)
at com.ibm.db2.jcc.a.f.j(Lcom.ibm.db2.jcc.a.cq;)V(f.j ava:314)
at com.ibm.db2.jcc.c.a.j(Lcom.ibm.db2.jcc.a.cq;)V(a.j ava:450)
at com.ibm.db2.jcc.a.f.c(Lcom.ibm.db2.jcc.a.cq;)V(f.j ava:201)
at com.ibm.db2.jcc.a.cr.a(Lcom.ibm.db2.jcc.a.j;)V(cr. java:1624)
at com.ibm.db2.jcc.a.l.prepareSQLJStatement(Ljava.lan g.String;ILcom.ibm.db2.jcc.SQLJSection;Lcom.ibm.db 2.jcc.SQLJColumnMetaData;Lcom.ibm.db2.jcc.SQLJColu mnMetaData;ZZIIII)Lcom.ibm.db2.jcc.SQLJPreparedSta tement;(l.java:2004)
at com.ibm.db2.jcc.sqlj.f.<init>(Lcom.ibm.db2.jcc.SQL JConnection;Lcom.ibm.db2.jcc.sqlj.EntryInfo;Lcom.i bm.db2.jcc.sqlj.StaticPackage;Lsqlj.runtime.profil e.BatchContext;Z)V(f.java:205)
at com.ibm.db2.jcc.sqlj.c.getStatement(ILsqlj.runtime .profile.BatchContext;Ljava.util.Map;)Lsqlj.runtim e.profile.RTStatement;(c.java:112)
at sqlj.runtime.ExecutionContext$StatementStack.setSt atement(Lsqlj.runtime.profile.ConnectedProfile;ILs qlj.runtime.profile.BatchContext;Ljava.util.Map;)L sqlj.runtime.profile.RTStatement;(ExecutionContext .java:1088)
at sqlj.runtime.ExecutionContext.registerStatement(Ls qlj.runtime.ConnectionContext;Ljava.lang.Object;I) Lsqlj.runtime.profile.RTStatement;(ExecutionContex t.java:622)

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

Nov 12 '05 #2

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

Similar topics

5
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...
1
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...
1
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
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...
2
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
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
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...
3
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
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!...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

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.