mmallam Posted October 26, 2009 Share Posted October 26, 2009 Peace upon you,I used Ireprot when I need to print the report I got the following exception:org.jvnet.lafwidget.UiThreadingViolationException: Component state change must be done on Event Dispatch Thread at org.jvnet.lafwidget.LafWidgetUtilities.testComponentStateChangeThreadingViolation(LafWidgetUtilities.java:589) at org.jvnet.lafwidget.animation.FadeStateListener$1.stateChanged(FadeStateListener.java:232) at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:333) at javax.swing.DefaultButtonModel.setRollover(DefaultButtonModel.java:266) at javax.swing.AbstractButton.setEnabled(AbstractButton.java:2062) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1208) at java.lang.Thread.run(Thread.java:619)26/10/2009 03:56:14 Ù… net.sf.jasperreports.view.JRViewer$21 runSEVERE: Print error.org.jvnet.lafwidget.UiThreadingViolationException: Component state change must be done on Event Dispatch Thread at org.jvnet.lafwidget.LafWidgetUtilities.testComponentStateChangeThreadingViolation(LafWidgetUtilities.java:589) at org.jvnet.lafwidget.animation.FadeStateListener$1.stateChanged(FadeStateListener.java:232) at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:333) at javax.swing.DefaultButtonModel.setRollover(DefaultButtonModel.java:266) at javax.swing.AbstractButton.setEnabled(AbstractButton.java:2062) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1208) at java.lang.Thread.run(Thread.java:619)org.jvnet.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.jvnet.substance.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:2368) at org.jvnet.substance.SubstanceOptionPaneUI.createUI(SubstanceOptionPaneUI.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.swing.UIDefaults.getUI(UIDefaults.java:751) at javax.swing.UIManager.getUI(UIManager.java:1012) at javax.swing.JOptionPane.updateUI(JOptionPane.java:1859) at javax.swing.JOptionPane.<init>(JOptionPane.java:1822) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:841) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1217) at java.lang.Thread.run(Thread.java:619)UIDefaults.getUI() failed: createUI() failed for javax.swing.JOptionPane[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,icon=,initialValue=,message=Error printing report. See the console for details.,messageType=INFORMATION_MESSAGE,optionType=DEFAULT_OPTION,wantsInput=false] java.lang.reflect.InvocationTargetExceptionjava.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:711) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:117) at javax.swing.UIDefaults.getUI(UIDefaults.java:757) at javax.swing.UIManager.getUI(UIManager.java:1012) at javax.swing.JOptionPane.updateUI(JOptionPane.java:1859) at javax.swing.JOptionPane.<init>(JOptionPane.java:1822) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:841) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1217) at java.lang.Thread.run(Thread.java:619)org.jvnet.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.jvnet.substance.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:2368) at org.jvnet.substance.SubstancePanelUI.createUI(SubstancePanelUI.java:57) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.swing.UIDefaults.getUI(UIDefaults.java:751) at javax.swing.UIManager.getUI(UIManager.java:1012) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at javax.swing.JRootPane.createGlassPane(JRootPane.java:527) at javax.swing.JRootPane.<init>(JRootPane.java:347) at javax.swing.JDialog.createRootPane(JDialog.java:617) at javax.swing.JDialog.dialogInit(JDialog.java:599) at javax.swing.JDialog.<init>(JDialog.java:266) at javax.swing.JOptionPane.createDialog(JOptionPane.java:942) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:850) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1217) at java.lang.Thread.run(Thread.java:619)UIDefaults.getUI() failed: createUI() failed for javax.swing.JPanel[,0,0,0x0,invalid,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] java.lang.reflect.InvocationTargetExceptionjava.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:711) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:117) at javax.swing.UIDefaults.getUI(UIDefaults.java:757) at javax.swing.UIManager.getUI(UIManager.java:1012) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at javax.swing.JRootPane.createGlassPane(JRootPane.java:527) at javax.swing.JRootPane.<init>(JRootPane.java:347) at javax.swing.JDialog.createRootPane(JDialog.java:617) at javax.swing.JDialog.dialogInit(JDialog.java:599) at javax.swing.JDialog.<init>(JDialog.java:266) at javax.swing.JOptionPane.createDialog(JOptionPane.java:942) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:850) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1217) at java.lang.Thread.run(Thread.java:619)org.jvnet.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.jvnet.substance.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:2368) at org.jvnet.substance.SubstancePanelUI.createUI(SubstancePanelUI.java:57) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.swing.UIDefaults.getUI(UIDefaults.java:751) at javax.swing.UIManager.getUI(UIManager.java:1012) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at javax.swing.JRootPane.createContentPane(JRootPane.java:502) at javax.swing.JRootPane.<init>(JRootPane.java:349) at javax.swing.JDialog.createRootPane(JDialog.java:617) at javax.swing.JDialog.dialogInit(JDialog.java:599) at javax.swing.JDialog.<init>(JDialog.java:266) at javax.swing.JOptionPane.createDialog(JOptionPane.java:942) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:850) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1217) at java.lang.Thread.run(Thread.java:619)UIDefaults.getUI() failed: createUI() failed for javax.swing.JPanel[,0,0,0x0,invalid,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] java.lang.reflect.InvocationTargetExceptionjava.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:711) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:117) at javax.swing.UIDefaults.getUI(UIDefaults.java:757) at javax.swing.UIManager.getUI(UIManager.java:1012) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at javax.swing.JRootPane.createContentPane(JRootPane.java:502) at javax.swing.JRootPane.<init>(JRootPane.java:349) at javax.swing.JDialog.createRootPane(JDialog.java:617) at javax.swing.JDialog.dialogInit(JDialog.java:599) at javax.swing.JDialog.<init>(JDialog.java:266) at javax.swing.JOptionPane.createDialog(JOptionPane.java:942) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:850) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1217) at java.lang.Thread.run(Thread.java:619)org.jvnet.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.jvnet.substance.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:2368) at org.jvnet.substance.SubstanceRootPaneUI.createUI(SubstanceRootPaneUI.java:143) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.swing.UIDefaults.getUI(UIDefaults.java:751) at javax.swing.UIManager.getUI(UIManager.java:1012) at javax.swing.JRootPane.updateUI(JRootPane.java:465) at javax.swing.JRootPane.<init>(JRootPane.java:352) at javax.swing.JDialog.createRootPane(JDialog.java:617) at javax.swing.JDialog.dialogInit(JDialog.java:599) at javax.swing.JDialog.<init>(JDialog.java:266) at javax.swing.JOptionPane.createDialog(JOptionPane.java:942) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:850) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1217) at java.lang.Thread.run(Thread.java:619)UIDefaults.getUI() failed: createUI() failed for javax.swing.JRootPane[,0,0,0x0,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=1,maximumSize=,minimumSize=,preferredSize=] java.lang.reflect.InvocationTargetExceptionjava.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:711) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:117) at javax.swing.UIDefaults.getUI(UIDefaults.java:757) at javax.swing.UIManager.getUI(UIManager.java:1012) at javax.swing.JRootPane.updateUI(JRootPane.java:465) at javax.swing.JRootPane.<init>(JRootPane.java:352) at javax.swing.JDialog.createRootPane(JDialog.java:617) at javax.swing.JDialog.dialogInit(JDialog.java:599) at javax.swing.JDialog.<init>(JDialog.java:266) at javax.swing.JOptionPane.createDialog(JOptionPane.java:942) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:850) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:592) at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1217) at java.lang.Thread.run(Thread.java:619) Could any one help me? Link to comment Share on other sites More sharing options...
mmallam Posted October 27, 2009 Author Share Posted October 27, 2009 any help? Post Edited by mmallam at 10/27/2009 08:58 Link to comment Share on other sites More sharing options...
mmallam Posted October 29, 2009 Author Share Posted October 29, 2009 No answer>??!!!! Link to comment Share on other sites More sharing options...
lucianc Posted November 30, 2009 Share Posted November 30, 2009 This is a know bug, see http://jasperforge.org/projects/jasperreports/tracker/view.php?id=3502There's a proposed patch, you can try it and see if it works for you.Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now