It was due to an interaction with my layout.xml file, where I had added a
dummy property to avoid a schema validation error.
<c:fieldSet name="Metadata" >
<c:property id="dummy" />
</c:fieldSet>
There as a WARN message in the logs about it, that I ignored, that should
have been a place to start looking.
On Tue, Jun 27, 2017 at 9:21 PM, Stephen Cameron <[email protected]
> wrote:
> I now have a class that does not give the error, so something I have done
> 'differently'.
>
> On Mon, Jun 26, 2017 at 10:42 PM, Stephen Cameron <
> [email protected]> wrote:
>
>> The routine below doesn't find a cached ObjectSpecification with
>> objectSpecId = "oneid.Account" though it seems to find it successfully
>> initially. So maybe the cache is being updated via the security module?
>>
>> @Programmatic
>> public ObjectSpecification lookupBySpecId(ObjectSpecId objectSpecId) {
>> final ObjectSpecification objectSpecification =
>> cache.getByObjectType(objectSpecId);
>> if(objectSpecification == null) {
>> // fallback
>> return loadSpecification(objectSpecId.asString());
>> }
>> return objectSpecification;
>> }
>>
>> On Mon, Jun 26, 2017 at 10:11 PM, Stephen Cameron <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> I've created a demo app with Isis 1.14.0 and am adding the security
>>> module, I get an exception as below that seems to be consistent whatever
>>> the permissions of the users role are:
>>>
>>> It seems a little strange that the SpecificationLoader.loadSpecification()
>>> method is being passed a class 'objectType' of "oneid.Account" and not the
>>> full class name.
>>>
>>> I'll investigate further tomorrow, but I don' think I have forgotten
>>> anything in the config of the module.
>>>
>>> Caused by: org.apache.isis.core.commons.exceptions.IsisException: No
>>> such class available: oneid.Account
>>> at org.apache.isis.core.metamodel.specloader.SpecificationLoade
>>> r.loadSpecification(SpecificationLoader.java:289)
>>> at org.apache.isis.core.metamodel.specloader.SpecificationLoade
>>> r.lookupBySpecId(SpecificationLoader.java:515)
>>> at org.apache.isis.viewer.wicket.model.models.EntityModel.getSp
>>> ecificationFor(EntityModel.java:317)
>>> at org.apache.isis.viewer.wicket.model.models.EntityModel.getTy
>>> peOfSpecification(EntityModel.java:313)
>>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.tabs.
>>> TabGroupPanel.tabsFor(TabGroupPanel.java:64)
>>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.tabs.
>>> TabGroupPanel.<init>(TabGroupPanel.java:89)
>>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.col.C
>>> ol.buildGui(Col.java:212)
>>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.col.C
>>> ol.<init>(Col.java:79)
>>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.row.R
>>> ow.buildGui(Row.java:69)
>>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.row.R
>>> ow.<init>(Row.java:54)
>>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.BS3Gr
>>> idPanel.buildGui(BS3GridPanel.java:56)
>>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.BS3Gr
>>> idPanel.<init>(BS3GridPanel.java:42)
>>> at org.apache.isis.viewer.wicket.ui.components.entity.selector.
>>> links.EntityLinksSelectorPanelFactory.createComponent(Entity
>>> LinksSelectorPanelFactory.java:57)
>>> at org.apache.isis.viewer.wicket.ui.ComponentFactoryAbstract.cr
>>> eateComponent(ComponentFactoryAbstract.java:98)
>>> at org.apache.isis.viewer.wicket.viewer.registries.components.C
>>> omponentFactoryRegistryDefault.createComponent(ComponentFact
>>> oryRegistryDefault.java:121)
>>> at org.apache.isis.viewer.wicket.viewer.registries.components.C
>>> omponentFactoryRegistryDefault.addOrReplaceComponent(Compone
>>> ntFactoryRegistryDefault.java:106)
>>> at org.apache.isis.viewer.wicket.ui.pages.PageAbstract.addCompo
>>> nent(PageAbstract.java:346)
>>> at org.apache.isis.viewer.wicket.ui.pages.PageAbstract.addChild
>>> Components(PageAbstract.java:341)
>>> at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.bui
>>> ldPage(EntityPage.java:195)
>>> at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.<in
>>> it>(EntityPage.java:114)
>>> at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.<in
>>> it>(EntityPage.java:82)
>>> at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.<in
>>> it>(EntityPage.java:94)
>>> at org.apache.isis.viewer.wicket.ui.actionresponse.ActionResult
>>> ResponseType$9.call(ActionResultResponseType.java:159)
>>> at org.apache.isis.viewer.wicket.ui.actionresponse.ActionResult
>>> ResponseType$9.call(ActionResultResponseType.java:157)
>>> at org.apache.isis.core.metamodel.adapter.mgr.AdapterManager$Co
>>> ncurrencyChecking.executeWithConcurrencyCheckingDisabled(Ada
>>> pterManager.java:88)
>>>
>>
>>
>