haipv1108 / androjena

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

android crashes while loading owl file #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Add all androjena jar files to the project class path
2.add the sample2.owl file made in protege 4.2  in to the assets folder
3.

What is the expected output? What do you see instead?
Expected: load the owl file and list of statements in the owl file
Actual: eclipse    

If you're using a real device and not the emulated AVD, what is the device
model?
galaxy s4 and 
emulated AVD   

What version of Android runs on your device/emulated AVD? (please put an X
next to the correct version)

Android 1.1
Android 1.5 (Cupcake)
Android 1.6 (Donut)
Android 2.0/2.1 (Eclair)
Android 2.2 (Froyo)
Android 2.3 (Gingerbread)
Android 3.x (Honeycomb)
Android 4.0 (Ice Cream Sandwich)
Android 4.1/4.2/4.3 (Jelly Bean) X
Android 4.4 (KitKat)

What version of Android is your application targeting? (please put an X
next to the correct version)

Android 1.1
Android 1.5 (Cupcake)
Android 1.6 (Donut)
Android 2.0/2.1 (Eclair)
Android 2.2 (Froyo)
Android 2.3 (Gingerbread)
Android 3.x (Honeycomb)
Android 4.0 (Ice Cream Sandwich)
Android 4.1/4.2/4.3 (Jelly Bean) X 
Android 4.4 (KitKat)

What IDE/environment are you developing with? (Eclipse w/ ADT, Android SDK
w/ Apache Ant, ...)
Eclipse 

What operating system and hardware is your IDE/development environment
running on?
Windows 7

Please attach the following application files (when applicable):

- AndroidManifest.xml
- .classpath
- default.properties
- a full LogCat dump from application launch to exception/crash
- a meaningful portion of the source code where the exception is thrown

Please provide any additional detail below

Original issue reported on code.google.com by alemu.an...@gmail.com on 13 Feb 2014 at 2:36

GoogleCodeExporter commented 8 years ago
Hi alemu.anteneh,
I need some more info in order to reproduce and debug the crash.

Please attach the following application files (when applicable):

- AndroidManifest.xml
- .classpath
- default.properties
- a full LogCat dump from application launch to exception/crash
- a meaningful portion of the source code where the exception is thrown

Original comment by loreca...@gmail.com on 13 Feb 2014 at 2:39

GoogleCodeExporter commented 8 years ago
Thanks for ur help, here i have attached all

Original comment by alemu.an...@gmail.com on 14 Feb 2014 at 9:32

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, but the log file is empty, can you check if you uploaded the right one?

Original comment by loreca...@gmail.com on 14 Feb 2014 at 9:37

GoogleCodeExporter commented 8 years ago
sorry... here is the full logCat file now

Original comment by alemu.an...@gmail.com on 14 Feb 2014 at 10:24

Attachments:

GoogleCodeExporter commented 8 years ago
Ok, as you can see from the log, there's a NPE at line 37 of TestJena.java.
That's due to referencing the resources instance field while it hasn't been 
initialized. I don't know the purpose of resources, however you can easily fix 
the error by replacing line 37 with:

in = getAssets().open("sample2.owl");

Clearly, the file sample2.owl must be placed in the assets folder of your 
project.
Please let me know if this solves your problem.

Original comment by loreca...@gmail.com on 14 Feb 2014 at 10:57

GoogleCodeExporter commented 8 years ago
Thank u very much, i am able to read the owl file now.... 

Best Regards!  

Original comment by alemu.an...@gmail.com on 14 Feb 2014 at 12:09

GoogleCodeExporter commented 8 years ago
No problem, bye!

Original comment by loreca...@gmail.com on 14 Feb 2014 at 12:09