Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5906

The <delete> action in <entity-engine-xml> definitions throw an error in tests

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Release Branch 12.04, Release Branch 13.07, Trunk
    • Fix Version/s: 14.12.01, 12.04.06, 13.07.02
    • Component/s: framework
    • Labels:
      None

      Description

      While running a test with test data defined with a <delete> inside I got thses errors:

      2014-10-28 15:21:22,155 |main                 |GenericDelegator              |E| Error getting entity definition from model
      org.ofbiz.entity.GenericModelException: Could not find definition for entity name delete
      	at org.ofbiz.entity.model.ModelReader.getModelEntity(ModelReader.java:489) ~[ofbiz-entity.jar:?]
      	at org.ofbiz.entity.GenericDelegator.getModelEntity(GenericDelegator.java:405) [ofbiz-entity.jar:?]
      	at org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:600) [ofbiz-entity.jar:?]
      	at org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:2397) [ofbiz-entity.jar:?]
      	at org.ofbiz.entity.GenericDelegator.makeValues(GenericDelegator.java:2356) [ofbiz-entity.jar:?]
      	at org.ofbiz.entity.GenericDelegator.readXmlDocument(GenericDelegator.java:2327) [ofbiz-entity.jar:?]
      	at org.ofbiz.testtools.EntityXmlAssertTest.countTestCases(EntityXmlAssertTest.java:61) [ofbiz-testtools.jar:?]
      	at junit.framework.TestResult.startTest(TestResult.java:150) [junit-dep-4.10.jar:?]
      	at org.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:71) [ofbiz-testtools.jar:?]
      	at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-dep-4.10.jar:?]
      	at junit.framework.TestSuite.run(TestSuite.java:238) [junit-dep-4.10.jar:?]
      	at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:147) [ofbiz-testtools.jar:?]
      	at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237) [ofbiz-base.jar:?]
      	at org.ofbiz.base.start.Start.startStartLoaders(Start.java:341) [ofbiz.jar:?]
      	at org.ofbiz.base.start.Start.start(Start.java:367) [ofbiz.jar:?]
      	at org.ofbiz.base.start.Start.main(Start.java:135) [ofbiz.jar:?]
      2014-10-28 15:21:22,156 |main                 |ServiceTest                   |E| Error getting test case count
      java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity for entityName: delete
      	at org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:602) ~[ofbiz-entity.jar:?]
      	at org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:2397) ~[ofbiz-entity.jar:?]
      	at org.ofbiz.entity.GenericDelegator.makeValues(GenericDelegator.java:2356) ~[ofbiz-entity.jar:?]
      	at org.ofbiz.entity.GenericDelegator.readXmlDocument(GenericDelegator.java:2327) ~[ofbiz-entity.jar:?]
      	at org.ofbiz.testtools.EntityXmlAssertTest.countTestCases(EntityXmlAssertTest.java:61) [ofbiz-testtools.jar:?]
      	at junit.framework.TestResult.startTest(TestResult.java:150) [junit-dep-4.10.jar:?]
      	at org.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:71) [ofbiz-testtools.jar:?]
      	at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-dep-4.10.jar:?]
      	at junit.framework.TestSuite.run(TestSuite.java:238) [junit-dep-4.10.jar:?]
      	at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:147) [ofbiz-testtools.jar:?]
      	at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237) [ofbiz-base.jar:?]
      	at org.ofbiz.base.start.Start.startStartLoaders(Start.java:341) [ofbiz.jar:?]
      	at org.ofbiz.base.start.Start.start(Start.java:367) [ofbiz.jar:?]
      	at org.ofbiz.base.start.Start.main(Start.java:135) [ofbiz.jar:?]
      

      This has no consequences AFAIK, but is a bit annoying...

        Attachments

        1. OFBIZ-5906.patch
          0.9 kB
          Divesh Dutta

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              jacques.le.roux Jacques Le Roux
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: