Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

The Solaris Machine is encountering the "JsonMappingException" exception. How do I resolve this?

Issue

When trying to start the Machine Agent with server visibility, you are seeing the exception below:

[extension-scheduler-pool-4] 26 Jun 2018 12:32:06,394 ERROR RawCollectorUtil - Could not collect raw data
com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
at [Source: ; line: 1, column: 0]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:270)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3854)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3799)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2858)
at com.appdynamics.sim.agent.extensions.servers.collector.RawCollectorUtil.runCollector(RawCollectorUtil.java:199)
at com.appdynamics.sim.agent.extensions.servers.collector.RawCollectorUtil.runCollector(RawCollectorUtil.java:131)
at com.appdynamics.sim.agent.extensions.servers.model.solaris.SolarisRawCollector.collectRawData(SolarisRawCollector.java:81)
at com.appdynamics.sim.agent.extensions.servers.model.solaris.SolarisRawCollector.collectRawData(SolarisRawCollector.java:40)
at com.appdynamics.sim.agent.extensions.servers.model.Server.collectAndReport(Server.java:61)
at com.appdynamics.sim.agent.extensions.servers.ServersDataCollector.run(ServersDataCollector.java:90)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[AD Thread-Metric Reporter1] 26 Jun 2018 12:32:06,401 DEBUG ManagedMonitorDelegate - REST
Sending Binary payload Size : 226 bytes
[extension-scheduler-pool-4] 26 Jun 2018 12:32:06,408 ERROR RawCollectorUtil - The standard out from the collector script was: 
[extension-scheduler-pool-4] 26 Jun 2018 12:32:06,408 WARN RawCollectorUtil - The error log from the collector script was: bash: line 739: syntax error near unexpected token `","'
bash: line 739: ` [ $print_comma -eq 0 ] && print_comma=1 || jsonStringsArr+=(",")'

 

Solution

Validate your Bash version using command below:

bash -version 

 

The Bash version should be at least 3.1. Specifically, you will need a Bash version that supports arrays. Upgrading the Bash version and restarting the Machine Agent should resolve this.

Version history
Revision #:
4 of 4
Last update:
‎08-15-2018 10:46 AM
Updated by:
 
Labels (1)
0 Kudos