java.lang.SecurityException:无法访问资源

时间:2014-03-04 19:06:30

标签: java swing security jtable tablecelleditor

我在访问JTable的单元格时收到此异常。特别是当我单击第一个单元格并移动到第二个单元格时。错误开始出现在Java 7更新45中。在更新51中,错误不再出现,但单元格会锁定。下面是相当长的堆栈跟踪。

由于我认为它与添加到java的新安全措施有关,我试图通过签署所有jar并添加适当的manifest属性来使应用程序兼容。但问题仍然存在。任何想法都将不胜感激。

java.lang.SecurityException: Resource is not accessible
at sun.swing.SwingUtilities2.checkAccess(Unknown Source)
at javax.swing.text.DefaultFormatter.stringToValue(Unknown Source)
at javax.swing.text.DefaultFormatter.updateValue(Unknown Source)
at javax.swing.text.DefaultFormatter.replace(Unknown Source)
at javax.swing.text.DefaultFormatter.replace(Unknown Source)
at javax.swing.text.DefaultFormatter$DefaultDocumentFilter.replace(Unknown Source)
at javax.swing.text.AbstractDocument.replace(Unknown Source)
at javax.swing.text.JTextComponent.setText(Unknown Source)
at javax.swing.DefaultCellEditor$1.setValue(Unknown Source)
at javax.swing.DefaultCellEditor.getTableCellEditorComponent(Unknown Source)
at com.company.common.ui.table.MoneyCellEditor.getTableCellEditorComponent(MoneyCellEditor.java:67)
at javax.swing.JTable.prepareEditor(Unknown Source)
at javax.swing.JTable.editCellAt(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$Handler.adjustSelection(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.company.app.core.InactivityTrackingSystemEventQueue.dispatchEvent(InactivityTrackingSystemEventQueue.java:120)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at com.company.app.ui.invoice.UpdateNonInventoryItemCostPanel.showDialog(UpdateNonInventoryItemCostPanel.java:235)
at com.company.app.ui.invoice.NonInventoryItemReconciliation.showItemReconciliationDialog(NonInventoryItemReconciliation.java:74)
at com.company.app.ui.invoice.ApproveInvoicePanel$8.done(ApproveInvoicePanel.java:959)
at com.company.app.util.BackgroundWorker.handleDone(BackgroundWorker.java:79)
at com.company.app.util.BackgroundWorker$SwingWorkerImpl.done(BackgroundWorker.java:118)
at javax.swing.SwingWorker$5.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
at javax.swing.Timer.fireActionPerformed(Unknown Source)
at javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.company.app.core.InactivityTrackingSystemEventQueue.dispatchEvent(InactivityTrackingSystemEventQueue.java:120)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at com.company.app.ui.invoice.ApproveInvoicePanel.showDialog(ApproveInvoicePanel.java:755)
at com.company.app.ui.quotes.purchaseorder.PurchaseOrderSupplierInvoicesListPanel$3.done(PurchaseOrderSupplierInvoicesListPanel.java:195)
at com.company.app.util.BackgroundWorker.handleDone(BackgroundWorker.java:79)
at com.company.app.util.BackgroundWorker$SwingWorkerImpl.done(BackgroundWorker.java:118)
at javax.swing.SwingWorker$5.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
at javax.swing.Timer.fireActionPerformed(Unknown Source)
at javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.company.app.core.InactivityTrackingSystemEventQueue.dispatchEvent(InactivityTrackingSystemEventQueue.java:120)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

0 个答案:

没有答案