error in sample data in 1.7.1 snapshot
Submitted by Ben_Charlton on Fri, 28/03/2014 - 13:11
The following error occurs when loading the sample data (netbeans dev setup)
[PROCESSING FILE : C:\Users\benjamincharlton\Documents\NetBeansProjects\openvpms-archetypes\src\data\org\openvpms\data\demo\organisation.xml] Error in start element, line 44, column 110<data source="id:OL1" target="id:OSL1" default="true" /> org.openvpms.tools.data.loader.ArchetypeDataLoaderException: Error at line 44: Attribute 'default' does not exist in archetype entityRelationship.locationStockLocation.1.0. at org.openvpms.tools.data.loader.LoadState.getNode(LoadState.java:396) at org.openvpms.tools.data.loader.LoadState.setValue(LoadState.java:162) at org.openvpms.tools.data.loader.DataLoader.processData(DataLoader.java:307) at org.openvpms.tools.data.loader.DataLoader.startData(DataLoader.java:271) at org.openvpms.tools.data.loader.DataLoader.load(DataLoader.java:160) at org.openvpms.tools.data.loader.StaxArchetypeDataLoader.processFile(StaxArchetypeDataLoader.java:239) at org.openvpms.tools.data.loader.StaxArchetypeDataLoader.processDir(StaxArchetypeDataLoader.java:222) at org.openvpms.tools.data.loader.StaxArchetypeDataLoader.load(StaxArchetypeDataLoader.java:157) at org.openvpms.maven.data.DataLoadMojo.doExecute(DataLoadMojo.java:70) at org.openvpms.maven.data.AbstractDataMojo.doExecute(AbstractDataMojo.java:160) at org.openvpms.maven.archetype.AbstractHibernateMojo.execute(AbstractHibernateMojo.java:98) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Re: error in sample data in 1.7.1 snapshot
Also
PROCESSING FILE : C:\Users\benjamincharlton\Documents\NetBeansProjects\openvpms-archetypes\src\data\org\openvpms\data\demo\transact.xml]
Failed to save object, archetype=participation.customer from path=C:\Users\benjamincharlton\Documents\NetBeansProjects\openvpms-archetypes\src\data\org\openvpms\data\demo\transact.xml, line=749
Failed to validate the object using archetype act.customerAccountCreditAdjust.1.0. FailedToValidObjectAgainstArchetype
node:tax msg:Value must be >= 0.0
Same error line 752, 755, 761