Forum Discussion

Elvorin's avatar
Elvorin
Contributor
13 years ago

Random Generator

If rate along with unit (optionally) is changed too frequently, e.g. through another custom component, following error is thrown (seen on java web start console) -

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$KeyIterator.next(Unknown Source)
at com.eviware.loadui.groovy.GroovyContextSupport.cancelTasks(GroovyContextSupport.java:256)
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1055)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:781)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:772)
at com.eviware.loadui.groovy.GroovyScriptSupport$ScriptMetaClass.doInvokeMethod(GroovyScriptSupport.java:221)
at com.eviware.loadui.groovy.GroovyScriptSupport$ScriptMetaClass.invokeMethod(GroovyScriptSupport.java:202)
at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
at groovy.lang.Script.invokeMethod(Script.java:78)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:407)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:346)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137)
at GroovycomeviwareRandom$_run_closure3.doCall(GroovycomeviwareRandom:82)
at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
at groovy.lang.Closure.call(Closure.java:405)
at groovy.lang.Closure.call(Closure.java:418)
at com.eviware.loadui.groovy.GroovyContextSupport$2.handleEvent(GroovyContextSupport.java:211)
at com.eviware.loadui.util.events.EventSupport$PendingEvent.run(EventSupport.java:160)
at com.eviware.loadui.util.events.EventSupport$1.run(EventSupport.java:43)
at java.lang.Thread.run(Unknown Source)


Also Base Rate value and displayed Current Rate gets out of sync.

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    I haven't been able to reproduce this. Which version of loadUI are you having this problem with? I believe it is not an issue in either of the loadUI 2.0 betas.

    Regards,
    Dain
    SmartBear Software
  • I was using 1.5.0 stable build. Havent switched to 2.0 yet.