<div dir="ltr">Yes please - that is definitely a bug.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 11:48 AM, Balu S <span dir="ltr">&lt;<a href="mailto:sbalu27@gmail.com" target="_blank">sbalu27@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.Should I raise a JIRA ?<div><br><div>apiman-gateway.writers.error=</div><div>apiman-gateway.writers.policy-<wbr>failure=<br><div><br></div><div><div>17:40:40,689 ERROR [stderr] (default task-13) java.lang.<wbr>IllegalStateException: zip file closed</div><div>17:40:40,690 ERROR [stderr] (default task-13)   at java.util.zip.ZipFile.<wbr>ensureOpen(ZipFile.java:669</div><div>)</div><div>17:40:40,691 ERROR [stderr] (default task-13)   at java.util.zip.ZipFile.<wbr>getEntry(ZipFile.java:309)</div><div>17:40:40,691 ERROR [stderr] (default task-13)   at io.apiman.common.plugin.<wbr>PluginClassLoader.findCla</div><div>ssContent(PluginClassLoader.<wbr>java:202)</div><div>17:40:40,691 ERROR [stderr] (default task-13)   at io.apiman.common.plugin.<wbr>PluginClassLoader.findCla</div><div>ss(PluginClassLoader.java:178)</div><div>17:40:40,692 ERROR [stderr] (default task-13)   at java.lang.ClassLoader.<wbr>loadClass(ClassLoader.java:</div><div>424)</div><div>17:40:40,693 ERROR [stderr] (default task-13)   at java.lang.ClassLoader.<wbr>loadClass(ClassLoader.java:</div><div>357)</div><div>17:40:40,693 ERROR [stderr] (default task-13)   at com.fasterxml.jackson.module.<wbr>jaxb.JaxbAnnotationI</div><div>ntrospector.<wbr>findAutoDetectVisibility(<wbr>JaxbAnnotationIntrospector.<wbr>java:533)</div><div>17:40:40,694 ERROR [stderr] (default task-13)   at com.fasterxml.jackson.<wbr>databind.introspect.Annotat</div><div>ionIntrospectorPair.<wbr>findAutoDetectVisibility(<wbr>AnnotationIntrospectorPair.<wbr>java:198)</div><div>17:40:40,694 ERROR [stderr] (default task-13)   at com.fasterxml.jackson.<wbr>databind.introspect.POJOPro</div><div>pertiesCollector.&lt;init&gt;(<wbr>POJOPropertiesCollector.java:<wbr>126)</div></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 4:14 PM, Eric Wittmann <span dir="ltr">&lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It is absolutely possible to declare both implementations in a single plugin.  They would simply be two classes stored in the same plugin WAR.<span class="m_-8679380417323018241HOEnZb"><font color="#888888"><div><br></div><div>-Eric</div></font></span></div><div class="m_-8679380417323018241HOEnZb"><div class="m_-8679380417323018241h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 9:04 AM, Balu S <span dir="ltr">&lt;<a href="mailto:sbalu27@gmail.com" target="_blank">sbalu27@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Eric,<div>Thanks. Is it possible to declare both Error and Failure writer implementations in single plugin ? It looks each need its own plugin.json. But I find it unnecessary as they both similar purpose and creating multiple plugins only makes additional deployment step.</div><div><br></div><div>Regards</div><span class="m_-8679380417323018241m_-4103651752891981921HOEnZb"><font color="#888888"><div>Balu</div></font></span></div><div class="m_-8679380417323018241m_-4103651752891981921HOEnZb"><div class="m_-8679380417323018241m_-4103651752891981921h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 2:52 PM, Eric Wittmann <span dir="ltr">&lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It&#39;s definitely just a documentation mistake.  I&#39;ll get it corrected.<div><br></div><div>Thanks!</div><div><br></div><div>-Eric</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-8679380417323018241m_-4103651752891981921m_-3304260249493217831h5">On Mon, Jan 23, 2017 at 5:23 AM, Balu Sadhasivam <span dir="ltr">&lt;<a href="mailto:sbalu27@gmail.com" target="_blank">sbalu27@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-8679380417323018241m_-4103651752891981921m_-3304260249493217831h5"><div dir="ltr">Hello,<div>I can see in the <a href="http://www.apiman.io/latest/developer-guide.html" target="_blank">developer guide</a> that to custom generate IPolicyErrorWriter, one can extend using below option</div><div><br></div><div><h5 class="m_-8679380417323018241m_-4103651752891981921m_-3304260249493217831m_-3763417831969676466m_1165639616534481366gmail-title" style="box-sizing:border-box;font-family:&quot;open sans&quot;,helvetica,arial,sans-serif;font-weight:500;line-height:1.1;color:rgb(51,51,51);margin-top:10px;margin-bottom:10px;font-size:9pt">4.5.3.2.6. io.apiman.gateway.e<wbr>ngine.IPolicyErrorWriter Example Configuration</h5></div><div><pre class="m_-8679380417323018241m_-4103651752891981921m_-3304260249493217831m_-3763417831969676466m_1165639616534481366gmail-screen" style="box-sizing:border-box;overflow:auto;font-family:courrier,monospace;font-size:0.9em;padding:0.5em 1em;margin:0em 0em 10px;line-height:1.66667;word-break:break-all;word-wrap:break-word;background-color:rgb(237,231,200);border:1px solid rgb(204,204,204);border-radius:1px"><span style="color:rgb(51,51,51)">apiman-gateway.writers.</span><font color="#ff0000">policy-<wbr>error</font><font color="#333333">=plugin:com.example.group<wbr>Id:artifactId:1.0.Final/com.ex<wbr>ample.apiman.FooPolicyErrorWri<wbr>terImpl</font></pre></div><div><br></div><div>But the code base defines the error writer to be loaded from below property.</div><div><br></div><div>GatewayConfigPropertiesERROR_W<wbr>RITER_CLASS = &quot;apiman-gateway.writers.error&quot;<wbr>;<br></div><div><br></div><div>Is this case of mistake in documentation ? Does there exists more than one error writer API for policy and separately for other components ?</div><div><br></div><div><br></div><div>regards</div><span class="m_-8679380417323018241m_-4103651752891981921m_-3304260249493217831m_-3763417831969676466HOEnZb"><font color="#888888"><div>Balu</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>