[overlord-issues] [JBoss JIRA] (RTGOV-522) RTGovSituationsUtil.getSituationBean throws NPE
ivan mckinley (JIRA)
issues at jboss.org
Thu Jul 10 03:38:24 EDT 2014
[ https://issues.jboss.org/browse/RTGOV-522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983745#comment-12983745 ]
ivan mckinley commented on RTGOV-522:
-------------------------------------
it would appear the Activity client data is at fault!
The templates in activity client which generate the data have an extra context value, without a type entry. Removing this extra entry fixes the issue.
[~objectiser] is extra context value intetend
====== from =====
[{
"type":"RequestReceived",
"interface":"{urn:switchyard-quickstart-demo:orders:1.0}OrderService",
"operation":"submitOrder",
"serviceType":"{urn:switchyard-quickstart-demo:orders:0.1.0}OrderService",
"messageType":"{urn:switchyard-quickstart-demo:orders:1.0}submitOrder",
"context":[{
"value":"{ID}-1",
"type":"Message"
},{
"value":"{ID}"
}],
"properties":{
"item":"JAM",
"customer":"{CUSTOMER}"
}
}
======= to =========
[{
"type":"RequestReceived",
"interface":"{urn:switchyard-quickstart-demo:orders:1.0}OrderService",
"operation":"submitOrder",
"serviceType":"{urn:switchyard-quickstart-demo:orders:0.1.0}OrderService",
"messageType":"{urn:switchyard-quickstart-demo:orders:1.0}submitOrder",
"context":[{
"value":"{ID}-1",
"type":"Message"
}],
"properties":{
"item":"JAM",
"customer":"{CUSTOMER}"
}
}
> RTGovSituationsUtil.getSituationBean throws NPE
> ------------------------------------------------
>
> Key: RTGOV-522
> URL: https://issues.jboss.org/browse/RTGOV-522
> Project: RTGov (Run Time Governance)
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Activity Server
> Affects Versions: 2.0.0.Final
> Reporter: ivan mckinley
> Assignee: Gary Brown
>
> in RTGovSituationsUtil Line 61. A null pointer is thrown when calling
> context.getType().name(),
> - No check performed against the context.getType
> - The first item of the contextlist been iterated over has a context type of null, see [1]
> Reproduced by
> - Deploy SLA example
> - Execute the actvity client until situations are generated
> - Open the situation UI. The null pointer is invoked from here
> Additionaly place a break point on line 61 RTGovSituationsUtil
> [1]List of Contexts
> [Context[null:1:0], Context[Message:1-1-6:0], Context[Message:1-1-1:0]]
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the overlord-issues
mailing list