spring cloud gateway fails to route due to netty issue












0














I am relatively new to spring-cloud-gateway and I am building up a POC for the same.
I have made a sample gateway app and one microservice app for the same. I have verified that the microservice app is running fine and accessible at port: 8080



Both of the apps are running good. Hence I am not sharing the POMs here.
However please see below the code details.




Gateway




application.yml



server:
port: 8081

spring:
cloud:
gateway:
routes:
- id: microserviceFirst
uri: localhost:8080
predicates:
- Path= /first

management:
endpoints:
web:
exposure:
include: "*"


the springboot app:



package com.ey.springCloudGateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringCloudGatewayApplication {

public static void main(String args) {
SpringApplication.run(SpringCloudGatewayApplication.class, args);
}
}



The microservice app




application.properties



spring.application.name="microserviceFirst"
server.port=8080


springboot file



package com.ey.microserviceFirst;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class MicroserviceFirstApplication {

@RequestMapping(value = "/", method = RequestMethod.GET)
public Map<String, Object> home() {
Map<String, Object> model = new HashMap<String, Object>();
model.put("id", UUID.randomUUID().toString());
model.put("content", "Hello World");
return model;
}

public static void main(String args) {
SpringApplication.run(MicroserviceFirstApplication.class, args);
}
}


I am trying to access using postman to localhost:8081/first. Below is the error.



java.lang.NoSuchMethodError: reactor.netty.http.client.HttpClient.noChunkedTransfer()Lreactor/netty/http/client/HttpClient;


That's about it.
Any help would be greatly appreciated!










share|improve this question
























  • This is a known issue and is fixed, with a release pending
    – spencergibb
    Nov 12 at 13:25










  • yeah! Even I have commented there today and got to know.
    – bibliophilsagar
    Nov 12 at 16:01
















0














I am relatively new to spring-cloud-gateway and I am building up a POC for the same.
I have made a sample gateway app and one microservice app for the same. I have verified that the microservice app is running fine and accessible at port: 8080



Both of the apps are running good. Hence I am not sharing the POMs here.
However please see below the code details.




Gateway




application.yml



server:
port: 8081

spring:
cloud:
gateway:
routes:
- id: microserviceFirst
uri: localhost:8080
predicates:
- Path= /first

management:
endpoints:
web:
exposure:
include: "*"


the springboot app:



package com.ey.springCloudGateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringCloudGatewayApplication {

public static void main(String args) {
SpringApplication.run(SpringCloudGatewayApplication.class, args);
}
}



The microservice app




application.properties



spring.application.name="microserviceFirst"
server.port=8080


springboot file



package com.ey.microserviceFirst;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class MicroserviceFirstApplication {

@RequestMapping(value = "/", method = RequestMethod.GET)
public Map<String, Object> home() {
Map<String, Object> model = new HashMap<String, Object>();
model.put("id", UUID.randomUUID().toString());
model.put("content", "Hello World");
return model;
}

public static void main(String args) {
SpringApplication.run(MicroserviceFirstApplication.class, args);
}
}


I am trying to access using postman to localhost:8081/first. Below is the error.



java.lang.NoSuchMethodError: reactor.netty.http.client.HttpClient.noChunkedTransfer()Lreactor/netty/http/client/HttpClient;


That's about it.
Any help would be greatly appreciated!










share|improve this question
























  • This is a known issue and is fixed, with a release pending
    – spencergibb
    Nov 12 at 13:25










  • yeah! Even I have commented there today and got to know.
    – bibliophilsagar
    Nov 12 at 16:01














0












0








0







I am relatively new to spring-cloud-gateway and I am building up a POC for the same.
I have made a sample gateway app and one microservice app for the same. I have verified that the microservice app is running fine and accessible at port: 8080



Both of the apps are running good. Hence I am not sharing the POMs here.
However please see below the code details.




Gateway




application.yml



server:
port: 8081

spring:
cloud:
gateway:
routes:
- id: microserviceFirst
uri: localhost:8080
predicates:
- Path= /first

management:
endpoints:
web:
exposure:
include: "*"


the springboot app:



package com.ey.springCloudGateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringCloudGatewayApplication {

public static void main(String args) {
SpringApplication.run(SpringCloudGatewayApplication.class, args);
}
}



The microservice app




application.properties



spring.application.name="microserviceFirst"
server.port=8080


springboot file



package com.ey.microserviceFirst;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class MicroserviceFirstApplication {

@RequestMapping(value = "/", method = RequestMethod.GET)
public Map<String, Object> home() {
Map<String, Object> model = new HashMap<String, Object>();
model.put("id", UUID.randomUUID().toString());
model.put("content", "Hello World");
return model;
}

public static void main(String args) {
SpringApplication.run(MicroserviceFirstApplication.class, args);
}
}


I am trying to access using postman to localhost:8081/first. Below is the error.



java.lang.NoSuchMethodError: reactor.netty.http.client.HttpClient.noChunkedTransfer()Lreactor/netty/http/client/HttpClient;


That's about it.
Any help would be greatly appreciated!










share|improve this question















I am relatively new to spring-cloud-gateway and I am building up a POC for the same.
I have made a sample gateway app and one microservice app for the same. I have verified that the microservice app is running fine and accessible at port: 8080



Both of the apps are running good. Hence I am not sharing the POMs here.
However please see below the code details.




Gateway




application.yml



server:
port: 8081

spring:
cloud:
gateway:
routes:
- id: microserviceFirst
uri: localhost:8080
predicates:
- Path= /first

management:
endpoints:
web:
exposure:
include: "*"


the springboot app:



package com.ey.springCloudGateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringCloudGatewayApplication {

public static void main(String args) {
SpringApplication.run(SpringCloudGatewayApplication.class, args);
}
}



The microservice app




application.properties



spring.application.name="microserviceFirst"
server.port=8080


springboot file



package com.ey.microserviceFirst;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class MicroserviceFirstApplication {

@RequestMapping(value = "/", method = RequestMethod.GET)
public Map<String, Object> home() {
Map<String, Object> model = new HashMap<String, Object>();
model.put("id", UUID.randomUUID().toString());
model.put("content", "Hello World");
return model;
}

public static void main(String args) {
SpringApplication.run(MicroserviceFirstApplication.class, args);
}
}


I am trying to access using postman to localhost:8081/first. Below is the error.



java.lang.NoSuchMethodError: reactor.netty.http.client.HttpClient.noChunkedTransfer()Lreactor/netty/http/client/HttpClient;


That's about it.
Any help would be greatly appreciated!







java spring-boot spring-cloud spring-cloud-gateway






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 11:56

























asked Nov 12 at 11:37









bibliophilsagar

1,155824




1,155824












  • This is a known issue and is fixed, with a release pending
    – spencergibb
    Nov 12 at 13:25










  • yeah! Even I have commented there today and got to know.
    – bibliophilsagar
    Nov 12 at 16:01


















  • This is a known issue and is fixed, with a release pending
    – spencergibb
    Nov 12 at 13:25










  • yeah! Even I have commented there today and got to know.
    – bibliophilsagar
    Nov 12 at 16:01
















This is a known issue and is fixed, with a release pending
– spencergibb
Nov 12 at 13:25




This is a known issue and is fixed, with a release pending
– spencergibb
Nov 12 at 13:25












yeah! Even I have commented there today and got to know.
– bibliophilsagar
Nov 12 at 16:01




yeah! Even I have commented there today and got to know.
– bibliophilsagar
Nov 12 at 16:01

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53261357%2fspring-cloud-gateway-fails-to-route-due-to-netty-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53261357%2fspring-cloud-gateway-fails-to-route-due-to-netty-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine