Gradle build failed with FileNotFoundException


(Sanjana Nirakh) #1

When I added Jmeter plugin to build.gradle and run the project, there is no bin folder generated, but when I do a build in VSTS, it’s failing with the following exceptions.

ERROR StatusLogger Unable to access file:/D:/a/1/s/build/jmeter/bin/log4j2.xml
2017-12-11T21:27:12.8203214Z java.io.FileNotFoundException: D:\a\1\s\build\jmeter\bin\log4j2.xml (The system cannot find the path specified)
2017-12-11T21:27:12.8203456Z at java.io.FileInputStream.open0(Native Method)
2017-12-11T21:27:12.8203653Z at java.io.FileInputStream.open(FileInputStream.java:195)
2017-12-11T21:27:12.8203853Z at java.io.FileInputStream.(FileInputStream.java:138)
2017-12-11T21:27:12.8204282Z at java.io.FileInputStream.(FileInputStream.java:93)
2017-12-11T21:27:12.8204494Z at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
2017-12-11T21:27:12.8204744Z at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
2017-12-11T21:27:12.8204949Z at java.net.URL.openStream(URL.java:1045)
2017-12-11T21:27:12.8205157Z at org.apache.logging.log4j.core.config.ConfigurationFactory.getInputFromUri(ConfigurationFactory.java:307)
2017-12-11T21:27:12.8205399Z at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:476)
2017-12-11T21:27:12.8205628Z at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:420)
2017-12-11T21:27:12.8205856Z at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:265)
2017-12-11T21:27:12.8206101Z at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:613)
2017-12-11T21:27:12.8206313Z at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:634)
2017-12-11T21:27:12.8206636Z at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:229)
2017-12-11T21:27:12.8206854Z at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
2017-12-11T21:27:12.8207075Z at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
2017-12-11T21:27:12.8207298Z at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
2017-12-11T21:27:12.8207507Z at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:122)
2017-12-11T21:27:12.8207822Z at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
2017-12-11T21:27:12.8208063Z at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
2017-12-11T21:27:12.8208291Z at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
2017-12-11T21:27:12.8208549Z at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
2017-12-11T21:27:12.8208759Z at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
2017-12-11T21:27:12.8208956Z at org.apache.jmeter.JMeter.(JMeter.java:109)
2017-12-11T21:27:12.8209175Z at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2017-12-11T21:27:12.8209384Z at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2017-12-11T21:27:12.8209605Z at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2017-12-11T21:27:12.8209831Z at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2017-12-11T21:27:12.8210026Z at java.lang.Class.newInstance(Class.java:442)
2017-12-11T21:27:12.8210230Z at org.apache.jmeter.NewDriver.main(NewDriver.java:246)
2017-12-11T21:27:12.8210454Z ERROR StatusLogger Reconfiguration failed: No configuration found for ‘2c7b84de’ at ‘null’ in 'null’
2017-12-11T21:27:13.5976242Z 21:27:13.534 [main] ERROR org.apache.jmeter.util.NameUpdater - Could not find upgrade file.
2017-12-11T21:27:13.5976889Z java.io.FileNotFoundException: D:\a\1\s\build\jmeter\bin\upgrade.properties (The system cannot find the path specified)
2017-12-11T21:27:13.5977165Z at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_102]
2017-12-11T21:27:13.5977377Z at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:1.8.0_102]
2017-12-11T21:27:13.5977604Z at java.io.FileInputStream.(FileInputStream.java:138) ~[?:1.8.0_102]
2017-12-11T21:27:13.5977826Z at org.apache.jmeter.util.NameUpdater.(NameUpdater.java:53) [ApacheJMeter_core-3.3.jar:3.3 r1808647]
2017-12-11T21:27:13.5978077Z at org.apache.jmeter.save.SaveService$XStreamWrapper$1.realClass(SaveService.java:95) [ApacheJMeter_core-3.3.jar:3.3 r1808647]
2017-12-11T21:27:13.5978638Z at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) [xstream-1.4.10.jar:1.4.10]
2017-12-11T21:27:13.5978878Z at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47) [xstream-1.4.10.jar:1.4.10]
2017-12-11T21:27:13.5979147Z at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29) [xstream-1.4.10.jar:1.4.10]
2017-12-11T21:27:13.5979379Z at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133) [xstream-1.4.10.jar:1.4.10]
2017-12-11T21:27:13.5979635Z at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) [xstream-1.4.10.jar:1.4.10]
2017-12-11T21:27:13.5979875Z at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486) [xstream-1.4.10.jar:1.4.10]
2017-12-11T21:27:13.5980107Z at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466) [xstream-1.4.10.jar:1.4.10]
2017-12-11T21:27:13.5980337Z at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337) [xstream-1.4.10.jar:1.4.10]
2017-12-11T21:27:13.5980559Z at org.apache.jmeter.save.SaveService.readTree(SaveService.java:443) [ApacheJMeter_core-3.3.jar:3.3 r1808647]
2017-12-11T21:27:13.5981024Z at org.apache.jmeter.save.SaveService.loadTree(SaveService.java:426) [ApacheJMeter_core-3.3.jar:3.3 r1808647]
2017-12-11T21:27:13.5981256Z at org.apache.jmeter.JMeter.runNonGui(JMeter.java:923) [ApacheJMeter_core-3.3.jar:3.3 r1808647]
2017-12-11T21:27:13.5981478Z at org.apache.jmeter.JMeter.startNonGui(JMeter.java:910) [ApacheJMeter_core-3.3.jar:3.3 r1808647]
2017-12-11T21:27:13.5981714Z at org.apache.jmeter.JMeter.start(JMeter.java:538) [ApacheJMeter_core-3.3.jar:3.3 r1808647]
2017-12-11T21:27:13.5981931Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
2017-12-11T21:27:13.5982159Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102]
2017-12-11T21:27:13.5982397Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
2017-12-11T21:27:13.5982612Z at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
2017-12-11T21:27:13.5982854Z at org.apache.jmeter.NewDriver.main(NewDriver.java:248) [ApacheJMeter-3.3.jar:3.3 r1808647]
2017-12-11T21:27:13.6403781Z Creating summariser


