Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Batch Update Problem Help required.

 
Devesh H Rao
Ranch Hand
Posts: 687
Hibernate jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I have a java class in which i am calling a batch update statement on a prepared statement but i am getting an exception which says
" java.lang.UnsatisfiedLinkError: SQLBindShortArray "
The update and execute queries run fine so i suppose there is no problem with the connection as such this problem arises only in case of batch update proble.
we are using DB2 as the database
any help or references regarding the problem will do...
Devesh Rao
 
Kevin Mukhar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consulting the Javadoc for UnsatisfiedLinkError gives this explanation:
public class UnsatisfiedLinkError
extends LinkageError
Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native.
In other words, the driver relies on native code libraries (.dll for Win, .so for Solaris) to do its work. It cannot find the native code library that contains the function SQLBindShortArray. This may mean that the library is not on your system, or it might be on your system but not on the PATH (Win) or LD_LIBRARY_PATH (Unix).
 
Devesh H Rao
Ranch Hand
Posts: 687
Hibernate jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi kevin..
Thanx for the response ...
we had debugged to the point that the drivers were not supporting the native call but we first worked with the database and appserver both on windows o/s machines and everything worked fine.
The problem started arising when we moved the database on to a linux o/s machine
we are using the same jdbc drivers and app server
version and the configuration is also the same the only difference being the database is now hosted on a different o/s ..as you suggested we will check if previously we were using the system variables to provide the path to the drivers and rectify it ....
can u suggest any other things we need to check now that the database is on a linux based system..
Devesh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic