Problem in generating bar code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Problem in generating bar code

Jacopo Cappellato-4
FYI, from the dev list:

Thanks Joe,

committed in  rev. 769500

Jacopo

On Apr 28, 2009, at 8:55 PM, Jacopo Cappellato wrote:

> Thanks Joe,
>
> there is an ongoing discussion in the user lists but you are right,  
> I have tested it and it works!
>
> I am going to commit this in a few minutes.
>
> Jacopo
>
>
> On Apr 28, 2009, at 7:59 PM, Joe Eckard wrote:
>
>> I haven't seen any mention of this, but I may have missed a message  
>> or issue - barcodes are not being displayed in fop output.
>>
>> I don't know the real fix, but if anyone is looking at this problem:
>>
>> If you move barcode4j-fop-ext-0.93.jar from "framework/webapp/lib/"  
>> to "framework/base/lib/" (where the fop jar is), it will work. You  
>> can also replace the old jar with the latest barcode4j fop-ext-
>> complete jar (added to "framework/base/lib/"), and it will work.
>>
>> -Joe
>
On Apr 27, 2009, at 2:48 PM, Christian Geisert wrote:

> Jacques Le Roux schrieb:
>> Yes, I confirm this issue.
>> Actually using either (barcode4j.jar + barcode4j-fop-ext.jar) or  
>> barcode4j-fop-ext-complete.jar (following
>> http://barcode4j.sourceforge.net/2.0/fop-ext.html), I'm eventually  
>> getting this error related to Batik(?)
>> java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
>> I checked we have the lastest versions of FOP (0.95) and Batik (1.7)
>> http://xmlgraphics.apache.org/fop/download.html
>> http://xmlgraphics.apache.org/batik/download.cgi
>> I will search a bit more and, if nobody see a reason, will revert  
>> to the previous state wich was working.
>
> This problem is another missing jar: xml-apis-ext-1.3.04.jar, i'll  
> add it to the svn repository.
> But the barcodes aren't still working yet ....I'll keep looking into  
> it
>
> --
> Christian
>


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem in generating bar code

Deepesh Kapoor
In reply to this post by Erwan de FERRIERES-3
Thanks Jacopo ,

Your commit resolved the problem, good old Barcodes are back now :-) .

Thanks & Regards
- -
Deepesh

Erwan de FERRIERES wrote:

