Welcome, Guest
Username: Password: Remember me

TOPIC: Run Simulation - Java error

Run Simulation - Java error 6 months 3 weeks ago #1016

  • IanB
  • IanB's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Karma: -2
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 6 months 3 weeks ago #1017

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 410
  • Thank you received: 51
  • Karma: -112
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 6 months 3 weeks ago #1018

  • IanB
  • IanB's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Karma: -2
Running as Admin seems to have fixed it. Tks
The administrator has disabled public write access.

Run Simulation - Java error 6 months 3 weeks ago #1019

  • IanB
  • IanB's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Karma: -2
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 6 months 3 weeks ago #1021

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 410
  • Thank you received: 51
  • Karma: -112
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: 6 months 3 weeks ago by fatkhrus.
The administrator has disabled public write access.
Go to top