<div dir="ltr"><div><div><div>Hi Johannes<br><br></div>It seems the "problem" is jruby-complete-1.7.11.jar.  I think this was only added recently.  <br><br></div>If I delete this the jython scripts work again.  But I am guessing it is actually jython-2.5.2.jar that has the obsolete version of jffi.  <br>
<br>Should jython-2.5.2.jar be updated as to be compatible with jruby-complete-1.7.11.jar??  <br></div><div><br>Thanks<br><br>Brian<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 9, 2014 at 5:02 PM, Johannes Schindelin <span dir="ltr"><<a href="mailto:Johannes.Schindelin@gmx.de" target="_blank">Johannes.Schindelin@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Brian,<br>
<div class=""><br>
On Wed, 9 Apr 2014, Brian Northan wrote:<br>
<br>
> I just updated to pom-scijava-1.55<br>
<br>
</div>I hope you mean pom-scijava 1.155, not 1.55.<br>
<div class=""><br>
> and am having trouble running a jython script (was working fine until I<br>
> updated, I hadn't updated in a few weeks so I don't know exactly when it<br>
> broke).<br>
><br>
> when I call "os.path.exists" I get...<br>
><br>
> "java.lang.IncompatibleClassChangeError: Found class<br>
> com.kenai.jffi.InvocationBuffer, but interface was expected"<br>
<br>
</div>It is one of those problems caused by other software maintainers being<br>
overly happy to include soon-to-be-outdated dependencies in their .jar<br>
files. In particular, when I run<br>
<br>
$ ./bin/find-jar-for-class.bsh com.kenai.jffi.InvocationBuffer<br>
Class com.kenai.jffi.InvocationBuffer is in .../jruby-complete-1.7.11.jar<br>
Class com.kenai.jffi.InvocationBuffer is in .../jython-2.5.2.jar<br>
Class com.kenai.jffi.InvocationBuffer is in .../jruby-1.6.7.2.jar<br>
<br>
I see that the class/interface is in the two biggest offenders: JRuby<br>
and Jython. Most likely, one of them has an obsolete version of jffi<br>
bundled, and another one accesses that obsolete version by mistake.<br>
<br>
If you have jruby 1.6.7.2, try to delete that .jar (it is a game of luck<br>
which of your .jar files appears in the class path first, so I would<br>
strongly suggest to delete it rather than renaming it).<br>
<br>
Ciao,<br>
Johannes<br>
</blockquote></div><br></div>