array index error while starting zap 2.3.0.1

145 views
Skip to first unread message

Sabin Ranjit

unread,
May 8, 2014, 12:33:09 AM5/8/14
to zaprox...@googlegroups.com
hi,
Im trying out zap 2.3.0.1 since few days, and im getting this error saying array index out of range:73 while starting the zap. I can click OK and use zap though.
Is this is the problem with my laptop or its problem of zap? Im using windows 8.



thanks

Regards,

sabin

thc...@gmail.com

unread,
May 9, 2014, 11:59:28 AM5/9/14
to zaprox...@googlegroups.com
Hi.

It's a problem with one of the add-ons and with ZAP.

Would you mind check ZAP's log file and provide the exception stack trace? (file zap.log located in ZAP's default directory or the directory manually specified [1]).
It should be after: "ERROR org.parosproxy.paros.extension.ExtensionLoader".


[1] https://code.google.com/p/zaproxy/wiki/FAQconfig

Best regards.
--
You received this message because you are subscribed to the Google Groups "OWASP ZAP User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zaproxy-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sabin Ranjit

unread,
May 13, 2014, 6:03:06 AM5/13/14
to zaprox...@googlegroups.com
i didnt see the log file in the my system ( C:\Program Files (x86)\OWASP\Zed Attack Proxy\log). is there any other place to look for?
thanks

regards


--
You received this message because you are subscribed to a topic in the Google Groups "OWASP ZAP User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zaproxy-users/D5Z_LT1t3Qg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zaproxy-user...@googlegroups.com.

thc...@gmail.com

unread,
May 13, 2014, 1:17:01 PM5/13/14
to zaprox...@googlegroups.com
Hi.

That's the installation dir, you should look in "C:\Users\<username>\OWASP ZAP".

Best regards.

Cosmin Stefan-Dobrin

unread,
May 16, 2014, 8:03:47 AM5/16/14
to zaprox...@googlegroups.com
Hi,

I'm getting the same issue after installing the BrowserView extension.

Relevant errors while starting ZAP (and also right after installing):
 [Thread-9] ERROR org.parosproxy.paros.extension.ExtensionLoader  - java.lang.UnsatisfiedLinkError: Can't load library: ~/.ZAP_D/plugin/amd64/libglass.so
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Can't load library: ~/.ZAP_D/plugin/amd64/libglass.so
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:284)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:127)
    at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:182)
    at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:199)
    at org.zaproxy.zap.extension.browserView.BrowserPanel.<init>(BrowserPanel.java:35)
    at org.zaproxy.zap.extension.browserView.ResponseBrowserView.<init>(ResponseBrowserView.java:48)
    at org.zaproxy.zap.extension.browserView.ExtensionHttpPanelBrowserView$ResponseBrowserViewFactory.getNewView(ExtensionHttpPanelBrowserView.java:80)
    at org.zaproxy.zap.view.HttpPanelManager$HttpPanelManagement.addViewFactory(HttpPanelManager.java:256)
    at org.zaproxy.zap.view.HttpPanelManager.addResponseViewFactory(HttpPanelManager.java:88)
    at org.zaproxy.zap.extension.browserView.ExtensionHttpPanelBrowserView.hook(ExtensionHttpPanelBrowserView.java:44)
    at org.parosproxy.paros.extension.ExtensionLoader.startLifeCycle(ExtensionLoader.java:486)
    at org.zaproxy.zap.control.AddOnInstaller.installAddOnExtensions(AddOnInstaller.java:116)
    at org.zaproxy.zap.control.AddOnInstaller.install(AddOnInstaller.java:71)
    at org.zaproxy.zap.control.AddOnLoader.addAddon(AddOnLoader.java:218)
    at org.zaproxy.zap.extension.autoupdate.ExtensionAutoUpdate.install(ExtensionAutoUpdate.java:776)
    at org.zaproxy.zap.extension.autoupdate.ExtensionAutoUpdate.installNewExtensions(ExtensionAutoUpdate.java:344)
    at org.zaproxy.zap.extension.autoupdate.ExtensionAutoUpdate$3.run(ExtensionAutoUpdate.java:324)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: ~/.ZAP_D/plugin/amd64/libglass.so
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
    at java.lang.Runtime.load0(Runtime.java:795)
    at java.lang.System.load(System.java:1062)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:200)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:88)
    at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:31)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:74)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:81)
