Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue on android word #6

Open
gurukiran-econote opened this issue Oct 17, 2022 · 1 comment
Open

issue on android word #6

gurukiran-econote opened this issue Oct 17, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@gurukiran-econote
Copy link

java.lang.NullPointerException: Cannot invoke "org.json.simple.JSONObject.get(Object)" because "jsonObjectOriginalImage" is null
Title :Android
Text :
Image :
at com.wiki.Jwiki.getData(Jwiki.java:37)
at com.wiki.Jwiki.(Jwiki.java:19)
at com.wiki.WikipediaSample.main(WikipediaSample.java:6)
||
/
when i use "android" word i get null pointer error on image please fix or remove image part or do try catch block for all three seperately so that one fails you can give source not found like that.

and also i tried to execute your project without using jar whick i took from jwiki repo but it gives "noclassdefFound error: okio/Buffer". i dont know know what to do.

Exception in thread "main" java.lang.NoClassDefFoundError: okio/Buffer
at com.squareup.okhttp.HttpUrl.canonicalize(HttpUrl.java:1560)
at com.squareup.okhttp.HttpUrl$Builder.push(HttpUrl.java:1105)
at com.squareup.okhttp.HttpUrl$Builder.resolvePath(HttpUrl.java:1096)
at com.squareup.okhttp.HttpUrl$Builder.parse(HttpUrl.java:1055)
at com.squareup.okhttp.HttpUrl.parse(HttpUrl.java:596)
at com.squareup.okhttp.Request$Builder.url(Request.java:162)
at com.wiki.WikipediaSample.getData(WikipediaSample.java:32)
at com.wiki.WikipediaSample.(WikipediaSample.java:26)
at com.wiki.WikipediaSample.main(WikipediaSample.java:13)
Caused by: java.lang.ClassNotFoundException: okio.Buffer
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 9 more

@viralvaghela
Copy link
Owner

Hi @gurukiran-econote , sure will look into this issue

@viralvaghela viralvaghela added the bug Something isn't working label Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants