microprofile-extensions / openapi-ext

Some extensions for MicroProfile OpenAPI
Apache License 2.0
22 stars 13 forks source link

Unable to invoke WhiteLabel.init() version 1.1.4 (works fine in version 1.1.3) #34

Closed luisdanielmesa closed 3 years ago

luisdanielmesa commented 3 years ago

I switched to version 1.1.4 from version 1.1.3 and I get this error:

WELD-000049: Unable to invoke public void org.microprofileext.openapi.swaggerui.Templates.afterCreate() on org.microprofileext.openapi.swaggerui.Templates@bf217f5 ->null ->WELD-000049: Unable to invoke public void org.microprofileext.openapi.swaggerui.WhiteLabel.init() on org.microprofileext.openapi.swaggerui.WhiteLabel@660e1f3 ->null ->java.io.InputStream.readAllBytes()[B

It seems like it's trying to read a logo, and the inputstream fails. It works if I switch back to version 1.1.3

If you need help with debugging I might be able to help. I'm using JDK 1.8_251. Do I need to use a JVM >= 9?

The method readAllBytes doesn't exist before Java 9: https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html

phillip-kruger commented 3 years ago

Yes, from 1.1.4 you need JDK > 8

luisdanielmesa commented 3 years ago

Thank you for the quick response! Have a good day.

Edit: Any plans to bump the version so that we find out about breaking changes?