Closed denggeng closed 5 years ago
How did you trigger that exception? In any case, we should skip over any illegal properties and ignore their values. Could you send a pull request that does that? Thanks!
How did you trigger that exception? In any case, we should skip over any illegal properties and ignore their values. Could you send a pull request that does that? Thanks!
I am using spring boot to run a web application with tomcat. Using this block of code
if (!(e.getKey() instanceof String) || !(e.getValue() instanceof String)) {
logger.info(String.format("property key:%s,value:%s,value class:%s", String.valueOf(e.getKey()),
String.valueOf(e.getValue()), e.getValue().getClass()));
}
, I have found the none String property value:
property key:server.port,value:11191,value class:class java.lang.Integer
.
This is the port of tomcat! It looks like a Spring Boot property But I don't know how does Spring Boot set this property.
I see, so it's a bug in either Tomcat or Spring Boot. Thanks for the information!
In any case, the workaround has been included in JavaCPP 1.5. Thanks for reporting!
Hi,I have foud a problem in Centos.
CentOS Linux release 7.2.1511 (Core)
And then,I modfied this file(https://github.com/bytedeco/javacpp/blob/master/src/main/java/org/bytedeco/javacpp/Loader.java)) , changed line 195,196 from
to
It has bean fixed.