Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7017

ipc.Client.Connection.receiveResponse throws ClassNotFoundException when large requests are sent to RPC.Server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.20.2
    • None
    • ipc
    • None
    • JDK1.6/WindowsXP/CygWin/Tomcat6

    Description

      i use solr with katta integration, pls see https://issues.apache.org/jira/browse/SOLR-1395
      when i use:

      ab -n 100 -c 10 http://localhost:8080/solr/select?q=solr&...
      

      i found solr throws NPE, so, i added some code like below:

      ipc.Client.Connection
      public void receiveResponse() {
            ...
            try {
                 ...
                 ...
            } catch (IOException e) {
              markClosed(e);
            } catch (RunTimeException t) {
                LOG.error("Unexpected error reading responses on connection ", t);
                throw t;
            }
          }
      

      then, i catch the ClassNotFoundException:

      java.lang.RuntimeException: readObject can't find class om-SL510?(responseê`?$name...
      	at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:185)
      	at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:66)
      	at org.apache.hadoop.ipc.Client$Connection.receiveResponse(Client.java:511)
      Caused by: java.lang.ClassNotFoundException: om-SL510?(responseê`?$name...
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:247)
      	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:762)
      	at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:183)
      

      Attachments

        1. diff.patch
          4 kB
          tom liu

        Activity

          People

            Unassigned Unassigned
            tom_lt tom liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: