Menu

#1390 Java Viewer 2.8.2 doesn't work

None
closed-fixed
None
7
2016-09-20
2016-09-14
No

Since i update java viewer to 2.8.2 version applet stop working...

I try use different version of java 1.7.xx, 1.8.xx. Try to compile java applet from source with different version of jdk - doesn't metter. Version 2.8.2 every time give me this error.

I even try change viewer.viewer attribute to public after that i stop seening this error, but from that moment ui dosn't open.

Information:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.runOnEDTAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.instantiateApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at com.sun.deploy.uitoolkit.impl.awt.OldPluginAWTUtil.invokeAndWait(Unknown Source)
... 5 more
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: Class com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$1 can not access a member of class com.glavsoft.viewer.Viewer with modifiers "private"
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalAccessException: Class com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$1 can not access a member of class com.glavsoft.viewer.Viewer with modifiers "private"
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
... 20 more

1 Attachments

Discussion

  • Alexander Vinogradov

    by the way if i open applet not from browser, just from local machne start jviewer.jar it's work fine.

     
  • Dmitry @ TightVNC

    Hi Alexander, as you can compile applet from sources please try to change private attribute to public for the Viewer default constructor for you:
    pivate Viewer() { ... // com.glavsoft.viewer.Viewer line 96
    to
    public Viewer() {

    I'll fix and depoy this soon.

     
    • Alexander Vinogradov

      I'm right ? I must change only 1 string at:
      ./src/viewer_swing/java/com/glavsoft/viewer/Viewer.java ?

      I'm asking becouse in that file i saw 2 function:
      1) private Viewer () {....} line 113
      2) private Viewer (Parser Parser) {....} line 121

      and i can't find function at Line 96.

       
      • Dmitry @ TightVNC

        Hi Alexander, I fixed a problem, applet now starts for me. I refreshed distribution files on our site, please download the new ones. Be sure to restart you browser to avoid using cashed applet files. Could you please inform whether the problem solved for you?

         
        • Alexander Vinogradov

          Hello, Dmitry!
          Yes i can confirm that the compiled version worked.

          What about source files at site ? You refresh it too ?

           
          • Dmitry @ TightVNC

            Thank you for your confirmation report.
            Yes, the sources on the site updated too.

             
  • Alexander Vinogradov

    I'm right ? I must change only 1 string at:
    ./src/viewer_swing/java/com/glavsoft/viewer/Viewer.java ?

    I'm asking becouse in that file i saw 2 function:
    1) private Viewer () {....} line 113
    2) private Viewer (Parser Parser) {....} line 121

    and i can't find function at Line 96.

     
  • Alexander Vinogradov

    As is said before i already try to change private Viewer () to public Viewer at Viewer.java at line 113. Right now there is no error, but applet still doesn't work.

    So right now error looks like this: java.io.FileNotFoundException: http://10.57.51.244/com/glavsoft/viewer/Viewer.class

    Maybe i compile something wrong ?

    сен 14, 2016 4:39:07 PM com.glavsoft.viewer.Viewer closeApp
    SEVERE: Applet is stopped.
    basic: Finished applet teardown
    basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter@64f808
    basic: PluginMain.unregisterApplet: 6 from mananger sun.plugin2.applet.Applet2Manager@1480cf9
    basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@13c1f2e
    security: Expected Main URL: http://10.57.51.244/tightvnc-jviewer.jar
    basic: Plugin2ClassLoader.addURL parent called for http://10.57.51.244/tightvnc-jviewer.jar
    network: Cache entry not found [url: http://10.57.51.244/tightvnc-jviewer.jar, version: null]
    security: SSV validation:
    running: 1.8.0_102
    requested: null
    range: null
    javaVersionParam: null
    Rule Set version: null
    network: Created version ID: 1.8.0.102
    network: Created version ID: 1.8.0.102
    security: continue with running version
    security: JUT Record:
    plugin2
    http://10.57.51.244/: viewonly=no code=com.glavsoft.viewer.Viewer sshuser= remotecharset=standard sshport= allowclipboardtransfer=yes password= host=10.57.51.245 colordepth= height=500 showcontrols=no sshhost= opennewwindow=yes tunneling=no archive=tightvnc-jviewer.jar scalingfactor=100 encoding=Tight jpegimagequality= sharedesktop=yes port=5900 codebase=http://10.57.51.244/ width=500 converttoascii=no compressionlevel= localpointer=On allowcopyrect=yes appletgoodbyeurl=about:blank app_model=eJx9U8FuEzEQnU3SJqVRD4FeipAQKkJCwqaopYeeoqqHokWq2sLdbJyso43t2rPbTQ+V+AkkDvwB/8Gdb+DKHyDBeLNJihDxwV7bb2bee579+hPWvIOHiZkwn2s2kDYzU+bkkPWtfWsGMoPZiBpwL4ZOQkcfhJcIW/FYFIJrifzdeXwUw+ZA+sQpi8pohN7sOhN6xC/QKT0iSE+WKLUnwLn0JneJ9AjbM2SOKuN958Q0Vh4J3B0Lt4BdwS00qX5mEhEKhH0Uw8ZEKH2cCV8BGhTkZZI7hdPAHeF5TMo4KeMzZZyU8bmy3Ys7WCq4hgozWSdq4dRSgicrE1wShgLXC6kHxlWRpSU/u0ERI2sYWfPp6eHrnV8/XBPap9BJhU+PKfgUWtY4JAkix9QEGvPKQ7VkkRqP9XfHOoMmMVm9bxKVuuTveiB0916yg0N2sMde7e8jRDwgNpASIVpbkbtfkQt2s4Xd5cfvjz5/E1+aEBExr25kacOrX7fCXFbudkMXVAcRZXm2omV23yxfbtk+jX+fr11I5+ttcC6s7bmYmvk2RzVKsdDJi3Gh5LV0jBqjugzTJokq/w78jwsPFi4g7AT2o0wU3gyR1WnfV4tdeXvr4PEq5aEjasnQI+ccbFV2h/+Aneh8cveSSq33z87ik0v7B62hIOc=
    сен 14, 2016 4:39:07 PM com.glavsoft.viewer.Viewer <init>
    INFO: TightVNC Viewer version 2.8.2
    cache: No memory CacheEntry: http://10.57.51.244/tightvnc-jviewer.jar
    cache: Failed to recover old CacheEntry for http://10.57.51.244/tightvnc-jviewer.jarfrom C:\Users\all\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\41\1f61a269-675c6b0c.idx
    network: Cache entry not found [url: http://10.57.51.244/tightvnc-jviewer.jar, version: null]
    cache: Failed to recover with latest CacheEntry
    cache: getSignerMap failed to get CacheEntry for http://10.57.51.244/tightvnc-jviewer.jar
    cache: No memory CacheEntry: http://10.57.51.244/tightvnc-jviewer.jar
    cache: Failed to recover old CacheEntry for http://10.57.51.244/tightvnc-jviewer.jarfrom C:\Users\all\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\41\1f61a269-675c6b0c.idx
    network: Cache entry not found [url: http://10.57.51.244/tightvnc-jviewer.jar, version: null]
    cache: Failed to recover with latest CacheEntry
    cache: getSignerMap failed to get CacheEntry for http://10.57.51.244/tightvnc-jviewer.jar
    network: Cache entry not found [url: http://10.57.51.244/com/glavsoft/viewer/Viewer.class, version: null]
    network: Connecting http://10.57.51.244/com/glavsoft/viewer/Viewer.class with proxy=DIRECT
    network: Connecting http://10.57.51.244:80/ with proxy=DIRECT
    java.io.FileNotFoundException: http://10.57.51.244/com/glavsoft/viewer/Viewer.class
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.URL.openStream(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.getResourceAsStream(Unknown Source)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$15.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.findAppletJDKLevel(Unknown Source)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.setApplet(Unknown Source)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.instantiateApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 229254 us, pluginInit dt 158875267 us, TotalTime: 159104521 us
    сен 14, 2016 4:39:07 PM com.glavsoft.viewer.Viewer setLoggingLevel
    WARNING: cannot set logging level to: INFO
    сен 14, 2016 4:39:07 PM com.glavsoft.viewer.Viewer init
    SEVERE: null
    basic: Applet initialized
    basic: Starting applet
    basic: completed perf rollup
    basic: Applet made visible
    basic: Applet started
    basic: Told clients applet is started

     
  • Alexander Vinogradov

    i add file Viewer.class to correct location run applet once again and still no window opened:

    basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@b3e374
    security: Expected Main URL: http://10.57.51.244/tightvnc-jviewer.jar
    basic: Plugin2ClassLoader.addURL parent called for http://10.57.51.244/tightvnc-jviewer.jar
    network: Cache entry not found [url: http://10.57.51.244/tightvnc-jviewer.jar, version: null]
    security: SSV validation:
    running: 1.8.0_102
    requested: null
    range: null
    javaVersionParam: null
    Rule Set version: null
    network: Created version ID: 1.8.0.102
    network: Created version ID: 1.8.0.102
    security: continue with running version
    security: JUT Record:
    plugin2
    http://10.57.51.244/: viewonly=no code=com.glavsoft.viewer.Viewer sshuser= remotecharset=standard sshport= allowclipboardtransfer=yes password= host=10.57.51.245 colordepth= height=500 showcontrols=no sshhost= opennewwindow=yes tunneling=no archive=tightvnc-jviewer.jar scalingfactor=100 encoding=Tight jpegimagequality= sharedesktop=yes port=5900 codebase=http://10.57.51.244/ width=500 converttoascii=no compressionlevel= localpointer=On allowcopyrect=yes appletgoodbyeurl=about:blank app_model=eJx9U8FuEzEQnU3SJqVRD4FeipAQKkJCwqaopYeeoqqHokWq2sLdbJyso43t2rPbTQ+V+AkkDvwB/8Gdb+DKHyDBeLNJihDxwV7bb2bee579+hPWvIOHiZkwn2s2kDYzU+bkkPWtfWsGMoPZiBpwL4ZOQkcfhJcIW/FYFIJrifzdeXwUw+ZA+sQpi8pohN7sOhN6xC/QKT0iSE+WKLUnwLn0JneJ9AjbM2SOKuN958Q0Vh4J3B0Lt4BdwS00qX5mEhEKhH0Uw8ZEKH2cCV8BGhTkZZI7hdPAHeF5TMo4KeMzZZyU8bmy3Ys7WCq4hgozWSdq4dRSgicrE1wShgLXC6kHxlWRpSU/u0ERI2sYWfPp6eHrnV8/XBPap9BJhU+PKfgUWtY4JAkix9QEGvPKQ7VkkRqP9XfHOoMmMVm9bxKVuuTveiB0916yg0N2sMde7e8jRDwgNpASIVpbkbtfkQt2s4Xd5cfvjz5/E1+aEBExr25kacOrX7fCXFbudkMXVAcRZXm2omV23yxfbtk+jX+fr11I5+ttcC6s7bmYmvk2RzVKsdDJi3Gh5LV0jBqjugzTJokq/w78jwsPFi4g7AT2o0wU3gyR1WnfV4tdeXvr4PEq5aEjasnQI+ccbFV2h/+Aneh8cveSSq33z87ik0v7B62hIOc=
    сен 14, 2016 4:54:29 PM com.glavsoft.viewer.Viewer <init>
    INFO: TightVNC Viewer version 2.8.2
    cache: No memory CacheEntry: http://10.57.51.244/tightvnc-jviewer.jar
    cache: Failed to recover old CacheEntry for http://10.57.51.244/tightvnc-jviewer.jarfrom C:\Users\all\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\41\1f61a269-675c6b0c.idx
    network: Cache entry not found [url: http://10.57.51.244/tightvnc-jviewer.jar, version: null]
    cache: Failed to recover with latest CacheEntry
    cache: getSignerMap failed to get CacheEntry for http://10.57.51.244/tightvnc-jviewer.jar
    cache: No memory CacheEntry: http://10.57.51.244/tightvnc-jviewer.jar
    cache: Failed to recover old CacheEntry for http://10.57.51.244/tightvnc-jviewer.jarfrom C:\Users\all\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\41\1f61a269-675c6b0c.idx
    network: Cache entry not found [url: http://10.57.51.244/tightvnc-jviewer.jar, version: null]
    cache: Failed to recover with latest CacheEntry
    cache: getSignerMap failed to get CacheEntry for http://10.57.51.244/tightvnc-jviewer.jar
    network: Cache entry not found [url: http://10.57.51.244/com/glavsoft/viewer/Viewer.class, version: null]
    network: Connecting http://10.57.51.244/com/glavsoft/viewer/Viewer.class with proxy=DIRECT
    network: Connecting http://10.57.51.244:80/ with proxy=DIRECT
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 229254 us, pluginInit dt 1080575298 us, TotalTime: 1080804552 us
    сен 14, 2016 4:54:29 PM com.glavsoft.viewer.Viewer setLoggingLevel
    WARNING: cannot set logging level to: INFO
    сен 14, 2016 4:54:29 PM com.glavsoft.viewer.Viewer init
    SEVERE: null
    basic: Applet initialized
    basic: Starting applet
    basic: completed perf rollup
    basic: Applet made visible
    basic: Applet started
    basic: Told clients applet is started

     
  • Dmitry @ TightVNC

    • assigned_to: Dmitry @ TightVNC
    • Group: -->
     
  • Dmitry @ TightVNC

    • status: open --> closed-fixed
     

Log in to post a comment.