Ancestris Support > FRANÇAIS

Exception inattendue enregistrement Relation

(1/3) > >>

illitch:
Bonjour
A chaque fois que je rentre une association j'ai cela :


--- Code: ---java.lang.ClassCastException: java.lang.String cannot be cast to genj.gedcom.Indi
at ancestris.modules.editors.standard.tools.AssoWithTableModel.updateList(AssoWithTableModel.java:203)
at ancestris.modules.editors.standard.tools.AssoManager.tableChanged(AssoManager.java:627)
at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:296)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(AbstractTableModel.java:275)
at ancestris.modules.editors.standard.tools.AssoWithTableModel.setValueAt(AssoWithTableModel.java:102)
at javax.swing.JTable.setValueAt(JTable.java:2741)
at javax.swing.JTable.editingStopped(JTable.java:4723)
at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:141)
at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:368)
at javax.swing.DefaultCellEditor$3.stopCellEditing(DefaultCellEditor.java:158)
at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:233)
at javax.swing.JTable.columnMarginChanged(JTable.java:4592)
at javax.swing.table.DefaultTableColumnModel.fireColumnMarginChanged(DefaultTableColumnModel.java:627)
at javax.swing.table.DefaultTableColumnModel.propertyChange(DefaultTableColumnModel.java:691)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:92)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
at javax.swing.table.TableColumn.firePropertyChange(TableColumn.java:278)
at javax.swing.table.TableColumn.firePropertyChange(TableColumn.java:284)
at javax.swing.table.TableColumn.setWidth(TableColumn.java:514)
at javax.swing.plaf.basic.BasicTableHeaderUI.changeColumnWidth(BasicTableHeaderUI.java:541)
at javax.swing.plaf.basic.BasicTableHeaderUI.access$500(BasicTableHeaderUI.java:44)
at javax.swing.plaf.basic.BasicTableHeaderUI$MouseInputHandler.mouseDragged(BasicTableHeaderUI.java:219)
at java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:319)
at java.awt.Component.processMouseMotionEvent(Component.java:6564)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3329)
at java.awt.Component.processEvent(Component.java:6285)
at java.awt.Container.processEvent(Container.java:2230)
at java.awt.Component.dispatchEventImpl(Component.java:4872)
at java.awt.Container.dispatchEventImpl(Container.java:2288)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4840)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4517)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4430)
at java.awt.Container.dispatchEventImpl(Container.java:2274)
at java.awt.Window.dispatchEventImpl(Window.java:2718)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:747)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:720)
at java.awt.EventQueue$4.run(EventQueue.java:718)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:717)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:218)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:133)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:126)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1082)
at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1065)
at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1115)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1087)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:128)
at org.openide.util.Mutex.doEventAccess(Mutex.java:1376)
at org.openide.util.Mutex.readAccess(Mutex.java:278)
at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1072)
at java.awt.Component.show(Component.java:1655)
at java.awt.Component.setVisible(Component.java:1607)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at ancestris.util.swing.DialogManager$ADialog.show(DialogManager.java:300)
at ancestris.modules.editors.standard.IndiPanel.manageAssociations(IndiPanel.java:3447)
at ancestris.modules.editors.standard.IndiPanel.assoEditButtonActionPerformed(IndiPanel.java:1730)
at ancestris.modules.editors.standard.IndiPanel.access$5400(IndiPanel.java:140)
at ancestris.modules.editors.standard.IndiPanel$53.actionPerformed(IndiPanel.java:1309)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6516)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
at java.awt.Component.processEvent(Component.java:6281)
at java.awt.Container.processEvent(Container.java:2230)
at java.awt.Component.dispatchEventImpl(Component.java:4872)
at java.awt.Container.dispatchEventImpl(Container.java:2288)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4840)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4500)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4430)
at java.awt.Container.dispatchEventImpl(Container.java:2274)
at java.awt.Window.dispatchEventImpl(Window.java:2718)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:747)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:720)
at java.awt.EventQueue$4.run(EventQueue.java:718)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:717)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:218)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:133)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:122)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:118)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:110)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

--- End code ---

Une piste de réflexion serait bienvenue .
Je suis un peu bloqué car j'ai un tas d'infos à entrer et je me demande si c'est bien utile de continuer avec cette erreur systématique .
Bien cordialement .

Zurga:
Bonjour,

Vous passez par où pour rentrer l'association ?
Dans le principe, je suis d'accord avec l'erreur : une chaine de caractère, c'est pas un individu  ;)

Donc si vous pouviez décrire au plus précis votre mode de création d'une nouvelle association, cela me permettra de vous aider au mieux.

Ces derniers temps je rentre pleins d'associations dans ma généalogie et je n'ai aucune difficulté.

Zurga

illitch:
Bonsoir et merci de votre aide .

Tout d'abord , contrairement , à ce que je pensais , et ai écrit précédemment, ce n'est pas systématique.
Il faudra que je note exactement dans quels cas ca se produit .

Pour répondre à votre question :
J'utilise en priorité l'éditeur cygnus .
Je clique sur le symbole lien en bas à droite , dans la fenêtre pop-up je remplis et je fais OK .
Le symbole ¨sens interdit¨ apparaît en bas à droite et le log est accessible depuis celui ci .

Tout semble s'enregistrer et fonctionner mais si il y'a un warning c'est que quelque chose coince .

Zurga:
Vu la ligne de code, cela vient de la façon dont vous saisissez le nom de la personne en relation.

Normalement, il y a une liste de saisie et on doit choisir dans la liste la personne concernée.
Je n'ai pas réussi à remplir la case sans que la valeur change pour une personne de la liste.
Si la valeur n'est pas trouvée, le bouton "OK" pour fermer la fenêtre n'est pas disponible.

Du coup, je ne sais pas reproduire le problème.

Zurga

illitch:
oui je fais comme vous dites : je sélectionne la personne dans un menu déroulant et le type de relation (témoin , parrain....) aussi dans un menu déroulant .
Je ne saisis rien .

Navigation

[0] Message Index

[#] Next page

Go to full version