Я звоню REST Calls по щелчку методов. Я вижу значительное замедление работы приложения, когда когда-либо нажимаются кнопки.
1. Я вижу следующую ошибку в консоли. Пожалуйста, сообщите, если кто-то заметил подобную проблему.
- Большую часть времени необходимо нажать дважды, чтобы продолжить
Журнал ошибок 1:
Исключение в потоке "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 2> = 2
на java.util.Vector.elementAt (Vector.java:474)
в javax.swing.table.DefaultTableColumnModel.getColumn (DefaultTableColumnModel.java:294)
в javax.swing.plaf.basic.BasicTableHeaderUI.paint (BasicTableHeaderUI.java:648)
в javax.swing.plaf.ComponentUI.update (ComponentUI.java:161)
в javax.swing.JComponent.paintComponent (JComponent.java:780)
в javax.swing.JComponent.paint (JComponent.java:1056)
в javax.swing.JComponent.paintChildren (JComponent.java:889)
в javax.swing.JComponent.paint (JComponent.java:1065)
в javax.swing.JViewport.paint (JViewport.java:728)
в javax.swing.JComponent.paintChildren (JComponent.java:889)
в javax.swing.JComponent.paint (JComponent.java:1065)
в javax.swing.JComponent.paintToOffscreen (JComponent.java:5210)
в javax.swing.RepaintManager $ PaintManager.paintDoubleBuffered (RepaintManager.java:1579)
в javax.swing.RepaintManager $ PaintManager.paint (RepaintManager.java:1502)
в javax.swing.RepaintManager.paint (RepaintManager.java:1272)
в javax.swing.JComponent._paintImmediately (JComponent.java:5158)
в javax.swing.JComponent.paintImmediately (JComponent.java:4969)
на javax.swing.RepaintManager $ 4.run (RepaintManager.java:831)
на javax.swing.RepaintManager $ 4.run (RepaintManager.java:814)
at java.security.AccessController.doPrivileged (собственный метод)
в java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:80)
в javax.swing.RepaintManager.paintDirtyRegions (RepaintManager.java:814)
в javax.swing.RepaintManager.paintDirtyRegions (RepaintManager.java:789)
в javax.swing.RepaintManager.prePaintDirtyRegions (RepaintManager.java:738)
на javax.swing.RepaintManager.access $ 1200 (RepaintManager.java:64)
в javax.swing.RepaintManager $ ProcessingRunnable.run (RepaintManager.java:1732)
в java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:311)
в java.awt.EventQueue.dispatchEventImpl (EventQueue.java:756)
на java.awt.EventQueue.access $ 500 (EventQueue.java:97)
at java.awt.EventQueue $ 3.run (EventQueue.java:709)
at java.awt.EventQueue $ 3.run (EventQueue.java:703)
at java.security.AccessController.doPrivileged (собственный метод)
в java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:80)
в java.awt.EventQueue.dispatchEvent (EventQueue.java:726)
в java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:201)
в java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:116)
в java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:105)
в java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:101)
в java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run (EventDispatchThread.java:82)
Журнал ошибок 2:
Исключение в потоке "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.tree.DefaultMutableTreeNode нельзя преобразовать в com.codename1.ui.Component
Рендеринг кадра занял слишком долго 972 миллисекунды
в com.codename1.impl.javase.PerformanceMonitor.componentHierarchyValueChanged (PerformanceMonitor.java:413)
на com.codename1.impl.javase.PerformanceMonitor.access $ 1000 (PerformanceMonitor.java:77)
в com.codename1.impl.javase.PerformanceMonitor $ FormListener.valueChanged (PerformanceMonitor.java:345)
в javax.swing.JTree.fireValueChanged (JTree.java:2927)в javax.swing.JTree $ TreeSelectionRedirector.valueChanged (JTree.java:3391)
в javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged (DefaultTreeSelectionModel.java:635)
в javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange (DefaultTreeSelectionModel.java:1093)
в javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths (DefaultTreeSelectionModel.java:294)
в javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath (DefaultTreeSelectionModel.java:188)
в javax.swing.JTree.setSelectionPath (JTree.java:1634)
в javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent (BasicTreeUI.java:2393)
в javax.swing.plaf.basic.BasicTreeUI $ Handler.handleSelection (BasicTreeUI.java:3609)
в javax.swing.plaf.basic.BasicTreeUI $ Handler.mousePressed (BasicTreeUI.java:3548)
в java.awt.Component.processMouseEvent (Component.java:6530)
в javax.swing.JComponent.processMouseEvent (JComponent.java:3324)
в java.awt.Component.processEvent (Component.java:6298)
в java.awt.Container.processEvent (Container.java:2237)
в java.awt.Component.dispatchEventImpl (Component.java:4889)
в java.awt.Container.dispatchEventImpl (Container.java:2295)
в java.awt.Component.dispatchEvent (Component.java:4711)
в java.awt.LightweightDispatcher.retargetMouseEvent (Container.java:4889)
в java.awt.LightweightDispatcher.processMouseEvent (Container.java:4523)
в java.awt.LightweightDispatcher.dispatchEvent (Container.java:4467)
в java.awt.Container.dispatchEventImpl (Container.java:2281)
в java.awt.Window.dispatchEventImpl (Window.java:2746)
в java.awt.Component.dispatchEvent (Component.java:4711)
в java.awt.EventQueue.dispatchEventImpl (EventQueue.java:758)
на java.awt.EventQueue.access $ 500 (EventQueue.java:97)
at java.awt.EventQueue $ 3.run (EventQueue.java:709)
at java.awt.EventQueue $ 3.run (EventQueue.java:703)
at java.security.AccessController.doPrivileged (собственный метод)
в java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:80)
в java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:90)
at java.awt.EventQueue $ 4.run (EventQueue.java:731)
at java.awt.EventQueue $ 4.run (EventQueue.java:729)
at java.security.AccessController.doPrivileged (собственный метод)
в java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:80)
в java.awt.EventQueue.dispatchEvent (EventQueue.java:728)
в java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:201)
в java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:116)
в java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:105)
в java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:101)
в java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run (EventDispatchThread.java:82)