[ https://issues.apache.org/jira/browse/SOLR-6495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Hoerner closed SOLR-6495. ------------------------------- Resolution: Invalid > "Bad type on operand stack" related to JavaBinCodec when running in Hadoop > -------------------------------------------------------------------------- > > Key: SOLR-6495 > URL: https://issues.apache.org/jira/browse/SOLR-6495 > Project: Solr > Issue Type: Bug > Components: contrib - MapReduce > Affects Versions: 4.10 > Reporter: Brett Hoerner > > 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: > {code} > 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]) > {code} > There is no further detail available in the logs (no real stacks with this > error, it seems). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org