• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Batch Update Problem Help required.

 
Ranch Hand
Posts: 687
Hibernate jQuery Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic