473,388 Members | 1,408 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,388 software developers and data experts.

java.lang.ExceptionInInitializerError: java.lang.ArrayIndexOutOfBoundsException

Hi,

I am new to DB2. I am getting this error while loading the DB2Driver. I
don't have any idea about where i might have gone wrong. please help
me.

Below is the stack trace.

Stack Trace:
java.lang.ExceptionInInitializerError:
java.lang.ArrayIndexOutOfBoundsException
at COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv(Native Method)
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(DB2Driver.ja va:245)
at COM.ibm.db2.jdbc.app.DB2Driver.<clinit>(DB2Driver. java:130)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)

Thanks in advance,
Ganesh Majji

Jun 15 '06 #1
6 6452
ga******@gmail.com wrote:
I am new to DB2. I am getting this error while loading the DB2Driver. I
don't have any idea about where i might have gone wrong. please help
me.


Unfortunately my crystal bowl stays dark because you didn't mentioned
your operating system and which DB2 version you're using.

For Windows, *nix and OS/2 please ensure that your application is using
the db2java.zip from SQLLIB\java. Check if there are multiple
db2jdbc.dll on your system, remove any extra db2jdbc.dll files on the
system. Ensure that you can connect to DB2 with the DB2 workstation
tools from your machine.
Jun 15 '06 #2
sorry for not mentioning the system details.

Operation System is SunOS (Solaris)
and DB2 SDK 8.2.2

Thank you very much for the kind response,
Ganesh

Bernd Hohmann wrote:
ga******@gmail.com wrote:
I am new to DB2. I am getting this error while loading the DB2Driver. I
don't have any idea about where i might have gone wrong. please help
me.


Unfortunately my crystal bowl stays dark because you didn't mentioned
your operating system and which DB2 version you're using.

For Windows, *nix and OS/2 please ensure that your application is using
the db2java.zip from SQLLIB\java. Check if there are multiple
db2jdbc.dll on your system, remove any extra db2jdbc.dll files on the
system. Ensure that you can connect to DB2 with the DB2 workstation
tools from your machine.


Jun 15 '06 #3
Yes I am able to connect to the DB2 from the Command Line Processor.

Bernd Hohmann wrote:
ga******@gmail.com wrote:
I am new to DB2. I am getting this error while loading the DB2Driver. I
don't have any idea about where i might have gone wrong. please help
me.


Unfortunately my crystal bowl stays dark because you didn't mentioned
your operating system and which DB2 version you're using.

For Windows, *nix and OS/2 please ensure that your application is using
the db2java.zip from SQLLIB\java. Check if there are multiple
db2jdbc.dll on your system, remove any extra db2jdbc.dll files on the
system. Ensure that you can connect to DB2 with the DB2 workstation
tools from your machine.


Jun 15 '06 #4
ga******@gmail.com wrote:
Yes I am able to connect to the DB2 from the Command Line Processor.


And the other tools are working too (Client configurator, Controlcenter
and so on)? The database exists?

Bernd

Jun 15 '06 #5
yup... got it, problem was with the incompatible version of the driver.

thanks a lot for the responses,
Ganesh Majji

Bernd Hohmann wrote:
ga******@gmail.com wrote:
Yes I am able to connect to the DB2 from the Command Line Processor.


And the other tools are working too (Client configurator, Controlcenter
and so on)? The database exists?

Bernd


Jun 15 '06 #6
ga******@gmail.com wrote:
yup... got it, problem was with the incompatible version of the driver.


Glad to help you.

Bernd
Jun 15 '06 #7

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

Similar topics

1
by: greg.knaddison | last post by:
Hi, I'm trying to use the httpclient within Jython (see http://jakarta.apache.org/commons/httpclient/ for more information on the httpclient). My Jython version is: Jython 2.1 on...
1
by: Matt | last post by:
I run the xalan-java v2.60 command line: java org.apache.xalan.xslt.Process -in test.xml -xsl test.xsl -out test.html But it has the following error: (Location of error unknown)XSLT Error...
2
by: ws_dev2001 | last post by:
Hello all, I am trying to obtain the size of a java object in C by using JNI. As we do not have a proper implementation of this in java, I decided to see if C could provide me some accurate data....
12
by: Andreas Prilop | last post by:
What was the reason to introduce a new attribute "xml:lang" instead of "lang"? This bothers both authors and browsers in different language versions: HTML 4, XHTML 1.0, XHTML 1.1. HTML has only...
18
dmjpro
by: dmjpro | last post by:
The total Exception is ...... JZ006: Caught IOException: java.io.IOException: JZ0I6: An error occured converting UNICODE to the charset used by the server. Error message:...
2
by: Vneha | last post by:
Q:- What is the difference between Sun Java tutorials and Java Language specification? Q:- What if i start studying Java Language Specification and leave the tutorials because i have seen that...
2
by: leninbecse | last post by:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space how can i resolve the above error??i am expecting for your favorable reply Thank you in advance
2
by: Nikhat Khan | last post by:
Hi, I am new to this forum. I just finished making an image processing tool for my college project by manipulating the image pixels. Small size images up to 600-700 kb are loaded properly, but...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...

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.