These are chat archives for spring-cloud/spring-cloud
I am facing with strange issue.
I am using this guid -> https://github.com/spring-cloud/spring-cloud-dataflow-samples/tree/master/streaming/http-to-mysql
I created my database as shown in picture
I get this error:
org.springframework.messaging.MessageHandlingException: error occurred in message handler [jdbcMessageHandler]; nested exception is org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [INSERT INTO names(name) VALUES (?)]; nested exception is java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: NAMES
From the README:
If MySQL isn’t running on default port on localhost or if you need username and password to connect, use one of the following options...
stream create --name mysqlstream --definition "http --server.port=8787 | jdbc --includes='mysql:mysql-connector-java:5.1.37' --spring.datasource.url='jdbc:mysql://localhost:3306/test' --tableName=names --columns=name --spring.datasource.driverClassName=com.mysql.jdbc.Driver --initialize=false --spring.datasource.username=root " --deploy
ResourceControlleris WFM now. Thanks for opening that back up!
@EnableDiscoveryClient. The eureka server endpoint tells me that the service is successfully registered, but when I try calling the service with a RestTemplate I get
java.net.UnknownHostException: My-Service. Does anyone have an idea what could be the issue?
propertiesof my parent pom but it doesn't seem to work. Is it possible to exclude a certain dependency pom?
dependencyManagementin my parent pom
RestTemplate? You using
@Autowirestraight out, or you configure it by hand in some way?
eureka: instance: hostname: localhost client: registerWithEureka: false fetchRegistry: false server: enable-self-preservation: false server: port: 1111
defaultZone: http://localhost:1111/eureka/which is correct
@EnabeLoadBalancedunderneath will use Ribbon auto-configuration?
http://localhost:1111you see both your application registered and your client (that is using RestTemplate) registered there?
@LoadBalancedannotation and try w/o it.