13:09:46 #startmeeting query_meeting 13:09:46 Meeting started Tue Jul 8 13:09:46 2014 UTC. The chair is regXboi. Information about MeetBot at http://ci.openstack.org/meetbot.html. 13:09:46 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 13:09:46 The meeting name has been set to 'query_meeting' 13:10:06 ok... latest code is in the usual place? 13:10:13 eyah 13:10:19 yeah* 13:10:41 #link https://github.com/neel1438/Opendaylight latest code 13:11:23 let me take a look at what is new 13:11:28 as colin an devin suggested i implemented NodeBuilderElement and NodeBuilderText classes 13:12:24 presently i got stuck at null pointer exception 13:12:40 where is that being thrown? 13:14:19 #info NodeBuilderElement and NodeBuilderText classes have been implemented 13:14:28 #info the issue now is a null pointer exception 13:14:38 Simple Xpath Tests 13:14:54 in TestXpath.java 13:15:10 sorry testcases.java 13:15:44 SelfTest and BasicXpath Tests are working 13:16:39 #info null pointer execption in testcases.java path (followup) 13:16:48 ok... let me get this to compile and run and I'll look 13:21:56 well... this is ... embarrassing 13:24:50 hmm 13:25:12 my eclipse decided to have a little lie-down 13:25:18 i am also working on the error since 2 -3 hrs 13:25:59 understood 13:28:55 i will continue working on it 13:29:07 it seems people are gonna take some time 13:29:33 so how about we decide the next meeting time throught mails 13:31:21 that works for me... 13:31:41 let's start with a proposal to do this same time tomorrow 13:31:45 and adjust from there 13:32:07 can you paste.bin the traceback on the null pointer error? 13:34:48 http://pastebin.com/LMrd8MAZ 13:34:57 error trace 13:36:26 This error occurs when child nodes are involved all the operations on are working great 13:38:08 so if we comment out that line, does the next line run correctly? 13:38:14 that line = line 141? 13:42:39 all the test are failing except one 13:42:50 evaluate("//c1", "Some Value"); 13:42:58 hmm 13:43:21 i am really not sure why that one is working 13:44:18 when my disk gets done thrashing, I'll look at what I have 13:44:55 now that is (again) embarrasing 13:45:37 * regXboi watches eclipse crash and burn 13:45:59 okay 13:46:26 I did see that the simple tests were failing 13:46:47 I think what I'd do is dump the values being passed to xpath.evaluate and see what's going on 13:47:05 my initial thought is there is something wrong with the root node 13:47:24 okay i will check the connections 13:47:35 first child last child 13:48:05 and all also have to change the Builder classes 13:48:13 with lesser arguements 13:48:23 i will work on it now 13:51:52 so if I read this correctly, you are using NodeBuilderElement as the root node for the test, correct? 13:52:40 #link http://pastebin.com/LMrd8MAZ is the link for the error trace 13:52:56 #info appears to be an issue within NodeBuilderElement being passed in 13:54:26 nodeBuilder.a is element node 13:54:43 nodeBuilder.root is document node 13:55:17 it is same as the parsed document ,verified it 13:55:45 ah 13:58:42 so... I'm not entirely sure, but should rootTestNode.getFirstChild().getNodeName() be returning "#text"? 14:01:57 ok, so getLastChild() is returning the b node 14:03:53 #action Neel_B to keep looking at this 14:04:13 #action regXboi to find and consult with devinavery 14:04:27 #action next meeting to be scheduled via email 14:05:46 yeah 14:05:56 it is returning properly 14:06:16 a has children text of a and b 14:06:37 yeah, I figured that out 14:06:39 similarly b has children textof b c1 and c2 14:08:56 so, which rootTestNode are we using? 14:09:09 setupHardcodedNode or setupRealXml? 14:10:16 real xml is from doc 14:10:24 hardcoded is what we wrote 14:10:34 real xml passes all unit test 14:10:39 got it - I found what was going on 14:12:44 hey colindixon - we've been going for a while now 14:12:55 the meeting notes are live 14:13:00 #chair colindixon 14:13:00 Current chairs: colindixon regXboi 14:13:30 I think the problem is in the nodebuilderelement 14:13:46 because the structure from the real XML is different from what we have in the nodebuilderelement 14:14:02 for example, while the real XML passes the xpath tests 14:14:13 it fails on this convoluted statement: 14:14:22 System.out.println("rootTestNode "+rootTestNode.getLastChild().getFirstChild().getNextSibling().getNodeName()); 14:14:29 with a null pointer exception 14:14:39 the nodebuilderelement passes that println 14:14:52 but does not pass the xpath.evaluate 14:15:30 so... what I would suggest is walking through the node tree that comes from the document and seeing exactly what is missing from our hard coded version 14:15:37 it's painful, but that's what I think is needed 14:15:56 ok 14:16:00 I’m now actually here 14:18:22 #info regXboi suggests a deeper comparison of NodeBuilderElement output and the Node structure that comes from reading the real XML 14:18:37 and that's all I've got for now 14:18:46 Neel_B, am I making sense? 14:18:51 yeah 14:18:54 i am following 14:19:08 ok... 14:19:26 so, why does a have text children and element children? 14:20:07 the only way I can see that being the case is if you did something like this text1text3text2 14:20:09 or something 14:20:13 a node always has a #text child node 14:20:20 even if the #text child node is empty 14:20:54 yeah 14:21:07 as regXboi says 14:21:39 mean while i simplified the Node Builder classes 14:21:39 I saee 14:21:54 updating the code 14:22:03 ok 14:22:07 so here's one thing I see 14:22:16 in the real XML, a has 3 children 14:22:23 #text, b, #text 14:22:36 so, here’s my next question 14:22:38 in the NodeBuilderElement, it only has 2 children 14:22:40 we’re getting NPEs 14:22:40 #text, b 14:22:45 I think that's the problem 14:22:56 we are forgetting the text node for AFTER the child node 14:23:11 which means *we* are giving them a Null value somewhere 14:23:17 actually, we are getting unknown Xpath errors - it's a little worse 14:23:24 can we never return null? 14:23:26 regXboi: really 14:23:30 I’m seeing NPEs 14:23:33 yes... look atthe paste bin 14:23:44 and I'm seeing that unknown Xpath error as well 14:23:59 * colindixon looks 14:24:11 but I think I know the cause 14:24:17 …Caused by: java.lang.NullPointerException 14:24:33 the problem is IN the Node tree 14:24:42 we aren't passing an explicity NP 14:24:54 but we have a malformed node structure 14:25:02 well, we’re returning it somewhere 14:25:03 yes 14:25:09 so, here’s a quick thought for how to debug that? 14:25:14 see my above comment about 3 children versus 2 children 14:25:17 yeah 14:25:25 that's the nub (I think) 14:25:33 Neel_B: did that make sense 14:25:35 yeah i guess thats a mistake i have to look at 14:26:05 sorry i didn't check it properly 14:26:15 Neel_B: it’s probably worth wrirting a quick function to plot out the whole realXML document structure 14:26:24 Neel_B: don't worry, that's a subtle point I would have missed 14:26:42 something like recursiveprint(String s, Node n) { 14:26:57 for(child c : children ) { 14:27:08 or hold on 14:27:10 colindixon: I have to run to another meeting - can I endmeeting and mail out the minutes or do you want to continue scribing? 14:27:19 go ahead and endmeeting 14:27:24 #endmeeting