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

Problem storing a vector

 
james wilson
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem when trying to retrieve a vector from a mySQL database I get a EOFException, the code is as below;
to write;

to read;

Is there any obvisous mistake that I am making, because I cannot see it and I am tearing my hair out!
Thanks in advance
James Wilson
Where there's a will there's a way.
Where there's a way there's a java exception!
[ Edited by Dave to format code ]
[This message has been edited by David O'Meara (edited December 04, 2001).]
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what does sqlQuery look like after you've executed
sqlQuery="UPDATE user SET dbTime = ('"+vectordata+"') WHERE dbUserId = ('"+userid+"')";

What's the EOF exception? it's not from the DB is it?
 
james wilson
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the offer of help Adam, but i decided to take an alternative approach, and store the inofrmation in a seperate table, thus negating the need for a vector.
Thanks anywho.
James
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic