bug #8462
closedNoSuchElementException accessing Optional<RegistrationDTO> in RegistrationWorkingsetPresenter.findRegistrationInContext()
100%
Description
Reported by Henning on 04.08.19 19:17
Fehler in PhycoBank, 102010, Treptacantha ballesterosii
Beim Species-Namen-Eingeben ist die Gattung nicht vorhanden – kann ja passieren.
Eingabe „Neu“ der Gattung (von der Art aus, ID: 102010 mit (alter Referenz, vielleicht ohne Referez-Typ, oder ein alter Cache-Schnipsel?), beim Speichern Fehler:
Die Referenz muss noch aus IPNI-Zeiten kommen: „Kütz. Phyc. Gen. 1843” oder so ähnlich.
Bei der Suche nach Publikationen konnte ich diese Referenz nicht finden, dafür die korrekte:
„Kützing, F.T., Phycologia generalis oder Anatomie, Physiologie und Systemkunde der Tange. 1843“
Die hat aber keinen Eintrag.
Die Gattung ist jetzt in System, aber über die Liste nicht auffindbar
... Caused by: java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135) at eu.etaxonomy.cdm.vaadin.view.registration.RegistrationWorkingsetPresenter.findRegistrationInContext(RegistrationWorkingsetPresenter.java:824) at eu.etaxonomy.cdm.vaadin.view.registration.RegistrationWorkingsetPresenter.findRegistrationInContext(RegistrationWorkingsetPresenter.java:808) at eu.etaxonomy.cdm.vaadin.view.registration.RegistrationWorkingsetPresenter.onDoneWithTaxonnameEditor(RegistrationWorkingsetPresenter.java:479) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.vaadin.spring.events.internal.MethodListenerWrapper.publish(MethodListenerWrapper.java:78) at org.vaadin.spring.events.internal.ListenerCollection.publish(ListenerCollection.java:167) at org.vaadin.spring.events.internal.ScopedEventBus$1.onEvent(ScopedEventBus.java:58) at org.vaadin.spring.events.internal.EventBusListenerWrapper.publish(EventBusListenerWrapper.java:55) at org.vaadin.spring.events.internal.ListenerCollection.publish(ListenerCollection.java:167) at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:116) at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:131) at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:133) at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:121) at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor$SaveHandler.postCommit(AbstractPopupEditor.java:380) ... 83 more
Related issues
Updated by Andreas Kohlbecker over 3 years ago
the same issue was reported once again:
Test New name entered (not saved) new Basionym, new reference or selected reference -> error
Both names are saved.
Updated by Andreas Kohlbecker over 3 years ago
this seems to happen, when the first name editor has been opened for a new name to be registered and has not jet been saved.
Updated by Andreas Kohlbecker over 3 years ago
- Related to task #7843: blocking registrations can get lost when first TaxonNamePopupEditor with new name is not saved added
Updated by Andreas Kohlbecker over 3 years ago
- Related to task #7332: Registration Workingset Editor: better UI behavior with blocking Registation in same workingset added
Updated by Andreas Kohlbecker over 3 years ago
- Related to deleted (task #7332: Registration Workingset Editor: better UI behavior with blocking Registation in same workingset)
Updated by Andreas Kohlbecker over 3 years ago
Updated by Andreas Kohlbecker over 3 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset cdm-vaadin|c80e35c14a41f15fc00f6bfa0cd5c46eadf5b37a.
Updated by Andreas Kohlbecker over 3 years ago
- Assignee changed from Andreas Kohlbecker to Wolf-Henning Kusber
please review
Updated by Wolf-Henning Kusber over 3 years ago
- Assignee changed from Wolf-Henning Kusber to Andreas Kohlbecker
Updated by Andreas Kohlbecker over 3 years ago
... once the server is updated ;-)
Updated by Andreas Kohlbecker over 3 years ago
- Has duplicate bug #8374: Save genus generated for a species with a different reference added
Updated by Wolf-Henning Kusber over 3 years ago
Tested: new genus with new reference: no problems
Tested: new basionym or replaced synonym with new reference: no problem
Texted: new name with replaced synonym with new reference AND replaced synonym as validation with new reference: no problem
Did I get all possibilities?
Updated by Andreas Kohlbecker over 3 years ago
- Status changed from Resolved to Feedback
- Assignee changed from Andreas Kohlbecker to Wolf-Henning Kusber
the orthographic variant could also be tested, but I think your tests have sufficient coverage if you have started a new registration for a new name for each of the tests.
Updated by Wolf-Henning Kusber over 3 years ago
- Status changed from Feedback to Resolved
- Assignee changed from Wolf-Henning Kusber to Andreas Kohlbecker
- % Done changed from 50 to 100
New species name with new genus with new replaced synonym with new orthographic variant successfully tested. I think we can close the ticket.