> Here is the same problem, and they say that we should remove the old
> 0.93 jar, and use the new one. I've
>
> http://www.mail-archive.com/fop-users@.../msg10979.html 
>
>
> I've just tried, but always no barcode
>
>
> 2009-04-24 12:40:47,993 (http-0.0.0.0-8443-4) [
> ControlServlet.java:130:INFO ] [[[ProductBarCode.pdf] Request Begun,
> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
> 2009-04-24 12:40:48,148 (http-0.0.0.0-8443-4) [
> ConfigXMLReader.java:118:INFO ] controller loaded: 0.0010s, 17
> requests, 13 views in
> file:/home/erwan/workspace/ofbizTrunk/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml
>
> 2009-04-24 12:40:48,198 (http-0.0.0.0-8443-4) [
> ConfigXMLReader.java:118:INFO ] controller loaded: 0.067s, 452
> requests, 143 views in jndi:/0.0.0.0/catalog/WEB-INF/controller.xml
> 2009-04-24 12:40:48,201 (http-0.0.0.0-8443-4) [
> RequestHandler.java:692:INFO ] Rendering View [ProductBarCode.pdf],
> sessionId=A2E49C1C91B49EC33373814AC2039762.jvm1
> 2009-04-24 12:40:48,278 (http-0.0.0.0-8443-4) [
> ScreenFactory.java:129:INFO ] Got 36 screens in 0.049s from:
> file:/home/erwan/workspace/ofbizTrunk/ofbiz/applications/product/widget/catalog/ProductScreens.xml
>
> 2009-04-24 12:40:48,341 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^barcode
> 2009-04-24 12:40:48,342 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^code39
> 2009-04-24 12:40:48,342 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^height
> 2009-04-24 12:40:48,343 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^module-width
> 2009-04-24 12:40:48,343 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^human-readable
> 2009-04-24 12:40:48,343 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^placement
> 2009-04-24 12:40:48,343 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^font-name
> 2009-04-24 12:40:48,344 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^font-size
> 2009-04-24 12:40:48,344 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^display-start-stop
> 2009-04-24 12:40:48,344 (http-0.0.0.0-8443-4)
> [ElementMappingRegistry.java:147:WARN ] Unknown formatting object
> http://barcode4j.krysalis.org/ns^display-checksum
> 2009-04-24 12:40:48,346 (http-0.0.0.0-8443-4)
> [InstreamForeignObject.java:100:ERROR] Intrinsic dimensions of
> instream-foreign-object could not be determined
> 2009-04-24 12:40:48,347 (http-0.0.0.0-8443-4)
> [InstreamForeignObject.java:100:ERROR] Intrinsic dimensions of
> instream-foreign-object could not be determined
> 2009-04-24 12:40:48,347 (http-0.0.0.0-8443-4)
> [InstreamForeignObject.java:100:ERROR] Intrinsic dimensions of
> instream-foreign-object could not be determined
> 2009-04-24 12:40:48,358 (http-0.0.0.0-8443-4) [
> ControlServlet.java:299:INFO ] [[[ProductBarCode.pdf] Request Done-
> total:0.364,since last([ProductBarCode.p...):0.364]]
>
>
> Jacopo Cappellato a écrit :
>> well,
>>
>> the warning message is now fixed in rev.  768246 but the bar code is
>> still not rendered.
>> I suspect that this is related to the fop upgrade from 0.94 to 0.95
>> (rev. 766125).
>> One question I have is: is barcode4j-fop-ext-0.20.5-complete.jar
>> (contained in barcode4j-2.0 newer than the one we are using
>> (barcode4j-fop-ext-0.93.jar)? It doesn't seem from the release
>> number, but I suspect that 0.93 is referred to the FOP version it is
>> designed for...
>>
>> Jacopo
>>
>> On Apr 24, 2009, at 11:56 AM, Jacopo Cappellato wrote:
>>
>>> Ok,
>>>
>>> I think I can fix this... give me a few minutes
>>>
>>> Jacopo
>>>
>>> On Apr 24, 2009, at 11:39 AM, Erwan de FERRIERES wrote:
>>>
>>>> Hi,
>>>> we are at the same point for the moment...
>>>>
>>>> The point that is interessant is this line when you try to print
>>>> the barcode :
>>>> ModelScreenWidget.java:972:WARN ] In platform-dependent could not
>>>> find template for xsl-fo, using the one for html.
>>>>
>>>> So it seems that there is no subWidget defined for printing the
>>>> xsl-fo file, or it has a null value.
>>>>
>>>>           ModelScreenWidget subWidget = null;
>>>>           subWidget =
>>>> (ModelScreenWidget)subWidgets.get(screenStringRenderer.getRendererName());
>>>>
>>>>           if (subWidget == null) {
>>>>               // This is here for backward compatibility
>>>>               Debug.logWarning("In platform-dependent could not
>>>> find template for " + screenStringRenderer.getRendererName() + ",
>>>> using the one for html.", module);
>>>>               subWidget = (ModelScreenWidget)subWidgets.get("html");
>>>>           }
>>>>           if (subWidget != null) {
>>>>               subWidget.renderWidgetString(writer, context,
>>>> screenStringRenderer);
>>>>           }
>>>>
>>>> So, maybe there is something to dig in this direction or maybe I'm
>>>> totally on the wrong idea !
>>>>
>>>> Cheers,
>>>>
>>>> Santosh Malviya a écrit :
>>>>> Hello Erwan,
>>>>> Thanks for your reply,  following your suggestion I downloaded the
>>>>> jar barcode4j-fop-ext-complete.jar from link  
>>>>> http://sourceforge.net/project/showfiles.php?group_id=96670&package_id=103341&release_id=599201,
>>>>> and put the jar in framework/webapp/lib and also in classpath,  
>>>>> but still I am not able to see barcode in my pdf.  Please suggest
>>>>> if I am missing something.
>>>>> Thanks and Regards
>>>>> Santosh Malviya
>>>>> Erwan de FERRIERES wrote:
>>>>>> the problem is not from the website, I've been trying to generate
>>>>>> barcodes with an older version and it is working.
>>>>>>
>>>>>> For the fop barcode library, it is said that with fop 0.95 it's
>>>>>> better to use the 2.0 to make it work, but this changes nothing.
>>>>>> you have to put the new library (barcode4j-fop-ext-complete.jar)
>>>>>> in framework/webapp/lib/ and update your .classpath file.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Santosh Malviya a écrit :
>>>>>>> Hello all,
>>>>>>> We are facing a problem of generating bar code inside pdf, same
>>>>>>> problem with OOTB but it was being generated until few days
>>>>>>> back, cause may be the following site in the code  
>>>>>>> <barcode:barcode
>>>>>>> xmlns:barcode="http://barcode4j.krysalis.org/ns" />. When we try
>>>>>>> to open this site there is an error message of "The page can't
>>>>>>> be found". Because of this site used in the code we get
>>>>>>> following error/warning on console : 2009-03-17 15:00:39,847
>>>>>>> (http-0.0.0.0-8443-1) [ElementMappingRegistry.java:147:WARN ]
>>>>>>> Unknown formatting object http://barcode4j.krysalis.org/ns^barcode
>>>>>>> 2009-03-17 15:00:39,849 (http-0.0.0.0-8443-1)
>>>>>>> [ElementMappingRegistry.java:147:WARN ] Unknown formatting
>>>>>>> object http://barcode4j.krysalis.org/ns^ean-8
>>>>>>> 2009-03-17 15:00:39,850 (http-0.0.0.0-8443-1)
>>>>>>> [ElementMappingRegistry.java:147:WARN ] Unknown formatting
>>>>>>> object http://barcode4j.krysalis.org/ns^code39
>>>>>>> 2009-03-17 15:00:39,851 (http-0.0.0.0-8443-1)
>>>>>>> [ElementMappingRegistry.java:147:WARN ] Unknown formatting
>>>>>>> object http://barcode4j.krysalis.org/ns^height
>>>>>>> 2009-03-17 15:00:39,851 (http-0.0.0.0-8443-1)
>>>>>>> [ElementMappingRegistry.java:147:WARN ] Unknown formatting
>>>>>>> object http://barcode4j.krysalis.org/ns^module-width
>>>>>>> 2009-03-17 15:00:39,855 (http-0.0.0.0-8443-1) [      
>>>>>>> PropertyList.java:423:ERROR] Ignoring property:
>>>>>>> text-align="bottom" (null:164:84: No conversion defined bottom;
>>>>>>> property:'text-align')
>>>>>>>
>>>>>>> 2009-03-17 15:00:39,898 (http-0.0.0.0-8443-1)
>>>>>>> [InstreamForeignObject.java:101:ERROR] Intrinsic dimensions of  
>>>>>>> instream-foreign-object could not be determined
>>>>>>> 2009-03-17 15:00:39,900 (http-0.0.0.0-8443-1)
>>>>>>> [InstreamForeignObject.java:101:ERROR] Intrinsic dimensions of  
>>>>>>> instream-foreign-object could not be determined
>>>>>>> 2009-03-17 15:00:39,900 (http-0.0.0.0-8443-1)
>>>>>>> [InstreamForeignObject.java:101:ERROR] Intrinsic dimensions of  
>>>>>>> instream-foreign-object could not be determined
>>>>>>> 2009-03-17 15:00:39,907 (http-0.0.0.0-8443-1) [  
>>>>>>> LineLayoutManager.java:384:WARN ] Line 1 of a paragraph
>>>>>>> overflows the available area. (fo:block, location: 188/24)
>>>>>>>
>>>>>>> Please suggest if any solution for this problem.
>>>>>>> Thanks in advance.
>>>>>>>
>>>>>>> Thanks and Regards
>>>>>>> Santosh Malviya
>>>>>>>
>>>>>>>
>>>>>>
>>>>
>>>> --
>>>> - Erwan -
>>>
>>
>

12