....

and, a bit latter on:
[main] ERROR org.zaproxy.zap.ZAP  - Array index out of range: 61
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 61
    at java.util.Vector.get(Vector.java:744)
    at org.parosproxy.paros.extension.ExtensionLoader.runCommandLine(ExtensionLoader.java:343)
    at org.parosproxy.paros.control.Control.runCommandLine(Control.java:264)
    at org.zaproxy.zap.ZAP.runGUI(ZAP.java:395)
    at org.zaproxy.zap.ZAP.run(ZAP.java:240)
    at org.zaproxy.zap.ZAP.main(ZAP.java:116)

OS: Ubuntu 14.04 x64, in case that matters.

Should I put all this in an issue?

Cheers,
Cosmin

thc...@gmail.com

unread,
May 16, 2014, 9:37:38 AM5/16/14
to zaprox...@googlegroups.com
Hi.

It might be better to create two issues one for the first exception (which should be caught (and handled) by the add-on) and the other for the second exception (it's a problem with core which shouldn't try to notify extensions that didn't initialised correctly).

Thanks!
Best regards.

Cosmin Stefan-Dobrin

unread,
May 17, 2014, 5:48:49 AM5/17/14
to zaprox...@googlegroups.com
I've submitted Issue 1201 and Issue 1202. I was thinking that maybe it would be a good idea to try and fix at least 1202 in 2.3.1, if anyone has a good fix idea.

Cosmin

Sabin Ranjit

unread,
May 20, 2014, 12:23:50 AM5/20/14
to zaprox...@googlegroups.com
sorry for late reply. For me the error displayed in the log file is:

2014-05-20 10:03:37,828 ERROR ExtensionLoader - java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\WELCOME\OWASP ZAP\bin\glass.dll
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\WELCOME\OWASP ZAP\bin\glass.dll

    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:284)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:127)
    at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:182)
    at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:199)
    at org.zaproxy.zap.extension.browserView.BrowserPanel.<init>(BrowserPanel.java:35)
    at org.zaproxy.zap.extension.browserView.ResponseBrowserView.<init>(ResponseBrowserView.java:48)
    at org.zaproxy.zap.extension.browserView.ExtensionHttpPanelBrowserView$ResponseBrowserViewFactory.getNewView(ExtensionHttpPanelBrowserView.java:80)
    at org.zaproxy.zap.view.HttpPanelManager$HttpPanelManagement.addViewFactory(Unknown Source)
    at org.zaproxy.zap.view.HttpPanelManager.addResponseViewFactory(Unknown Source)
    at org.zaproxy.zap.extension.browserView.ExtensionHttpPanelBrowserView.hook(ExtensionHttpPanelBrowserView.java:44)
    at org.parosproxy.paros.extension.ExtensionLoader.hookAllExtension(Unknown Source)
    at org.parosproxy.paros.extension.ExtensionLoader.startLifeCycle(Unknown Source)
    at org.parosproxy.paros.control.AbstractControl.loadExtension(Unknown Source)
    at org.parosproxy.paros.control.Control.init(Unknown Source)
    at org.parosproxy.paros.control.Control.initSingletonWithView(Unknown Source)
    at org.zaproxy.zap.ZAP.runGUI(Unknown Source)
    at org.zaproxy.zap.ZAP.run(Unknown Source)
    at org.zaproxy.zap.ZAP.main(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\WELCOME\OWASP ZAP\bin\glass.dll
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)

    at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:200)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:88)
    at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:31)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:74)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:81)
    at com.sun.glass.ui.win.WinApplication$1.run(WinApplication.java:24)
    at com.sun.glass.ui.win.WinApplication$1.run(WinApplication.java:21)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.glass.ui.win.WinApplication.<clinit>(WinApplication.java:21)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatformFactory.java:20)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatformFactory.java:17)
    at com.sun.glass.ui.Application.Run(Application.java:104)
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:274)
    ... 17 more
2014-05-20 10:03:40,705 INFO  PluginFactory - loaded plugin Path Traversal

I hope this will be helpful. thanks.

regards,
sabin
Reply all
Reply to author
Forward
0 new messages