[OpenVPMS Developers] Reloading archetypes from command line

Did anyone run into this issue? I tried to reload archetypes from the command line "archload.sh" and when I did that, I restated the app and got a "security.user" archetype missing. Anyone run into this?

05 May 2009 16:23:20,476 WARN LoggerListener,TP-Processor21:92 - Authentication event AuthenticationSuccessEvent: admin; details: org.acegisecurity.ui.WebAuthenticationDetails@38103810: RemoteIpAddress: 76.227.62.83; SessionId: 8A28CE8A192811907044FAE7B2075491 05 May 2009 16:23:20,477 WARN LoggerListener,TP-Processor21:92 - Authentication event InteractiveAuthenticationSuccessEvent: admin; details: org.acegisecurity.ui.WebAuthenticationDetails@38103810: RemoteIpAddress: 76.227.62.83; SessionId: 8A28CE8A192811907044FAE7B2075491 05 May 2009 16:23:21,794 DEBUG ArchetypeService,TP-Processor19:66 - ArchetypeService.get: query org.openvpms.component.system.common.query.ArchetypeQuery@1cb81cb8 [firstResult=0,maxResults=1,count=false,constraints=org.openvpms.component.system.common.query.ShortNameConstraint@1cc21cc2 [constraints={org.openvpms.component.system.common.query.NodeConstraint@6bf26bf2 [nodeName=username,operator=EQ,parameters={admin}]},alias=,activeOnly=true,primaryOnly=true,shortNames={security.user}]] 05 May 2009 16:23:21,794 DEBUG ArchetypeService,TP-Processor19:66 - ArchetypeService.get: query org.openvpms.component.system.common.query.ArchetypeQuery@1cb81cb8 [firstResult=0,maxResults=1,count=false,constraints=org.openvpms.component.system.common.query.ShortNameConstraint@1cc21cc2 [constraints={org.openvpms.component.system.common.query.NodeConstraint@6bf26bf2 [nodeName=username,operator=EQ,parameters={admin}]},alias=,activeOnly=true,primaryOnly=true,shortNames={security.user}]] 05 May 2009 16:23:22,025 ERROR [AppServlet],TP-Processor19:274 - Servlet.service() for servlet AppServlet threw exception org.openvpms.component.business.dao.hibernate.im.query.QueryBuilderException: Invalid query. Could not find any matching archetypes for short names {security.user}. at org.openvpms.component.business.dao.hibernate.im.query.TypeSet.create(TypeSet.java:203) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.getTypeSet(QueryBuilder.java:719) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.process(QueryBuilder.java:230) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.processConstraint(QueryBuilder.java:772) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.build(QueryBuilder.java:113) at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$DefaultQueryDelegator.get(IMObjectDAOHibernate.java:1162) at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$QueryDelegator.get(IMObjectDAOHibernate.java:1118) at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.get(IMObjectDAOHibernate.java:221) at org.openvpms.component.business.service.archetype.ArchetypeService.get(ArchetypeService.java:390) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor

-- Albert T. Wong VetAnyware, Veterinary Business Software Solutions

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

[OpenVPMS Developers]

If you check the database, is the security.user archetype present?

Do a:

     select name, active from archetype_descriptors where name like "security.user%"

This should return a single row, with name="security.user.1.0" and active="1"

If not, what happens if you re-run the archload script?

Is there a security.user.adl file in the update/archetypes/org/openvpms/archetype/system/security/ directory?

 

 

Syndicate content