Announcement Announcement Module
Collapse
No announcement yet.
Strange exception consuming JSON from Android application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strange exception consuming JSON from Android application

    I created an Android application that consumes and parsing a JSON

    In my development environment that JSON is:
    http://balonmanoblog.hkadejo.com/ge/...v1/categorias/
    and everything works fine

    But in my production environment, change the direction of JSON is as follows:
    http://www.balonmanoblog.com/ge/inde...v1/categorias/
    but no longer works

    I get an exception trace following:

    PHP Code:
    07-09 09:17:37.390WARN/System.err(7247): java.lang.RuntimeExceptionInternal error
    07
    -09 09:17:37.390WARN/System.err(7247):     at org.codehaus.jackson.impl.ByteSourceBootstrapper.detectEncoding(ByteSourceBootstrapper.java:155)
    07-09 09:17:37.390WARN/System.err(7247):     at org.codehaus.jackson.impl.ByteSourceBootstrapper.constructParser(ByteSourceBootstrapper.java:197)
    07-09 09:17:37.390WARN/System.err(7247):     at org.codehaus.jackson.JsonFactory._createJsonParser(JsonFactory.java:542)
    07-09 09:17:37.390WARN/System.err(7247):     at org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:389)
    07-09 09:17:37.390WARN/System.err(7247):     at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1455)
    07-09 09:17:37.390WARN/System.err(7247):     at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:135)
    07-09 09:17:37.390WARN/System.err(7247):     at org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:154)
    07-09 09:17:37.390WARN/System.err(7247):     at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:74)
    07-09 09:17:37.390WARN/System.err(7247):     at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:459)
    07-09 09:17:37.390WARN/System.err(7247):     at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:414)
    07-09 09:17:37.390WARN/System.err(7247):     at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:212)
    07-09 09:17:37.390WARN/System.err(7247):     at com.balonmano.blog.api.ApiHelper.getWpLastPost(ApiHelper.java:52)
    07-09 09:17:37.390WARN/System.err(7247):     at com.balonmano.blog.ui.NoticiaActivity$DownloadFilesTask.doInBackground(NoticiaActivity.java:126)
    07-09 09:17:37.390WARN/System.err(7247):     at android.os.AsyncTask$2.call(AsyncTask.java:185)
    07-09 09:17:37.390WARN/System.err(7247):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
    07-09 09:17:37.398WARN/System.err(7247):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
    07-09 09:17:37.398WARN/System.err(7247):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
    07-09 09:17:37.398WARN/System.err(7247):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
    07-09 09:17:37.398WARN/System.err(7247):     at java.lang.Thread.run(Thread.java:1102)
    07-09 09:17:37.398DEBUG/AndroidRuntime(7247): Shutting down VM
    07
    -09 09:17:37.398WARN/dalvikvm(7247): threadid=3thread exiting with uncaught exception (group=0x4001e390)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247): Uncaught handlerthread main exiting due to uncaught exception
    07
    -09 09:17:37.398ERROR/AndroidRuntime(7247): java.lang.NullPointerException
    07
    -09 09:17:37.398ERROR/AndroidRuntime(7247):     at com.balonmano.blog.ui.NoticiaActivity$DownloadFilesTask.onPostExecute(NoticiaActivity.java:145)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at android.os.AsyncTask.finish(AsyncTask.java:417)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at android.os.AsyncTask.access$300(AsyncTask.java:127)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at android.os.Handler.dispatchMessage(Handler.java:99)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at android.os.Looper.loop(Looper.java:123)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at android.app.ActivityThread.main(ActivityThread.java:4595)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at java.lang.reflect.Method.invokeNative(Native Method)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at java.lang.reflect.Method.invoke(Method.java:521)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    07-09 09:17:37.398ERROR/AndroidRuntime(7247):     at dalvik.system.NativeStart.main(Native Method
    Wrong? Help me please.

    thanks

  • #2
    My first question would be, did you resolve the NullPointerException?

    07-09 09:17:37.398: WARN/dalvikvm(7247): threadid=3: thread exiting with uncaught exception (group=0x4001e390)
    07-09 09:17:37.398: ERROR/AndroidRuntime(7247): Uncaught handler: thread main exiting due to uncaught exception
    07-09 09:17:37.398: ERROR/AndroidRuntime(7247): java.lang.NullPointerException
    07-09 09:17:37.398: ERROR/AndroidRuntime(7247): at com.balonmano.blog.ui.NoticiaActivity$DownloadFile sTask.onPostExecute(NoticiaActivity.java:145)

    Comment

    Working...
    X