When using an attribute definition like this:
<attribute name="content" type="string" pattern="[A-Za-z ]{30,2500}"/>
it only works if the minimun size is 30 or lower, changing it to
<attribute name="content" type="string" pattern="[A-Za-z ]{31,2500}"/>
(note the 31 instead of 30) produces the following error:
11:46:47,216 DEBUG (main) [CONFIG] Initializing Script mapping from file org/databene/script/script.properties
Exception in thread "main" org.databene.benerator.InvalidGeneratorSetupException: 'min' greater than max, 'max' less than min
at org.databene.benerator.distribution.sequence.RandomLongGenerator.init(RandomLongGenerator.java:68)
at org.databene.benerator.wrapper.GeneratorWrapper.init(GeneratorWrapper.java:93)
at org.databene.benerator.wrapper.GeneratorWrapper.init(GeneratorWrapper.java:93)
at org.databene.benerator.wrapper.CardinalGenerator.init(CardinalGenerator.java:81)
at org.databene.benerator.primitive.RandomVarLengthStringGenerator.init(RandomVarLengthStringGenerator.java:115)
at org.databene.benerator.wrapper.ValidatingGeneratorProxy.init(ValidatingGeneratorProxy.java:68)
at org.databene.benerator.wrapper.GeneratorWrapper.init(GeneratorWrapper.java:93)
at org.databene.benerator.wrapper.GeneratorWrapper.init(GeneratorWrapper.java:93)
at org.databene.benerator.wrapper.CardinalGenerator.init(CardinalGenerator.java:82)
at org.databene.benerator.composite.AbstractGeneratorComponent.init(AbstractGeneratorComponent.java:65)
at org.databene.benerator.engine.statement.GenerateAndConsumeTask.initStatements(GenerateAndConsumeTask.java:261)
at org.databene.benerator.engine.statement.GenerateAndConsumeTask.init(GenerateAndConsumeTask.java:119)
at org.databene.benerator.engine.statement.GenerateOrIterateStatement.beInitialized(GenerateOrIterateStatement.java:165)
at org.databene.benerator.engine.statement.GenerateOrIterateStatement.execute(GenerateOrIterateStatement.java:106)
at org.databene.benerator.engine.statement.LazyStatement.execute(LazyStatement.java:58)
at org.databene.benerator.engine.statement.StatementProxy.execute(StatementProxy.java:45)
at org.databene.benerator.engine.statement.TimedGeneratorStatement.execute(TimedGeneratorStatement.java:66)
at org.databene.benerator.engine.statement.SequentialStatement.executeSubStatements(SequentialStatement.java:51)
at org.databene.benerator.engine.statement.SequentialStatement.execute(SequentialStatement.java:46)
at org.databene.benerator.engine.BeneratorRootStatement.execute(BeneratorRootStatement.java:63)
at org.databene.benerator.engine.DescriptorRunner.execute(DescriptorRunner.java:135)
at org.databene.benerator.engine.DescriptorRunner.runWithoutShutdownHook(DescriptorRunner.java:116)
at org.databene.benerator.engine.DescriptorRunner.run(DescriptorRunner.java:109)
at org.databene.benerator.main.Benerator.runFile(Benerator.java:88)
at org.databene.benerator.main.Benerator.runFromCommandLine(Benerator.java:76)
at org.databene.benerator.main.Benerator.main(Benerator.java:69)
This happens with benerator 0.7.6
Generator script showing the error