CustomWebView icon indicating copy to clipboard operation
CustomWebView copied to clipboard

gnu.mapping.SimpleSymbol cannot be cast to java.util.List

Open LincolnJota opened this issue 4 years ago • 20 comments

What and Where? I encountered this problem after verifying that I was doing right according to the source code.

https://github.com/vknow360/CustomWebView/blob/d0db408b4cb5f0256083eb23de6898e50287c1f0/com/sunny/CustomWebView/CustomWebView.java#L835

My blocks: blocks

Error: in title.

LincolnJota avatar Oct 09 '21 18:10 LincolnJota

Thank you. Bug has been identified.

vknow360 avatar Oct 10 '21 00:10 vknow360

Can you check this aix? com.sunny.CustomWebView.zip

vknow360 avatar Oct 17 '21 13:10 vknow360

I have this issue too, I'll try that aix.

UCYT5040 avatar Feb 22 '22 17:02 UCYT5040

I have this issue too, I'll try that aix.

Try using v12beta. (Available in beta branch)

vknow360 avatar Feb 23 '22 10:02 vknow360

Alright, and just to add the aix you sent here didn't work.

UCYT5040 avatar Feb 23 '22 13:02 UCYT5040

v12beta didn't work, same error.

UCYT5040 avatar Feb 23 '22 14:02 UCYT5040

Bug identified, once again. Will be fixed soon.

vknow360 avatar Feb 23 '22 14:02 vknow360

@UCYT5040 Can you check this aix? com.sunny.CustomWebView.zip

Now it uses this method:

public void LoadWithHeaders(String url, YailList headerList) {
        if (headerList.size() != 0) {
            java.util.Map<String, String> header = new HashMap<String, String>();
            String[] str = headerList.toStringArray();
            for (String s : str) {
                String[] s2 = s.split(",");
                header.put(s2[0], s2[1]);
            }
            webView.loadUrl(url, header);
        } else {
            GoToUrl(url);
        }
}

vknow360 avatar Feb 24 '22 14:02 vknow360

Ok I will try it.

UCYT5040 avatar Feb 24 '22 20:02 UCYT5040

It shows this error length=1; index=1 I used both a list and a dictionary for the headers.

UCYT5040 avatar Feb 24 '22 20:02 UCYT5040

@vknow360

Pinging in case you didn't get a notification

UCYT5040 avatar Feb 25 '22 14:02 UCYT5040

It shows this error length=1; index=1 I used both a list and a dictionary for the headers.

Try passing a list of CSV headers. For example: make a list (key,value)

vknow360 avatar Feb 25 '22 14:02 vknow360

I did them like this neither worked https://img.ucyt5040.repl.co/img.png

UCYT5040 avatar Feb 27 '22 17:02 UCYT5040

@vknow360

UCYT5040 avatar Mar 02 '22 13:03 UCYT5040

You have to pass headers in this way: snapshot_ai2 appinventor mit edu_1646300258166

vknow360 avatar Mar 03 '22 09:03 vknow360

Closing due to no response

vknow360 avatar Apr 07 '22 07:04 vknow360

I have it just like in the picture you showed and the companion just crashes.

UCYT5040 avatar Apr 11 '22 15:04 UCYT5040

@vknow360

UCYT5040 avatar Apr 11 '22 15:04 UCYT5040

I have it just like in the picture you showed and the companion just crashes.

In last push, the method signature has been changed. It now accepts a dictionary as headers. image

vknow360 avatar Apr 12 '22 06:04 vknow360

tried beta extension and your updated too, same error. image

mishra-kunal avatar Jul 09 '22 10:07 mishra-kunal