Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6495

"Bad type on operand stack" related to JavaBinCodec when running in Hadoop

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 4.10
    • Fix Version/s: None
    • Component/s: contrib - MapReduce
    • Labels:
      None

      Description

      This is 4.10 specific. I have been using the MapReduce integration for a while now. The only thing I need to do is change my project dependencies from 4.9 to 4.10 and I receive the following in all of my mappers:

      2014-09-09 18:27:19,150 FATAL [IPC Server handler 7 on 34191] org.apache.hadoop.mapred.TaskAttemptListenerImpl: Task: attempt_1410286590866_0001_m_000000_0 - exited : Bad type on operand stack
      Exception Details:
        Location:
          org/apache/solr/common/util/JavaBinCodec.unmarshal(Ljava/io/InputStream;)Ljava/lang/Object; @71: invokevirtual
        Reason:
          Type 'org/apache/solr/common/util/FastInputStream' (current frame, stack[1]) is not assignable to 'org/apache/solr/common/util/DataInputInputStream'
        Current Frame:
          bci: @71
          flags: { }
          locals: { 'org/apache/solr/common/util/JavaBinCodec', 'java/io/InputStream', 'org/apache/solr/common/util/FastInputStream' }
          stack: { 'org/apache/solr/common/util/JavaBinCodec', 'org/apache/solr/common/util/FastInputStream' }
        Bytecode:
          0000000: 2bb8 000e 4d2a 2cb6 000f b500 102a b400
          0000010: 10b2 000a 9f00 31bb 0011 59bb 0012 59b7
          0000020: 0013 1214 b600 15b2 000a b600 1612 17b6
          0000030: 0015 2ab4 0010 b600 1612 18b6 0015 b600
          0000040: 19b7 001a bf2a 2cb6 001b b0            
        Stackmap Table:
          append_frame(@69,Object[#326])
      
      2014-09-09 18:27:19,150 INFO [IPC Server handler 7 on 34191] org.apache.hadoop.mapred.TaskAttemptListenerImpl: Diagnostics report from attempt_1410286590866_0001_m_000000_0: Error: Bad type on operand stack
      Exception Details:
        Location:
          org/apache/solr/common/util/JavaBinCodec.unmarshal(Ljava/io/InputStream;)Ljava/lang/Object; @71: invokevirtual
        Reason:
          Type 'org/apache/solr/common/util/FastInputStream' (current frame, stack[1]) is not assignable to 'org/apache/solr/common/util/DataInputInputStream'
        Current Frame:
          bci: @71
          flags: { }
          locals: { 'org/apache/solr/common/util/JavaBinCodec', 'java/io/InputStream', 'org/apache/solr/common/util/FastInputStream' }
          stack: { 'org/apache/solr/common/util/JavaBinCodec', 'org/apache/solr/common/util/FastInputStream' }
        Bytecode:
          0000000: 2bb8 000e 4d2a 2cb6 000f b500 102a b400
          0000010: 10b2 000a 9f00 31bb 0011 59bb 0012 59b7
          0000020: 0013 1214 b600 15b2 000a b600 1612 17b6
          0000030: 0015 2ab4 0010 b600 1612 18b6 0015 b600
          0000040: 19b7 001a bf2a 2cb6 001b b0            
        Stackmap Table:
          append_frame(@69,Object[#326])
      
      2014-09-09 18:27:19,152 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: Diagnostics report from attempt_1410286590866_0001_m_000000_0: Error: Bad type on operand stack
      Exception Details:
        Location:
          org/apache/solr/common/util/JavaBinCodec.unmarshal(Ljava/io/InputStream;)Ljava/lang/Object; @71: invokevirtual
        Reason:
          Type 'org/apache/solr/common/util/FastInputStream' (current frame, stack[1]) is not assignable to 'org/apache/solr/common/util/DataInputInputStream'
        Current Frame:
          bci: @71
          flags: { }
          locals: { 'org/apache/solr/common/util/JavaBinCodec', 'java/io/InputStream', 'org/apache/solr/common/util/FastInputStream' }
          stack: { 'org/apache/solr/common/util/JavaBinCodec', 'org/apache/solr/common/util/FastInputStream' }
        Bytecode:
          0000000: 2bb8 000e 4d2a 2cb6 000f b500 102a b400
          0000010: 10b2 000a 9f00 31bb 0011 59bb 0012 59b7
          0000020: 0013 1214 b600 15b2 000a b600 1612 17b6
          0000030: 0015 2ab4 0010 b600 1612 18b6 0015 b600
          0000040: 19b7 001a bf2a 2cb6 001b b0            
        Stackmap Table:
          append_frame(@69,Object[#326])
      

      There is no further detail available in the logs (no real stacks with this error, it seems).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bretthoerner Brett Hoerner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: