hi all,
i install java application with socket server that connect to access database inside the server and i create a client application that connect to the server and send sql statement to be executed by the server . i install the client application on 5 computers the first entry is inserted correctly but when i move to another computer then access to the old computer it does not allow insertion
lena1990
-3
Junior Poster in Training
Recommended Answers
Jump to PostWithout seeing the relveant code it's impossible for anyone to know what's wrong with your application.
Jump to PostHow many times have we said this in the Java forum...
Never NEVER NEVER do this when writing new code:} catch (Exception e) { }
If/when there is an error you just told Java that you didn't want to know anything about it, and please …
Jump to Postput an
e.printStackTrace();
in all your catch blocks (that's at least 3 different places), and run the application again, so you can see if Java is detecting any errors.
Jump to PostOK, so all three catch blocks now have printStackTraces.
When you say " it does not allow insertion" exactly what do you see? You have lots of println in your code to trace what's happening (which is a very good thing to do!), so what do they tell you when …
Jump to PostIs this what you are saying and/or implying?:
the client is sucessfully connected to the server
the client has definitly sent a query
the server has not received a query
you have a printStackTrace in every catch block, but no exceptions are reported
All 17 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
lena1990
-3
Junior Poster in Training
lena1990
-3
Junior Poster in Training
lena1990
-3
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
stultuske
commented:
the most reliable reply to "no exceptions are thrown" that always seems to fit ...
+14
lena1990
-3
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
lena1990
-3
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
lena1990
-3
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
lena1990
-3
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
lena1990
-3
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
lena1990
-3
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.