Openbravo Issue Tracking System - Java Client POS
View Issue Details
0009759Java Client POS(No Category)public2009-07-03 12:142010-07-23 00:00
lucpmaes 
adrianromero 
normalmajoralways
closedfixed 
10Vista & XP
2.30 
2.402.30.1 
0009759: Error when pressing "print" button for reports
Whenever trying to print a (jasper) report the user receives an empty notification box with "message" in title line.
The background exception is:

org.jvnet.substance.api.UiThreadingViolationException: Component creation must b
e done on Event Dispatch Thread
        at org.jvnet.substance.utils.SubstanceCoreUtilities.testComponentCreatio
nThreadingViolation(SubstanceCoreUtilities.java:2322)
        at org.jvnet.substance.SubstanceRootPaneUI.createUI(SubstanceRootPaneUI.
java:144)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at javax.swing.UIDefaults.getUI(Unknown Source)
        at javax.swing.UIManager.getUI(Unknown Source)
        at javax.swing.JRootPane.updateUI(Unknown Source)
        at javax.swing.JRootPane.<init>(Unknown Source)
        at javax.swing.JDialog.createRootPane(Unknown Source)
        at javax.swing.JDialog.dialogInit(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at javax.swing.JOptionPane.createDialog(Unknown Source)
        at javax.swing.JOptionPane.showOptionDialog(Unknown Source)
        at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
        at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
        at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
        at com.openbravo.pos.util.JRViewer300$21.run(JRViewer300.java:1156)
        at java.lang.Thread.run(Unknown Source)
UIDefaults.getUI() failed: createUI() failed for javax.swing.JRootPane[,0,0,0x0,
invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,bo
rder=,flags=1,maximumSize=,minimumSize=,preferredSize=] java.lang.reflect.Invoca
tionTargetException
java.lang.Error
        at javax.swing.UIDefaults.getUIError(Unknown Source)
        at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
create any report and press the "printer" button to print the report
no clue
No tags attached.
Issue History
2009-07-03 12:14lucpmaesNew Issue
2009-07-03 12:14lucpmaesAssigned To => adrianromero
2009-07-07 16:41hgbotCheckin
2009-07-07 16:41hgbotNote Added: 0017972
2009-07-07 16:41hgbotStatusnew => resolved
2009-07-07 16:41hgbotResolutionopen => fixed
2009-07-07 16:41hgbotFixed in SCM revision => http://code.openbravo.com/pos/devel/main/rev/19b2a548717ce503c9765dfde57af51ca95655e2 [^]
2009-07-07 16:44adrianromeroFixed in Version => 2.40
2009-07-07 16:44adrianromeroTarget Version => 2.40
2010-07-22 13:55adrianromeroStatusresolved => closed
2010-07-22 14:01adrianromeroFixed in Version2.40 => 2.30.1
2010-07-23 00:00anonymoussf_bug_id0 => 3033258
2012-11-07 09:40priyamCategory01 - General => (No Category)

Notes
(0017972)
hgbot   
2009-07-07 16:41   
Repository: pos/devel/main
Changeset: 19b2a548717ce503c9765dfde57af51ca95655e2
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue Jul 07 16:39:40 2009 +0200
URL: http://code.openbravo.com/pos/devel/main/rev/19b2a548717ce503c9765dfde57af51ca95655e2 [^]

Fixes issue 0009759: Error when pressing "print" button for reports

---
M src-pos/com/openbravo/pos/util/JRViewer300.java
---