From: Sehdev, A. <Ano...@la...> - 2007-02-14 15:06:04
|
Thanks. That's fixed it. Regards Anoop -----Original Message----- From: Jeremias Maerki [mailto:de...@je...] Sent: 14 February 2007 13:28 To: bar...@li... Subject: Re: [Barcode4j-users] Barcode4J and PDF417 (Barcode4J 2.0 alpha 2 released) I've released Barcode4J 2.0 alpha 2 with the fix for the FOP 0.20.5 extension. Anoop, please retry and let me know if it works. Thanks. http://sourceforge.net/project/showfiles.php?group_id=3D96670 On 13.02.2007 21:21:37 Jeremias Maerki wrote: > Thanks, Anoop, that helps. Looks like I forgot to add the new barcode > types to the FOP 0.20.5 extension. I'll fix this tomorrow and will > post a new JAR file. >=20 > On 13.02.2007 10:02:25 Sehdev, Anoop wrote: > > Thanks. > >=20 > > I am using following FO: > >=20 > > <fo:block> > > <fo:instream-foreign-object> > > <barcode:barcode xmlns:barcode=3D"http://barcode4j.krysalis.org/ns"= message=3D"12312332"> > > <barcode:pdf417> > >=20 > > </barcode:pdf417> > > </barcode:barcode> > > </fo:instream-foreign-object> > > </fo:block> > >=20 > > Complete stack trace is as follows: > >=20 > > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > > [INFO] building formatting object tree > > [INFO] setting up fonts > > [ERROR] Unsupported element encountered: pdf417 (Namespace: http://barc= ode4j.krysalis.org/ns). Source context: Unknown source (line: 32, col: 23) > > [ERROR] Expected XSL-FO (root, page-sequence, etc.), SVG (svg, rect, et= c.) or elements from another supported language. > > [INFO] [1] > > [ERROR] Error generating barcode: Barcode configuration element expected > > org.apache.fop.apps.FOPException: Error generating barcode > > at org.krysalis.barcode4j.fop0205.BarcodeElement.layout(BarcodeElement= .java:230) > > at org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeign= Object.java:251) > > at org.apache.fop.fo.flow.Block.layout(Block.java:257) > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) > > at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.jav= a:400) > > at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:= 338) > > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) > > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) > > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Sour= ce) > > at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unkn= own Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConte= ntDispatcher.dispatch(Unknown Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(= Unknown Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > at org.apache.fop.apps.Driver.render(Driver.java:498) > > at org.apache.fop.apps.Driver.run(Driver.java:565) > > at com.pack.communication.PDFRendererPipe.writeBytes(PDFRendererPipe.j= ava:65) > > at com.pack.communication.SDOVelocitySource.render(SDOVelocitySource.j= ava:34) > > at com.pack.communication.PipelineDocumentRenderer.render(PipelineDocu= mentRenderer.java:35) > > at com.pack.communication.CommunicationServiceImplTest.testGenerateCus= tomerDocumentString(CommunicationServiceImplTest.java:33) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:85) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:58) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:60) > > at java.lang.reflect.Method.invoke(Method.java:391) > > at junit.framework.TestCase.runTest(TestCase.java:154) > > at junit.framework.TestCase.runBare(TestCase.java:127) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Rem= oteTestRunner.java:436) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTe= stRunner.java:311) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteT= estRunner.java:192) > >=20 > > --------- > >=20 > > org.krysalis.barcode4j.BarcodeException: Barcode configuration element = expected > > at org.krysalis.barcode4j.BarcodeUtil.createBarcodeGenerator(BarcodeUt= il.java:85) > > at org.krysalis.barcode4j.BarcodeUtil.createBarcodeGenerator(BarcodeUt= il.java:138) > > at org.krysalis.barcode4j.fop0205.BarcodeElement.layout(BarcodeElement= .java:203) > > at org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeign= Object.java:251) > > at org.apache.fop.fo.flow.Block.layout(Block.java:257) > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) > > at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.jav= a:400) > > at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:= 338) > > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) > > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) > > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Sour= ce) > > at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unkn= own Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConte= ntDispatcher.dispatch(Unknown Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(= Unknown Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > at org.apache.fop.apps.Driver.render(Driver.java:498) > > at org.apache.fop.apps.Driver.run(Driver.java:565) > > at com.pack.communication.PDFRendererPipe.writeBytes(PDFRendererPipe.j= ava:65) > > at com.pack.communication.SDOVelocitySource.render(SDOVelocitySource.j= ava:34) > > at com.pack.communication.PipelineDocumentRenderer.render(PipelineDocu= mentRenderer.java:35) > > at com.pack.communication.CommunicationServiceImplTest.testGenerateCus= tomerDocumentString(CommunicationServiceImplTest.java:33) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:85) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:58) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:60) > > at java.lang.reflect.Method.invoke(Method.java:391) > > at junit.framework.TestCase.runTest(TestCase.java:154) > > at junit.framework.TestCase.runBare(TestCase.java:127) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Rem= oteTestRunner.java:436) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTe= stRunner.java:311) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteT= estRunner.java:192) > >=20 > > --------- > >=20 > > org.krysalis.barcode4j.BarcodeException: Barcode configuration element = expected > > at org.krysalis.barcode4j.BarcodeUtil.createBarcodeGenerator(BarcodeUt= il.java:85) > > at org.krysalis.barcode4j.BarcodeUtil.createBarcodeGenerator(BarcodeUt= il.java:138) > > at org.krysalis.barcode4j.fop0205.BarcodeElement.layout(BarcodeElement= .java:203) > > at org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeign= Object.java:251) > > at org.apache.fop.fo.flow.Block.layout(Block.java:257) > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) > > at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.jav= a:400) > > at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:= 338) > > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) > > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) > > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Sour= ce) > > at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unkn= own Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConte= ntDispatcher.dispatch(Unknown Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(= Unknown Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > at org.apache.fop.apps.Driver.render(Driver.java:498) > > at org.apache.fop.apps.Driver.run(Driver.java:565) > > at com.pack.communication.PDFRendererPipe.writeBytes(PDFRendererPipe.j= ava:65) > > at com.pack.communication.SDOVelocitySource.render(SDOVelocitySource.j= ava:34) > > at com.pack.communication.PipelineDocumentRenderer.render(PipelineDocu= mentRenderer.java:35) > > at com.pack.communication.CommunicationServiceImplTest.testGenerateCus= tomerDocumentString(CommunicationServiceImplTest.java:33) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:85) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:58) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:60) > > at java.lang.reflect.Method.invoke(Method.java:391) > > at junit.framework.TestCase.runTest(TestCase.java:154) > > at junit.framework.TestCase.runBare(TestCase.java:127) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Rem= oteTestRunner.java:436) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTe= stRunner.java:311) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteT= estRunner.java:192) > > com.pack.exception.SOARuntimeException: FOP Exception =20 > > at com.pack.communication.PDFRendererPipe.writeBytes(PDFRendererPipe.j= ava:74) > > at com.pack.communication.SDOVelocitySource.render(SDOVelocitySource.j= ava:34) > > at com.pack.communication.PipelineDocumentRenderer.render(PipelineDocu= mentRenderer.java:35) > > at com.pack.communication.CommunicationServiceImplTest.testGenerateCus= tomerDocumentString(CommunicationServiceImplTest.java:33) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:85) > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:58) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:60) > > at java.lang.reflect.Method.invoke(Method.java:391) > > at junit.framework.TestCase.runTest(TestCase.java:154) > > at junit.framework.TestCase.runBare(TestCase.java:127) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Rem= oteTestRunner.java:436) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTe= stRunner.java:311) > > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteT= estRunner.java:192) > > Caused by: org.apache.fop.apps.FOPException: Error generating barcode > > at org.krysalis.barcode4j.fop0205.BarcodeElement.layout(BarcodeElement= .java:230) > > at org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeign= Object.java:251) > > at org.apache.fop.fo.flow.Block.layout(Block.java:257) > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) > > at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.jav= a:400) > > at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:= 338) > > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) > > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) > > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Sour= ce) > > at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unkn= own Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConte= ntDispatcher.dispatch(Unknown Source) > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(= Unknown Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > at org.apache.fop.apps.Driver.render(Driver.java:498) > > at org.apache.fop.apps.Driver.run(Driver.java:565) > > at com.pack.communication.PDFRendererPipe.writeBytes(PDFRendererPipe.j= ava:65) > > ... 19 more > >=20 > > -----Original Message----- > > From: Jeremias Maerki [mailto:de...@je...] > > Sent: 12 February 2007 21:32 > > To: bar...@li... > > Subject: Re: [Barcode4j-users] Barcode4J and PDF417 > >=20 > >=20 > > Anoop, you need to give me some more information. Otherwise, I'm afraid > > I cannot help you. I cannot reproduce this without knowing which message > > you wanted to encode. Could you please also check if you have another > > stacktrace in your logs because the one you presented is only a caught > > exception? The original exception is somewhere else. > >=20 > > The wonderful thing about this: You're the first, a month after the > > release, after over 700 downloads and despite the explicit call for > > feedback, to actually give some feedback on the new Barcode4J. Thanks, > > Anoop! :-) > >=20 > > On 12.02.2007 18:07:26 Sehdev, Anoop wrote: > > > Hi, > > >=20 > > > I am new to BarCode4J. I am trying to use PDF417 implementation and g= etting following error: > > >=20 > > > I am using FOP 0.20.5 while trying to generate a PDF. > > >=20 > > > Any Ideas ? > > >=20 > > > Caused by: org.apache.fop.apps.FOPException: Error generating barcode > > > at org.krysalis.barcode4j.fop0205.BarcodeElement.layout(BarcodeEleme= nt.java:230) > > > at org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForei= gnObject.java:251) > > > at org.apache.fop.fo.flow.Block.layout(Block.java:257) > > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) > > > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) > > > at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.j= ava:400) > > > at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.jav= a:338) > > > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) > > > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) > > > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown So= urce) > > > at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Un= known Source) > > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCon= tentDispatcher.dispatch(Unknown Source) > > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocumen= t(Unknown Source) > > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > > at org.apache.fop.apps.Driver.render(Driver.java:498) > > > at org.apache.fop.apps.Driver.run(Driver.java:565) > > > at com.pack.communication.PDFRendererPipe.writeBytes(PDFRendererPipe= .java:65) > > >=20 > > > Regards > > > Anoop Jeremias Maerki This e-mail (and any attachments) may contain privileged and/or confidentia= l information. If you are not the intended recipient please do not disclose= , copy, distribute, disseminate or take any action in reliance on it. If yo= u have received this message in error please reply and tell us and then del= ete it. Should you wish to communicate with us by e-mail we cannot guarante= e the security of any data outside our own computer systems. For the protec= tion of Legal & General's systems and staff, incoming emails will be automa= tically scanned. Any information contained in this message may be subject to applicable term= s and conditions and must not be construed as giving investment advice with= in or outside the United Kingdom. The following companies are subsidiary companies of the Legal & General Gro= up Plc which are authorised and regulated by the Financial Services Authori= ty for advising and arranging the products shown: Legal & General Partnersh= ip Services Limited (insurance and mortgages), Legal & General Insurance Li= mited (insurance), Legal & General Assurance Society Limited=20 (life assurance, pensions and investments), Legal & General Unit Trust Mana= gers Limited and Legal & General Portfolio Management Services Limited (inv= estments). They are registered in England under numbers shown. The registered office is Temple Court, 11 Queen Victoria Street, London EC4= N 4TP. Legal & General Partnership Services Limited: 5045000 Legal & General Assur= ance Society Limited: 166055 Legal & General (Unit Trust Managers) Limited:= 1009418 Legal & General (Portfolio Management Services) Limited: 2457525 L= egal & General Insurance Limited: 423930 They are registered with the Financial Services Authority under numbers sho= wn. You can check this at www.fsa.gov.uk/register Legal & General Partnership Services Limited: 300792 Legal & General Assura= nce Society Limited: 117659 Legal & General (Unit Trust Managers) Limited: = 119273 Legal & General (Portfolio Management Services) Limited: 146786 Lega= l & General Insurance Limited: 202050 |