14:11:26 #startmeeting jQuery/Xpath for MD-SAL intern 14:11:26 Meeting started Thu Jul 31 14:11:26 2014 UTC. The chair is colindixon. Information about MeetBot at http://ci.openstack.org/meetbot.html. 14:11:26 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 14:11:26 The meeting name has been set to 'jquery_xpath_for_md_sal_intern' 14:11:43 #info Neel_B is getting a toaster from the pax-exam toaster-it by injecting the DataBroker 14:11:47 #info Neel_B is trying to use DOMDataBroker in the same way, but the DOMDataBroker is null 14:11:52 #topic brainstorming 14:12:00 #info so, data in the MD-SAL is stored two ways: (i) as DataObjects which are actually java Objects that have normal methods and stuff and (ii) as things called CompositeNodes which are basically like DOM Nodes 14:12:26 #link https://jenkins.opendaylight.org/controller/job/controller-merge/lastSuccessfulBuild/artifact/target/apidocs/org/opendaylight/controller/md/sal/dom/api/DOMDataBroker.html the DOMDataBroker API 14:19:40 #info as a stopgap, you can convert from DataObject which is what you’re getting to a CompositeNode by either injecting a BindingIndependentMappingService or creating a local RuntimeGeneratedMappingServiceImpl and then using it’s toDataDom() method on the Toaster you get out 14:21:10 okay some snippet may help 14:22:16 #link https://git.opendaylight.org/gerrit/gitweb?p=ttp.git;a=blob;f=ttp-model/model/src/test/java/org/opendaylight/ttp/model/test/TTPYangModelTest.java;hb=47f6704b0c4ba1742b68d6c37bd1402f4918fb82 you can see an example here 14:24:12 i figured out 14:24:22 sure 14:24:33 i used BindingIndependentMappingService 14:24:39 and did that work? 14:24:58 and did 14:25:12 CompositeNode node = mappingService.toDataDom(t); 14:25:13 ? 14:25:18 t is the toaster 14:25:54 yeah 14:26:04 that will give you a CompositeNode 14:26:16 which should be loosely equivalent to a DOM Element I think 14:26:50 then i created domwriteonly transaction 14:29:03 the composite node is null :\ 14:31:20 colindixon: you aroud ? 14:31:31 hold on one second 14:32:03 huh 14:32:06 that’s weird 14:32:13 what happens if you use the functions at the top of what I sent you 14:32:23 or copy them 14:32:42 to create a RuntimeGeneratedMappingServiceImpl and then initialize it with a SchemaContext 14:33:13 actually mappedService mught be null 14:33:25 any way to initiaize it ? 14:35:33 trying out the thins in the link 14:39:11 getSchemaContext() ? 14:40:33 colindixon: ? 14:40:52 go look at what I did in the TTPYangModelTest 14:40:55 that should give you the answers 14:43:08 loosely the stuff in the @Before setup() method and the functions and it uses 14:44:27 that function isnot available ? 14:44:35 i have to import some where 14:49:41 you should be able to import it the same way as I did 14:49:48 yo might have to add a dependency in the pom for the right bundle 14:50:23 yeah trying to do that 14:51:09 hold on and I can see what bundle you need to import 14:51:26 probably bundles 14:51:37 so what are packages are you missing? 14:51:44 that’s usually the easiset way to figure this out 14:51:48 or what classes 14:52:27 (and just be clear, you’re copying the setup() and getSchema() and pasting them into your thing, not trying to call them from where they are, right?) 14:53:37 i used @inject to get 14:53:48 the schema and mappingservice variable 14:56:03 and did that work? 14:56:08 because I think not 14:58:15 that was null 14:58:22 yeah 14:58:45 so i was writing the same that you wrote in the file 14:58:45 so, I think you’re going to want to do it like I did in the TTPYangModelTest 14:59:10 except that getSchemaContext() was not avaliable 15:00:08 yeah 15:00:17 so copy and paste that function as well for now 15:01:07 am I late? my calendar came up now... 15:03:54 just casuual discussion 15:04:04 thought worth writing notes so 15:04:26 we will have meeting on monday after this 15:04:56 yeah 15:04:58 sounds good 15:05:54 building 15:08:25 https://meetings.opendaylight.org/opendaylight-intern/2014/jquery_xpath_for_md_sal_intern/opendaylight-intern-jquery_xpath_for_md_sal_intern.2014-07-31-14.11.log.txt 15:08:30 regXboi: those are the logs so far 15:09:54 * regXboi reads 15:11:17 I've got nothing to add :( 15:12:03 regXboi: sure 15:12:08 context isnot building 15:12:11 Neel_B_: let me know how that works 15:12:14 … 15:12:17 error message? 15:12:19 do you have an error? 15:12:26 it *does* work in the TTP project 15:14:27 http://pastebin.com/me1tqDtr 15:16:14 regXboi: ideas? 15:16:49 moduleInfos = BindingReflections.loadModuleInfos(); 15:16:54 error at this line 15:18:20 hi devinavery :) 15:18:42 wow devinavery, you’re supposed to be on PTO 15:19:02 Hi Neel - sorry. I am not really here. :) I am on leave until next week - we just had a son a week ago and still trying to get back to some level of sane 15:19:03 :) 15:19:14 that is a strange error 15:19:18 devinavery: congrats 1000 times and git off 15:19:21 get off :p 15:19:24 colindixon: yea. First time turning on computer - IRC was still up. :) 15:19:29 See ya 15:19:40 colindixon: +1 15:19:46 Back next wednesday on a limited basis so if anytime comes up send an e-mail. I will see you all then 15:19:48 devinavery: go away!!! 15:20:23 the only thing that I can think of is are you both at the same point in the git stream? 15:21:46 https://github.com/neel1438/Opendaylight 15:21:48 code updated 15:21:55 please look 15:24:06 * regXboi looking 15:26:49 yes, I got the same problem 15:27:34 colindixon: can you pull that code base and see if you have the same problem as well? 15:27:47 colindixon: where isthe code from? 15:27:54 https://github.com/neel1438/Opendaylight 15:28:00 #link https://github.com/neel1438/Opendaylight 15:29:42 ok 15:29:49 duh 15:29:52 let me go nabit 15:29:59 sure 15:33:54 Neel_B_: is the version before this working 15:37:17 ill eat and comeback ... 15:37:23 Neel_B_: sounds good 15:37:31 no worries just trying to help as best I can 15:47:07 colindixon: did you hit the same error 15:48:56 and I'm wondering if this is a problem with the latest version of the ietf yang model?!?!?! 15:49:16 regXboi: I did 15:51:43 yeah I don’t think that’s it 15:53:11 #link http://pastebin.com/me1tqDtr the code with the link above is failing with this error :-/ 15:54:24 I think we may need to get Jan/Tony to help with this one 15:54:31 because there isn't anything i'm seeing 16:04:31 #char regXboi 16:04:35 #chair regXboi 16:04:35 Current chairs: colindixon regXboi 16:04:42 in case I wander off, you can end the meeting 16:04:51 regXboi: I haven’t had a chance to play with it yet 16:04:59 ok 16:05:23 * colindixon starts playing :p 16:05:28 regXboi: sooooooooo many things 16:06:41 colindixon: I can imagine 16:10:37 #info I *think* the issue is that you can’t use BindingReflections.loadModuleInfos() from an OSGi environment 16:11:02 #info you have get the BindingIndependentMappingService from as an OSGi service 16:12:39 Neel_B: can you try that? 16:13:45 #info Neel_B_: did you try putting the “@Inject” and “@Filter(timeout=60*1000)” as annotations above the other lines, e.g., “DOMDataBroker domDataBroker;”, “BindingIndependentMappingService mappingService;”, and “SchemaContext context;” to see if that worked? 16:15:20 I have it working 16:15:27 #info I tried that and it worked 16:20:40 colindixon: pastebin of the fixed code? 16:21:07 #link https://github.com/nilok/Opendaylight/commit/608a6fb2fcb6785bd4effa6a19d3cf416d2b7955 the code is here, I’ll issue a pull request 16:22:00 #info just look for the ToasterTest.java file in that mess 16:22:06 I also cleaned some things up :-/ 16:27:13 #info regXboi confirms that works 16:59:10 #action to ping Neel_B and make sure he's made the changes colindixon has suggested 16:59:14 #endmeeting