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

Overload method call problem #83

Open
sdnetwork opened this issue Feb 23, 2019 · 4 comments
Open

Overload method call problem #83

sdnetwork opened this issue Feb 23, 2019 · 4 comments

Comments

@sdnetwork
Copy link
Contributor

Hi,

i try to do that (proxy a request) :

vertx.createHttpServer().requestHandler((req) =>{
var client = vertx.createHttpClient(new HttpClientOptions());
var c_req = client.request(...)
c_req.headers().setAll(req.headers()); 
....
})

but i get this error :

(io.vertx.core.http.impl.headers.VertxHttpHeaders)] failed due to: java.lang.IllegalArgumentException: Multiple applicable overloads found for method name setAll (candidates: [Method[public io.vertx.core.MultiMap io.vertx.core.http.impl.headers.VertxHttpHeaders.setAll(io.vertx.core.MultiMap)], Method[public io.netty.handler.codec.http.HttpHeaders io.netty.handler.codec.http.HttpHeaders.setAll(io.netty.handler.codec.http.HttpHeaders)]], arguments: [JavaObject[...(io.vertx.core.http.impl.headers.VertxHttpHeaders)] (HostObject)])

can you help me ?

@pmlopes
Copy link
Contributor

pmlopes commented Feb 25, 2019

This is a graaljs issue: oracle/graaljs#37 still waiting for it to be fixed upstream.

@laiweiwei
Copy link
Contributor

#349

@laiweiwei
Copy link
Contributor

oracle/graaljs#3

@tailangankur
Copy link

I am having the issue where i am returning an array of object from my javascript code and here on java side it is coming as empty polyglotmap,can you guys help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants