Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / April 2005

Tip: Looking for answers? Try searching our database.

JDBC Little Endian / Big endian problem with DB2 & WebSphere

Thread view: 
ClimberBear - 25 Feb 2005 13:43 GMT
Hi,

I've got a very strange problem with a Websphere 5.1 cluster attached to DB2
database in Mainframe z/OS.

I have a J2EE deployed application running normally fine agains the DB2
host. But, sometimes, the application stop working. In the moment that
application fails, the only way to get it working again is to restart
WebSphere server or JDBC pool.

After diagnose the problem we see a normal SELECT like

SELECT MYCOLUM FROM MYTABLE WHERE A=?

where A is an integer column, and we set the variable using JDBC setInt
method.
The code is fixed, like

mystatement.setInt(1,1); // The column ALWAYS is set to 1

The SELECT works fine regullarly, and we see the DB2 Host Trace
SELECT MYCOLUMN FROM MYTABLE WHERE A=?
PARAMETER MARKER 1 = 1

but when it begins failing, we see
SELECT MYCOLUMN FROM MYTABLE WHERE A=?
PARAMETER MARKER 1 = 16777216

The second number is 1, but with the bytes inverted. I suspect that, in a
determinated moment, the variable suffers a Big Endian -> Little Endian
conversion incorrectly.

Could you help me?

IBM Spain is working in the problem, but any suggestion, comment or
workaround will we welcome.

Jose Manuel
ClimberBear - 10 Mar 2005 18:49 GMT
Hi,

I have confirmed that the problem is that the int parameters are inverted
from little endian to big endian.

I have reproduced the problem with diferent SELECTs, always failing with int
fields.

Please, I'm totally desesperated. Do any of you have any suggestion (even
nonsenses). It will be welcome

"ClimberBear" <yomismo_QUITE_ESTO_SPAMERO@jmalbarran.com> wrote in message
news:...
> Hi,
>
[quoted text clipped - 35 lines]
>
> Jose Manuel
Richard Che So - 11 Apr 2005 16:36 GMT
Hi,

The company I work for has the same problem with DB2/Websphere.. Has
someone forund a work around or Is there an fix pack or update from IBM ??

Thanks

Email at: richeso(xx... xxat ....xx)hotmail.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.