GitHub user Arkoniak opened a pull request:

    https://github.com/apache/incubator-zeppelin/pull/949

    [ZEPPELIN-941] jsoup NoSuchMethodError in ZeppelinRDisplay.scala

    ### What is this PR for?
    Since version 1.8.2 of jsoup, org.jsoup.select.Elements class no longer has 
"get(int index)" method. It contradicts to <jsoup.version>1.8.2</jsoup.version> 
written in scala/pom.xml. Currently %r scripts fail with 
"java.lang.NoSuchMethodError: 
org.jsoup.select.Elements.get(I)Lorg/jsoup/nodes/Element;" 
    
    This PR changes obsolete get(0) method to more universal and logically 
equivalent first() method, removing error message and removing 1.8.1 
restriction to jsoup library (at least in ZeppelinRDisplay part of zeppelin).
    
    
    ### What type of PR is it?
    Bug Fix
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-941
    
    ### How should this be tested?
    Execute R-Tutorial Notebook in default installation of zeppelin and confirm 
that you can see output.
    
    ### Questions:
    It shouldn't break older versions.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Arkoniak/incubator-zeppelin rdisplay_jsoup_fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-zeppelin/pull/949.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #949
    
----
commit 8597610642d0941158d87e56e3ef95af245351fd
Author: Andrey Oskin <a.os...@corp.mail.ru>
Date:   2016-06-02T07:12:38Z

    jsoup get(0) to first()

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to