Issues

Select view

Select search mode

 
50 of 126

Improve error reporting when an archetype has been uninstalled

Description

If a 3rd party archetype has been removed by running toolbox archetype --load, and an attempt is made to subsequently use or display it, the UI throws an exception which is not caught. E.g.:

o archetype descriptor found for object, id=20, archetype=actIdentity.insuranceClaimPetSure java.lang.IllegalStateException: No archetype descriptor found for object, id=20, archetype=actIdentity.insuranceClaimPetSure at org.openvpms.web.component.im.layout.AbstractLayoutContext.getArchetypeDescriptor(AbstractLayoutContext.java:398) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.layout.AbstractLayoutContext.getArchetypeDescriptor(AbstractLayoutContext.java:391) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.property.PropertySetBuilder.getArchetypeDescriptor(PropertySetBuilder.java:218) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.property.PropertySetBuilder.<init>(PropertySetBuilder.java:66) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.view.IMObjectViewer.<init>(IMObjectViewer.java:73) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.view.AbstractReadOnlyComponentFactory.create(AbstractReadOnlyComponentFactory.java:133) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.view.AbstractReadOnlyComponentFactory.getCollectionViewer(AbstractReadOnlyComponentFactory.java:212) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.view.AbstractReadOnlyComponentFactory.create(AbstractReadOnlyComponentFactory.java:100) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.table.DescriptorTableColumn.getComponent(DescriptorTableColumn.java:181) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.table.DescriptorTableModel.getValue(DescriptorTableModel.java:197) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.workspace.reporting.insurance.ClaimTableModel.getValue(ClaimTableModel.java:141) ~[openvpms-web-workspaces-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.workspace.reporting.insurance.ClaimTableModel.getValue(ClaimTableModel.java:44) ~[openvpms-web-workspaces-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.table.DescriptorTableModel.getValue(DescriptorTableModel.java:181) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.workspace.reporting.insurance.ClaimTableModel.getValue(ClaimTableModel.java:122) ~[openvpms-web-workspaces-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.workspace.reporting.insurance.ClaimTableModel.getValue(ClaimTableModel.java:44) ~[openvpms-web-workspaces-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.table.AbstractIMTableModel.getValueAt(AbstractIMTableModel.java:177) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.table.AbstractIMTableModel.getValueAt(AbstractIMTableModel.java:165) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at org.openvpms.web.component.im.table.DelegatingIMTableModel.getValueAt(DelegatingIMTableModel.java:108) ~[openvpms-web-component-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at nextapp.echo2.app.Table.doRender(Table.java:308) ~[echo-app-2.1.1.jar:?] at org.openvpms.web.echo.table.KeyTable.doRender(KeyTable.java:147) ~[openvpms-web-echo-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at nextapp.echo2.app.Table.validate(Table.java:900) ~[echo-app-2.1.1.jar:?] at nextapp.echo2.app.ApplicationInstance.doValidation(ApplicationInstance.java:269) ~[echo-app-2.1.1.jar:?]

Environment

None

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created June 16, 2020 at 12:47 AM
Updated August 6, 2024 at 12:52 AM

Activity

Show:

Tim AndersonAugust 6, 2024 at 12:52 AM

Toolbox no longer uninstalls archetypes, but archetypes can still be removed via the API.

Who's Looking?

Flag notifications