vlsi commented on issue #6174:
URL: https://github.com/apache/jmeter/issues/6174#issuecomment-1861148060

   The root cause is `${__time(yyyy-MM-dd hh:mm:sss)}`
   You should have `ss` instead of `sss`.
   In any case, you'd better use query parameters rather than building the 
string with jmeter templates.
   
   It is sad JMeter does not report errors from 
`StandardJMeterEngine.notifyTestListenersOfStart`
   
   ```
   java.lang.IllegalArgumentException: Unable to parse date format yyyy-MM-dd 
hh:mm:sss
           at 
org.apache.jmeter.functions.TimeFunction.lambda$static$2(TimeFunction.java:80)
           at 
com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$2(LocalLoadingCache.java:145)
           at 
com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2406)
           at 
java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916)
           at 
com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2404)
           at 
com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2387)
           at 
com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108)
           at 
com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:56)
           at 
org.apache.jmeter.functions.TimeFunction.execute(TimeFunction.java:137)
           at 
org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:139)
           at 
org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:114)
           at 
org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:104)
           at 
org.apache.jmeter.testbeans.TestBeanHelper.unwrapProperty(TestBeanHelper.java:189)
           at 
org.apache.jmeter.testbeans.TestBeanHelper.prepare(TestBeanHelper.java:139)
           at 
org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:243)
           at 
org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:424)
           at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
           at java.base/java.lang.Thread.run(Thread.java:840)
   Caused by: java.lang.IllegalArgumentException: Too many pattern letters: s
           at 
java.base/java.time.format.DateTimeFormatterBuilder.parseField(DateTimeFormatterBuilder.java:2020)
           at 
java.base/java.time.format.DateTimeFormatterBuilder.parsePattern(DateTimeFormatterBuilder.java:1804)
           at 
java.base/java.time.format.DateTimeFormatterBuilder.appendPattern(DateTimeFormatterBuilder.java:1772)
           at 
java.base/java.time.format.DateTimeFormatter.ofPattern(DateTimeFormatter.java:566)
           at 
org.apache.jmeter.functions.TimeFunction.lambda$static$2(TimeFunction.java:77)
           ... 20 more
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to