1. Some dependencies those running well in Java6/Java7 but not Java8
e.g. javassist.jar, it's quite probably be inconsistent
2. Got SAX warning in console. That's because Java8 denies to access the external xsd/dtd files by default but some dependencies of your project might need to access them
Here is an example: https://docs.oracle.com/javase/tutorial/jaxp/properties/error.html
Solution: Create a file named jaxp.properties (if it doesn't exist) under /jre/lib and then write this line in it:
javax.xml.accessExternalSchema = all
3. AES/DES Causes exception: “BadPaddingException: Given final block not properly padded” in conjunction with BufferedReader & ZipStreams
Solution:
http://stackoverflow.com/questions/27124931/java-7-java-8-aes-causes-exception-badpaddingexception-given-final-block
本文探讨了从Java6/Java7迁移到Java8时遇到的问题,包括依赖不兼容、SAX解析警告以及AES/DES加密异常等,并提供了详细的解决办法。
1万+

被折叠的 条评论
为什么被折叠?



