I am new to JMeter and the assertion concepts. I am encountering this error message when I attempted to execute a JMX file, containing assertions in JMeter:
Assertion error: false
Assertion failure: true
Assertion Failure Message: Test Failed: Variable(search result) not to equal /
received: NOT FOUND [[[[]]]]
comparison: NOT FOUND [[[[]]]]
The script is executed this way:
$java -jar ./apache-jmeter-2.10/bin/ApacheJMeter.jar -t ./jmeter-master/test.jmx -Jhost=myhost.com -Joutput_suffix=localtest
I have attempted to drop the contents of database table in MySQL, repopulate them, and re-execute the jmx file. However, it is still failing with the same error message above.
The jmeter.log indicates only the following information below:
2013/11/27 05:58:52 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.OutOfMemoryError
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:284)
at org.mozilla.javascript.DefiningClassLoader.defineClass(DefiningClassLoader.java:27)
at org.mozilla.javascript.optimizer.Codegen.defineClass(Codegen.java:130)
at org.mozilla.javascript.optimizer.Codegen.createScriptObject(Codegen.java:85)
at org.mozilla.javascript.Context.compileImpl(Context.java:2394)
at org.mozilla.javascript.Context.compileString(Context.java:1335)
at org.mozilla.javascript.Context.compileString(Context.java:1324)
at org.mozilla.javascript.Context.evaluateString(Context.java:1076)
at org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:110)
at org.apache.jmeter.control.IfController.next(IfController.java:167)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:214)
at org.apache.jmeter.control.GenericController.next(GenericController.java:174)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:223)
at org.apache.jmeter.control.GenericController.next(GenericController.java:174)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:214)
at org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:274)
at org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:275)
at org.apache.jmeter.control.IfController.next(IfController.java:178)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:214)
at org.apache.jmeter.control.GenericController.next(GenericController.java:174)
at org.apache.jmeter.control.LoopController.next(LoopController.java:118)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:223)
at org.apache.jmeter.control.GenericController.next(GenericController.java:174)
at org.apache.jmeter.control.LoopController.next(LoopController.java:118)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:223)
at org.apache.jmeter.control.GenericController.next(GenericController.java:174)
at org.apache.jmeter.control.LoopController.next(LoopController.java:118)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:223)
at org.apache.jmeter.control.GenericController.next(GenericController.java:174)
at org.apache.jmeter.control.LoopController.next(LoopController.java:118)
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:88)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
at java.lang.Thread.run(Thread.java:769)
This is message logged in the JTL file:
/</failureMessage>
</assertionResult>
</httpSample>
<httpSample t="436" lt="406" ts="1385112442588" s="true" lb="Homepage:Home" rc="200" rm="OK" tn="Thread Group 1-4" dt="text" by="238401" sc="1" ec="0" ng="6" na="6"/>
<httpSample t="111" lt="34" ts="1385112445679" s="false" lb="Search:Leads" rc="200" rm="OK" tn="Thread Group 1-2" dt="text" by="15237" sc="1" ec="1" ng="6" na="6">
<assertionResult>
<name>Check for found lead</name>
<failure>true</failure>
<error>false</error>
<failureMessage>Test failed: variable(searchResult) expected not to equal /
****** received : NOT_FOUND[[[]]]
****** comparison: NOT_FOUND[[[]]]
/</failureMessage>
</assertionResult>
</httpSample>
<httpSample t="138" lt="124" ts="1385112448413" s="false" lb="Search:Leads" rc="200" rm="OK" tn="Thread Group 1-4" dt="text" by="182785" sc="1" ec="1" ng="6" na="6">
<assertionResult>
<name>Check for found lead</name>
<failure>true</failure>
<error>false</error>
<failureMessage>Test failed: variable(searchResult) expected not to equal /
****** received : NOT_FOUND[[[]]]
****** comparison: NOT_FOUND[[[]]]
Here's the segment of the JMX file that was produced and executed:
<ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="Result Table" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>false</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>true</xml>
<fieldNames>false</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
<threadCounts>true</threadCounts>
<sampleCount>true</sampleCount>
</value>
</objProp>
<stringProp name="filename">jmeter_output_${__P(output_suffix,generic)}.xml</stringProp>
</ResultCollector>
Can anyone please provide pointers on troubleshooting this error?
Thank you so much,
Ari.
The log said OutOfMemoryError.
You could try first with increase the memory like:
$java -Xms256m -Xmx512m -jar ./apache-jmeter-2.10/bin/ApacheJMeter.jar -t ./jmeter-master/test.jmx -Jhost=myhost.com -Joutput_suffix=localtest
Related
ru.yandex.clickhouse.except.ClickHouseUnknownException: ClickHouse exception, code: 1002, host: xxx.xxx.xxx.xxx, port: 8123; xxx.xxx.xxx.xxx:8123 failed to respond
at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.getException(ClickHouseExceptionSpecifier.java:91)
at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:55)
at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:24)
at ru.yandex.clickhouse.ClickHouseStatementImpl.getInputStream(ClickHouseStatementImpl.java:633)
at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:117)
at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:100)
at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:95)
at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:90)
Caused by: org.apache.http.NoHttpResponseException: xxx.xxx.xxx.xxx:8123 failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at ru.yandex.clickhouse.ClickHouseStatementImpl.getInputStream(ClickHouseStatementImpl.java:614)
... 6 more
It's a famous bug in JDBC-driver https://github.com/ClickHouse/clickhouse-jdbc/issues/290
I tried to follow gradle instructions using latest version from github on Windows
Change to the top-level directory and issue the command:
./gradlew build
But it failed
* What went wrong:
Execution failed for task ':src:dist:buildPrintableDoc'.
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'stylesheets/site_printable.vsl'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with
--scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 4m 52s
I'm not sure it relevant to failure, but it states to making it incompatible with Gradle 6.0, but in gradle releases I don't see Gradle 6.0
Is my gradle version is wrong or is there something missing in github version?
site_printable.vsl file is found in xdocs\stylesheets folder
I added --stacktrace as suggested to get full exception:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':src:dist:buildPrintableDoc'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:1
48)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:1
45)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:13
8)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutio
nStateTaskExecuter.java:75)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExec
uter.java:108)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecut
ionOutputsTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPr
eviousExecutionStateTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:
94)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter
.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExec
uter.java:95)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.j
ava:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36
)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73
)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuil
dOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuil
dOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165
)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36
)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecuti
onGraph.java:355)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecuti
onGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTa
skExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTa
skExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'stylesheets/site_printabl
e.vsl'
at org.apache.velocity.anakia.AnakiaTask.execute(AnakiaTask.java:301)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:78)
at org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:103)
at org.gradle.kotlin.dsl.GroovyBuilderScopeForGroovyObject.invoke(GroovyInteroperability.kt:266)
at org.gradle.kotlin.dsl.GroovyBuilderScope$DefaultImpls.invoke(GroovyInteroperability.kt:251)
at org.gradle.kotlin.dsl.GroovyBuilderScopeForGroovyObject.invoke(GroovyInteroperability.kt:263)
at Build_gradle$createAnakiaTask$1$2.execute(build.gradle.kts:241)
at Build_gradle$createAnakiaTask$1$2.execute(build.gradle.kts:25)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:702)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:669)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$5.run(ExecuteActionsTaskExecuter.java:401)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuil
dOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuil
dOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165
)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.j
ava:390)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.
java:373)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java
:79)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskEx
ecuter.java:210)
at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$1(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:58)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:33)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:39)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:35)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:45)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:31)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:201)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:70)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:45)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49
)
at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:43)
at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:32)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:77)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsF
inishedStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsF
inishedStep.java:26)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:90)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:48)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:11
7)
... 35 more
Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'stylesheets/site_printable.
vsl'
at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:474)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:352)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1533)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1514)
at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:373)
at org.apache.velocity.anakia.AnakiaTask.execute(AnakiaTask.java:290)
... 92 more
Also building JMeter isn't updated with Gradle replacing Ant
I found an open issue on Gradle 6.0 warning, but I think it may be irrelevant to build failure
EDIT
I removed building documents from build.gradle.kts, but I get another failure
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':src:protocol:http:test'.
> There were failing tests. See the report at:
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':src:protocol:http:test'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:1
48)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:1
45)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:13
8)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutio
nStateTaskExecuter.java:75)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExec
uter.java:108)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecut
ionOutputsTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPr
eviousExecutionStateTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:
94)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter
.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExec
uter.java:95)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.j
ava:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36
)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73
)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuil
dOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuil
dOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165
)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36
)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecuti
onGraph.java:355)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecuti
onGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTa
skExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTa
skExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.GradleException: There were failing tests. See the
at org.gradle.api.tasks.testing.AbstractTestTask.handleTestFailures(AbstractTestTask.java:626)
at org.gradle.api.tasks.testing.AbstractTestTask.executeTests(AbstractTestTask.java:498)
at org.gradle.api.tasks.testing.Test.executeTests(Test.java:594)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:702)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:669)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$5.run(ExecuteActionsTaskExecuter.java:401)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuil
dOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuil
dOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165
)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.j
ava:390)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.
java:373)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java
:79)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskEx
ecuter.java:210)
at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$1(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:58)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:33)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:39)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:35)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:45)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:31)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:201)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:70)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:45)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49
)
at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:43)
at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:32)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:77)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsF
inishedStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsF
inishedStep.java:26)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:90)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:48)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:11
7)
... 35 more
See if this helps. In the gradle.md file there is this >./gradlew runGUI
## Build and run
# Build and start JMeter GUI
gw runGui
# Build project and copy relevant jars to rootDir/lib, and start JMeter
gw createDist; ./bin/jmeter
# Build all distributions (source, binary)
gw :src:dist:assemble
Have you tried to read the output?
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0
If you really want to build the HEAD version of JMeter's master branch I would recommend removing your existing Gradle installation, Java SDK is quite enough to perform the Gradle-based build.
Also be aware that although good practice is having the master branch always stable and "green" some people don't stick to it hence attempt to build JMeter from master might not always be successful as it evidenced by the above screenshot. Going forward if you experience issues check out JMeter Travis status
So instead of experimenting with master I would recommend getting the git tag which corresponds to the latest stable JMeter version from JMeter Downloads page (JMeter 5.1 as of now)
You can get the tag like:
git checkout tags/v5_1
<SubscriberSampler guiclass="JMSSubscriberGui" testclass="SubscriberSampler" testname="JMS Subscriber" enabled="true">
<stringProp name="jms.jndi_properties">false</stringProp>
<stringProp name="jms.initial_context_factory">org.apache.activemq.jndi.ActiveMQInitialContextFactory</stringProp>
<stringProp name="jms.provider_url">tcp://127.0.0.1:61610</stringProp>
<stringProp name="jms.connection_factory">ConnectionFactory</stringProp>
<stringProp name="jms.topic">dynamicQueue/MyQueue</stringProp>
<stringProp name="jms.security_principle">admin</stringProp>
<stringProp name="jms.security_credentials">admin</stringProp>
<boolProp name="jms.authenticate">true</boolProp>
<stringProp name="jms.iterations">1</stringProp>
<stringProp name="jms.read_response">false</stringProp>
<stringProp name="jms.client_choice">jms_subscriber_on_message</stringProp>
<stringProp name="jms_error_reconnect_on_codes"></stringProp>
<stringProp name="jms.selector">type='Queue'</stringProp>
</SubscriberSampler>
I need consume active mq message from jmeter
I have configured JMS Subscriber but getting errer message
Thread Name: Thread Group 1-1
Sample Start: 2019-09-11 18:52:42 BST
Load time: 0
Connect Time: 0
Latency: 0
Size in bytes: 0
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 0
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: 000
Response message: javax.naming.NameNotFoundException: dynamicQueue/MyQueue
Try with below queue name "dynamicQueues/MyQueue" instead of dynamicQueue/MyQueue
You can refer:
https://activemq.apache.org/how-to-unit-test-jms-code
NameNotFoundException: dynamicQueue/MyQueue
As per javax.naming.NameNotFoundException JavaDoc
This exception is thrown when a component of the name cannot be resolved because it is not bound.
Double check that the queue and/or topic exists and your user has enough rights to access it. The easiest way of checking is using the ActiveMQ Web Console
Check out Building a JMS Testing Plan - Apache JMeter article for instructions on sending/receiving JMS messages using JMeter
I'm migrating a logstash into a EC2 instance.
It's running a AmazonLinux.
By the command tail -f /var/log/logstash/logstash-plain.log
I'm getting a the follow log cycling/repeating
2017-12-20T15:30:24,742][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
[2017-12-20T15:30:24,745][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
[2017-12-20T15:30:27,342][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://search-ivendas-sz2q3f573vro6xlncwjnvzbf2m.us-east-1.es.amazonaws.com:443/]}}
[2017-12-20T15:30:27,343][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://search-ivendas-sz2q3f573vro6xlncwjnvzbf2m.us-east-1.es.amazonaws.com:443/, :path=>"/"}
[2017-12-20T15:30:28,040][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"https://search-ivendas-sz2q3f573vro6xlncwjnvzbf2m.us-east-1.es.amazonaws.com:443/"}
[2017-12-20T15:30:28,175][INFO ][logstash.outputs.elasticsearch] Using mapping template from {:path=>nil}
[2017-12-20T15:30:28,185][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"template"=>"logstash-*", "version"=>50001, "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"_default_"=>{"_all"=>{"enabled"=>true, "norms"=>false}, "dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false}}}, {"string_fields"=>{"match"=>"*", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false, "fields"=>{"keyword"=>{"type"=>"keyword", "ignore_above"=>256}}}}}], "properties"=>{"#timestamp"=>{"type"=>"date", "include_in_all"=>false}, "#version"=>{"type"=>"keyword", "include_in_all"=>false}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}}
[2017-12-20T15:30:28,201][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//search-ivendas-sz2q3f573vro6xlncwjnvzbf2m.us-east-1.es.amazonaws.com:443"]}
[2017-12-20T15:30:28,385][INFO ][logstash.pipeline ] Starting pipeline {"id"=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>250}
[2017-12-20T15:30:29,298][INFO ][logstash.pipeline ] Pipeline main started
[2017-12-20T15:30:29,502][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2017-12-20T15:30:29,979][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<NameError: undefined local variable or method `dotfile' for #<AwesomePrint::Inspector:0x18bafa48>>, :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/1.9/gems/awesome_print-1.8.0/lib/awesome_print/inspector.rb:163:in `merge_custom_defaults!'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/awesome_print-1.8.0/lib/awesome_print/inspector.rb:50:in `initialize'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/awesome_print-1.8.0/lib/awesome_print/core_ext/kernel.rb:9:in `ai'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-rubydebug-3.0.5/lib/logstash/codecs/rubydebug.rb:39:in `encode_default'", "org/jruby/RubyMethod.java:120:in `call'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-rubydebug-3.0.5/lib/logstash/codecs/rubydebug.rb:35:in `encode'", "/usr/share/logstash/logstash-core/lib/logstash/codecs/base.rb:50:in `multi_encode'", "org/jruby/RubyArray.java:1613:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/codecs/base.rb:50:in `multi_encode'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:90:in `multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/single.rb:15:in `multi_receive'", "org/jruby/ext/thread/Mutex.java:149:in `synchronize'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/single.rb:14:in `multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:49:in `multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:434:in `output_batch'", "org/jruby/RubyHash.java:1342:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:433:in `output_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:381:in `worker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:342:in `start_workers'"]}
I did installed the missing plugins, before I was getting another errors.
Is there someway to get more details about the problem ?
What am I missing ?
This is an issue with awesome-print plugin for rubydebug codec. set the HOME env variable (export HOME=<path_to_aprc_file>) which will be used to load .aprc configuration required by plugin. Refer this to persist this env variable.
I am trying to insert data into elasticsearch using logstash from SQL.When doing this using the config file I get the below exception and Logstash runs indefinately.Only on pressing ctrl+c I can stop the execution of the logstash.
D:\Logstash\Logstash\logstash-5.1.1\bin>logstash -f D:\Logstash\Logstash\logstas
h-5.1.1\bin\Crash_data.conf
Using JAVA_HOME=C:\Program Files\Java\jre1.8.0_111 retrieved from C:\ProgramData
\Oracle\java\javapath\java.exe
Could not find log4j2 configuration at path /Logstash/Logstash/logstash-5.1.1/co
nfig/log4j2.properties. Using default config which logs to console
01:20:19.777 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - El
asticsearch pool URLs updated {:changes=>{:removed=>[], :added=>["http://10.64.1
03.61:5601"]}}
01:20:19.783 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Ru
nning health check to see if an Elasticsearch connection is working {:url=>#<URI
::HTTP:0x1dccc4ca URL:http://10.64.103.61:5601>, :healthcheck_path=>"/"}
01:20:20.141 [[main]-pipeline-manager] WARN logstash.outputs.elasticsearch - Re
stored connection to ES instance {:url=>#<URI::HTTP:0x1dccc4ca URL:http://10.64.
103.61:5601>}
01:20:20.582 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Us
ing mapping template from {:path=>nil}
01:20:20.645 [[main]<jdbc] INFO logstash.inputs.jdbc - (1.141000s) SELECT * fro
m [Device_crash_Reporting].[dbo].[Device_Crash_Data]
01:20:21.696 [[main]-pipeline-manager] ERROR logstash.outputs.elasticsearch - Fa
iled to install template. {:message=>"Unexpected character ('<' (code 60)): expe
cted a valid value (number, String, array, object, 'true', 'false' or 'null')\n
at [Source: [B#7c825cdd; line: 1, column: 2]", :class=>"LogStash::Json::ParserEr
ror"}
01:20:21.699 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Ne
w Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["10
.64.103.61:5601"]}
01:20:21.704 [[main]-pipeline-manager] INFO logstash.pipeline - Starting pipeli
ne {"id"=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.b
atch.delay"=>5, "pipeline.max_inflight"=>250}
01:20:21.765 [[main]-pipeline-manager] INFO logstash.pipeline - Pipeline main s
tarted
01:20:23.108 [Api Webserver] INFO logstash.agent - Successfully started Logstas
h API endpoint {:port=>9600}
01:20:23.954 [[main]>worker1] ERROR logstash.outputs.elasticsearch - An unknown
error occurred sending a bulk request to Elasticsearch. We will retry indefinite
ly {:error_message=>"can't convert nil into Array", :error_class=>"TypeError", :
backtrace=>["org/jruby/RubyArray.java:1462:in `concat'", "D:/Logstash/Logstash/l
ogstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-j
ava/lib/logstash/outputs/elasticsearch/http_client.rb:94:in `join_bulk_responses
'", "org/jruby/RubyArray.java:1613:in `each'", "org/jruby/RubyEnumerable.java:85
2:in `inject'", "D:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gem
s/logstash-output-elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/ht
tp_client.rb:92:in `join_bulk_responses'", "D:/Logstash/Logstash/logstash-5.1.1/
vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-java/lib/logsta
sh/outputs/elasticsearch/http_client.rb:88:in `bulk'", "D:/Logstash/Logstash/log
stash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-jav
a/lib/logstash/outputs/elasticsearch/common.rb:186:in `safe_bulk'", "D:/Logstash
/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsea
rch-5.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:109:in `submit'", "D
:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-
elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:76:in `ret
rying_submit'", "D:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gem
s/logstash-output-elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/co
mmon.rb:27:in `multi_receive'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-co
re/lib/logstash/output_delegator_strategies/shared.rb:12:in `multi_receive'", "D
:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib/logstash/output_delegator.r
b:42:in `multi_receive'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib
/logstash/pipeline.rb:331:in `output_batch'", "org/jruby/RubyHash.java:1342:in `
each'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib/logstash/pipeline
.rb:330:in `output_batch'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/l
ib/logstash/pipeline.rb:288:in `worker_loop'", "D:/Logstash/Logstash/logstash-5.
1.1/logstash-core/lib/logstash/pipeline.rb:258:in `start_workers'"]}
01:20:24.338 [[main]>worker0] ERROR logstash.outputs.elasticsearch - An unknown
error occurred sending a bulk request to Elasticsearch. We will retry indefinite
ly {:error_message=>"can't convert nil into Array", :error_class=>"TypeError", :
backtrace=>["org/jruby/RubyArray.java:1462:in `concat'", "D:/Logstash/Logstash/l
ogstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-j
ava/lib/logstash/outputs/elasticsearch/http_client.rb:94:in `join_bulk_responses
'", "org/jruby/RubyArray.java:1613:in `each'", "org/jruby/RubyEnumerable.java:85
2:in `inject'", "D:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gem
s/logstash-output-elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/ht
tp_client.rb:92:in `join_bulk_responses'", "D:/Logstash/Logstash/logstash-5.1.1/
vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-java/lib/logsta
sh/outputs/elasticsearch/http_client.rb:88:in `bulk'", "D:/Logstash/Logstash/log
stash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-jav
a/lib/logstash/outputs/elasticsearch/common.rb:186:in `safe_bulk'", "D:/Logstash
/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsea
rch-5.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:109:in `submit'", "D
:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-
elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:76:in `ret
rying_submit'", "D:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gem
s/logstash-output-elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/co
mmon.rb:27:in `multi_receive'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-co
re/lib/logstash/output_delegator_strategies/shared.rb:12:in `multi_receive'", "D
:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib/logstash/output_delegator.r
b:42:in `multi_receive'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib
/logstash/pipeline.rb:331:in `output_batch'", "org/jruby/RubyHash.java:1342:in `
each'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib/logstash/pipeline
.rb:330:in `output_batch'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/l
ib/logstash/pipeline.rb:288:in `worker_loop'", "D:/Logstash/Logstash/logstash-5.
1.1/logstash-core/lib/logstash/pipeline.rb:258:in `start_workers'"]}
01:20:26.503 [[main]>worker1] ERROR logstash.outputs.elasticsearch - An unknown
error occurred sending a bulk request to Elasticsearch. We will retry indefinite
ly {:error_message=>"can't convert nil into Array", :error_class=>"TypeError", :
backtrace=>["org/jruby/RubyArray.java:1462:in `concat'", "D:/Logstash/Logstash/l
ogstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-j
ava/lib/logstash/outputs/elasticsearch/http_client.rb:94:in `join_bulk_responses
'", "org/jruby/RubyArray.java:1613:in `each'", "org/jruby/RubyEnumerable.java:85
2:in `inject'", "D:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gem
s/logstash-output-elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/ht
tp_client.rb:92:in `join_bulk_responses'", "D:/Logstash/Logstash/logstash-5.1.1/
vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-java/lib/logsta
sh/outputs/elasticsearch/http_client.rb:88:in `bulk'", "D:/Logstash/Logstash/log
stash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-jav
a/lib/logstash/outputs/elasticsearch/common.rb:186:in `safe_bulk'", "D:/Logstash
/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsea
rch-5.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:109:in `submit'", "D
:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-
elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:76:in `ret
rying_submit'", "D:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gem
s/logstash-output-elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/co
mmon.rb:27:in `multi_receive'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-co
re/lib/logstash/output_delegator_strategies/shared.rb:12:in `multi_receive'", "D
:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib/logstash/output_delegator.r
b:42:in `multi_receive'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib
/logstash/pipeline.rb:331:in `output_batch'", "org/jruby/RubyHash.java:1342:in `
each'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib/logstash/pipeline
.rb:330:in `output_batch'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/l
ib/logstash/pipeline.rb:288:in `worker_loop'", "D:/Logstash/Logstash/logstash-5.
1.1/logstash-core/lib/logstash/pipeline.rb:258:in `start_workers'"]}
01:20:26.847 [SIGINT handler] WARN logstash.runner - SIGINT received. Shutting
down the agent.
^CTerminate batch job (Y/N)? 01:20:26.867 [LogStash::Runner] WARN logstash.agen
t - stopping pipeline {:id=>"main"}
01:20:27.045 [[main]>worker0] ERROR logstash.outputs.elasticsearch - An unknown
error occurred sending a bulk request to Elasticsearch. We will retry indefinite
ly {:error_message=>"can't convert nil into Array", :error_class=>"TypeError", :
backtrace=>["org/jruby/RubyArray.java:1462:in `concat'", "D:/Logstash/Logstash/l
ogstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-j
ava/lib/logstash/outputs/elasticsearch/http_client.rb:94:in `join_bulk_responses
'", "org/jruby/RubyArray.java:1613:in `each'", "org/jruby/RubyEnumerable.java:85
2:in `inject'", "D:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gem
s/logstash-output-elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/ht
tp_client.rb:92:in `join_bulk_responses'", "D:/Logstash/Logstash/logstash-5.1.1/
vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-java/lib/logsta
sh/outputs/elasticsearch/http_client.rb:88:in `bulk'", "D:/Logstash/Logstash/log
stash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.4.0-jav
a/lib/logstash/outputs/elasticsearch/common.rb:186:in `safe_bulk'", "D:/Logstash
/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsea
rch-5.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:109:in `submit'", "D
:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-
elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/common.rb:76:in `ret
rying_submit'", "D:/Logstash/Logstash/logstash-5.1.1/vendor/bundle/jruby/1.9/gem
s/logstash-output-elasticsearch-5.4.0-java/lib/logstash/outputs/elasticsearch/co
mmon.rb:27:in `multi_receive'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-co
re/lib/logstash/output_delegator_strategies/shared.rb:12:in `multi_receive'", "D
:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib/logstash/output_delegator.r
b:42:in `multi_receive'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib
/logstash/pipeline.rb:331:in `output_batch'", "org/jruby/RubyHash.java:1342:in `
each'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/lib/logstash/pipeline
.rb:330:in `output_batch'", "D:/Logstash/Logstash/logstash-5.1.1/logstash-core/l
ib/logstash/pipeline.rb:288:in `worker_loop'", "D:/Logstash/Logstash/logstash-5.
1.1/logstash-core/lib/logstash/pipeline.rb:258:in `start_workers'"]}
^C01:20:30.230 [SIGINT handler] FATAL logstash.runner - SIGINT received. Termina
ting immediately..
D:\Logstash\Logstash\logstash-5.1.1\bin>
Please help me with this issue
The config file is as below:
input {
jdbc {
jdbc_driver_library => "C:\SQL JDBC Driver\sqljdbc_6.0\enu\sqljdbc42.jar"
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
jdbc_connection_string => "jdbc:sqlserver://10.14.23.56:54287;instance:dev01;DatabaseName:Crash_Report;integratedSecurity=true"
jdbc_user => "user"
jdbc_password => "password"
statement => "Select * from [Device_Crash_Reporting].[dbo].[Device_crash_Data]"
}
}
filter {
json{
source=>"message"
}
}
output {
elasticsearch {
hosts => ["10.64.103.61:5601"]
index => "Crash_Data1"
document_type => "Data"
}
stdout {codec => json_lines}
}