I having trouble running this code. This java class containing this code gets compiled into a jar and uploaded into another application and it runs within that. So I have limited debug capability. Please help.
Hi, I modified the code a little bit. Now it runs for one iteration (i want to run in loop) and then gives a null pointer exception at line 80 (readline()). The other end is a vbscript code that pushes to this socket.
You might need to sort your indentation out.
It's hard to see the flow of the code.
Is there any other stack trace in your logs?
Because the only way that 'in' would be null was if there was an IOException earlier.
posted 1 year ago
The error handling in this code is seriously defective - if there's a problem in line 13, the code should quit. If there's a problem in line 22, the code should quit. In both cases the code proceeds - that's not going to work.
She still doesn't approve of my superhero lifestyle. Or this shameless plug: