<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/jbarcodebean/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/jbarcodebean/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 10 Sep 2010 10:08:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jbarcodebean/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Code128 generate wrong output for Carriage Return character</title><link>https://sourceforge.net/p/jbarcodebean/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;From a simple example&lt;/p&gt;
&lt;p&gt;import java.io.*;&lt;br /&gt;
import javax.imageio.*;&lt;br /&gt;
import java.awt.image.*;&lt;/p&gt;
&lt;p&gt;import net.sourceforge.jbarcodebean.*;&lt;br /&gt;
import net.sourceforge.jbarcodebean.model.*;&lt;/p&gt;
&lt;p&gt;public class Main {&lt;br /&gt;
public Main() {&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;public static void main(String[] args) {&lt;br /&gt;
Code128 bar = new Code128();&lt;/p&gt;
&lt;p&gt;JBarcodeBean bean = new JBarcodeBean("|A\rB\nC", bar);&lt;/p&gt;
&lt;p&gt;bean.setShowText(true);&lt;br /&gt;
BufferedImage image = new BufferedImage(400, 100, BufferedImage.TYPE_INT_ARGB);&lt;br /&gt;
bean.draw(image);&lt;/p&gt;
&lt;p&gt;try {&lt;br /&gt;
ImageIO.write(image, "png", new File("c:/result.png"));&lt;br /&gt;
} catch (IOException e) {&lt;br /&gt;
e.printStackTrace();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Then I print and scan a barcode that has been generated&lt;br /&gt;
I get the result &lt;/p&gt;
&lt;p&gt;"|A109B106C"&lt;/p&gt;
&lt;p&gt;So I work around with your sourcecode then I think the fault come from java source file Code128.java&lt;/p&gt;
&lt;p&gt;&lt;a href="http://jbarcodebean.svn.sourceforge.net/viewvc/jbarcodebean/branches/maven/jbarcodebean/src/main/java/net/sourceforge/jbarcodebean/model/Code128.java?revision=55&amp;amp;view=markup"&gt;http://jbarcodebean.svn.sourceforge.net/viewvc/jbarcodebean/branches/maven/jbarcodebean/src/main/java/net/sourceforge/jbarcodebean/model/Code128.java?revision=55&amp;amp;view=markup&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;At method preprocess(String text) line 359&lt;/p&gt;
&lt;p&gt;preprocessed += (c1 + '`');&lt;/p&gt;
&lt;p&gt;If the character is '\r' the preprocessed value after this line will be a preprocessed concatenate with "109"&lt;br /&gt;
I changed that sourcecode to &lt;/p&gt;
&lt;p&gt;preprocessed += (char)(c1 + '`'); &lt;/p&gt;
&lt;p&gt;and debug it&lt;br /&gt;
The value of preprocessed after line 359 is preprocessed concatenate with "m"&lt;br /&gt;
Then I print a barcode and then scan it again&lt;br /&gt;
I get the result&lt;/p&gt;
&lt;p&gt;|A&lt;br /&gt;
B&lt;br /&gt;
C&lt;/p&gt;
&lt;p&gt;I must use '\r' because it's barcode printing format from the bank&lt;br /&gt;
I'm not sure what I do is a correct way&lt;br /&gt;
Please correct me if wrong.&lt;/p&gt;
&lt;p&gt;Can you fix this bug?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">spynet71</dc:creator><pubDate>Fri, 10 Sep 2010 10:08:53 -0000</pubDate><guid>https://sourceforge.net22e73fceff11add36fe7b5ab8f1ee218e464d150</guid></item><item><title>v.1.2.0 is not loaded as a bean in Servoy</title><link>https://sourceforge.net/p/jbarcodebean/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;With version 1.1.5, JBarcodeBean is loaded as a Bean in Servoy Developer (Eclipse), and it works properly. But last version (1.2.0) is not recognized as a bean, then not loaded.&lt;/p&gt;
&lt;p&gt;Tip; this version is not marked as a bean in Manifest file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Gerardo.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 10 Apr 2010 19:00:30 -0000</pubDate><guid>https://sourceforge.netac50c316b150c39821014c3b27e60b0828f3def8</guid></item><item><title>null poiner exception while making GIF</title><link>https://sourceforge.net/p/jbarcodebean/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;when runing Demo.jar and clicking on "Make GIF" i get the folowing error on the concole.&lt;/p&gt;
&lt;p&gt;java.lang.NullPointerException&lt;br /&gt;
at java.awt.geom.Area.&amp;lt;init&amp;gt;(Area.java:52)&lt;br /&gt;
at jbarcodebean.JBarcodeBean.doPaint(Unknown Source)&lt;br /&gt;
at jbarcodebean.JBarcodeBean.gifEncode(Unknown Source)&lt;br /&gt;
at JavaBarCode.gifButton_actionPerformed(JavaBarCode.java:128)&lt;br /&gt;
at JavaBarCode$4.actionPerformed(JavaBarCode.java:95)&lt;br /&gt;
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)&lt;br /&gt;
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)&lt;br /&gt;
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)&lt;br /&gt;
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)&lt;br /&gt;
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:211)&lt;br /&gt;
at java.awt.Component.processMouseEvent(Component.java:3710)&lt;br /&gt;
at java.awt.Component.processEvent(Component.java:3539)&lt;br /&gt;
at java.awt.Container.processEvent(Container.java:1159)&lt;br /&gt;
at java.awt.Component.dispatchEventImpl(Component.java:2588)&lt;br /&gt;
at java.awt.Container.dispatchEventImpl(Container.java:1208)&lt;br /&gt;
at java.awt.Component.dispatchEvent(Component.java:2492)&lt;br /&gt;
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)&lt;br /&gt;
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2211)&lt;br /&gt;
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)&lt;br /&gt;
at java.awt.Container.dispatchEventImpl(Container.java:1195)&lt;br /&gt;
at java.awt.Window.dispatchEventImpl(Window.java:921)&lt;br /&gt;
at java.awt.Component.dispatchEvent(Component.java:2492)&lt;br /&gt;
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)&lt;br /&gt;
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)&lt;/p&gt;
&lt;p&gt;has this been solved in any future releases?&lt;br /&gt;
i am running using jdk131.&lt;br /&gt;
my email id is nivgeo@yahoo.com...&lt;br /&gt;
plese respond at the earliest.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 09 Dec 2007 06:47:57 -0000</pubDate><guid>https://sourceforge.neta527414b93687960092047b0ddb13507dd6579a2</guid></item><item><title>NullPointer exception when running demo</title><link>https://sourceforge.net/p/jbarcodebean/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When running "java -jar Demo.jar" I click "Output GIF", type in a filename and press "Save". I get &lt;br /&gt;
"Error writing GIF file". &lt;br /&gt;
with a Null Pointer exception.&lt;br /&gt;
I get this with build 1.6.0_03-b05 and&lt;br /&gt;
gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-13)&lt;/p&gt;
&lt;p&gt;The problem seems to be caused by &lt;br /&gt;
Area areaNewClip=new Area(newClip);&lt;br /&gt;
in JBarcodeBean.java&lt;/p&gt;
&lt;p&gt;One minor suggestion, in Demo.java, change &lt;/p&gt;
&lt;p&gt;} catch (Exception ex) {&lt;br /&gt;
JOptionPane.showMessageDialog(this, "Error writing GIF file", "Error", JOptionPane.ERROR_MESSAGE);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;to&lt;br /&gt;
} catch (Exception ex) {&lt;br /&gt;
ex.printStackTrace();&lt;br /&gt;
JOptionPane.showMessageDialog(this, "Error writing GIF file: " + ex, "Error", JOptionPane.ERROR_MESSAGE);&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Grymoire</dc:creator><pubDate>Thu, 11 Oct 2007 17:03:45 -0000</pubDate><guid>https://sourceforge.net5f96892c53e763090b195b83408b27ed0f1c3268</guid></item><item><title>unnecessary exception thrown JBarcodeBean.setCheckDigit</title><link>https://sourceforge.net/p/jbarcodebean/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When calling JBarcodeBean.setCheckDigit() it is&lt;br /&gt;
possible to get a BarcodeException. This is the case if&lt;/p&gt;
&lt;p&gt;a) the current codeType has always a&lt;br /&gt;
checksum(BarcodeStrategy.MANDATORY_CHECKSUM) and you&lt;br /&gt;
want to call setCheckDigit(false), or&lt;/p&gt;
&lt;p&gt;b) the current codeType has no&lt;br /&gt;
checksum(BarcodeStrategy.NO_CHECKSUM) and you want to&lt;br /&gt;
call setCheckDigit(true)&lt;/p&gt;
&lt;p&gt;In both cases you get a BarcodeException. We think the&lt;br /&gt;
behaviour and signature of setCheckDigit should be&lt;br /&gt;
changed to &lt;/p&gt;
&lt;p&gt;a) not throw a BarcodeException anymore, and&lt;/p&gt;
&lt;p&gt;b) ignore setCheckDigit(false) for a codeType with&lt;br /&gt;
BarcodeStrategy.MANDATORY_CHECKSUM and&lt;br /&gt;
setCheckDigit(true) for a codeType with&lt;br /&gt;
BarcodeStrategy.NO_CHECKSUM&lt;/p&gt;
&lt;p&gt;We currently had a propery editor where you could&lt;br /&gt;
change all properties of the JBarcodeBeand in a JTable&lt;br /&gt;
and save them. If you now had a codeType with&lt;br /&gt;
BarcodeStrategy.NO_CHECKSUM and checkDigit "false" and&lt;br /&gt;
then changed the codeType to one having&lt;br /&gt;
BarcodeStrategy.MANDATORY_CHECKSUM then we get an error&lt;br /&gt;
that checkDigit can't be set to "false". &lt;/p&gt;
&lt;p&gt;We think that not throwing the BarcodeException would&lt;br /&gt;
be a better solution as no other set-method of&lt;br /&gt;
JBarcodeBean throws an Exception either. It is also&lt;br /&gt;
understandable that a try to set a checkDigit to a&lt;br /&gt;
codeType having no checksum and a try to disable the&lt;br /&gt;
checksum for a codeType where checksum is mandatory&lt;br /&gt;
will be ignored.&lt;br /&gt;
We also guess that the thrown Exception will currently&lt;br /&gt;
be catched anyway and ignored.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matthias Hanisch</dc:creator><pubDate>Tue, 18 Oct 2005 12:17:45 -0000</pubDate><guid>https://sourceforge.net45551d9e1ca924ec2351d06c3870f60737a4b59e</guid></item><item><title>JBarcodeBeanBeanInfo.getIcon</title><link>https://sourceforge.net/p/jbarcodebean/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The method JBarcodeBeanBeanInfo.getIcon does not work.&lt;br /&gt;
I think the cause is that the names of the images in&lt;br /&gt;
source code and in the jar file are differently.&lt;/p&gt;
&lt;p&gt;Volker&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Volker Berlin</dc:creator><pubDate>Fri, 22 Jul 2005 14:58:49 -0000</pubDate><guid>https://sourceforge.net093d55d61195a513b7777a3eefcd240cc3ba41e4</guid></item><item><title>Clip is ignored on painting</title><link>https://sourceforge.net/p/jbarcodebean/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The background is printing correct in the clipping. The&lt;br /&gt;
Barcode self is printing over the border of the parent&lt;br /&gt;
component.&lt;/p&gt;
&lt;p&gt;The problem is in class JBarcodeBean in method doPaint.&lt;/p&gt;
&lt;p&gt;The follow line:&lt;/p&gt;
&lt;p&gt;g.setClip(insets.left, insets.top,&lt;br /&gt;
d.width - insets.left - insets.right, d.height -&lt;br /&gt;
insets.top - insets.bottom);&lt;/p&gt;
&lt;p&gt;does not consider the setting clip. The current clip&lt;br /&gt;
and the new clip must be merge. Currently it print over&lt;br /&gt;
the border of a scroll pane.&lt;/p&gt;
&lt;p&gt;Volker&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Volker Berlin</dc:creator><pubDate>Fri, 22 Jul 2005 14:37:25 -0000</pubDate><guid>https://sourceforge.netece65d31b65b0df9a5d619c359f49db5606c4fa3</guid></item></channel></rss>