Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Framework failures on openvpms-framework
"C:\Program Files\Java\jdk1.7.0_45\bin\java" "-Dmaven.home=C:\Program Files\NetBeans 8.0\java\maven" "-Dclassworlds.conf=C:\Program Files\NetBeans 8.0\java\maven\bin\m2.conf" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 14.0.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\NetBeans 8.0\java\maven\boot\plexus-classworlds-2.4.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 14.0.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=14.0.3 test -P default,!release
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.openvpms:openvpms-framework:bundle:1.8-SNAPSHOT
[WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenVPMS Framework 1.8-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- castor-maven-plugin:2.1:generate (default) @ openvpms-framework ---
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Users\benjamincharlton\OPENVPMS_GIT_REPO\openvpms-framework\target\generated-sources\castor ...
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openvpms-framework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 25 resources
[INFO] Copying 24 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ openvpms-framework ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openvpms-framework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 33 resources
[INFO] Copying 25 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] Copying 87 resources
[INFO] Copying 10 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ openvpms-framework ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] >>> hibernate3-maven-plugin:2.2:hbm2ddl (default) @ openvpms-framework >>>
[INFO]
[INFO] --- castor-maven-plugin:2.1:generate (default) @ openvpms-framework ---
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Users\benjamincharlton\OPENVPMS_GIT_REPO\openvpms-framework\target\generated-sources\castor ...
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openvpms-framework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 25 resources
[INFO] Copying 24 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] <<< hibernate3-maven-plugin:2.2:hbm2ddl (default) @ openvpms-framework <<<
[INFO]
[INFO] --- hibernate3-maven-plugin:2.2:hbm2ddl (default) @ openvpms-framework ---
12:11:37,241 INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA
12:11:37,284 INFO org.hibernate.cfg.Environment - hibernate.properties not found
12:11:37,291 INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
12:11:37,358 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
12:11:37,687 INFO org.hibernate.cfg.Configuration - configuring from url: file:/C:/Users/benjamincharlton/OPENVPMS_GIT_REPO/openvpms-framework/target/test-classes/hibernate.cfg.xml
[INFO] Configuration XML file loaded: file:/C:/Users/benjamincharlton/OPENVPMS_GIT_REPO/openvpms-framework/target/test-classes/hibernate.cfg.xml
12:11:38,814 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/act/ActDOImpl.hbm.xml
12:11:39,109 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.act.ActDOImpl -> acts
12:11:39,384 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.act.ActDOImpl.details -> act_details
12:11:39,578 INFO org.hibernate.cfg.HbmBinder - Mapping joined-subclass: org.openvpms.component.business.dao.hibernate.im.act.FinancialActDOImpl -> financial_acts
12:11:39,580 INFO org.hibernate.cfg.HbmBinder - Mapping joined-subclass: org.openvpms.component.business.dao.hibernate.im.act.DocumentActDOImpl -> document_acts
12:11:40,013 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/act/ActRelationshipDOImpl.hbm.xml
12:11:40,045 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.act.ActRelationshipDOImpl -> act_relationships
12:11:40,126 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.act.ActRelationshipDOImpl.details -> act_relationship_details
12:11:40,126 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/act/ParticipationDOImpl.hbm.xml
12:11:40,166 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.act.ParticipationDOImpl -> participations
12:11:40,207 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.act.ParticipationDOImpl.details -> participation_details
12:11:40,208 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/archetype/ActionTypeDescriptorDOImpl.hbm.xml
12:11:40,244 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.archetype.ActionTypeDescriptorDOImpl -> action_type_descriptors
12:11:40,270 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/archetype/ArchetypeDescriptorDOImpl.hbm.xml
12:11:40,301 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOImpl -> archetype_descriptors
12:11:40,425 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/archetype/AssertionDescriptorDOImpl.hbm.xml
12:11:40,461 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.archetype.AssertionDescriptorDOImpl -> assertion_descriptors
12:11:40,461 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/archetype/AssertionTypeDescriptorDOImpl.hbm.xml
12:11:40,486 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.archetype.AssertionTypeDescriptorDOImpl -> assertion_type_descriptors
12:11:40,531 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/archetype/NodeDescriptorDOImpl.hbm.xml
12:11:40,566 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.archetype.NodeDescriptorDOImpl -> node_descriptors
12:11:40,567 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/document/DocumentDOImpl.hbm.xml
12:11:40,591 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.document.DocumentDOImpl -> documents
12:11:40,624 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.document.DocumentDOImpl.details -> document_details
12:11:40,625 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/audit/AuditRecord.hbm.xml
12:11:40,732 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.domain.im.audit.AuditRecord -> audit_records
12:11:40,732 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/entity/EntityDOImpl.hbm.xml
12:11:40,779 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.entity.EntityDOImpl -> entities
12:11:40,867 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityDOImpl.details -> entity_details
12:11:40,867 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityDOImpl.classifications -> entity_classifications
12:11:40,867 INFO org.hibernate.cfg.HbmBinder - Mapping joined-subclass: org.openvpms.component.business.dao.hibernate.im.product.ProductDOImpl -> products
12:11:40,867 INFO org.hibernate.cfg.HbmBinder - Mapping joined-subclass: org.openvpms.component.business.dao.hibernate.im.party.PartyDOImpl -> parties
12:11:40,867 INFO org.hibernate.cfg.HbmBinder - Mapping joined-subclass: org.openvpms.component.business.dao.hibernate.im.security.UserDOImpl -> users
12:11:40,867 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.security.UserDOImpl.roles -> user_roles
12:11:40,867 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/entity/EntityIdentityDOImpl.hbm.xml
12:11:40,888 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.entity.EntityIdentityDOImpl -> entity_identities
12:11:40,912 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityIdentityDOImpl.details -> entity_identity_details
12:11:40,912 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/entity/EntityRelationshipDOImpl.hbm.xml
12:11:40,951 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.entity.EntityRelationshipDOImpl -> entity_relationships
12:11:41,011 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityRelationshipDOImpl.details -> entity_relationship_details
12:11:41,011 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/entity/EntityLinkDOImpl.hbm.xml
12:11:41,046 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.entity.EntityLinkDOImpl -> entity_links
12:11:41,071 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityLinkDOImpl.details -> entity_link_details
12:11:41,071 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/lookup/LookupDOImpl.hbm.xml
12:11:41,102 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.lookup.LookupDOImpl -> lookups
12:11:41,143 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.lookup.LookupDOImpl.details -> lookup_details
12:11:41,143 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/lookup/LookupRelationshipDOImpl.hbm.xml
12:11:41,167 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.lookup.LookupRelationshipDOImpl -> lookup_relationships
12:11:41,169 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.lookup.LookupRelationshipDOImpl.details -> lookup_relationship_details
12:11:41,169 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/party/ContactDOImpl.hbm.xml
12:11:41,200 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.party.ContactDOImpl -> contacts
12:11:41,253 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.party.ContactDOImpl.details -> contact_details
12:11:41,253 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.party.ContactDOImpl.classifications -> contact_classifications
12:11:41,253 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/product/ProductPriceDOImpl.hbm.xml
12:11:41,286 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.product.ProductPriceDOImpl -> product_prices
12:11:41,324 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.product.ProductPriceDOImpl.details -> product_price_details
12:11:41,324 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.product.ProductPriceDOImpl.classifications -> product_price_classifications
12:11:41,324 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/security/ArchetypeAuthorityDOImpl.hbm.xml
12:11:41,352 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.security.ArchetypeAuthorityDOImpl -> granted_authorities
12:11:41,371 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : org/openvpms/component/business/dao/hibernate/im/security/SecurityRoleDOImpl.hbm.xml
12:11:41,393 INFO org.hibernate.cfg.HbmBinder - Mapping class: org.openvpms.component.business.dao.hibernate.im.security.SecurityRoleDOImpl -> security_roles
[INFO] No hibernate properties file loaded.
12:11:41,416 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.security.SecurityRoleDOImpl.authorities -> roles_authorities
12:11:41,416 INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
12:11:41,442 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.act.ActDOImpl.sourceActRelationships -> act_relationships
12:11:41,442 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.act.ActDOImpl.targetActRelationships -> act_relationships
12:11:41,442 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.act.ActDOImpl.participations -> participations
12:11:41,442 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOImpl.nodeDescriptors -> node_descriptors
12:11:41,442 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.archetype.AssertionTypeDescriptorDOImpl.actionTypes -> action_type_descriptors
12:11:41,442 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.archetype.NodeDescriptorDOImpl.nodeDescriptors -> node_descriptors
12:11:41,442 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.archetype.NodeDescriptorDOImpl.assertionDescriptors -> assertion_descriptors
12:11:41,443 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityDOImpl.identities -> entity_identities
12:11:41,443 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityDOImpl.sourceEntityRelationships -> entity_relationships
12:11:41,443 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityDOImpl.targetEntityRelationships -> entity_relationships
12:11:41,443 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.entity.EntityDOImpl.entityLinks -> entity_links
12:11:41,443 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.product.ProductDOImpl.productPrices -> product_prices
12:11:41,443 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.party.PartyDOImpl.contacts -> contacts
12:11:41,443 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.lookup.LookupDOImpl.sourceLookupRelationships -> lookup_relationships
12:11:41,444 INFO org.hibernate.cfg.HbmBinder - Mapping collection: org.openvpms.component.business.dao.hibernate.im.lookup.LookupDOImpl.targetLookupRelationships -> lookup_relationships
12:11:41,585 INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
12:11:42,282 INFO org.hibernate.tool.hbm2ddl.SchemaExport - Running hbm2ddl schema export
12:11:42,283 INFO org.hibernate.tool.hbm2ddl.SchemaExport - exporting generated schema to database
12:11:42,313 INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
12:11:42,313 INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
12:11:42,314 INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
12:11:42,440 INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/openvpms-1_8
12:11:42,440 INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=openvpms, password=****}
alter table act_details drop foreign key FKFB795F95D8B907FA;
alter table act_relationship_details drop foreign key FKFF1068C87D8180BF;
alter table act_relationships drop foreign key FK70AA344EC84DFFD1;
alter table act_relationships drop foreign key FK70AA344EFCECFA9B;
alter table action_type_descriptors drop foreign key FK7974D848936158C3;
alter table assertion_descriptors drop foreign key FKA1159D27273C243C;
alter table contact_classifications drop foreign key FK5AC8832E6AE6B6CA;
alter table contact_classifications drop foreign key FK5AC8832E3B64C74E;
alter table contact_details drop foreign key FKA3499D233B64C74E;
alter table contacts drop foreign key FKDE2D60537649DB4E;
alter table document_acts drop foreign key FK5E78FAC592203729;
alter table document_acts drop foreign key FK5E78FAC5D1AECF9E;
alter table document_details drop foreign key FK829C1F1E92203729;
alter table entity_classifications drop foreign key FK76B55CF16AE6B6CA;
alter table entity_classifications drop foreign key FK76B55CF14372B7A1;
alter table entity_details drop foreign key FKD621E9E64372B7A1;
alter table entity_identities drop foreign key FKB1D93FB84372B7A1;
alter table entity_identity_details drop foreign key FK4794CC9D3C2625E8;
alter table entity_link_details drop foreign key FKD2E4DDD9A03946DF;
alter table entity_links drop foreign key FK3FCDE05DA5B2869;
alter table entity_links drop foreign key FK3FCDE05D3EFA2333;
alter table entity_relationship_details drop foreign key FKBB44EA17AB042EA8;
alter table entity_relationships drop foreign key FK861BFDDF529A044;
alter table entity_relationships drop foreign key FK861BFDDFA5B2869;
alter table entity_relationships drop foreign key FK861BFDDF3EFA2333;
alter table financial_acts drop foreign key FK3D69E417B80AAC70;
alter table lookup_details drop foreign key FKB2E8287D6AE6B6CA;
alter table lookup_relationship_details drop foreign key FK40E558E08B49F65F;
alter table lookup_relationships drop foreign key FK2C88AF36C11A6889;
alter table lookup_relationships drop foreign key FK2C88AF36F5B96353;
alter table node_descriptors drop foreign key FKAB46B42775928C22;
alter table node_descriptors drop foreign key FKAB46B427F01904C0;
alter table participation_details drop foreign key FK64ED55446614381A;
alter table participations drop foreign key FKA301B524372B7A1;
alter table participations drop foreign key FKA301B52D8B907FA;
alter table parties drop foreign key FKD0BCCA04B67A7DBE;
alter table product_price_classifications drop foreign key FK9EC6BF076AE6B6CA;
alter table product_price_classifications drop foreign key FK9EC6BF07521C9574;
alter table product_price_details drop foreign key FKF9A9C1FC521C9574;
alter table product_prices drop foreign key FKFBD40D9AE51F1FB7;
alter table products drop foreign key FKC42BD164D813A315;
alter table roles_authorities drop foreign key FKE9CCCC9F2FE5EADB;
alter table roles_authorities drop foreign key FKE9CCCC9F844DFA25;
alter table user_roles drop foreign key FK734299495F0477E4;
alter table user_roles drop foreign key FK73429949844DFA25;
alter table users drop foreign key FK6A68E0826A12449;
drop table if exists act_details;
drop table if exists act_relationship_details;
drop table if exists act_relationships;
drop table if exists action_type_descriptors;
drop table if exists acts;
drop table if exists archetype_descriptors;
drop table if exists assertion_descriptors;
drop table if exists assertion_type_descriptors;
drop table if exists audit_records;
drop table if exists contact_classifications;
drop table if exists contact_details;
drop table if exists contacts;
drop table if exists document_acts;
drop table if exists document_details;
drop table if exists documents;
drop table if exists entities;
drop table if exists entity_classifications;
drop table if exists entity_details;
drop table if exists entity_identities;
drop table if exists entity_identity_details;
drop table if exists entity_link_details;
drop table if exists entity_links;
drop table if exists entity_relationship_details;
drop table if exists entity_relationships;
drop table if exists financial_acts;
drop table if exists granted_authorities;
drop table if exists lookup_details;
drop table if exists lookup_relationship_details;
drop table if exists lookup_relationships;
drop table if exists lookups;
drop table if exists node_descriptors;
drop table if exists participation_details;
drop table if exists participations;
drop table if exists parties;
drop table if exists product_price_classifications;
drop table if exists product_price_details;
drop table if exists product_prices;
drop table if exists products;
drop table if exists roles_authorities;
drop table if exists security_roles;
drop table if exists user_roles;
drop table if exists users;
create table act_details (act_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (act_id, name)) ENGINE=InnoDB;
create table act_relationship_details (act_relationship_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (act_relationship_id, name)) ENGINE=InnoDB;
create table act_relationships (act_relationship_id bigint not null auto_increment, arch_short_name varchar(100) not null, arch_version varchar(100) not null, linkId varchar(36) not null, name varchar(255), description varchar(255), parent_child_relationship bit, source_id bigint, target_id bigint, primary key (act_relationship_id)) ENGINE=InnoDB;
create table action_type_descriptors (action_type_desc_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, name varchar(255) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, active bit, class_name varchar(255), method_name varchar(255), assertion_type_desc_id bigint, primary key (action_type_desc_id)) ENGINE=InnoDB;
create table acts (act_id bigint not null auto_increment, version bigint not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, linkId varchar(36) not null, name varchar(255), description varchar(255), active bit, title varchar(255), activity_start_time datetime, activity_end_time datetime, reason varchar(255), status varchar(255), primary key (act_id)) ENGINE=InnoDB;
create table archetype_descriptors (archetype_desc_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, last_modified datetime, name varchar(100) not null unique, arch_short_name varchar(100) not null, arch_version varchar(100) not null, active bit, class_name varchar(255) not null, display_name varchar(255), is_latest bit, is_primary bit, primary key (archetype_desc_id)) ENGINE=InnoDB;
create table assertion_descriptors (assertion_desc_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, name varchar(255) not null, active bit, assertion_index integer, error_message varchar(255), property_map longtext, node_desc_id bigint, type varchar(255), primary key (assertion_desc_id)) ENGINE=InnoDB;
create table assertion_type_descriptors (assertion_type_desc_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, name varchar(255) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, active bit, property_archetype varchar(255) not null, primary key (assertion_type_desc_id)) ENGINE=InnoDB;
create table audit_records (audit_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, archetype_id varchar(255), time_stamp datetime, object_id bigint, service varchar(255), operation varchar(255), user varchar(255), primary key (audit_id)) ENGINE=InnoDB;
create table contact_classifications (contact_id bigint not null, lookup_id bigint not null, primary key (contact_id, lookup_id)) ENGINE=InnoDB;
create table contact_details (contact_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (contact_id, name)) ENGINE=InnoDB;
create table contacts (contact_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, party_id bigint, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), active bit, active_start_time date, active_end_time date, primary key (contact_id)) ENGINE=InnoDB;
create table document_acts (document_act_id bigint not null, doc_version varchar(255), file_name varchar(255), mime_type varchar(255), printed bit, document_id bigint, primary key (document_act_id)) ENGINE=InnoDB;
create table document_details (document_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (document_id, name)) ENGINE=InnoDB;
create table documents (document_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), mime_type varchar(255), doc_size integer, checksum bigint, contents longblob, primary key (document_id)) ENGINE=InnoDB;
create table entities (entity_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(100), description varchar(255), active bit, primary key (entity_id)) ENGINE=InnoDB;
create table entity_classifications (entity_id bigint not null, lookup_id bigint not null, primary key (entity_id, lookup_id)) ENGINE=InnoDB;
create table entity_details (entity_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (entity_id, name)) ENGINE=InnoDB;
create table entity_identities (entity_identity_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, entity_id bigint, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), active bit, identity varchar(255), primary key (entity_identity_id)) ENGINE=InnoDB;
create table entity_identity_details (entity_identity_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (entity_identity_id, name)) ENGINE=InnoDB;
create table entity_link_details (id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (id, name)) ENGINE=InnoDB;
create table entity_links (id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), active_start_time datetime, active_end_time datetime, sequence integer not null, source_id bigint, target_id bigint, primary key (id)) ENGINE=InnoDB;
create table entity_relationship_details (entity_relationship_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (entity_relationship_id, name)) ENGINE=InnoDB;
create table entity_relationships (entity_relationship_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), active_start_time datetime, active_end_time datetime, sequence integer not null, source_id bigint, target_id bigint, identity_id bigint, primary key (entity_relationship_id)) ENGINE=InnoDB;
create table financial_acts (financial_act_id bigint not null, quantity decimal(18,3), fixed_amount decimal(18,3), unit_amount decimal(18,3), fixed_cost decimal(18,3), unit_cost decimal(18,3), tax_amount decimal(18,3), total decimal(18,3), allocated_amount decimal(18,3), credit bit, printed bit, primary key (financial_act_id)) ENGINE=InnoDB;
create table granted_authorities (granted_authority_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), active bit, service_name varchar(255), method varchar(255), archetype varchar(100), primary key (granted_authority_id)) ENGINE=InnoDB;
create table lookup_details (lookup_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (lookup_id, name)) ENGINE=InnoDB;
create table lookup_relationship_details (lookup_relationship_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (lookup_relationship_id, name)) ENGINE=InnoDB;
create table lookup_relationships (lookup_relationship_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, active bit, source_id bigint, target_id bigint, primary key (lookup_relationship_id)) ENGINE=InnoDB;
create table lookups (lookup_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, active bit, arch_short_name varchar(100) not null, arch_version varchar(100) not null, code varchar(100) not null, name varchar(255), description varchar(255), default_lookup bit, primary key (lookup_id), unique (arch_short_name, code)) ENGINE=InnoDB;
create table node_descriptors (node_desc_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, name varchar(255) not null, description varchar(255), active bit, display_name varchar(255), type varchar(255) not null, path varchar(255) not null, base_name varchar(255), default_value varchar(255), filter varchar(255), derived_value varchar(255), is_readonly bit, is_hidden bit, is_derived bit, min_cardinality integer, max_cardinality integer, min_length integer, max_length integer, node_index integer, is_parent_child bit, parent_id bigint, archetype_desc_id bigint, primary key (node_desc_id)) ENGINE=InnoDB;
create table participation_details (participation_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (participation_id, name)) ENGINE=InnoDB;
create table participations (participation_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), active bit, act_arch_short_name varchar(100), entity_id bigint, act_id bigint, activity_start_time datetime, activity_end_time datetime, primary key (participation_id)) ENGINE=InnoDB;
create table parties (party_id bigint not null, primary key (party_id)) ENGINE=InnoDB;
create table product_price_classifications (product_price_id bigint not null, lookup_id bigint not null, primary key (product_price_id, lookup_id)) ENGINE=InnoDB;
create table product_price_details (product_price_id bigint not null, type varchar(255) not null, value varchar(5000) not null, name varchar(255) not null, primary key (product_price_id, name)) ENGINE=InnoDB;
create table product_prices (product_price_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), start_time datetime, end_time datetime, is_fixed bit, price decimal(18,3), active bit, product_id bigint, primary key (product_price_id)) ENGINE=InnoDB;
create table products (product_id bigint not null, primary key (product_id)) ENGINE=InnoDB;
create table roles_authorities (security_role_id bigint not null, authority_id bigint not null, primary key (security_role_id, authority_id)) ENGINE=InnoDB;
create table security_roles (security_role_id bigint not null auto_increment, version bigint not null, linkId varchar(36) not null, arch_short_name varchar(100) not null, arch_version varchar(100) not null, name varchar(255), description varchar(255), active bit, primary key (security_role_id)) ENGINE=InnoDB;
create table user_roles (user_id bigint not null, security_role_id bigint not null, primary key (user_id, security_role_id)) ENGINE=InnoDB;
create table users (user_id bigint not null, user_name varchar(20) not null unique, password varchar(20), primary key (user_id)) ENGINE=InnoDB;
alter table act_details add index FKFB795F95D8B907FA (act_id), add constraint FKFB795F95D8B907FA foreign key (act_id) references acts (act_id);
alter table act_relationship_details add index FKFF1068C87D8180BF (act_relationship_id), add constraint FKFF1068C87D8180BF foreign key (act_relationship_id) references act_relationships (act_relationship_id);
alter table act_relationships add index FK70AA344EC84DFFD1 (source_id), add constraint FK70AA344EC84DFFD1 foreign key (source_id) references acts (act_id) on delete cascade;
alter table act_relationships add index FK70AA344EFCECFA9B (target_id), add constraint FK70AA344EFCECFA9B foreign key (target_id) references acts (act_id) on delete cascade;
alter table action_type_descriptors add index FK7974D848936158C3 (assertion_type_desc_id), add constraint FK7974D848936158C3 foreign key (assertion_type_desc_id) references assertion_type_descriptors (assertion_type_desc_id);
create index act_end_time_idx on acts (activity_end_time);
create index act_short_name_status_idx on acts (arch_short_name, status);
create index act_start_time_idx on acts (activity_start_time);
alter table assertion_descriptors add index FKA1159D27273C243C (node_desc_id), add constraint FKA1159D27273C243C foreign key (node_desc_id) references node_descriptors (node_desc_id);
alter table contact_classifications add index FK5AC8832E6AE6B6CA (lookup_id), add constraint FK5AC8832E6AE6B6CA foreign key (lookup_id) references lookups (lookup_id);
alter table contact_classifications add index FK5AC8832E3B64C74E (contact_id), add constraint FK5AC8832E3B64C74E foreign key (contact_id) references contacts (contact_id);
alter table contact_details add index FKA3499D233B64C74E (contact_id), add constraint FKA3499D233B64C74E foreign key (contact_id) references contacts (contact_id);
alter table contacts add index FKDE2D60537649DB4E (party_id), add constraint FKDE2D60537649DB4E foreign key (party_id) references parties (party_id) on delete cascade;
alter table document_acts add index FK5E78FAC592203729 (document_id), add constraint FK5E78FAC592203729 foreign key (document_id) references documents (document_id);
alter table document_acts add index FK5E78FAC5D1AECF9E (document_act_id), add constraint FK5E78FAC5D1AECF9E foreign key (document_act_id) references acts (act_id) on delete cascade;
alter table document_details add index FK829C1F1E92203729 (document_id), add constraint FK829C1F1E92203729 foreign key (document_id) references documents (document_id);
create index entity_name_idx on entities (name);
create index entity_arch_sn_name_idx on entities (arch_short_name, name);
create index entity_short_name_idx on entities (arch_short_name);
alter table entity_classifications add index FK76B55CF16AE6B6CA (lookup_id), add constraint FK76B55CF16AE6B6CA foreign key (lookup_id) references lookups (lookup_id);
alter table entity_classifications add index FK76B55CF14372B7A1 (entity_id), add constraint FK76B55CF14372B7A1 foreign key (entity_id) references entities (entity_id);
alter table entity_details add index FKD621E9E64372B7A1 (entity_id), add constraint FKD621E9E64372B7A1 foreign key (entity_id) references entities (entity_id);
create index entity_identity_name_idx on entity_identities (name);
alter table entity_identities add index FKB1D93FB84372B7A1 (entity_id), add constraint FKB1D93FB84372B7A1 foreign key (entity_id) references entities (entity_id) on delete cascade;
alter table entity_identity_details add index FK4794CC9D3C2625E8 (entity_identity_id), add constraint FK4794CC9D3C2625E8 foreign key (entity_identity_id) references entity_identities (entity_identity_id);
alter table entity_link_details add index FKD2E4DDD9A03946DF (id), add constraint FKD2E4DDD9A03946DF foreign key (id) references entity_links (id);
alter table entity_links add index FK3FCDE05DA5B2869 (source_id), add constraint FK3FCDE05DA5B2869 foreign key (source_id) references entities (entity_id) on delete cascade;
alter table entity_links add index FK3FCDE05D3EFA2333 (target_id), add constraint FK3FCDE05D3EFA2333 foreign key (target_id) references entities (entity_id);
alter table entity_relationship_details add index FKBB44EA17AB042EA8 (entity_relationship_id), add constraint FKBB44EA17AB042EA8 foreign key (entity_relationship_id) references entity_relationships (entity_relationship_id);
alter table entity_relationships add index FK861BFDDF529A044 (identity_id), add constraint FK861BFDDF529A044 foreign key (identity_id) references entity_identities (entity_identity_id);
alter table entity_relationships add index FK861BFDDFA5B2869 (source_id), add constraint FK861BFDDFA5B2869 foreign key (source_id) references entities (entity_id) on delete cascade;
alter table entity_relationships add index FK861BFDDF3EFA2333 (target_id), add constraint FK861BFDDF3EFA2333 foreign key (target_id) references entities (entity_id) on delete cascade;
alter table financial_acts add index FK3D69E417B80AAC70 (financial_act_id), add constraint FK3D69E417B80AAC70 foreign key (financial_act_id) references acts (act_id) on delete cascade;
alter table lookup_details add index FKB2E8287D6AE6B6CA (lookup_id), add constraint FKB2E8287D6AE6B6CA foreign key (lookup_id) references lookups (lookup_id);
alter table lookup_relationship_details add index FK40E558E08B49F65F (lookup_relationship_id), add constraint FK40E558E08B49F65F foreign key (lookup_relationship_id) references lookup_relationships (lookup_relationship_id);
alter table lookup_relationships add index FK2C88AF36C11A6889 (source_id), add constraint FK2C88AF36C11A6889 foreign key (source_id) references lookups (lookup_id) on delete cascade;
alter table lookup_relationships add index FK2C88AF36F5B96353 (target_id), add constraint FK2C88AF36F5B96353 foreign key (target_id) references lookups (lookup_id) on delete cascade;
create index lookup_short_name_index on lookups (arch_short_name);
alter table node_descriptors add index FKAB46B42775928C22 (archetype_desc_id), add constraint FKAB46B42775928C22 foreign key (archetype_desc_id) references archetype_descriptors (archetype_desc_id) on delete cascade;
alter table node_descriptors add index FKAB46B427F01904C0 (parent_id), add constraint FKAB46B427F01904C0 foreign key (parent_id) references node_descriptors (node_desc_id) on delete cascade;
alter table participation_details add index FK64ED55446614381A (participation_id), add constraint FK64ED55446614381A foreign key (participation_id) references participations (participation_id);
create index participation_act_entity_start_time_idx on participations (act_arch_short_name, entity_id);
create index participation_entity_start_time_idx on participations (entity_id, activity_start_time);
create index participation_entity_end_time_idx on participations (entity_id, activity_end_time);
create index participation_arch_short_name_idx on participations (arch_short_name);
alter table participations add index FKA301B524372B7A1 (entity_id), add constraint FKA301B524372B7A1 foreign key (entity_id) references entities (entity_id);
alter table participations add index FKA301B52D8B907FA (act_id), add constraint FKA301B52D8B907FA foreign key (act_id) references acts (act_id) on delete cascade;
alter table parties add index FKD0BCCA04B67A7DBE (party_id), add constraint FKD0BCCA04B67A7DBE foreign key (party_id) references entities (entity_id) on delete cascade;
alter table product_price_classifications add index FK9EC6BF076AE6B6CA (lookup_id), add constraint FK9EC6BF076AE6B6CA foreign key (lookup_id) references lookups (lookup_id);
alter table product_price_classifications add index FK9EC6BF07521C9574 (product_price_id), add constraint FK9EC6BF07521C9574 foreign key (product_price_id) references product_prices (product_price_id);
alter table product_price_details add index FKF9A9C1FC521C9574 (product_price_id), add constraint FKF9A9C1FC521C9574 foreign key (product_price_id) references product_prices (product_price_id);
alter table product_prices add index FKFBD40D9AE51F1FB7 (product_id), add constraint FKFBD40D9AE51F1FB7 foreign key (product_id) references products (product_id) on delete cascade;
alter table products add index FKC42BD164D813A315 (product_id), add constraint FKC42BD164D813A315 foreign key (product_id) references entities (entity_id) on delete cascade;
alter table roles_authorities add index FKE9CCCC9F2FE5EADB (authority_id), add constraint FKE9CCCC9F2FE5EADB foreign key (authority_id) references granted_authorities (granted_authority_id);
alter table roles_authorities add index FKE9CCCC9F844DFA25 (security_role_id), add constraint FKE9CCCC9F844DFA25 foreign key (security_role_id) references security_roles (security_role_id);
alter table user_roles add index FK734299495F0477E4 (user_id), add constraint FK734299495F0477E4 foreign key (user_id) references users (user_id);
alter table user_roles add index FK73429949844DFA25 (security_role_id), add constraint FK73429949844DFA25 foreign key (security_role_id) references security_roles (security_role_id);
alter table users add index FK6A68E0826A12449 (user_id), add constraint FK6A68E0826A12449 foreign key (user_id) references parties (party_id) on delete cascade;
12:15:30,210 INFO org.hibernate.tool.hbm2ddl.SchemaExport - schema export complete
12:15:30,211 INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:mysql://localhost:3306/openvpms-1_8
[INFO]
[INFO] --- maven-antrun-plugin:1.2:run (default) @ openvpms-framework ---
[INFO] Executing tasks
12:15:31,461 INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:mysql://localhost:3306/openvpms-1_8
[java] Processing assertion type descriptors from: test/archetypes/org/openvpms/archetype/assertionTypes.xml
[java] Processing assertion type descriptor: expression
[java] Saving expression
[java] Processing assertion type descriptor: lookup.local
[java] Saving lookup.local
[java] Processing assertion type descriptor: negative
[java] Saving negative
[java] Processing assertion type descriptor: dummyAssertion4
[java] Saving dummyAssertion4
[java] Processing assertion type descriptor: lowercase
[java] Saving lowercase
[java] Processing assertion type descriptor: nonNegative
[java] Saving nonNegative
[java] Processing assertion type descriptor: lookup.assertionType
[java] Saving lookup.assertionType
[java] Processing assertion type descriptor: dummyAssertion3
[java] Saving dummyAssertion3
[java] Processing assertion type descriptor: uppercase
[java] Saving uppercase
[java] Processing assertion type descriptor: candidateChildren
[java] Saving candidateChildren
[java] Processing assertion type descriptor: lookup
[java] Saving lookup
[java] Processing assertion type descriptor: dummyAssertion1
[java] Saving dummyAssertion1
[java] Processing assertion type descriptor: dummyAssertion2
[java] Saving dummyAssertion2
[java] Processing assertion type descriptor: uniqueEntityRelationship
[java] Saving uniqueEntityRelationship
[java] Processing assertion type descriptor: regularExpression
[java] Saving regularExpression
[java] Processing assertion type descriptor: validateMethod
[java] Saving validateMethod
[java] Processing assertion type descriptor: propercase
[java] Saving propercase
[java] Processing assertion type descriptor: archetypeRange
[java] Saving archetypeRange
[java] Processing assertion type descriptor: positive
[java] Saving positive
[java] Processing file: act.customerAccountPayment.adl
[java] Processing archetype descriptor: act.customerAccountPayment.1.0
[java] Saving act.customerAccountPayment.1.0
[java] Processing file: act.customerEstimation.adl
[java] Processing archetype descriptor: act.customerEstimation.1.0
[java] Saving act.customerEstimation.1.0
[java] Processing file: act.customerEstimationItem.adl
[java] Processing archetype descriptor: act.customerEstimationItem.1.0
[java] Saving act.customerEstimationItem.1.0
[java] Processing file: act.estimationItem.adl
[java] Processing archetype descriptor: act.estimationItem.1.0
[java] Saving act.estimationItem.1.0
[java] Processing file: act.expressionAssertions.adl
[java] Processing archetype descriptor: act.expressionAssertions.1.0
[java] Saving act.expressionAssertions.1.0
[java] Processing file: act.numericAssertions.adl
[java] Processing archetype descriptor: act.numericAssertions.1.0
[java] Saving act.numericAssertions.1.0
[java] Processing file: act.patientReminder.adl
[java] Processing archetype descriptor: act.patientReminder.1.0
[java] Saving act.patientReminder.1.0
[java] Processing file: act.simple.adl
[java] Processing archetype descriptor: act.simple.1.0
[java] Saving act.simple.1.0
[java] Processing file: act.types.adl
[java] Processing archetype descriptor: act.types.1.0
[java] Saving act.types.1.0
[java] Processing file: actRelationship.customerEstimationItem.adl
[java] Processing archetype descriptor: actRelationship.customerEstimationItem.1.0
[java] Saving actRelationship.customerEstimationItem.1.0
[java] Processing file: actRelationship.simple.adl
[java] Processing archetype descriptor: actRelationship.simple.1.0
[java] Saving actRelationship.simple.1.0
[java] Processing file: document.act.adl
[java] Processing archetype descriptor: document.act.1.0
[java] Saving document.act.1.0
[java] Processing file: financial.act.adl
[java] Processing archetype descriptor: financial.act.1.0
[java] Saving financial.act.1.0
[java] Processing file: party.animalpet.adl
[java] Processing archetype descriptor: party.animalpet.1.0
[java] Saving party.animalpet.1.0
[java] Processing file: party.horsepet.adl
[java] Processing archetype descriptor: party.horsepet.1.0
[java] Saving party.horsepet.1.0
[java] Processing file: party.patientpet.adl
[java] Processing archetype descriptor: party.patientpet.1.0
[java] Saving party.patientpet.1.0
[java] Processing file: contact.location.adl
[java] Processing archetype descriptor: contact.location.1.0
[java] Saving contact.location.1.0
[java] Processing file: contact.phoneNumber.adl
[java] Processing archetype descriptor: contact.phoneNumber.1.0
[java] Saving contact.phoneNumber.1.0
[java] Processing file: entityLink.customerLocation.adl
[java] Processing archetype descriptor: entityLink.customerLocation.1.0
[java] Saving entityLink.customerLocation.1.0
[java] Processing file: party.customerperson.adl
[java] Processing archetype descriptor: party.customerperson.1.0
[java] Saving party.customerperson.1.0
[java] Processing file: document.common.adl
[java] Processing archetype descriptor: document.common.1.0
[java] Saving document.common.1.0
[java] Processing file: entityIdentity.animalAlias.adl
[java] Processing archetype descriptor: entityIdentity.animalAlias.1.0
[java] Saving entityIdentity.animalAlias.1.0
[java] Processing file: entityIdentity.code.adl
[java] Processing archetype descriptor: entityIdentity.code.1.0
[java] Saving entityIdentity.code.1.0
[java] Processing file: entityIdentity.personAlias.adl
[java] Processing archetype descriptor: entityIdentity.personAlias.1.0
[java] Saving entityIdentity.personAlias.1.0
[java] Processing file: entityRelationship.animalCarer.adl
[java] Processing archetype descriptor: entityRelationship.animalCarer.1.0
[java] Saving entityRelationship.animalCarer.1.0
[java] Processing file: entityRelationship.animalOwner.adl
[java] Processing archetype descriptor: entityRelationship.animalOwner.1.0
[java] Saving entityRelationship.animalOwner.1.0
[java] Processing file: entityRelationship.familyMember.adl
[java] Processing archetype descriptor: entityRelationship.familyMember.1.0
[java] Saving entityRelationship.familyMember.1.0
[java] Processing file: entityRelationship.patientLocation.adl
[java] Processing archetype descriptor: entityRelationship.patientLocation.1.0
[java] Saving entityRelationship.patientLocation.1.0
[java] Processing file: entityRelationship.patientOwner.adl
[java] Processing archetype descriptor: entityRelationship.patientOwner.1.0
[java] Saving entityRelationship.patientOwner.1.0
[java] Processing file: lookup.afl.adl
[java] Processing archetype descriptor: lookup.afl.1.0
[java] Saving lookup.afl.1.0
[java] Processing file: lookup.breed.adl
[java] Processing archetype descriptor: lookup.breed.1.0
[java] Saving lookup.breed.1.0
[java] Processing file: lookup.case.adl
[java] Processing archetype descriptor: lookup.case.1.0
[java] Saving lookup.case.1.0
[java] Processing file: lookup.colour.adl
[java] Processing archetype descriptor: lookup.colour.1.0
[java] Saving lookup.colour.1.0
[java] Processing file: lookup.contactPurpose.adl
[java] Processing archetype descriptor: lookup.contactPurpose.1.0
[java] Saving lookup.contactPurpose.1.0
[java] Processing file: lookup.country.adl
[java] Processing archetype descriptor: lookup.country.1.0
[java] Saving lookup.country.1.0
[java] Processing file: lookup.customerAccountType.adl
[java] Processing archetype descriptor: lookup.customerAccountType.1.0
[java] Saving lookup.customerAccountType.1.0
[java] Processing file: lookup.diagnosis.adl
[java] Processing archetype descriptor: lookup.diagnosis.1.0
[java] Saving lookup.diagnosis.1.0
[java] Processing file: lookup.diagnosisVeNom.adl
[java] Processing archetype descriptor: lookup.diagnosisVeNom.1.0
[java] Saving lookup.diagnosisVeNom.1.0
[java] Processing file: lookup.patient.adl
[java] Processing archetype descriptor: lookup.patient.1.0
[java] Saving lookup.patient.1.0
[java] Processing file: lookup.postcode.adl
[java] Processing archetype descriptor: lookup.postcode.1.0
[java] Saving lookup.postcode.1.0
[java] Processing file: lookup.productGroup.adl
[java] Processing archetype descriptor: lookup.productGroup.1.0
[java] Saving lookup.productGroup.1.0
[java] Processing file: lookup.species.adl
[java] Processing archetype descriptor: lookup.species.1.0
[java] Saving lookup.species.1.0
[java] Processing file: lookup.staff.adl
[java] Processing archetype descriptor: lookup.staff.1.0
[java] Saving lookup.staff.1.0
[java] Processing file: lookup.state.adl
[java] Processing archetype descriptor: lookup.state.1.0
[java] Saving lookup.state.1.0
[java] Processing file: lookup.suburb.adl
[java] Processing archetype descriptor: lookup.suburb.1.0
[java] Saving lookup.suburb.1.0
[java] Processing file: lookupRelationship.common.adl
[java] Processing archetype descriptor: lookupRelationship.common.1.0
[java] Saving lookupRelationship.common.1.0
[java] Processing file: lookupRelationship.countryState.adl
[java] Processing archetype descriptor: lookupRelationship.countryState.1.0
[java] Saving lookupRelationship.countryState.1.0
[java] Processing file: lookupRelationship.speciesBreed.adl
[java] Processing archetype descriptor: lookupRelationship.speciesBreed.1.0
[java] Saving lookupRelationship.speciesBreed.1.0
[java] Processing file: lookupRelationship.stateSuburb.adl
[java] Processing archetype descriptor: lookupRelationship.stateSuburb.1.0
[java] Saving lookupRelationship.stateSuburb.1.0
[java] Processing file: lookupRelationship.suburbPostcode.adl
[java] Processing archetype descriptor: lookupRelationship.suburbPostcode.1.0
[java] Saving lookupRelationship.suburbPostcode.1.0
[java] Processing file: organization.organization.adl
[java] Processing archetype descriptor: organization.organization.1.0
[java] Saving organization.organization.1.0
[java] Processing file: party.organisationLocation.adl
[java] Processing archetype descriptor: party.organisationLocation.1.0
[java] Saving party.organisationLocation.1.0
[java] Processing file: participation.clinician.adl
[java] Processing archetype descriptor: participation.clinician.1.0
[java] Saving participation.clinician.1.0
[java] Processing file: participation.customer.adl
[java] Processing archetype descriptor: participation.customer.1.0
[java] Saving participation.customer.1.0
[java] Processing file: participation.patient.adl
[java] Processing archetype descriptor: participation.patient.1.0
[java] Saving participation.patient.1.0
[java] Processing file: participation.simple.adl
[java] Processing archetype descriptor: participation.simple.1.0
[java] Saving participation.simple.1.0
[java] Processing file: party.person.adl
[java] Processing archetype descriptor: party.person.1.0
[java] Saving party.person.1.0
[java] Processing file: party.personbernief.adl
[java] Processing archetype descriptor: party.personbernief.1.0
[java] Saving party.personbernief.1.0
[java] Processing file: party.personfilter.adl
[java] Processing archetype descriptor: party.personfilter.1.0
[java] Saving party.personfilter.1.0
[java] Processing file: party.personfootballer.adl
[java] Processing archetype descriptor: party.personfootballer.1.0
[java] Saving party.personfootballer.1.0
[java] Processing archetype descriptor: party.personnewfootballer.1.0
[java] Saving party.personnewfootballer.1.0
[java] Processing file: party.personjima.adl
[java] Processing archetype descriptor: party.personjima.1.0
[java] Saving party.personjima.1.0
[java] Processing file: party.personobf49.adl
[java] Processing archetype descriptor: party.personobf49.1.0
[java] Saving party.personobf49.1.0
[java] Processing file: productPrice.margin.adl
[java] Processing archetype descriptor: productPrice.margin.1.0
[java] Saving productPrice.margin.1.0
[java] Processing file: product.product.adl
[java] Processing archetype descriptor: product.product.1.0
[java] Saving product.product.1.0
[java] Processing file: product.productPrice.adl
[java] Processing archetype descriptor: product.productPrice.1.0
[java] Saving product.productPrice.1.0
[java] Processing file: assertion.archetypeRange.adl
[java] Processing archetype descriptor: assertion.archetypeRangeProperties.1.0
[java] Saving assertion.archetypeRangeProperties.1.0
[java] Processing archetype descriptor: assertion.archetypeRange.1.0
[java] Saving assertion.archetypeRange.1.0
[java] Processing file: assertion.candidateChildren.adl
[java] Processing archetype descriptor: assertion.candidateChildren.1.0
[java] Saving assertion.candidateChildren.1.0
[java] Processing file: assertion.expression.adl
[java] Processing archetype descriptor: assertion.expression.1.0
[java] Saving assertion.expression.1.0
[java] Processing file: assertion.localLookup.adl
[java] Processing archetype descriptor: assertion.localLookupEntryProperties.1.0
[java] Saving assertion.localLookupEntryProperties.1.0
[java] Processing archetype descriptor: assertion.localLookup.1.0
[java] Saving assertion.localLookup.1.0
[java] Processing file: assertion.lookup.adl
[java] Processing archetype descriptor: assertion.lookup.1.0
[java] Saving assertion.lookup.1.0
[java] Processing file: assertion.number.adl
[java] Processing archetype descriptor: assertion.number.1.0
[java] Saving assertion.number.1.0
[java] Processing file: assertion.regularExpression.adl
[java] Processing archetype descriptor: assertion.regularExpression.1.0
[java] Saving assertion.regularExpression.1.0
[java] Processing file: assertion.uniqueEntityRelationship.adl
[java] Processing archetype descriptor: assertion.uniqueEntityRelationship.1.0
[java] Saving assertion.uniqueEntityRelationship.1.0
[java] Processing file: descriptor.actionType.adl
[java] Processing archetype descriptor: descriptor.actionType.1.0
[java] Saving descriptor.actionType.1.0
[java] Processing file: descriptor.archetype.adl
[java] Processing archetype descriptor: descriptor.archetype.1.0
[java] Saving descriptor.archetype.1.0
[java] Processing file: descriptor.assertion.adl
[java] Processing archetype descriptor: descriptor.assertion.1.0
[java] Saving descriptor.assertion.1.0
[java] Processing file: descriptor.assertionProperty.adl
[java] Processing archetype descriptor: descriptor.assertionProperty.1.0
[java] Saving descriptor.assertionProperty.1.0
[java] Processing file: descriptor.assertionType.adl
[java] Processing archetype descriptor: descriptor.assertionType.1.0
[java] Saving descriptor.assertionType.1.0
[java] Processing file: descriptor.collectionNode.adl
[java] Processing archetype descriptor: descriptor.collectionNode.1.0
[java] Saving descriptor.collectionNode.1.0
[java] Processing file: descriptor.node.adl
[java] Processing archetype descriptor: descriptor.node.1.0
[java] Saving descriptor.node.1.0
[java] Processing file: descriptor.propertyList.adl
[java] Processing archetype descriptor: descriptor.propertyList.1.0
[java] Saving descriptor.propertyList.1.0
[java] Processing file: descriptor.propertyMap.adl
[java] Processing archetype descriptor: descriptor.propertyMap.1.0
[java] Saving descriptor.propertyMap.1.0
[java] Processing file: descriptor.propertyType.adl
[java] Processing archetype descriptor: descriptor.propertyType.1.0
[java] Saving descriptor.propertyType.1.0
[java] Processing file: security.archetypeAuthority.adl
[java] Processing archetype descriptor: security.archetypeAuthority.1.0
[java] Saving security.archetypeAuthority.1.0
[java] Processing file: security.role.adl
[java] Processing archetype descriptor: security.role.1.0
[java] Saving security.role.1.0
[java] Processing file: security.user.adl
[java] Processing archetype descriptor: security.user.1.0
[java] Saving security.user.1.0
[INFO] Executed tasks
[INFO]
[INFO] --- maven-surefire-plugin:2.14.1:test (default-test) @ openvpms-framework ---
[INFO] Surefire report directory: C:\Users\benjamincharlton\OPENVPMS_GIT_REPO\openvpms-framework\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.openvpms.application.spring.SpringApplicationTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.35 sec
Running org.openvpms.component.business.dao.hibernate.im.act.ActDOTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.298 sec
Running org.openvpms.component.business.dao.hibernate.im.act.ActRelationshipDOTestCase
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.769 sec
Running org.openvpms.component.business.dao.hibernate.im.act.ParticipationDOTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.209 sec
Running org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase
Tests run: 7, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 5.84 sec <<< FAILURE!
testNestedNodeDescriptors(org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase) Time elapsed: 0.275 sec <<< FAILURE!
java.lang.AssertionError: expected:<644> but was:<650>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase.testNestedNodeDescriptors(ArchetypeDescriptorDOTestCase.java:165)
testDeleteNodeDescriptor(org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase) Time elapsed: 0.047 sec <<< FAILURE!
java.lang.AssertionError: expected:<653> but was:<647>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase.testDeleteNodeDescriptor(ArchetypeDescriptorDOTestCase.java:215)
testDelete(org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase) Time elapsed: 0.103 sec <<< FAILURE!
java.lang.AssertionError: expected:<650> but was:<653>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase.testDelete(ArchetypeDescriptorDOTestCase.java:111)
testAddAssertionDescriptors(org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase) Time elapsed: 1.975 sec <<< FAILURE!
java.lang.AssertionError: expected:<656> but was:<653>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.openvpms.component.business.dao.hibernate.im.archetype.ArchetypeDescriptorDOTestCase.testAddAssertionDescriptors(ArchetypeDescriptorDOTestCase.java:197)
Running org.openvpms.component.business.dao.hibernate.im.archetype.AssertionTypeDescriptorDOTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.285 sec
Running org.openvpms.component.business.dao.hibernate.im.lookup.LookupDOTestCase
0 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000
1 [main] ERROR org.hibernate.util.JDBCExceptionReporter - Duplicate entry 'lookup.species-CANINE-1427768256042' for key 'arch_short_name'
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.481 sec
Running org.openvpms.component.business.dao.hibernate.im.lookup.LookupRelationshipDOTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.686 sec
Running org.openvpms.component.business.dao.hibernate.im.party.ContactDOTestCase
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.815 sec
Running org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase
0 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 1451, SQLState: 23000
1 [main] ERROR org.hibernate.util.JDBCExceptionReporter - Cannot delete or update a parent row: a foreign key constraint fails (`openvpms-1_8`.`entity_links`, CONSTRAINT `FK3FCDE05D3EFA2333` FOREIGN KEY (`target_id`) REFERENCES `entities` (`entity_id`))
2 [main] ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: could not delete: [org.openvpms.component.business.dao.hibernate.im.party.PartyDOImpl#26]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2559)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2715)
at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:97)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:366)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase.testDeleteEntityLinkTarget(PartyDOTestCase.java:505)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`openvpms-1_8`.`entity_links`, CONSTRAINT `FK3FCDE05D3EFA2333` FOREIGN KEY (`target_id`) REFERENCES `entities` (`entity_id`))
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1016)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2543)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1737)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2022)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1940)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1925)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2541)
... 47 more
Tests run: 11, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 9.382 sec <<< FAILURE!
testPartySaveDeleteWithEntityIdentityDO(org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase) Time elapsed: 2.097 sec <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<1>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase.testPartySaveDeleteWithEntityIdentityDO(PartyDOTestCase.java:180)
testAddRemoveEntityIdentities(org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase) Time elapsed: 0.522 sec <<< FAILURE!
java.lang.AssertionError: expected:<11> but was:<10>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase.testAddRemoveEntityIdentities(PartyDOTestCase.java:205)
testEntityRelationshipRemoval(org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase) Time elapsed: 0.215 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.openvpms.component.business.dao.hibernate.im.party.PartyDOTestCase.testEntityRelationshipRemoval(PartyDOTestCase.java:305)
Running org.openvpms.component.business.dao.hibernate.im.product.ProductDOTestCase
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.906 sec <<< FAILURE!
testDelete(org.openvpms.component.business.dao.hibernate.im.product.ProductDOTestCase) Time elapsed: 0.12 sec <<< FAILURE!
java.lang.AssertionError: expected:<9> but was:<11>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.openvpms.component.business.dao.hibernate.im.product.ProductDOTestCase.testDelete(ProductDOTestCase.java:144)
Running org.openvpms.component.business.dao.hibernate.im.query.QueryBuilderExceptionTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.216 sec
Running org.openvpms.component.business.dao.hibernate.im.query.QueryBuilderTestCase
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.684 sec
Running org.openvpms.component.business.dao.hibernate.im.security.SecurityRoleDOTestCase
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.845 sec
Running org.openvpms.component.business.dao.hibernate.im.security.UserDAOHibernateTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.704 sec
Running org.openvpms.component.business.dao.hibernate.im.security.UserDOTestCase
0 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000
1 [main] ERROR org.hibernate.util.JDBCExceptionReporter - Duplicate entry 'admin1427768332760' for key 'user_name'
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.027 sec
Running org.openvpms.component.business.domain.im.act.ActRelationshipTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.501 sec
Running org.openvpms.component.business.domain.im.common.EntityTestCase
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.612 sec
Running org.openvpms.component.business.domain.im.common.IMObjectReferenceTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.105 sec
Running org.openvpms.component.business.domain.im.common.IMObjectTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.402 sec
Running org.openvpms.component.business.domain.im.datatypes.basic.PersistentTypedValueMapTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.019 sec
Running org.openvpms.component.business.domain.im.datatypes.basic.TypedValueMapTestCase
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.302 sec
Running org.openvpms.component.business.domain.im.datatypes.basic.TypedValueTestCase
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.302 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceActTestCase
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.41 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceAssertionDescriptorTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.504 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceDescriptorTestCase
0 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000
1 [main] ERROR org.hibernate.util.JDBCExceptionReporter - Duplicate entry 'archetype.dummy1427768379311.1.0' for key 'name'
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.473 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceDocumentTestCase
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.694 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceFilteredTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.4 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceFinancialActTestCase
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.029 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceFunctionsTestCase
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.999 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase
1 [main] WARN org.openvpms.component.business.service.archetype.Notifier - Caught unhandled exception from IArchetypeServiceListener.save() implementation
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at org.junit.Assert.assertFalse(Assert.java:74)
at org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase$Listener.save(ArchetypeServiceListenerTestCase.java:312)
at org.openvpms.component.business.service.archetype.Notifier.notifySaving(Notifier.java:101)
at org.openvpms.component.business.service.archetype.ArchetypeService.notifySave(ArchetypeService.java:789)
at org.openvpms.component.business.service.archetype.ArchetypeService.notifySave(ArchetypeService.java:748)
at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:477)
at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:455)
at org.openvpms.component.business.service.AbstractArchetypeServiceTest.save(AbstractArchetypeServiceTest.java:89)
at org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase.access$200(ArchetypeServiceListenerTestCase.java:46)
at org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase$6.doInTransaction(ArchetypeServiceListenerTestCase.java:260)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase.testVersion(ArchetypeServiceListenerTestCase.java:257)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
3 [main] WARN org.openvpms.component.business.service.archetype.Notifier - Caught unhandled exception from IArchetypeServiceListener.save() implementation
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at org.junit.Assert.assertFalse(Assert.java:74)
at org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase$Listener.save(ArchetypeServiceListenerTestCase.java:312)
at org.openvpms.component.business.service.archetype.Notifier.notifySaving(Notifier.java:101)
at org.openvpms.component.business.service.archetype.ArchetypeService.notifySave(ArchetypeService.java:789)
at org.openvpms.component.business.service.archetype.ArchetypeService.notifySave(ArchetypeService.java:748)
at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:477)
at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:455)
at org.openvpms.component.business.service.AbstractArchetypeServiceTest.save(AbstractArchetypeServiceTest.java:89)
at org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase.access$200(ArchetypeServiceListenerTestCase.java:46)
at org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase$6.doInTransaction(ArchetypeServiceListenerTestCase.java:260)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.openvpms.component.business.service.archetype.ArchetypeServiceListenerTestCase.testVersion(ArchetypeServiceListenerTestCase.java:257)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.806 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServicePaginationTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.569 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServicePartyTestCase
0 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 1451, SQLState: 23000
1 [main] ERROR org.hibernate.util.JDBCExceptionReporter - Cannot delete or update a parent row: a foreign key constraint fails (`openvpms-1_8`.`entity_links`, CONSTRAINT `FK3FCDE05D3EFA2333` FOREIGN KEY (`target_id`) REFERENCES `entities` (`entity_id`))
2 [main] ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: could not delete: [org.openvpms.component.business.dao.hibernate.im.party.PartyDOImpl#72]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2559)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2715)
at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:97)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)
at org.openvpms.component.business.dao.hibernate.im.common.AbstractDeleteHandler.delete(AbstractDeleteHandler.java:59)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$3.doInHibernate(IMObjectDAOHibernate.java:212)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$9$1.doInHibernate(IMObjectDAOHibernate.java:1094)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$9.doInTransaction(IMObjectDAOHibernate.java:1090)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.update(IMObjectDAOHibernate.java:1088)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.delete(IMObjectDAOHibernate.java:206)
at org.openvpms.component.business.service.archetype.ArchetypeService.remove(ArchetypeService.java:438)
at org.openvpms.component.business.service.AbstractArchetypeServiceTest.remove(AbstractArchetypeServiceTest.java:147)
at org.openvpms.component.business.service.archetype.ArchetypeServicePartyTestCase.testAddRemoveEntityLinks(ArchetypeServicePartyTestCase.java:215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`openvpms-1_8`.`entity_links`, CONSTRAINT `FK3FCDE05D3EFA2333` FOREIGN KEY (`target_id`) REFERENCES `entities` (`entity_id`))
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1016)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2543)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1737)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2022)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1940)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1925)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2541)
... 56 more
Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 13.636 sec <<< FAILURE!
testRemove(org.openvpms.component.business.service.archetype.ArchetypeServicePartyTestCase) Time elapsed: 0.376 sec <<< ERROR!
org.openvpms.component.business.service.archetype.ArchetypeServiceException: Failed to execute query: select contact.location:24:a6e5c5c8-d74c-11e4-a1e2-d74d617cd080.
at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:419)
at org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:154)
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:143)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:174)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
at org.openvpms.component.business.dao.hibernate.im.party.PartyDO_$$_javassist_1.hashCode(PartyDO_$$_javassist_1.java)
at java.util.HashMap.hash(HashMap.java:366)
at java.util.HashMap.getEntry(HashMap.java:466)
at java.util.HashMap.get(HashMap.java:421)
at org.openvpms.component.business.dao.hibernate.im.common.Context.getCached(Context.java:312)
at org.openvpms.component.business.dao.hibernate.im.common.AbstractAssembler.getObject(AbstractAssembler.java:69)
at org.openvpms.component.business.dao.hibernate.im.party.ContactAssembler.assembleObject(ContactAssembler.java:94)
at org.openvpms.component.business.dao.hibernate.im.party.ContactAssembler.assembleObject(ContactAssembler.java:37)
at org.openvpms.component.business.dao.hibernate.im.common.IMObjectAssembler.assemble(IMObjectAssembler.java:178)
at org.openvpms.component.business.dao.hibernate.im.common.CompoundAssembler.assemble(CompoundAssembler.java:118)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$8.doInHibernate(IMObjectDAOHibernate.java:854)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$8.doInHibernate(IMObjectDAOHibernate.java:843)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.execute(IMObjectDAOHibernate.java:1123)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.get(IMObjectDAOHibernate.java:843)
at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.get(IMObjectDAOHibernate.java:486)
at org.openvpms.component.business.service.archetype.ArchetypeService.get(ArchetypeService.java:326)
at org.openvpms.component.business.service.AbstractArchetypeServiceTest.get(AbstractArchetypeServiceTest.java:128)
at org.openvpms.component.business.service.archetype.ArchetypeServicePartyTestCase.testRemove(ArchetypeServicePartyTestCase.java:98)
Running org.openvpms.component.business.service.archetype.ArchetypeServicePersistenceTestCase
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.586 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceQueryTestCase
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.004 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceSecurityRoleTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.893 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceSortTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.374 sec
Running org.openvpms.component.business.service.archetype.ArchetypeServiceTestCase
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.582 sec
Running org.openvpms.component.business.service.archetype.assertion.EntityRelationshipAssertionTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.241 sec
Running org.openvpms.component.business.service.archetype.assertion.ExpressionAssertionTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.21 sec
Running org.openvpms.component.business.service.archetype.assertion.NumericAssertionTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.874 sec
Running org.openvpms.component.business.service.archetype.assertion.ProperCaseNameConverterTestCase
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.22 sec
Running org.openvpms.component.business.service.archetype.assertion.StringAssertionsTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.824 sec
Running org.openvpms.component.business.service.archetype.descriptor.ArchetypeDescriptorTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.303 sec
Running org.openvpms.component.business.service.archetype.descriptor.AssertionDescriptorTestCase
0 [main] WARN org.openvpms.component.business.service.archetype.descriptor.cache.BaseArchetypeDescriptorCache - Attempting to find [maxLength in [{dummyAssertion2=AssertionTypeDescriptor[id=13,archetypeId=descriptor.assertionType.1.0,linkId=dfcd4caf-d74b-11e4-aa15-e1cae3406f21,version=0,name=dummyAssertion2], expression=AssertionTypeDescriptor[id=1,archetypeId=descriptor.assertionType.1.0,linkId=dfcd259b-d74b-11e4-aa15-e1cae3406f21,version=0,name=expression], dummyAssertion3=AssertionTypeDescriptor[id=8,archetypeId=descriptor.assertionType.1.0,linkId=dfcd4cb1-d74b-11e4-aa15-e1cae3406f21,version=0,name=dummyAssertion3], uniqueEntityRelationship=AssertionTypeDescriptor[id=14,archetypeId=descriptor.assertionType.1.0,linkId=dfcd2599-d74b-11e4-aa15-e1cae3406f21,version=0,name=uniqueEntityRelationship], dummyAssertion4=AssertionTypeDescriptor[id=4,archetypeId=descriptor.assertionType.1.0,linkId=dfcd4cb3-d74b-11e4-aa15-e1cae3406f21,version=0,name=dummyAssertion4], regularExpression4=AssertionTypeDescriptor[id=24,archetypeId=descriptor.assertionType.1.0,linkId=22816ecc-3247-4c27-99ff-0a0ab3bbf213,version=0,name=regularExpression4], regularExpression=AssertionTypeDescriptor[id=20,archetypeId=descriptor.assertionType.1.0,linkId=cfac37a8-b756-4b83-b18a-092954964561,version=0,name=regularExpression], candidateChildren=AssertionTypeDescriptor[id=10,archetypeId=descriptor.assertionType.1.0,linkId=dfccd76d-d74b-11e4-aa15-e1cae3406f21,version=0,name=candidateChildren], nonNegative=AssertionTypeDescriptor[id=6,archetypeId=descriptor.assertionType.1.0,linkId=dfccfe87-d74b-11e4-aa15-e1cae3406f21,version=0,name=nonNegative], archetypeRange=AssertionTypeDescriptor[id=18,archetypeId=descriptor.assertionType.1.0,linkId=dfccd76b-d74b-11e4-aa15-e1cae3406f21,version=0,name=archetypeRange], lookup.assertionType=AssertionTypeDescriptor[id=7,archetypeId=descriptor.assertionType.1.0,linkId=dfccd76f-d74b-11e4-aa15-e1cae3406f21,version=0,name=lookup.assertionType], lookup=AssertionTypeDescriptor[id=11,archetypeId=descriptor.assertionType.1.0,linkId=dfcc893e-d74b-11e4-aa15-e1cae3406f21,version=0,name=lookup], dummyAssertion1=AssertionTypeDescriptor[id=12,archetypeId=descriptor.assertionType.1.0,linkId=dfcd259d-d74b-11e4-aa15-e1cae3406f21,version=0,name=dummyAssertion1], validateMethod=AssertionTypeDescriptor[id=16,archetypeId=descriptor.assertionType.1.0,linkId=dfccd771-d74b-11e4-aa15-e1cae3406f21,version=0,name=validateMethod], uppercase=AssertionTypeDescriptor[id=9,archetypeId=descriptor.assertionType.1.0,linkId=dfccb056-d74b-11e4-aa15-e1cae3406f21,version=0,name=uppercase], lowercase=AssertionTypeDescriptor[id=5,archetypeId=descriptor.assertionType.1.0,linkId=dfccb054-d74b-11e4-aa15-e1cae3406f21,version=0,name=lowercase], minLength=AssertionTypeDescriptor[id=26,archetypeId=descriptor.assertionType.1.0,linkId=de37e5a7-416f-4079-9dba-9e3eb78fca3e,version=0,name=minLength], lookup.local=AssertionTypeDescriptor[id=2,archetypeId=descriptor.assertionType.1.0,linkId=dfcc8940-d74b-11e4-aa15-e1cae3406f21,version=0,name=lookup.local], regularExpression3=AssertionTypeDescriptor[id=23,archetypeId=descriptor.assertionType.1.0,linkId=215b7d77-cb9b-4441-9c2b-23b07e9ef933,version=0,name=regularExpression3], regularExpression2=AssertionTypeDescriptor[id=22,archetypeId=descriptor.assertionType.1.0,linkId=a4e9c375-ff86-4180-b593-1b10197bd195,version=0,name=regularExpression2], regularExpression1=AssertionTypeDescriptor[id=21,archetypeId=descriptor.assertionType.1.0,linkId=6a5061fe-0994-49bb-b027-3a9c6cb115fa,version=0,name=regularExpression1], negative=AssertionTypeDescriptor[id=3,archetypeId=descriptor.assertionType.1.0,linkId=dfccfe85-d74b-11e4-aa15-e1cae3406f21,version=0,name=negative], positive=AssertionTypeDescriptor[id=19,archetypeId=descriptor.assertionType.1.0,linkId=dfccd773-d74b-11e4-aa15-e1cae3406f21,version=0,name=positive], propercase=AssertionTypeDescriptor[id=17,archetypeId=descriptor.assertionType.1.0,linkId=dfccb058-d74b-11e4-aa15-e1cae3406f21,version=0,name=propercase]}]
62 [main] WARN org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB - Failed to load descriptor animal.pet1427768230302.1.0
org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheException: maxLength is not a valid assertion specification.
at org.openvpms.component.business.service.archetype.descriptor.cache.BaseArchetypeDescriptorCache.checkAssertionsInNode(BaseArchetypeDescriptorCache.java:263)
at org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB$Cache.loadArchetypeDescriptor(ArchetypeDescriptorCacheDB.java:272)
at org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB$Cache.loadArchetypeDescriptors(ArchetypeDescriptorCacheDB.java:247)
at org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB$Cache.load(ArchetypeDescriptorCacheDB.java:216)
at org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB.<init>(ArchetypeDescriptorCacheDB.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
65 [main] WARN org.openvpms.component.business.service.archetype.descriptor.cache.BaseArchetypeDescriptorCache - Attempting to find [maxLength in [{dummyAssertion2=AssertionTypeDescriptor[id=13,archetypeId=descriptor.assertionType.1.0,linkId=dfcd4caf-d74b-11e4-aa15-e1cae3406f21,version=0,name=dummyAssertion2], expression=AssertionTypeDescriptor[id=1,archetypeId=descriptor.assertionType.1.0,linkId=dfcd259b-d74b-11e4-aa15-e1cae3406f21,version=0,name=expression], dummyAssertion3=AssertionTypeDescriptor[id=8,archetypeId=descriptor.assertionType.1.0,linkId=dfcd4cb1-d74b-11e4-aa15-e1cae3406f21,version=0,name=dummyAssertion3], uniqueEntityRelationship=AssertionTypeDescriptor[id=14,archetypeId=descriptor.assertionType.1.0,linkId=dfcd2599-d74b-11e4-aa15-e1cae3406f21,version=0,name=uniqueEntityRelationship], dummyAssertion4=AssertionTypeDescriptor[id=4,archetypeId=descriptor.assertionType.1.0,linkId=dfcd4cb3-d74b-11e4-aa15-e1cae3406f21,version=0,name=dummyAssertion4], regularExpression4=AssertionTypeDescriptor[id=24,archetypeId=descriptor.assertionType.1.0,linkId=22816ecc-3247-4c27-99ff-0a0ab3bbf213,version=0,name=regularExpression4], regularExpression=AssertionTypeDescriptor[id=20,archetypeId=descriptor.assertionType.1.0,linkId=cfac37a8-b756-4b83-b18a-092954964561,version=0,name=regularExpression], candidateChildren=AssertionTypeDescriptor[id=10,archetypeId=descriptor.assertionType.1.0,linkId=dfccd76d-d74b-11e4-aa15-e1cae3406f21,version=0,name=candidateChildren], nonNegative=AssertionTypeDescriptor[id=6,archetypeId=descriptor.assertionType.1.0,linkId=dfccfe87-d74b-11e4-aa15-e1cae3406f21,version=0,name=nonNegative], archetypeRange=AssertionTypeDescriptor[id=18,archetypeId=descriptor.assertionType.1.0,linkId=dfccd76b-d74b-11e4-aa15-e1cae3406f21,version=0,name=archetypeRange], lookup.assertionType=AssertionTypeDescriptor[id=7,archetypeId=descriptor.assertionType.1.0,linkId=dfccd76f-d74b-11e4-aa15-e1cae3406f21,version=0,name=lookup.assertionType], lookup=AssertionTypeDescriptor[id=11,archetypeId=descriptor.assertionType.1.0,linkId=dfcc893e-d74b-11e4-aa15-e1cae3406f21,version=0,name=lookup], dummyAssertion1=AssertionTypeDescriptor[id=12,archetypeId=descriptor.assertionType.1.0,linkId=dfcd259d-d74b-11e4-aa15-e1cae3406f21,version=0,name=dummyAssertion1], validateMethod=AssertionTypeDescriptor[id=16,archetypeId=descriptor.assertionType.1.0,linkId=dfccd771-d74b-11e4-aa15-e1cae3406f21,version=0,name=validateMethod], uppercase=AssertionTypeDescriptor[id=9,archetypeId=descriptor.assertionType.1.0,linkId=dfccb056-d74b-11e4-aa15-e1cae3406f21,version=0,name=uppercase], lowercase=AssertionTypeDescriptor[id=5,archetypeId=descriptor.assertionType.1.0,linkId=dfccb054-d74b-11e4-aa15-e1cae3406f21,version=0,name=lowercase], minLength=AssertionTypeDescriptor[id=26,archetypeId=descriptor.assertionType.1.0,linkId=de37e5a7-416f-4079-9dba-9e3eb78fca3e,version=0,name=minLength], lookup.local=AssertionTypeDescriptor[id=2,archetypeId=descriptor.assertionType.1.0,linkId=dfcc8940-d74b-11e4-aa15-e1cae3406f21,version=0,name=lookup.local], regularExpression3=AssertionTypeDescriptor[id=23,archetypeId=descriptor.assertionType.1.0,linkId=215b7d77-cb9b-4441-9c2b-23b07e9ef933,version=0,name=regularExpression3], regularExpression2=AssertionTypeDescriptor[id=22,archetypeId=descriptor.assertionType.1.0,linkId=a4e9c375-ff86-4180-b593-1b10197bd195,version=0,name=regularExpression2], regularExpression1=AssertionTypeDescriptor[id=21,archetypeId=descriptor.assertionType.1.0,linkId=6a5061fe-0994-49bb-b027-3a9c6cb115fa,version=0,name=regularExpression1], negative=AssertionTypeDescriptor[id=3,archetypeId=descriptor.assertionType.1.0,linkId=dfccfe85-d74b-11e4-aa15-e1cae3406f21,version=0,name=negative], positive=AssertionTypeDescriptor[id=19,archetypeId=descriptor.assertionType.1.0,linkId=dfccd773-d74b-11e4-aa15-e1cae3406f21,version=0,name=positive], propercase=AssertionTypeDescriptor[id=17,archetypeId=descriptor.assertionType.1.0,linkId=dfccb058-d74b-11e4-aa15-e1cae3406f21,version=0,name=propercase]}]
66 [main] WARN org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB - Failed to load descriptor animal.breed1427768231384.1.0
org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheException: maxLength is not a valid assertion specification.
at org.openvpms.component.business.service.archetype.descriptor.cache.BaseArchetypeDescriptorCache.checkAssertionsInNode(BaseArchetypeDescriptorCache.java:263)
at org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB$Cache.loadArchetypeDescriptor(ArchetypeDescriptorCacheDB.java:272)
at org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB$Cache.loadArchetypeDescriptors(ArchetypeDescriptorCacheDB.java:247)
at org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB$Cache.load(ArchetypeDescriptorCacheDB.java:216)
at org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheDB.<init>(ArchetypeDescriptorCacheDB.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
<?xml version="1.0" encoding="UTF-8"?>
<assertion name="lookup.local">
<errorMessage>error message</errorMessage>
<propertyList name="entries">
<property name="IN_PROGRESS" type="java.lang.String" value="In Progress"/>
<property name="COMPLETED" type="java.lang.String" value="Completed"/>
</propertyList>
</assertion>
<?xml version="1.0" encoding="UTF-8"?>
<assertion name="archetypeRange">
<errorMessage>error message</errorMessage>
<propertyList name="archetypes">
<propertyMap name="archetype">
<property name="shortName" type="java.lang.String" value="entityIdentity.barcode"/>
</propertyMap>
<propertyMap name="archetype">
<property name="shortName" type="java.lang.String" value="entityIdentity.code"/>
</propertyMap>
</propertyList>
</assertion>
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.585 sec
Running org.openvpms.component.business.service.archetype.descriptor.cache.ArchetypeDescriptorCacheFSTestCase
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.649 sec
Running org.openvpms.component.business.service.archetype.descriptor.NodeDescriptorTestCase
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.736 sec
Running org.openvpms.component.business.service.archetype.helper.AbstractIMObjectBeanTestCase
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.433 sec
Running org.openvpms.component.business.service.archetype.helper.ActBeanTestCase
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.085 sec
Running org.openvpms.component.business.service.archetype.helper.ArchetypeQueryHelperTestCase
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.703 sec
Running org.openvpms.component.business.service.archetype.helper.DescriptorHelperTestCase
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.883 sec
Running org.openvpms.component.business.service.archetype.helper.EntityBeanTestCase
Tests run: 30, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 34.345 sec
Running org.openvpms.component.business.service.archetype.helper.IMObjectBeanExceptionTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.23 sec
Running org.openvpms.component.business.service.archetype.helper.IMObjectBeanTestCase
Tests run: 41, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.485 sec
Running org.openvpms.component.business.service.archetype.helper.IMObjectCopierExceptionTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 sec
Running org.openvpms.component.business.service.archetype.helper.IMObjectCopierTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.464 sec
Running org.openvpms.component.business.service.archetype.helper.LookupHelperTestCase
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.52 sec
Running org.openvpms.component.business.service.archetype.helper.NodeResolverTestCase
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.73 sec
Running org.openvpms.component.business.service.archetype.helper.PropertyResolverExceptionTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.155 sec
Running org.openvpms.component.business.service.archetype.helper.PropertySetResolverTestCase
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.07 sec
Running org.openvpms.component.business.service.archetype.helper.ResolvingPropertySetTestCase
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.853 sec
Running org.openvpms.component.business.service.archetype.helper.sort.IMObjectSorterTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.402 sec
Running org.openvpms.component.business.service.archetype.helper.TypeHelperTestCase
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.137 sec
Running org.openvpms.component.business.service.archetype.rule.ArchetypeRuleServiceTestCase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.