Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

abnormal window closing!!!  RSS feed

 
kriti sharma
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am working on an data upload-download utility made in java.at start it offers a window with three buttons:upload,download,cancel and a textarea.as we press the buttons,respective actions are taken.when i transfer data(about 1000 rows) from MS Access to MS Access,the program works fine and after transfer is completed the window still exists.but when i transfer the same data from Oracle to MS Acess or vice-versa,in the end,the window disappears on its own.i want the window to stay open after the transfer is complete.why is this abnormal behaviour happening nad what can i do to rectify it?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea what's causing your problem. You provided a good explination of the problem, but no real data for us to debug. Are there any error messages on the dos/shell screen? Is there some code you could show us? Maybe the 2 different transfer methods between the 2 differen types of DB's? Maybe you are doing something in one of those methods you are just missing?
Like I said, it's hard to determine with the information you provided.
 
kriti sharma
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the code remains the same for the two transfers only the connectivity to the database changes.i cannot show you the code as it is distributed over a number of java files.the tomcat console shows a socket error nad that is because the other side disconnects as soon as the transfer is complete.how to stop breaking this network connection basically?
 
clio katz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
socket question or window question?
socket question: (probably better handled in other forum but...) you might pose another question (along with the socket code) to ask how to keep the socket open unconditionally ...
window question: have you tried

?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!