Unsolved
This post is more than 5 years old
4 Posts
0
4596
February 21st, 2018 02:00
EDAA REST - Populate Notification OccurredOn relationship.....
Good morning,
I am attempting to use EDAA to create and update notifications using perl and json.
So far I have had some success. I can create a notification (using the NotificationFactory), populate the basic fields, run a notify and a change.
The only problem I have is managing to POST to the OccurredOn relationship.
I am getting the following error 4009 :
'MsaError - Msa Create Related Instance Operation Error. Source: ICS_Notification::NOTIFICATION-MyNotificationNameHere. Relationship: OccurredOn. Caused by: Cannot invoke method indexOf() on null object',
I am running a POST to this URL :
This is the encoded payload :
{"link": { "-href": "/smarts-edaa/msa/edaa-oi-01/instances/Node::MyDevice-Edaa" }}
But however I play around with the payload ("-href", "href", "ref" and all kinds of combinations of the link itself) I still get the same error.
I know I am probably missing something obvious....
Full text of error :
$VAR2 = 'http://www.w3.org/2005/Atom';
$VAR3 = 'entries';
$VAR4 = [
{
'xmlns$inst' => 'http://schemas.emc.com/vs-xml/namespace/Common/1.0',
'content' => {
'Time' => '2018-02-21T09:47:45+00:00',
'ErrorMessage' => 'Msa Create Related Instance Operation Error. Source: ICS_Notification::NOTIFICATION-MyNotificationNameHere. Relationship: OccurredOn. Caused by: Cannot invoke method indexOf() on null object',
'RequestUri' => 'http://myServer.bob:8080/smarts-edaa/msa/edaa-oi-01/instances/ICS_Notification::NOTIFICATION-MyNotificationNameHere/relationships/OccurredOn',
'Code' => '4009',
'Type' => 'OPERATION_ERROR',
'vsc$displayName' => 'Msa Create Related Instance Operation Error. Source: ICS_Notification::NOTIFICATION-MyNotificationNameHere. Relationship: OccurredOn. Caused by: Cannot invoke method indexOf() on null object',
'CodeString' => 'msa.create.related.instance.operation.error',
'links' => [
{
'rel' => 'http://schemas.emc.com/msa/common/reln/type',
'href' => 'http://myServer.bob:8080/smarts-edaa/msa/edaa-oi-01/types/MsaError'
}
]
},
'updated' => '2018-02-21T09:47:45+00:00',
'id' => 'http://myServer.bob:8080/smarts-edaa/msa/edaa-oi-01/instances/MsaError::4009',
'title' => 'MsaError - Msa Create Related Instance Operation Error. Source: ICS_Notification::NOTIFICATION-MyNotificationNameHere. Relationship: OccurredOn. Caused by: Cannot invoke method indexOf() on null object',
'xmlns$vsc' => 'http://schemas.emc.com/vs-xml/namespace/Common/1.0',
'links' => [
{
'rel' => 'http://schemas.emc.com/msa/common/reln/type',
'href' => 'http://myServer.bob:8080/smarts-edaa/msa/edaa-oi-01/types/MsaError'
}
]
}
];
Any help, gratefully received.....
Cheers
Tom Counter