Hi Vikas

The two attributes field-name and field should be interchangeable, are you
sure that you don't have a problem even if you use field-name?

Regards
Scott

2008/6/13 Vikas Mayur <[EMAIL PROTECTED]>:

> Hi,
>
> I was testing few patches for test cases posted on Jira and thought to
> modify <if-empty field-name=""> to use <if-empty field=""> instead.
> But its giving following error ( This particular log is associated with
> when
> test is run on example component )
>
> Any thoughts, why this is happening ?
>
> Vikas
>
>
> Exception: java.lang.Exception
> Message: Error in simple-method [test the create example service
>
> [file:/Users/vikas/work/projects/ofbiz/framework/example/script/org/ofbiz/example/example/ExampleServices.xml#testCreateExampleService]]:
> ; [Assertion failed: (empty[=null])]
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.Exception: Error in simple-method [test the create example
> service
>
> [file:/Users/vikas/work/projects/ofbiz/framework/example/script/org/ofbiz/example/example/ExampleServices.xml#testCreateExampleService]]:
> ; [Assertion failed: (empty[=null])]
>
> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311)
>
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116)
>
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
> org.ofbiz.testtools.ServiceTest.run(ServiceTest.java:61)
> junit.framework.TestSuite.runTest(TestSuite.java:208)
> junit.framework.TestSuite.run(TestSuite.java:203)
> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:134)
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
> org.ofbiz.base.start.Start.startServer(Start.java:312)
> org.ofbiz.base.start.Start.start(Start.java:316)
> org.ofbiz.base.start.Start.main(Start.java:399)
>

Reply via email to