I have made a small server which accepts a client request. The code is as following.
But i am getting an error message as: Exception in thread "main" java.lang.NullPointerException
at ServerSide.main(ServerSide.java:24)
Not a priveleged Userjava.net.BindException: Address already in use: JVM_Bind
i think the problem is with the port number that i am using, but i tried different port numbers and error still exist, please help,
Regards,
Aman
Campbell Ritchie wrote:And which line is the Exception thrown from?
The exception is trown at following:
and
And the console result is as : Not a priveleged Userjava.net.BindException: Address already in use: JVM_Bind
Exception in thread "main" java.lang.NullPointerException
at ServerSide.main(ServerSide.java:22)