On 10.10.2005 13:36:08 Greg Hulands wrote:
> Aaaahhh, that was it. I had barcode4j in their. 

I've started writing the new FOP Trunk-compatible extension for
Barcode4J but haven't finished, yet. I hope I can do that before the end
of the month.

> I am now getting this error:
> 
> fo:external-graphic is not a valid child element of fo:block-container.
>
> This is the snippet it is referring to:
> 
> <fo:block-container position="absolute" top="0.5cm" left="0cm"  
> width="3cm" height="3cm">
>      <fo:external-graphic src="url(someURL)" width="3cm" height="3cm"/>
>      </fo:block-container>
> 
> Do I just move the external graphic out of the block container and  
> give it the attributes of the current parent container?

Look at the specification. The content for fo:block-container is
specified as "(%block;)+" which means you have to wrap your
external-graphic in a fo:block. FOP 0.20.5 was lenient in this regard.
FOP Trunk is more strict.

<fo:block-container position="absolute" top="0.5cm" left="0cm" width="3cm" 
height="3cm">
  <fo:block>
    <fo:external-graphic src="url(someURL)" width="3cm" height="3cm"/>
  </fo:block>
</fo:block-container>


> Greg
> 
> On 10/10/2005, at 9:13 PM, Jeremias Maerki wrote:
> 
> > I'm pretty sure that is because of a FOP extension that is dynamically
> > loaded. The FOP extensions built for 0.20.5 are not compatible with  
> > the
> > FOP extensions for FOP Trunk. Do you have any FOP extensions in your
> > classpath?
> >
> > On 10.10.2005 12:52:53 Greg Hulands wrote:
> >
> >> Hi,
> >> I have just downloaded the latest from svn and everything builds ok,
> >> but when I try to convert some fo to pdf I get a runtime exception
> >> (stack trace below). I added a log.debug message into
> >> addElementMapping and then rebuilt fop to try and log out what class
> >> it was trying to load to try and narrow down the problem. The only
> >> problem is that I cannot seem to get the logger setup properly.
> >>
> >> In my Properties file I have this:
> >> # FOP Logging
> >> org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JL 
> >> ogg
> >> er
> >> log4j.logger.org.apache.fop.fo.FOTreeBuilder = DEBUG
> >>
> >> Does anyone have any suggestions on how to find out the cause so I
> >> can file a bug if necessary.
> >>
> >> Thanks,
> >> Greg
> >>
> >> java.lang.IncompatibleClassChangeError: Implementing class
> >>      at java.lang.ClassLoader.defineClass0(Native Method)
> >>      at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> >>      at java.security.SecureClassLoader.defineClass
> >> (SecureClassLoader.java:123)
> >>      at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> >>      at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> >>      at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> >>      at java.security.AccessController.doPrivileged(Native Method)
> >>      at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> >>      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> >>      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> >>      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> >>      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> >>      at java.lang.Class.forName0(Native Method)
> >>      at java.lang.Class.forName(Class.java:141)
> >>      at org.apache.fop.fo.FOTreeBuilder.addElementMapping
> >> (FOTreeBuilder.java:164)
> >>      at org.apache.fop.fo.FOTreeBuilder.setupDefaultMappings
> >> (FOTreeBuilder.java:146)
> >>      at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java: 
> >> 117)
> >>      at org.apache.fop.apps.Fop.getDefaultHandler(Fop.java:131)
> >>      at
> >> au.com.shoebox.accounting.reports.ShoeBoxFOPComponent.appendToRespons 
> >> e
> >> (ShoeBoxFOPComponent.java:52)
> >>
> >
> >
> > Jeremias Maerki


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to