Author Message
AnuV
Joined: Nov 4, 2013
Messages: 3
Offline
Hi

The configurations are right in TSAPI.PRO and Agent.Properties File. Config folder is also available in class path . However I get an error while running the AgentViewApp .. Please advise what could be the reason for the issue. Attached the screeshot
  • [Thumb - AgentViewApp_Error.PNG]
[Disk] Download
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
As far as I can tell, that IOException is generated by:

properties.load(new FileInputStream(new File(url.getFile())));

in JTAPIInterface.readPropFile().

It means that the application is not able to find your properties file. Make sure that your properties file is correct and in the correct location. Make sure you have followed all the steps in section 5.11 of "Application Notes for the JTAPI Agent Viewer Sample Application"

Martin
Anonymous

Martin

Its able to locate the file. I believe if the file is not found it would throw the following error
"An error occurred while Agent.Properties is not found at the application running location".(Troubleshooting section 6 ) . Initially I got the quoted error, after pointing the config folder to class path , the quoted error was not popping up. However I got the other error "Error occurred while trying to open IO Stream"

Also the parameter values are right in Properties file.

MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
You will need to find out the cause of the IOException. I suggest you add something like the following to the Catch block:

ioex.printStackTrace();

This should help you to track down your problem.

Martin
Go to:   
Mobile view