You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Brett Hoerner (JIRA)" <ji...@apache.org> on 2014/09/09 21:22:29 UTC

[jira] [Commented] (SOLR-6495) "Bad type on operand stack" related to JavaBinCodec when running in Hadoop

    [ https://issues.apache.org/jira/browse/SOLR-6495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14127424#comment-14127424 ] 

Brett Hoerner commented on SOLR-6495:
-------------------------------------

Hoss in IRC has pointed out this is likely to do with how I'm building my job jars. I'll dig into that, but it is odd that I can take the exact same job project and change "4.10" to "4.9" (no other dep changes, code changes, reordering, exclusions, etc) and it works.

> "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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org