How to overcome from following related error ***java.lang.NumberFormatException: For input string:"(space)<port_number>"....***
book
Article ID: KB0083728
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Salesforce.com
6.2.0
Description
While performing a connection with Salesforce through a proxy you have to put proxy parameters either inside TIBCOBusinessStudio.ini and/or inside VM arguments.
then if you have kept a space before the port number inside the the VM arguments, you can do a successful connection with Salesforce through a proxy. But if you have put a space before the port number inside the TIBCOBusinessStudio.ini file, then you will get following error.
***** java.lang.NumberFormatException: For input string:"(space)<port_number>".... *****
Issue/Introduction
Error ***java.lang.NumberFormatException: For input string:"(space)"....***
Environment
Tibco ActiveMatrix BusinessWorks 6.3.5
Resolution
You will see a java.lang.NumberFormatException if you put a space before the port number inside TIBCOBusinessStudio.ini file because the property Dcom.tibco.plugin.salesforce.proxyPort accepts a string value and tries to convert it into a number. If the string value does not contain a valid number (as in our case, i.e., a space is not a valid number) then it gives the following error.
***** java.lang.NumberFormatException: For input string:"(space)<port_number>".... *****
You will not see this error if you put space in front of port value inside VM arguments because VM arguments ignore the space. The next time, if you will try to edit the VM arguments again then you will not see the space in front of port number value.