java-11

micronaut-data : multiple data sources

落花浮王杯 提交于 2021-02-11 15:30:15
问题 I have multiple databases in yml, how to get country specific repository? i am getting country name at runtime and based on country name i need to do operation with that country database, with single database it taking default database repository from yml. as per micronaut document : In multiple datasource scenario, the @io.micronaut.data.annotation.Repository annotation can be used to specify the datsource configuration to use. By default Micronaut Data will look for the default datasource.

Http Connection Timeout only when mobile client surfing from vodafone network + google chrome

好久不见. 提交于 2021-02-11 15:26:27
问题 I have a web application (spring-boot, tomcat) which is working and reachable through https without problems, but only if the client is not inside mobile network of vodafone and browsing with chrome. If so, when navigating to the page, chrome gives a timeout and simply cannot reach the website, whereas another browser has no problems reaching the site. Some interesting facts may be: - i updated to java11, using adoptopenjdk v11.0.3 (maybe some problems related to tls 1.3?) - before the update

Http Connection Timeout only when mobile client surfing from vodafone network + google chrome

无人久伴 提交于 2021-02-11 15:25:44
问题 I have a web application (spring-boot, tomcat) which is working and reachable through https without problems, but only if the client is not inside mobile network of vodafone and browsing with chrome. If so, when navigating to the page, chrome gives a timeout and simply cannot reach the website, whereas another browser has no problems reaching the site. Some interesting facts may be: - i updated to java11, using adoptopenjdk v11.0.3 (maybe some problems related to tls 1.3?) - before the update

Eclipce RCP is crashed when starting

核能气质少年 提交于 2021-02-11 12:25:30
问题 I work with the old legacy project and trying to switch it to Java 11. At the moment I am able to compile it successfully, but it crashes when starting. The project consists of several eclipse plugins modules and final eclipse-repository module which has product file (there is also pom file compiles all modules and creates executable file in target folder of the eclipse-repository module) Targed definition file is resolved succesfully too and looks like <?xml version="1.0" encoding="UTF-8"

DateTimeParseException on Java 11 but works on Java 10

拥有回忆 提交于 2021-02-09 02:55:32
问题 The following testcase runs perfectly under Java 10: import java.time.Instant; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; class Test { public static void main (String[] args) throws java.lang.Exception { DateTimeFormatter dateFormatter = new DateTimeFormatterBuilder(). appendPattern("EEE, dd MMM yyyy HH:mm:ss zzz"). toFormatter(); Instant result = dateFormatter.parse("Sat, 29 Sep 2018 20:49:02 GMT", Instant::from); System.out.println("Result:

DateTimeParseException on Java 11 but works on Java 10

匆匆过客 提交于 2021-02-09 02:50:50
问题 The following testcase runs perfectly under Java 10: import java.time.Instant; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; class Test { public static void main (String[] args) throws java.lang.Exception { DateTimeFormatter dateFormatter = new DateTimeFormatterBuilder(). appendPattern("EEE, dd MMM yyyy HH:mm:ss zzz"). toFormatter(); Instant result = dateFormatter.parse("Sat, 29 Sep 2018 20:49:02 GMT", Instant::from); System.out.println("Result:

DateTimeParseException on Java 11 but works on Java 10

非 Y 不嫁゛ 提交于 2021-02-09 02:50:10
问题 The following testcase runs perfectly under Java 10: import java.time.Instant; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; class Test { public static void main (String[] args) throws java.lang.Exception { DateTimeFormatter dateFormatter = new DateTimeFormatterBuilder(). appendPattern("EEE, dd MMM yyyy HH:mm:ss zzz"). toFormatter(); Instant result = dateFormatter.parse("Sat, 29 Sep 2018 20:49:02 GMT", Instant::from); System.out.println("Result:

DateTimeParseException on Java 11 but works on Java 10

£可爱£侵袭症+ 提交于 2021-02-09 02:50:09
问题 The following testcase runs perfectly under Java 10: import java.time.Instant; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; class Test { public static void main (String[] args) throws java.lang.Exception { DateTimeFormatter dateFormatter = new DateTimeFormatterBuilder(). appendPattern("EEE, dd MMM yyyy HH:mm:ss zzz"). toFormatter(); Instant result = dateFormatter.parse("Sat, 29 Sep 2018 20:49:02 GMT", Instant::from); System.out.println("Result:

Lucene LongPoint Range search doesn't work

我的梦境 提交于 2021-02-08 10:12:48
问题 I am using Lucene 8.2.0 in Java 11. I am trying to index a Long value so that I can filter by it using a range query, for example like so: +my_range_field:[1 TO 200] . However, any variant of that, even my_range_field:[* TO *] , returns 0 results in this minimal example. As soon as I remove the + from it to make it an OR , I get 2 results. So I am thinking I must make a mistake in how I index it, but I can't make out what it might be. From the LongPoint JavaDoc: An indexed long field for fast

Lucene LongPoint Range search doesn't work

六月ゝ 毕业季﹏ 提交于 2021-02-08 10:08:03
问题 I am using Lucene 8.2.0 in Java 11. I am trying to index a Long value so that I can filter by it using a range query, for example like so: +my_range_field:[1 TO 200] . However, any variant of that, even my_range_field:[* TO *] , returns 0 results in this minimal example. As soon as I remove the + from it to make it an OR , I get 2 results. So I am thinking I must make a mistake in how I index it, but I can't make out what it might be. From the LongPoint JavaDoc: An indexed long field for fast