2017-12-11T21:27:13.6421822Z Created the tree successfully using D:\a\1\s\src\test\jmeter\SerialNumberValidation.jmx
2017-12-11T21:27:13.6456152Z Starting the test @ Mon Dec 11 21:27:13 UTC 2017 (1513027633642)
2017-12-11T21:27:13.6501221Z Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
2017-12-11T21:27:26.4023112Z summary = 150 in 00:00:12 = 12.6/s Avg: 1004 Min: 992 Max: 1118 Err: 150 (100.00%)
2017-12-11T21:27:26.4023652Z Generate Summary Results = 150 in 00:00:12 = 12.4/s Avg: 1004 Min: 992 Max: 1118 Err: 150 (100.00%)
2017-12-11T21:27:26.4030839Z Tidying up … @ Mon Dec 11 21:27:26 UTC 2017 (1513027646401)
2017-12-11T21:27:26.4031168Z … end of run
2017-12-11T21:27:27.7991298Z :jmRun FAILED
2017-12-11T21:27:27.8155218Z
2017-12-11T21:27:27.8334538Z FAILURE: Build failed with an exception.
2017-12-11T21:27:27.8335022Z
2017-12-11T21:27:27.8335224Z * What went wrong:
2017-12-11T21:27:27.8336337Z Execution failed for task ‘:jmRun’.
2017-12-11T21:27:27.8336900Z > There were test errors. See the jmeter logs for details.
2017-12-11T21:27:27.8337772Z
2017-12-11T21:27:27.8338274Z * Try:
2017-12-11T21:27:27.8338884Z Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
2017-12-11T21:27:27.8339354Z
2017-12-11T21:27:27.8340031Z BUILD FAILED

Can anyone please look into this and suggest if I’m missing anything?
Thank you.