Re: Problem with FOP, Barcode4J and AreaTreeModel
Why pcl? I thought I was trapped in a pcl world and jeremias set me straight :) maybe I can offer some guidance? > On 3 Dec 2013, at 8:56 pm, "Michael Mest" wrote: > > Hi @all. > > At first, i want to introduce me. I'm Michael from germany and i'm working as > software developer. > > At the moment, we are in a project which include producing barcodes. > > We are using barcode4j in combination with FOP Ver. 1.1 in a WebApplication > hosted in a apache tomcat environment. > > Everything worked fine with creating files including the barcode until we got > a new feature request. because of this feature request, we are not able to > produce PDF-Files ans more. Instead, we have to produce pcl-files. > > Because of the measurement differences between pdf and pcl, we decides to > produce an AreaTree file first with overriding the renderer. > So the measurment is done in PDF-Style and after that, we convert the > AreaTree-File to a PCL-File. > > The problem is that we cannot produce the AreaTree file using saxon. > Everything works fine when whe use xalan, but wit saxon, we get a > NullPointerException inside the Methode "getNameCode" in Class > "net.sf.saxon.event.ReceivingContentHandler" > > The Namespace-URI seems to be Null! > > The Code-Snippet inside the FO-File is: > http://barcode4j.krysalis.org/ns"; > orientation="90" message="440180"> > > 10mm > 0.5mm > 3.0 > 10mw > > auto > > none > false > > > > > Can anyone tell me what's wrong with it? > > Thanks! > > Michael > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Problem with FOP, Barcode4J and AreaTreeModel
Hi, did you ask on Saxon mailing list at [1]? That should be the right place for such question. The NPE is thrown during Saxon stage. Then FOP stage runs after the Saxon one (as it takes XSL-FO as input). [1] https://lists.sourceforge.net/lists/listinfo/saxon-help 2013/12/3 Michael Mest : > Hi @all. > > At first, i want to introduce me. I'm Michael from germany and i'm working as > software developer. > > At the moment, we are in a project which include producing barcodes. > > We are using barcode4j in combination with FOP Ver. 1.1 in a WebApplication > hosted in a apache tomcat environment. > > Everything worked fine with creating files including the barcode until we got > a new feature request. because of this feature request, we are not able to > produce PDF-Files ans more. Instead, we have to produce pcl-files. > > Because of the measurement differences between pdf and pcl, we decides to > produce an AreaTree file first with overriding the renderer. > So the measurment is done in PDF-Style and after that, we convert the > AreaTree-File to a PCL-File. > > The problem is that we cannot produce the AreaTree file using saxon. > Everything works fine when whe use xalan, but wit saxon, we get a > NullPointerException inside the Methode "getNameCode" in Class > "net.sf.saxon.event.ReceivingContentHandler" > > The Namespace-URI seems to be Null! > > The Code-Snippet inside the FO-File is: > http://barcode4j.krysalis.org/ns"; > orientation="90" message="440180"> > > 10mm > 0.5mm > 3.0 > 10mw > > auto > > none > false > > > > > Can anyone tell me what's wrong with it? > > Thanks! > > Michael > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Problem with FOP, Barcode4J and AreaTreeModel
Hi @all. At first, i want to introduce me. I'm Michael from germany and i'm working as software developer. At the moment, we are in a project which include producing barcodes. We are using barcode4j in combination with FOP Ver. 1.1 in a WebApplication hosted in a apache tomcat environment. Everything worked fine with creating files including the barcode until we got a new feature request. because of this feature request, we are not able to produce PDF-Files ans more. Instead, we have to produce pcl-files. Because of the measurement differences between pdf and pcl, we decides to produce an AreaTree file first with overriding the renderer. So the measurment is done in PDF-Style and after that, we convert the AreaTree-File to a PCL-File. The problem is that we cannot produce the AreaTree file using saxon. Everything works fine when whe use xalan, but wit saxon, we get a NullPointerException inside the Methode "getNameCode" in Class "net.sf.saxon.event.ReceivingContentHandler" The Namespace-URI seems to be Null! The Code-Snippet inside the FO-File is: http://barcode4j.krysalis.org/ns"; orientation="90" message="440180"> 10mm 0.5mm 3.0 10mw auto none false Can anyone tell me what's wrong with it? Thanks! Michael - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org