-
Bug
-
Resolution: Done
-
Minor
-
1.2.8.Final
-
None
I have both custom error and failure plugin implementations that would like to put it in single war and deploy them. However It looks like there is a problem if we declare both error and failure writers together inside the same war.
If I remove the reference to one of the plugin from apiman.properties, it works.
*apiman.properties *
apiman-gateway.writers.policy-failure=plugin:org.custom.plugin:apiman-custom:0.0.1-SNAPSHOT/io.apiman.plugins.PolicyFailureWriter apiman-gateway.writers.error=plugin:org.custom.plugin:apiman-custom:0.0.1-SNAPSHOT/io.apiman.plugins.PolicyErrorWriter
17:40:40,689 ERROR [stderr] (default task-13) java.lang.IllegalStateException: zip file closed 17:40:40,690 ERROR [stderr] (default task-13) at java.util.zip.ZipFile.ensureOpen(ZipFile.java:669 ) 17:40:40,691 ERROR [stderr] (default task-13) at java.util.zip.ZipFile.getEntry(ZipFile.java:309) 17:40:40,691 ERROR [stderr] (default task-13) at io.apiman.common.plugin.PluginClassLoader.findCla ssContent(PluginClassLoader.java:202) 17:40:40,691 ERROR [stderr] (default task-13) at io.apiman.common.plugin.PluginClassLoader.findCla ss(PluginClassLoader.java:178) 17:40:40,692 ERROR [stderr] (default task-13) at java.lang.ClassLoader.loadClass(ClassLoader.java: 424) 17:40:40,693 ERROR [stderr] (default task-13) at java.lang.ClassLoader.loadClass(ClassLoader.java: 357) 17:40:40,693 ERROR [stderr] (default task-13) at com.fasterxml.jackson.module.jaxb.JaxbAnnotationI ntrospector.findAutoDetectVisibility(JaxbAnnotationIntrospector.java:533) 17:40:40,694 ERROR [stderr] (default task-13) at com.fasterxml.jackson.databind.introspect.Annotat ionIntrospectorPair.findAutoDetectVisibility(AnnotationIntrospectorPair.java:198) 17:40:40,694 ERROR [stderr] (default task-13) at com.fasterxml.jackson.databind.introspect.POJOPro pertiesCollector.<init>(POJOPropertiesCollector.java:126)
- relates to
-
APIMAN-1347 Custom error writer plugin (with large 3rd party libs) is not copied before deployment and hence server fails to start properly
- Resolved