java.lang.RuntimeException: exception with query: q=surfaceForms%3A%22Leipzig%22&sort=disambiguationScore+desc&fl=surfaceForms%2Curi%2Clabel%2Ccomment%2Ctypes%2CdbpediaUri%2CdisambiguationScore&rows=100

GitHub | abmjunaed | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How to build when I am behind proxy?

    GitHub | 2 years ago | abmjunaed
    java.lang.RuntimeException: exception with query: q=surfaceForms%3A%22Leipzig%22&sort=disambiguationScore+desc&fl=surfaceForms%2Curi%2Clabel%2Ccomment%2Ctypes%2CdbpediaUri%2CdisambiguationScore&rows=100
  2. 0

    XML parsing failure

    Stack Overflow | 3 years ago | Android Noob
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xmlparser/com.xmlparser.Xparser}: android.os.NetworkOnMainThreadException 11-22 15:35:53.675: E/AndroidRuntime(19208): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2100) 11-22 15:35:53.675: E/AndroidRuntime(19208): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125) 11-22 15:35:53.675: E/AndroidRuntime(19208): at android.app.ActivityThread.access$600(ActivityThread.java:140) 11-22 15:35:53.675: E/AndroidRuntime(19208): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227) 11-22 15:35:53.675: E/AndroidRuntime(19208): at android.os.Handler.dispatchMessage(Handler.java:99) 11-22 15:35:53.675: E/AndroidRuntime(19208): at android.os.Looper.loop(Looper.java:137) 11-22 15:35:53.675: E/AndroidRuntime(19208): at android.app.ActivityThread.main(ActivityThread.java:4898) 11-22 15:35:53.675: E/AndroidRuntime(19208): at java.lang.reflect.Method.invokeNative(Native Method) 11-22 15:35:53.675: E/AndroidRuntime(19208): at java.lang.reflect.Method.invoke(Method.java:511) 11-22 15:35:53.675: E/AndroidRuntime(19208): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008) 11-22 15:35:53.675: E/AndroidRuntime(19208): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775) 11-22 15:35:53.675: E/AndroidRuntime(19208): at dalvik.system.NativeStart.main(Native Method) 11-22 15:35:53.675: E/AndroidRuntime(19208): Caused by: android.os.NetworkOnMainThreadException 11-22 15:35:53.675: E/AndroidRuntime(19208): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1118)

Root Cause Analysis

  1. java.lang.RuntimeException

    exception with query: q=surfaceForms%3A%22Leipzig%22&sort=disambiguationScore+desc&fl=surfaceForms%2Curi%2Clabel%2Ccomment%2Ctypes%2CdbpediaUri%2CdisambiguationScore&rows=100

    at java.net.InetAddress.getAllByName0()
  2. Java RT
    InetAddress.getAllByName
    1. java.net.InetAddress.getAllByName0(InetAddress.java:1259)
    2. java.net.InetAddress.getAllByName(InetAddress.java:1171)
    3. java.net.InetAddress.getAllByName(InetAddress.java:1105)
    3 frames
  3. Apache HttpClient
    AbstractHttpClient.execute
    1. org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
    2. org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)
    3. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)
    4. org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
    5. org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
    6. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
    7. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    8. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
    9. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
    9 frames
  4. Apache Solr Solrj
    SolrServer.query
    1. org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:448)
    2. org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
    3. org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
    4. org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)
    5. org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
    5 frames
  5. org.aksw.autosparql
    UriDisambiguationTest.testGetUriCandidates
    1. org.aksw.autosparql.commons.uri.UriDisambiguation.query(UriDisambiguation.java:188)
    2. org.aksw.autosparql.commons.uri.UriDisambiguation.getUriCandidates(UriDisambiguation.java:152)
    3. org.aksw.autosparql.commons.uri.UriDisambiguationTest.testGetUriCandidates(UriDisambiguationTest.java:12)
    3 frames