« Back to Technical Questions

RE: ava.lang.NumberFormatException

Combination View Flat View Tree View
Threads [ Previous | Next ]
running             CMEProviderConfig providerConfig = new CMEProviderConfig("config.txt"); produces My config.txt:   Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:417) at java.lang.Integer.valueOf(Integer.java:554) at com.cisco.cme.cti.SmartProperties.getIntValue(SmartProperties.java:89) at com.cisco.cme.cti.CMEProviderConfig.createCMEProviderConfig(CMEProviderConfig.java:174) at com.cisco.cme.cti.CMEProviderConfig.(CMEProviderConfig.java:82) at ucxsi.console.UCXSIConsole.main(UCXSIConsole.java:105)   Config.txt: # specifies the ip address of the interface that you want to use localHost = 10.0.0.200 # specifies the SIP port on which you want to listen for CUCME events localPort = 5070 #Specifies the transport layer protocol you want to use controlTransport = tcp subscriptionTransport = udp # Specifies the CUCME ip address proxyHost = 192.168.1.54 #Specifies the CUCME SIP port (it is 5060 by default) proxyPort = 5060 ##Username and Password #These are the usernames and passwords configured by the CLI : # ‘xml user dummyuser password cisco’ user=xml password=1234 # this is the name of the Session server configured on CUCME for accepting # registrations from the UCXSI SDK application. The CLI is: # voice register session-server 1 # register-id sampleapp # sessionServer = sampleapp

Hi Paolo,
please share your complete code so that we can take a look.
Thanks,
Raghavendra

RE: ava.lang.NumberFormatException
Answer
12/12/12 11:18 AM as a reply to Raghavendra Gutty Veeranagappa.
That single line is the complete code, plus import for sdk and mininimal Java main class definitions.   Maybe post your sample code that works for file-base CMEProviderConfig    

Hi Paolo,
 
please refer sample codes in documentation section
http://developer.cisco.com/web/ucxapi/docs
 
Thanks,
Raghavendra