Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LincolnJota opened this issue Oct 9, 2021 · 20 comments
Open

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

LincolnJota opened this issue Oct 9, 2021 · 20 comments
Assignees
Labels
bug Something isn't working

Comments

@LincolnJota
Copy link

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

public void LoadWithHeaders(String url, List<List<String>> headers) {

My blocks:
blocks

Error: in title.

@vknow360
Copy link
Owner

Thank you.
Bug has been identified.

@vknow360 vknow360 added the bug Something isn't working label Oct 10, 2021
@vknow360 vknow360 self-assigned this Oct 10, 2021
@vknow360
Copy link
Owner

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

@UCYT5040
Copy link

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

@vknow360
Copy link
Owner

vknow360 commented Feb 23, 2022

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

Try using v12beta. (Available in beta branch)

@UCYT5040
Copy link

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

@UCYT5040
Copy link

v12beta didn't work, same error.

@vknow360
Copy link
Owner

Bug identified, once again.
Will be fixed soon.

@vknow360
Copy link
Owner

@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);
        }
}

@UCYT5040
Copy link

Ok I will try it.

@UCYT5040
Copy link

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

@UCYT5040
Copy link

@vknow360

Pinging in case you didn't get a notification

@vknow360
Copy link
Owner

vknow360 commented Feb 25, 2022

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 vknow360 reopened this Feb 25, 2022
@UCYT5040
Copy link

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

@UCYT5040
Copy link

UCYT5040 commented Mar 2, 2022

@vknow360

@vknow360
Copy link
Owner

vknow360 commented Mar 3, 2022

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

@vknow360
Copy link
Owner

vknow360 commented Apr 7, 2022

Closing due to no response

@vknow360 vknow360 closed this as completed Apr 7, 2022
@UCYT5040
Copy link

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

@UCYT5040
Copy link

@vknow360

@vknow360 vknow360 reopened this Apr 12, 2022
@vknow360
Copy link
Owner

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

@mishra-kunal
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants