[CONTROLLER-473] Invoking RPC from RESTConf Fails after new data store changes Created: 14/May/14 Updated: 19/May/14 Resolved: 19/May/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | 0.4.0 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Harman Singh | Assignee: | Tony Tkacik |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Attachments: |
|
| External issue ID: | 1011 |
| Description |
|
Invoking RPC from RESTConf was working fine with older data store, but with new data store changes, its failing. Invoking RPC from consumer is working fine though. I tried to debug the issue, Controller throws an illegal state exception at uncheckedInvoke(final RpcService rpcService, final CompositeNode domInput) method inside BindingIndependentConnector.java at line 875. It tries to invoke mappingService.dataObjectFromDataDom(inputClass.get(), domInput), which calls RuntimeMappingModule.java's dataObjectFromDataDom method. Above method calls YangTool's RunTimeGeneratedMappingServiceImpl.java class Exception Stack trace is 2014-05-14 14:48:15 PDT [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/restconf].[JAXRSRestconf]] SEVERE org.apache.catalina.core.StandardWrapperValve invoke Servlet.service() for servlet [JAXRSRestconf] in context with path [/restconf] threw exception [java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Failed to create data object] with root cause |
| Comments |
| Comment by Tony Tkacik [ 15/May/14 ] |
|
The regression you are facing is not related to data store. From stack-trace it is obvious that you are trying to send / use augmented RPC, |
| Comment by Harman Singh [ 15/May/14 ] |
|
I have attached the zip file for your testing. Here are the steps you need to follow - Unzip the attached file. |
| Comment by Harman Singh [ 15/May/14 ] |
|
Attachment mdsalApp.zip has been added with description: sample app to test RPC via REStConf |