473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 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 3114
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!...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
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...
0
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...
0
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...
0
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...

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.