Author Topic: Windows 8, Serial IO problem  (Read 19835 times)

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Windows 8, Serial IO problem
« on: January 18, 2013, 05:54:05 PM »
This is Windows 8 Pro, and was working OK for several weeks until a recent routine upgrade of Java, then Neither Trilogi or the TLSERVER would run. With control panel > remove programs, removed and then installed both (as admin.. and XP SP3 compatibility) first j2re1.4.2_19, and Trilogi 6.45_2. Trilogi now runs OK. TLserver31gives the ?Serial driver not properly installed (was there a recent Java upgrade?) Try running ? instserial2008.exe...? message.  Ran  instserial2008.exe, with no change. Ran TLServer.jar in admin command window, the follow is the output:
 
C:\TRiLOGI\TL6>java -jar TLServer31.jar

String counts = 90
Installation Directory = C:\TRiLOGI\TL6/
Serialio Library: version 9.9.9: build 9191
Copyright (c) 1996-2008 Serialio.com, All Rights Reserved.
os.name="Windows 8"  os.arch="x86"
TRi Amendment1:OS Name =Windows 8
java.lang.UnsatisfiedLinkError: no jspWin in java.library.path: Check that nativ
e library jspWin is in proper directory
java.lang.UnsatisfiedLinkError: Serialio.SerialPortLocal.SerGetPortList()I
java.lang.UnsatisfiedLinkError: Serialio.SerialPortLocal.SerGetPortList()I
        at Serialio.SerialPortLocal.SerGetPortList(Native Method)
        at Serialio.SerialPortLocal.getPortList(SerialPortLocal.java:1594)
        at serialComm.j.c(Unknown Source)
        at serialComm.j.<init>(Unknown Source)
        at serialComm.k.<init>(Unknown Source)
        at TLServer31.TLServer.<init>(Unknown Source)
        at TLServer31.TLServer.main(Unknown Source)


A search for JSPWIN of the C:\ drive gives the output below

 jspWin.dll   Date modified:   &#8206;1/&#8206;18/&#8206;13 &#8207;&#8206;4:25 PM
 C:\Program Files\Java\jre7\lib\ext\x86   Size: 56.0 KB

 jspWin.dll   Date modified:   &#8206;4/&#8206;22/&#8206;01 &#8207;&#8206;12:11 PM
 C:\Program Files (x86)\Java\j2re1.4.2_19\lib\ext\x86   Size: 44.0 KB

 jspWin.dll   Date modified:   &#8206;4/&#8206;22/&#8206;01 &#8207;&#8206;12:11 PM
 C:\Program Files\Java\j2re1.4.2_19\lib\ext\x86   Size: 44.0 KB

 jspWin.dll   Date modified:   &#8206;4/&#8206;22/&#8206;01 &#8207;&#8206;12:11 PM
 C:\TRiLOGI\TL6\java lib   Size: 44.0 KB

Which is the correct size of the JSPWIN file, and at what path should it be located. Is there anything else I need to do?

Thanking in advance.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Windows 8, Serial IO problem
« Reply #1 on: January 18, 2013, 10:01:30 PM »
Can you run TLServer by clicking on "Start" menu and select "i-TRiLOGI 6" and then "TLServer version 3.1". This will invoke the launcher: "C:\Program Files\TRiLOGI\TL6\TLSvrLauncher.exe" to run the TLServer jar file.

Alternatively, open TRiLOGI\TL6 folder and double-click on the TLSvrLauncher.exe  to launch the TLServer.

If this does not work, then Java 7 could be blocking the running of JRE 1.4.2. Try to uninstall Java 7 from your computer first, then install JRE 1.4.2 followed by i-TRiLOGI 6.45 (latest is build 04).

Email: support@triplc.com
Tel: 1-877-TRI-PLCS

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Re:Windows 8, Serial IO problem
« Reply #2 on: January 19, 2013, 06:42:49 PM »
Thanks for the quick reply, I've been trying various things, but here's the important that I did first:  This is Windows 8 pro 32 bit.
1:  Tried to invoke TLSrvrLauncher.exe as suggested, didn't work.
2: Removed both all JAVA's and Trilogi with control panel > remove programs. Deleted all their folders. Restarted, Ran registery mechanic to clean the registery and computer. There were numerous items for Java, and Trilogi removed.
3: Reinstalled only Java j2re-1_4_2_19-windows-i586-p.exe, and then setupTL645b4.exe

Now neither the server or Trilogi will start, either from Start, or clicking on the the *.exe, *.jar, or *.bat files in C:\Trilogi\TL6 folder. All this was done with and without XP SP3 and admin... compatibility.

With command window in admin... mode, see the following. Java is installed, but Trilogi and server still doesn't run.


C:\TRiLOGI\TL6>tl6launcher.exe

C:\TRiLOGI\TL6>tl6.bat

C:\TRiLOGI\TL6>IF EXIST "C:\Program Files (x86)\Java\j2re1.4.2_19\bin\java.exe"
"C:\Program Files (x86)\Java\j2re1.4.2_19\bin\java.exe" -jar TL64.jar

C:\TRiLOGI\TL6>IF EXIST "C:\Program Files\Java\j2re1.4.2_19\bin\java.exe" "C:\Pr
ogram Files\Java\j2re1.4.2_19\bin\java.exe" -jar TL64.jar

String counts = 601
java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.Ac
cessBridge
java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.Ac
cessBridge
        at java.awt.Toolkit.loadAssistiveTechnologies(Unknown Source)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at java.awt.Window.getToolkit(Unknown Source)
        at java.awt.Window.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.JFrame.<init>(Unknown Source)
        at TRiLOGI.TL50.<init>(Unknown Source)
        at TRiLOGI.TL50.main(Unknown Source)

