Printing does not work on the first attempt. On the second attempt to print I receive an error, but it does print. The error is...
Error
Message:
java.lang.IllegalArgumentException: justificationWidth <= 0 passed to TextLayout.getJustifiedLayout()
Level:
WARNING
Stack Trace:
justificationWidth = 0 passed to TextLayout.getJustifiedLayout()
java.awt.font.TextLayout.getJustifiedLayout(Unknown Source)
sun.swing.SwingUtilities2.drawString(Unknown Source)
sun.swing.SwingUtilities2.drawStringUnderlineCharAt(Unknown Source)
javax.swing.plaf.basic.BasicGraphicsUtils.drawStringUnderlineCharAt(Unknown Source)
javax.swing.plaf.basic.BasicGraphicsUtils.drawString(Unknown Source)
com.jtattoo.plaf.JTattooUtilities.drawStringUnderlineCharAt(Unknown Source)
com.jtattoo.plaf.BaseLabelUI.paintEnabledText(Unknown Source)
javax.swing.plaf.basic.BasicLabelUI.paint(Unknown Source)
javax.swing.plaf.ComponentUI.update(Unknown Source)
javax.swing.JComponent.paintComponent(Unknown Source)
javax.swing.JComponent.printComponent(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.CellRendererPane.paintComponent(Unknown Source)
javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
javax.swing.plaf.ComponentUI.update(Unknown Source)
javax.swing.JComponent.paintComponent(Unknown Source)
javax.swing.JComponent.printComponent(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.JComponent.print(Unknown Source)
com.leclercb.taskunifier.gui.components.print.TableReport.print(TableReport.java:223)
sun.print.RasterPrinterJob.printPage(Unknown Source)
sun.print.RasterPrinterJob.print(Unknown Source)
com.leclercb.taskunifier.gui.components.print.PrintUtils.printTable(PrintUtils.java:73)
com.leclercb.taskunifier.gui.components.tasks.table.TaskTable.printTasks(TaskTable.java:287)
com.leclercb.taskunifier.gui.actions.ActionPrint.print(ActionPrint.java:85)
com.leclercb.taskunifier.gui.actions.ActionPrint.actionPerformed(ActionPrint.java:69)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.AbstractButton.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEventImpl(Unknown Source)
java.awt.EventQueue.access$000(Unknown Source)
java.awt.EventQueue$1.run(Unknown Source)
java.awt.EventQueue$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue$2.run(Unknown Source)
java.awt.EventQueue$2.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
com.leclercb.taskunifier.gui.swing.EventQueueProxy.dispatchEvent(EventQueueProxy.java:51)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)
Anonymous
What are you trying to print ?
Notes or tasks ?
I could reproduce it once with notes, but never with tasks.
When you say it does print, you mean it does print it correctly but shows the error ?
I am printing tasks. The latest version prints on the first attempt, but I still get the same error (warning). I am using version 3.1.2.
Last edit: Greg 2012-11-12
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
So, it does print correctly, the printed pages contains the selected tasks and the format is ok ? But TU also shows an error message ?
It appears to print correctly, albeit differently (less graphics/colors, more text) than version 2.2.
Printing with version 3.1.3 does NOT generate an error. It appears this can be closed.
Still happening sometimes
Fixed in next release
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I am having the similar printing problem while trying to print a task list, I received the error message but it doesn't print. I am using 3.2.1
Error message is:
Error
Message:
java.lang.NullPointerException
Level:
WARNING
Stack Trace:
null
com.leclercb.taskunifier.gui.components.tasks.table.TaskPrintTableColumn$1.getTableCellRendererComponent(TaskPrintTableColumn.java:76)
javax.swing.JTable.prepareRenderer(Unknown Source)
org.jdesktop.swingx.JXTable.prepareRenderer(JXTable.java:3537)
org.jdesktop.swingx.table.ColumnFactory.packColumn(ColumnFactory.java:398)
org.jdesktop.swingx.JXTable.packColumn(JXTable.java:2700)
org.jdesktop.swingx.JXTable.packTable(JXTable.java:2669)
org.jdesktop.swingx.JXTable.packAll(JXTable.java:1208)
com.leclercb.taskunifier.gui.components.tasks.table.TaskPrintTable.initialize(TaskPrintTable.java:65)
com.leclercb.taskunifier.gui.components.tasks.table.TaskPrintTable.<init>(TaskPrintTable.java:47)
com.leclercb.taskunifier.gui.components.tasks.table.TaskTable.printTasks(TaskTable.java:291)
com.leclercb.taskunifier.gui.actions.ActionPrint.print(ActionPrint.java:87)
com.leclercb.taskunifier.gui.actions.ActionPrint.actionPerformed(ActionPrint.java:69)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.AbstractButton.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEventImpl(Unknown Source)
java.awt.EventQueue.access$200(Unknown Source)
java.awt.EventQueue$3.run(Unknown Source)
java.awt.EventQueue$3.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue$4.run(Unknown Source)
java.awt.EventQueue$4.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
com.leclercb.taskunifier.gui.swing.EventQueueProxy.dispatchEvent(EventQueueProxy.java:51)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)</init>