The code at line 23 had a null variable when it was executed. Look at line 23 and find what variable was null and then backtrack in the code to see why that variable did not have a non-null value.
Type: Posts; User: Norm
The code at line 23 had a null variable when it was executed. Look at line 23 and find what variable was null and then backtrack in the code to see why that variable did not have a non-null value.
Please explain what "does not work"?
Can you post the code that shows what you did and explain what happened when it was executed?
Can you explain what that means?
Doing a read() would block/wait for a response.
I wouldn't close the connection after sending the request. Wait until the response is received.
Put calls to the printStackTrace() method in all the catch blocks.
getLocation() should return a...
Server waits for a request.
Client sends request for a file
Server sends response: requested file or error message
Have the client send the name of the file it wants to the server. The server should read the name sent by the client and test if the file is available. If the file is found, read and send it to the...
The threads have been merged
Can you explain what that means? Try testing by sending a small file with a simple content that is easily verified. Say one or two lines with simple text like:...
Please explain what the problem is.
What happens when you execute the code now?
You need to post code that will compile if you want anyone to test it.
The posted code is missing import...