C:\TRiLOGI\TL6>REM The following will run TL64.jar using default JRE. Uncomment
the line to enable it.

C:\TRiLOGI\TL6>REM java -jar TL64.jar

C:\TRiLOGI\TL6>java -jar TL64.jar

String counts = 601
java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.Ac
cessBridge
java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.Ac
cessBridge
        at java.awt.Toolkit.loadAssistiveTechnologies(Unknown Source)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at java.awt.Window.getToolkit(Unknown Source)
        at java.awt.Window.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.JFrame.<init>(Unknown Source)
        at TRiLOGI.TL50.<init>(Unknown Source)
        at TRiLOGI.TL50.main(Unknown Source)

C:\TRiLOGI\TL6>





« Last Edit: January 19, 2013, 06:45:18 PM by cdenk »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Windows 8, Serial IO problem
« Reply #3 on: January 20, 2013, 09:43:17 AM »
This is the first time we receive report of error messages that you reported.

A google search found the following that may shed some light:

http://docs.oracle.com/javase/accessbridge/2.0.2/introduction.htm

So far in previous version of Windows there was never a report of missing accessibility bridge or the need to install accessibility brdige. So it probably has something to do with Windows 8 or the hardware in your PC. I also suspect that the uninstallation of the JRE 7 that came with your windows 8 may have somehow removed the accessibility brdige, leading to this error.

In the oracle website listed above it provides the download link for the accessbridge. You may like to try it to see if the problem can be resolved.

Do let us know if this would resolve the issue and if not, we will try to research for other solutions.



« Last Edit: January 20, 2013, 05:54:31 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Re:Windows 8, Serial IO problem
« Reply #4 on: January 20, 2013, 10:25:19 AM »
Thanks for the reply, I'll dig into that later today. This isn't the first issue I have had with Windows 8. This is a fresh full install (4 weeks ago), and not an upgrade of XP. Intellicad, an Autocad look alike has VBA problems. Apparently it runs OK on the upgrade or a VM, but Microsoft deleted a bunch of DLL's or other files with 8 that were there earlier. At least when the XP upgrade came, we knew which hardware wouldn't work, and had to spend some money. :(  With 8 it's all a mystery, and haerder to work with the techie sort of stuff. With what time I have spent on 8, I could have got proficient with Ubuntu Linux which is a lower priority. But it's probably time to dump the backward compatibility to 1980's hardware, and start from scratch with current needs.

I still have Trilogi running on XP Pro, so I'm not hurting with Trilogi. :)

Thanks again, will keep you posted. :)

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Re:Windows 8, Serial IO problem - SOLVED
« Reply #5 on: January 20, 2013, 06:16:41 PM »
SOLVED MOSTLY      :)
This morning, I updated the current Java Version 9, and late afternoon (GMT -5) there was a new update available (Update 9 (build 1.7.0_09-b05) which I installed, and things started working. It seems strange that there would be 2 updates close together, and problem solved. Here's what I think I did. All the Windows 8 compatibilities are set: none, and no admin...
1: Install  j2re-1_4_2_19-windows-i586-p.exe
2:  Install  Java 9 update from Java control panel update.
3: Install the Java Access Bridge fix per:  http://docs.oracle.com/javase/accessbridge/2.0.2/introduction.htm  It's not too difficult. I found some files changed size by ? or 2. Some files were older, and others newer than installed. I used the newest files in all cases.
4: Install:  SetupTL645b4.exe
5: Set the shortcuts for the desktop, start, and startup for only server to:
Desktop: C:\TRiLOGI\TL6\TL6Launcher.exe
Start: C:\TRiLOGI\TL6\TL6Launcher.exe
Startup: "C:\Program Files\Java\j2re1.4.2_19\bin\java.exe" -jar TLServer31.jar

Everything seems to be working OK, but would like to see Tlserver start minimized, but for some reasons when setting the shortcut properties to minimized start, it doesn't  start at all.

Hope this helps, and thanks again for the prompt replies. :)

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Re:Windows 8, Serial IO problem - SOLVED
« Reply #6 on: January 27, 2013, 01:17:24 PM »
I had this issue appear again today, after numerous restarts of the computer, transfer of files to the PLC, and On-line monitoring, suddenly no server. A whole lot easier fix: Rename the file: C:\Trilogi\TL6\Tlserver3.cfg to something else so it won't be loaded. Might be able to just delete it, I'll probably do that later.

I had been working on E-mail issues, and probably changed a server or port number, but this seemed to fix it.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Windows 8, Serial IO problem
« Reply #7 on: January 27, 2013, 03:53:30 PM »
Thank you for reporting the tips. This is definitely the first time we learn of a report as such (something to do with Windows 8?).

It could mean the TLServer.cfg file have been damaged when TLServer quit and tried to write to it. Its content is not that important so if you delete it TLServer will create another one when it quits. You can try to assign this file with a "Read Only" attribute so that it wouldn't get corrupted again.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Re:Windows 8, Serial IO problem
« Reply #8 on: January 27, 2013, 04:10:13 PM »
I think this is mainly a Windows 8 issue. I have been using Trilogi for 6 years, but as a hobbiest that have one PLC, you could call me a light user, where there may be a couple of months between using it. I haven't had these issues with XP PRO over that time.

I would much rather have the upgrade to XP issues, where they were nearly all hardware, and needed to buy a printer or something, than the compatibility problems of 8. I also have issues with Intellicad, and Autocad look alike. VBA doesn't work. Time to abandon PC 1980's compatibility, and start with all fresh.