• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java webserver with newFixedThreadPools is not responding  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating a java web server that is a part of a game of quiz. For testing purposes, I have included a counter. The server has a FixedThreadPool that are handling the threads.

The server has a Bufferedreader that will collect data from a database and a Printstream which I will use to write the output to a client. Now, the intention with Printstream is to print out the result of the counter. But when I run the server nothing happens, the printStreamn is not working as intended. There is no output in the terminal and the client is not receiving anything from the server. I am trying to solve this, but it's over my head. What is wrong?

Server



Client
























 
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is the Client class executed for testing?  Is there a driver class?
 
Josef Lundström
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! The client is working now... But it doesn't print out to the TextArea.
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can the code be compiled and executed for testing?
 
Norm Radder
Rancher
Posts: 2240
28
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!