<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Great work indeed!<div><br></div><div>I had been juggling with additional paths in modules myself for a couple of hours yesterday. Then I gave up on that, hooked up the debugger to find the compromising line of code. But sleep caught up on me before I found it…</div><div><br></div><div>Nice to see how a night of sleep can solve nasty problems ;-)</div><div><br></div><div>Cheers,</div><div>Koen</div><div><br><div><div>Op 13-apr.-2012, om 05:13 heeft Lincoln Baxter, III het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite">Success. You nailed the problem - I implemented it like so: <a href="https://issues.jboss.org/browse/FORGE-531">https://issues.jboss.org/browse/FORGE-531</a><br>
<br>
I owe you a beer.<br><br>THANK YOU!<br>~Lincoln<br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 9:32 PM, Lincoln Baxter, III <span dir="ltr">&lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@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">I've actually spent most of today working on this issue, so if this fix works, I'm probably going to die from relief.<br>
<br><div class="gmail_quote"><div><div class="h5">On Thu, Apr 12, 2012 at 6:49 PM, Thomas Frühbeck <span dir="ltr">&lt;<a href="mailto:fruehbeck@aon.at" target="_blank">fruehbeck@aon.at</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="h5">Hey,<br>
<br>
I think I found the reason for this message and have a somewhat silly remedy.<br>
<br>
Reason:<br>
<br>
 &nbsp; &nbsp;- in com.sun.org.apache.xml.<u></u>internal.serializer.Encondings a properties file is looked up by classloader to evaluate supported Charsets<br>
 &nbsp; &nbsp;- the classloader selected is not the root classloader but Forge's one, who doesnt find the properties file<br>
 &nbsp; &nbsp;- funny enough the comments indicate, that the authors were not to sure about the necessity of an error message in this case :-)<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (is == null) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SecuritySupport ss = SecuritySupport.getInstance();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;is = ss.getResourceAsStream(<u></u>ObjectFactory.findClassLoader(<u></u>),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ENCODINGS_FILE);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Properties props = new Properties();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (is != null) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;props.load(is);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;is.close();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Seems to be no real need to force failure here, let the<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// system do its best... The issue is not really very critical,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// and the output will be in any case _correct_ though maybe not<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// always human-friendly... :)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// But maybe report/log the resource problem?<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Any standard ways to report/log errors (in static context)?<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
REMEDY:<br>
 &nbsp; &nbsp;- I made a module containing a jar with only this property file<br>
 &nbsp; &nbsp;- and made forge-api take it as dependency:<br>
<br>
&lt;module name="javax.api" /&gt;<br>
+ &lt;module name="sun.encodings" export="true"/&gt;<br>
&lt;/dependencies&gt;<br>
<br>
Tar with module attached.<br>
<br>
And voila: no error message anymore because the classloader can access this dreaded file.<br>
I'm sure, that someone more knowledgeable is able to find a better solution, but as first fix it may help.<br>
<br>
What do you think?<br>
<br>
Regards,<br>
Thomas<br>
<br>
Am 12.04.2012 18:02, schrieb Burr Sutter:<div><div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How is this coming along?<br>
<br>
We are now having to put "ignore all the UTF-8" messages in our videos&amp; &nbsp;written documentation.<br>
<br>
<br>
<br>
</blockquote>
<br>
</div></div><br></div></div><div class="im">_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br></div></blockquote></div><div class="HOEnZb"><div class="h5"><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org/" target="_blank">http://ocpsoft.org</a><br>"Simpler is better."<br>

</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org/" target="_blank">http://ocpsoft.org</a><br>"Simpler is better."<br>
_______________________________________________<br>forge-dev mailing list<br><a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/forge-dev<br></blockquote></div><br></div></body></html>