Welcome, Guest
Username: Password: Remember me

TOPIC: Run Simulation - Java error

Run Simulation - Java error 4 years 3 weeks ago #1016

  • IanB
  • IanB's Avatar
Hi all
When I hit 'Run Simulation' I get two Java errors. ie java.lang.StringIndexOutOfBoundsException:String index out of range:-1. Any idea what could be causing this?
I stripped my project down to minimum but the error still occurs.
Just one screen with two objects, one tag, no servers, no users.
If I click through the two error messages the project does run, albiet minimal..
TIA for any help.
The administrator has disabled public write access.

Run Simulation - Java error 4 years 3 weeks ago #1017

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
This error is happened when user who try to start simulation, doesn’t have rights to write in the folder where installed TeslaSCADA. When app is started it try to create databases. To solve the problem Run app as administrator or copy TeslaSCADA to another folder.

Best regards,
Ruslan
The administrator has disabled public write access.
The following user(s) said Thank You: IanB

Run Simulation - Java error 4 years 3 weeks ago #1018

  • IanB
  • IanB's Avatar
Running as Admin seems to have fixed it. Tks
The administrator has disabled public write access.

Run Simulation - Java error 4 years 3 weeks ago #1019

  • IanB
  • IanB's Avatar
I have another question please.
I have installed mosquitto MQTT broker on my Win7 PC and tested it using mosquito_pub and mosquitto_sub and know it is working (as service).
If I run the command netstat -a it reports as TCP 0.0.0.0:1883 Ian-PC:0 LISTENING
My question is: What do I put in the TeslaScada Server settings to allow it to work through the mosquitto broker.
Mosquitto is installed in C:\Program Files\mosquitto\.
TeslaScada_IDE and runtime are installed in C:\Program Files\TeslaSCADA_IDE\.

TIA, Ian
The administrator has disabled public write access.

Run Simulation - Java error 4 years 2 weeks ago #1021

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
Hello Ian,

When we've tested with mosquito broker we use the settings like at the attached file. We use IP address of PC where broker were installed and port 8883.
Certificates are not mandatory, it's only for ssl connection. I think for tcp connection you don't have to use it.

Best regards,
Ruslan
Last Edit: 4 years 2 weeks ago by fatkhrus.
The administrator has disabled public write access.
Go to top