You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Bonekrusher <dj...@yahoo.com> on 2012/11/23 15:43:35 UTC

FOP- Trunk - Duplicate LayoutManagers for class

Hi, 

I am receiving the below error using table-markers in the trunk. Usually
when I receive an error, I will try to cut the FO down to the page sequence
and then cut it down to the block to isolate the error. In this case, I the
FO file is large. When I think I have the table/block, the error does not
occur. When the FO is created, my xslt stylesheet does not indent the xml.
When I run the FO with no-indent, I do not get the error. When I
"pretty-print" or indent the FO, the error occurs.

Trying to narrow this down to a working sample for you to reproduce the
error is proving difficult. I will continue to try to get a repo, but in the
mean while can someone give me a little more info on the error if possible. 

Exception
java.lang.IllegalStateException: Duplicate LayoutManagers for class class
org.ap
ache.fop.fo.flow.RetrieveTableMarker found, only one may be declared.

Thx



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP- Trunk - Duplicate LayoutManagers for class

Posted by Bonekrusher <dj...@yahoo.com>.
Thanks for the update Luis. I've been able to work around this issue, so no
worries.





--
View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37422.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP- Trunk - Duplicate LayoutManagers for class

Posted by Luis Bernardo <lm...@gmail.com>.
Thanks. Yes, I can reproduce it. While this is investigated I suggest 
that either you (a) place the inline around the retrieve table marker 
(instead of the marker), or (b) remove the spaces/breaks between 
</fo:inline> and </fo:marker>.

On 11/23/12 11:45 PM, Bonekrusher wrote:
> Here is another copy with the marker commented out  output-marker-error.fo
> <http://apache-fop.1065347.n5.nabble.com/file/n37400/output-marker-error.fo>
> which also triggers the error.
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37400.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP- Trunk - Duplicate LayoutManagers for class

Posted by Bonekrusher <dj...@yahoo.com>.
Here is another copy with the marker commented out  output-marker-error.fo
<http://apache-fop.1065347.n5.nabble.com/file/n37400/output-marker-error.fo>  
which also triggers the error.



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37400.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP- Trunk - Duplicate LayoutManagers for class

Posted by Bonekrusher <dj...@yahoo.com>.
Hi Luis,

Please see attached sample. I got it as small as possible. Search for the 2
comments:

"Uncomment this marker and it works"

and 

"or remove this fo:inline"

I noticed that if I add a marker before the first fo:table-row, it works
even with the fo:inline. If I comment out the first marker and leave the
fo:inline, I get the error.

Thanks for looking at this.

Phil
output-marker-error.fo
<http://apache-fop.1065347.n5.nabble.com/file/n37399/output-marker-error.fo>  




--
View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37399.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP- Trunk - Duplicate LayoutManagers for class

Posted by Luis Bernardo <lm...@gmail.com>.
Can you provide an example? I just tried to put an inline inside a 
marker the way you describe and there were no problems. You also say 
this only happens after you pretty print but my example is already 
pretty printed. So there must be something else going on. So if you 
provide your example I will take a look.

On 11/23/12 3:26 PM, Bonekrusher wrote:
> I was able to narrow down the error to a marker with a child fo:inline:
>
> <fo:marker marker-class-name="primary-para-continuation">
>       <fo:inline>MY PARA - Cont</fo:inline>
> </fo:marker>
>
> Would this be a markup error rather than a java.lang.IllegalStateException:
> Duplicate LayoutManagers class org.apache.fop.fo.flow.RetrieveTableMarker
> exception?
>
> Also, is it possible for the Exception to provide the FO line number?
>
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37394.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP- Trunk - Duplicate LayoutManagers for class

Posted by Bonekrusher <dj...@yahoo.com>.
I was able to narrow down the error to a marker with a child fo:inline:

<fo:marker marker-class-name="primary-para-continuation">
     <fo:inline>MY PARA - Cont</fo:inline>
</fo:marker>

Would this be a markup error rather than a java.lang.IllegalStateException:
Duplicate LayoutManagers class org.apache.fop.fo.flow.RetrieveTableMarker
exception?

Also, is it possible for the Exception to provide the FO line number?




--
View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37394.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org