|
To answer the questions:connection
- No, WAS is not trying to connect to itself. It runs on a separate
system
and connects to a database system.
- The SQL is a simple stored procedure call
- The System.Out log shows the error for the missing SQL package in the
QGPL library
This is followed by a stack trace, which was caused by the JDBC
errorthat
- The target system is not on the same box
The error seems to point to an i-specific problem but don't know what
is yet.WAS
Thanks,
Todd
"Gary L Peskin"
<garyp@xxxxxxxxxx
om> To
Sent by: "'Java Programming on and around
java400-l-bounces the iSeries / AS400'"
@midrange.com <java400-l@xxxxxxxxxxxx>
cc
2008-08-19 17:20 Subject
RE: QSQCLIPKGx
Please respond to
Java Programming
on and around the
iSeries / AS400
<java400-l@midran
ge.com>
We should take a step back, I think, since this works fine on your PC. I
-suspect- that this has to do with your trying to connect back to your
6.1 V5R4 system from itself using DRDA.by
What does the SQL statement that you're passing to the JDBC driver look
like? Does the stack trace for the "SQL package..." error indicate that
this exception arises from an action being initiated by your program or
WAS itself? Is the DB2/400 system that you're trying to connect to onthe
same box as WAS. If so, have a look at the Integrated Solutions Consoleshould
at
Resources -> JDBC -> Data Sources -> Database name. I don't have an
iSeries
copy of WAS but I'm used to one on zSeries z/OS. The Database name
be blank if you're trying to connect to a local instance to DB2.following
HTH,
Gary
-----Original Message-----[mailto:java400-l-bounces@xxxxxxxxxxxx]
From: java400-l-bounces@xxxxxxxxxxxx
On Behalf Of TAllen@xxxxxxxxxxxxTo
Sent: Tuesday, August 19, 2008 1:31 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: QSQCLIPKGx
The user CCSID is set to the system value, which is 65535 (none), as are
all users. I don't know that I can change that.
The exact error message is:
java.sql.SQLException: INTERNAL ERROR: Creation of DB2Driver object for
registering with DriverManager failed. ->
com.ibm.db2.jdbc.app.DB2JDBCDataException: CCSID value is not valid.
This is the result of calling the following Java command, asnoted in the
IBM page.
JAVA CLASS(com.ibm.db2.jdbc.app.DB2PackageCreator) ('system' 'user'
'password')
Thanks,
Todd
CRPence
<CRPbottle@yahoo.
com>
Sent by: java400-l@xxxxxxxxxxxxcc
java400-l-bounces
@midrange.comSubject
Re: QSQCLIPKGx
2008-08-19 15:09
Please respond to
Java Programming
on and around the
iSeries / AS400
<java400-l@midran
ge.com>
A SWAG given no details of what are the "several errors that the
CCSID value is wrong", in neither message ID nor text:
For the user profile under which the SQL work is being performed,
issue the CL request on a command line for the server:
DSPUSRPRF TheUserProfile /* Review the CCSID setting */
Presumably the CCSID setting shown by the DSPUSRPRF request is *HEX
or 65535, instead of an EBCDIC CCSID which enable conversion to ASCII.
The recovery is probably achieved by issuing the CL request on a command
line for the server, then establishing a new connection with that user:
CHGUSRPRF TheUserProfile CCSID(Valid_CCSID) /* A valid CCSID for US
English EBCDIC is 37 */
Regards, Chuck
TAllen@xxxxxxxxxxxx wrote:
I have a WAS 6.1 server on a V5R4 system that is throwing the
noterror when a JDBC connection is attempted.
com.ibm.db2.jdbc.app.DB2DBException: SQL package QSQCLIPKGA in QGPL
912.ibm.com/s_dir/slkbase.NSF/1ac66549a21402188625680b0002037e/460d52a956268found at DRDA Server.https://www-
Searching around brought me to the following page.
f
57862569de004e16d8?OpenDocumenterrors
This looked promising but when I run the Java class I get several
that the CCSID value is not valid.
Has anyone seen this before or have any suggestions? By the way, this
works fine on a Tomcat server running locally on my PC.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.