Ich habe ein Paket mit einem editierbaren unicode multivalue property, etwa der Definition hier:
Code: Alles auswählen
[ProductProperty]
type: unicode
name: username
multivalue: True
editable: True
description: Beschreibung
values: ["Eins", "Zwei", "Drei"]
default: ["Eins"]
Wenn ich versuche den Wert des Properties im configed zu ändern kommt ein Fenster mit einer Fehlermeldung:
Code: Alles auswählen
[2023-04-12 08:34:01.135] Nicht erwarteter Fehler class de.uib.configed.type.ConfigName2ConfigValue cannot be cast to class de.uib.opsidatamodel.datachanges.UpdateCommand (de.uib.configed.type.ConfigName2ConfigValue and de.uib.opsidatamodel.datachanges.UpdateCommand are in unnamed module of loader 'app')
Bitte die Logdatei einsehen
Code: Alles auswählen
[1] [2023-04-12 08:30:24.032] [main ] Configed version 4.2.20.15 (2023-03-31) starting
[3] [2023-04-12 08:30:41.994] [Thread-2 ] Opsi service error: [BackendConfigurationError] Backend configuration error: You have tried to execute a method, that will not work with filebackend.
[4] [2023-04-12 08:31:23.777] [AWT-EventQueue-0] setting file savedStatesDir writable failed (de.uib.configed.ConfigedMain)
[4] [2023-04-12 08:32:04.384] [AWT-EventQueue-0] Error in thread Thread[#28,AWT-EventQueue-0,6,main]
java.lang.ClassCastException: class de.uib.configed.type.ConfigName2ConfigValue cannot be cast to class de.uib.opsidatamodel.datachanges.UpdateCommand (de.uib.configed.type.ConfigName2ConfigValue and de.uib.opsidatamodel.datachanges.UpdateCommand are in unnamed module of loader 'app')
at de.uib.opsidatamodel.datachanges.ProductpropertiesUpdateCollection.addAll(ProductpropertiesUpdateCollection.java:51)
at de.uib.utilities.datapanel.MapTableModel.weHaveChangedStoredMaps(MapTableModel.java:358)
at de.uib.utilities.datapanel.MapTableModel.putEntryIntoStoredMaps(MapTableModel.java:403)
at de.uib.utilities.datapanel.MapTableModel.putEntryIntoStoredMaps(MapTableModel.java:382)
at de.uib.utilities.datapanel.MapTableModel.setValueAt(MapTableModel.java:448)
at java.desktop/javax.swing.JTable.setValueAt(Unknown Source)
at java.desktop/javax.swing.JTable.editingStopped(Unknown Source)
at java.desktop/javax.swing.AbstractCellEditor.fireEditingStopped(Unknown Source)
at java.desktop/javax.swing.AbstractCellEditor.stopCellEditing(Unknown Source)
at de.uib.utilities.table.gui.SensitiveCellEditor.stopEditingAndSave(SensitiveCellEditor.java:116)
at de.uib.utilities.swing.FEditList.commit(FEditList.java:249)
at de.uib.utilities.swing.FEditObject.actionPerformed(FEditObject.java:377)
at de.uib.utilities.swing.FEditList.actionPerformed(FEditList.java:261)
at de.uib.utilities.swing.FEditStringList.actionPerformed(FEditStringList.java:46)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
[3] [2023-04-12 08:32:04.388] [AWT-EventQueue-0] Nicht erwarteter Fehler class de.uib.configed.type.ConfigName2ConfigValue cannot be cast to class de.uib.opsidatamodel.datachanges.UpdateCommand (de.uib.configed.type.ConfigName2ConfigValue and de.uib.opsidatamodel.datachanges.UpdateCommand are in unnamed module of loader 'app')
Bitte die Logdatei einsehen
java.lang.ClassCastException: class de.uib.configed.type.ConfigName2ConfigValue cannot be cast to class de.uib.opsidatamodel.datachanges.UpdateCommand (de.uib.configed.type.ConfigName2ConfigValue and de.uib.opsidatamodel.datachanges.UpdateCommand are in unnamed module of loader 'app')
at de.uib.opsidatamodel.datachanges.ProductpropertiesUpdateCollection.addAll(ProductpropertiesUpdateCollection.java:51)
at de.uib.utilities.datapanel.MapTableModel.weHaveChangedStoredMaps(MapTableModel.java:358)
at de.uib.utilities.datapanel.MapTableModel.putEntryIntoStoredMaps(MapTableModel.java:403)
at de.uib.utilities.datapanel.MapTableModel.putEntryIntoStoredMaps(MapTableModel.java:382)
at de.uib.utilities.datapanel.MapTableModel.setValueAt(MapTableModel.java:448)
at java.desktop/javax.swing.JTable.setValueAt(Unknown Source)
at java.desktop/javax.swing.JTable.editingStopped(Unknown Source)
at java.desktop/javax.swing.AbstractCellEditor.fireEditingStopped(Unknown Source)
at java.desktop/javax.swing.AbstractCellEditor.stopCellEditing(Unknown Source)
at de.uib.utilities.table.gui.SensitiveCellEditor.stopEditingAndSave(SensitiveCellEditor.java:116)
at de.uib.utilities.swing.FEditList.commit(FEditList.java:249)
at de.uib.utilities.swing.FEditObject.actionPerformed(FEditObject.java:377)
at de.uib.utilities.swing.FEditList.actionPerformed(FEditList.java:261)
at de.uib.utilities.swing.FEditStringList.actionPerformed(FEditStringList.java:46)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Ein Paket mit einem entsprechenden Property anlegen und versuchen das zu ändern.
Bei welche Versionen der beteiligten Komponenten tritt das Problem auf?
configed: 4.2.20.15
opsiconfd: 4.2.0.305