denied connection

Our B2B Server, BC 4.0.2 can’t connect with any server, even which are our intranet. The server got next error.

java.lang.NumberFormatException: null

Does somebody can help me?

Thanks

How do you mean connect?
Are you doing a remote invoke using a remote server alias?
Did you write a Java service that directly calls the Java client API?
What is/are the version(s) of the B2B Servers that you are trying to connect to?