phasapis / cqels

Automatically exported from code.google.com/p/cqels
0 stars 0 forks source link

Null point exception for the context #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Hi, i tried the example given in the wiki to initialise the CQELS engine on the 
your test data but i am getting the null point exception. I have attached the 
file for the testcase and the text stream.
Please let me know how to solve this issue. Thanks

Original issue reported on code.google.com by s.zeesha...@gmail.com on 1 Sep 2014 at 10:10

Attachments:

GoogleCodeExporter commented 8 years ago
Could you please send me the detail of the error ? 
Thanks.

Original comment by chanle...@gmail.com on 3 Sep 2014 at 11:29

GoogleCodeExporter commented 8 years ago
Hi,

I have attached the two java files with the previous post concerning about my 
test to execute CQELS through java.

On execution the above code on the engine i got the following error.

Exception in thread "main" java.lang.NullPointerException
at org.deri.cqels.test.Testcase2.main(Testcase2.java:63)

This is caused when the ConstructLister is registered to the consQuery

PS: I found many issue with your getting started wiki.

For instance
Initialize the RDF stream

RDFStream= new TextStream(context, "http://deri.org/streams/rfid", 
HOME+"/rfid_50000.stream”);

The above statement is not valid

It should be 
RDFStream stream = new TextStream(context, "http://deri.org/streams/rfid", 
HOME+"/rfid_50000.stream”);

I would really appreciate if you can provide me a complete example to use the 
engine through java api. Cheers

Original comment by s.zeesha...@gmail.com on 3 Sep 2014 at 11:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
That's because of the query is not valid. If it's not please send me more 
details about the error. How can I know with that small piece of errors. For 
the example, I will try to fix the grammatical mistakes on the tutorial page. 
The content of the example is almost the same with what we put.
Thanks. 

Original comment by chanle...@gmail.com on 4 Sep 2014 at 8:15

GoogleCodeExporter commented 8 years ago
Hi,

But i got the query from the sample query provided you.
Anyways I would really appreciate if you can send me a working copy of 
Textstream.java and the Main java file to start the engine. Thanks

Original comment by s.zeesha...@gmail.com on 10 Sep 2014 at 11:55