My Oracle Support Banner

Delete MysqlServer Asset From Command Line Error: Java.io.Serializable; Interface Java.lang.Comparable" (Doc ID 2764822.1)

Last updated on MAY 25, 2021

Applies to:

MySQL Enterprise Monitor - Version 8.0 and later
Information in this document applies to any platform.

Goal

To delete a mysqlserver asset from command line with curl (from the manual):

Check that the asset is available for deletion:
$> curl -s -k --user dba:dba_password https://<server location>:18443/v4/inventory/com.mysql.etools.inventory.model.mysql.MysqlServer/eee67241-5c9a-11eb-86a6-230000325490/deletable
{
  "asset" : {
  "id" : "eee67241-5c9a-11eb-86a6-230000325490",
  "assetClass" : "com.mysql.etools.inventory.model.mysql.MysqlServer",
  "inventoryName" : "<server name>:3306"
  },
  "isDeletable" : true,
  "treeDeletable" : true,
  "problems" : [ ],
  "token" : "6abc874b72e8c40ca3c8c3cf3f155a97"
}

Try to delete the asset:
$> curl -s -k --user dba:dba_password -X DELETE --header X-Requested-With:XMLHttpRequest https://<server location>:18443/v4/inventory/com.mysql.etools.inventory.model.mysql.MysqlServer/eee67241-5c9a-11eb-86a6-230000325490
"\"Couldn'\''t delete asset [{mysql.MysqlServer : eee67241-5c9a-11eb-86a6-230000325490}]. Possible reason: \\\"interface java.io.Serializable; interface java.lang.Comparable\\\"\""
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.