You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Eric Douglas <ed...@blockhouse.com> on 2011/05/25 16:15:36 UTC

Trunk won't compile?

What is this missing?
When I right click the build.xml in Eclipse and select Run As > ant
build, I get jars created but the log ends with BUILD FAILED.
I scroll up to see some errors and there's messages like this.
    [junit] Testcase:
page-number_background-image.xml(org.apache.fop.intermediate.IFParserTes
tCase):	Caused an ERROR
    [junit]
org.apache.fop.area.inline.TextArea.addTrait(Ljava/lang/Object;Ljava/lan
g/Object;)V
    [junit] java.lang.NoSuchMethodError:
org.apache.fop.area.inline.TextArea.addTrait(Ljava/lang/Object;Ljava/lan
g/Object;)V
    [junit] 	at
org.apache.fop.layoutmgr.inline.PageNumberLayoutManager.get(PageNumberLa
youtManager.java:87)
That doesn't make sense.  That line 87 is this.
        text.addTrait(Trait.COLOR, fobj.getColor());
That looks like it's passing Object,Object.
text is a TextArea which extends AbstractTextArea which extends
InlineParent which extends InlineArea which extends Area which has a
method addTrait(Object,Object).


Re: Trunk won't compile?

Posted by "Andreas L. Delmelle" <an...@telenet.be>.
On 25 May 2011, at 16:15, Eric Douglas wrote:

Hi Eric

> What is this missing? 
> When I right click the build.xml in Eclipse and select Run As > ant build, I get jars created but the log ends with BUILD FAILED.
> 
> I scroll up to see some errors and there's messages like this. 
>     [junit] Testcase: page-number_background-image.xml(org.apache.fop.intermediate.IFParserTestCase):   Caused an ERROR 
>     [junit] org.apache.fop.area.inline.TextArea.addTrait(Ljava/lang/Object;Ljava/lang/Object;)V 
>     [junit] java.lang.NoSuchMethodError:

Phew! A relief. :-) Your subject line scared me at first, but turns out to be a bit misleading, as it is not a compile error, but a linkage error. It is about trying to execute compiled bytecode pointing to a method that was removed or whose signature has changed. The compiled versions of PageNumberLayoutManager and Area seem to be out of synch.

Seems to be pointing to another (older) fop.jar somewhere in the classpath, as org.apache.fop.area.Area.addTrait() had (Object, Object), but was changed to (Integer, Object) in r1062901.

Hope this helps!


Regards

Andreas
---