[jbosstools-issues] [JBoss JIRA] (JBDS-4175) NPE/broken functionality/cannot start after install from Red Hat Central into rh-eclipse46-devstudio

Nick Boldt (JIRA) issues at jboss.org
Mon Jan 23 15:50:01 EST 2017


    [ https://issues.jboss.org/browse/JBDS-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13352438#comment-13352438 ] 

Nick Boldt commented on JBDS-4175:
----------------------------------

slf4j problem (in Fedora packages, not rh-* packages) appears to be caused by m2e 1.7.1, which embeds slf4j simple 1.7.5 but we have 1.7.4 installed via rh-java-common-slf4j-1.7.4

----

Clean install of SY from the latest http://download.jboss.org/jbosstools/neon/integration/updates/integration-stack/discovery/4.4.1.CR1-SNAPSHOT/ site (updated on Jan 20) ... cannot reproduce the slf4j problem. Seems the dependencies of SY have been updated to remove this extraneous dependency. Could also not reproduce when running the m2e quickstart -- no m2e/slf4j stuff was installed that caused any errors in the log.

---

Updated to rpm 10.3-0.20170121.0921.el7. Installed SY. Launched sample project wizard. No errors.

Installed EVERYTHING from the above site (including Neon.1 stuff) and I get remediation:

{code}
Cannot complete the install because of a conflicting dependency.
  Software being installed: Eclipse Help Developer Resources 2.2.0.v20160907-1200 (org.eclipse.help.source.feature.group 2.2.0.v20160907-1200)
  Software currently installed: Eclipse Platform 4.6.1.v20160920-1429 (org.eclipse.platform.ide 4.6.1.v20160920-1429)
  Only one of the following can be installed at once: 
    Internet Connection Management 1.3.0.v20160418-1534 (org.eclipse.core.net 1.3.0.v20160418-1534)
    Internet Connection Management 1.3.0.v20160920-1429 (org.eclipse.core.net 1.3.0.v20160920-1429)
  Cannot satisfy dependency:
    From: Eclipse Help System 2.2.0.v20160907-1200 (org.eclipse.help.feature.group 2.2.0.v20160907-1200)
    To: org.eclipse.core.net [1.3.0.v20160418-1534]
  Cannot satisfy dependency:
    From: Eclipse Help Developer Resources 2.2.0.v20160907-1200 (org.eclipse.help.source.feature.group 2.2.0.v20160907-1200)
    To: org.eclipse.help.feature.group [2.2.0.v20160907-1200]
  Cannot satisfy dependency:
    From: Eclipse Platform 4.6.1.v20160920-1429 (org.eclipse.platform.feature.group 4.6.1.v20160920-1429)
    To: org.eclipse.core.net [1.3.0.v20160920-1429]
  Cannot satisfy dependency:
    From: Eclipse Platform 4.6.1.v20160920-1429 (org.eclipse.platform.ide 4.6.1.v20160920-1429)
    To: org.eclipse.platform.feature.group [4.6.1.v20160920-1429]{code}

 !integration-stack-install-everything-some-deps-are-old-neon.1-versions.png|thumbnail!  

!integration-stack-install-everything-some-deps-are-old-neon.1-versions_option2.png|thumbnail!  

But this makes sense because the platform already installed is newer than the deps in the site.

---

After installing everything, on restart I get some use constraint violations for these chains:

* javax.annotation-api 1.2.0 / org.eclipse.osgi 3.11.1.v20160920-1429 (org.eclipse.linuxtools.docker.core)
* javax.servlet-api / javax.servlet (org.jboss.tools.browsersim.eclipse, org.jboss.tools.browsersim.ui, org.jboss.tools.cordovasim.eclipse,  org.jboss.tools.livereload.core)

This is caused by these new plugins being installed in ~/.eclipse:

* javax.servlet_3.1.0.v201410161800.jar
* edu.umd.cs.findbugs.plugin.eclipse_3.0.1.20150306-5afe4d1 --> exports java.annotation packages: javax.annotation,
 javax.annotation.concurrent,  javax.annotation.meta

---

After uninstalling all the eclipse-* packages, and reinstalling rh-eclipse46-* packages to update to rh-eclipse46-eclipse-jdt 1:4.6.2-4.2.el7 from rhscl-2.4... I get no more install problems -- I can install all the categorized features. 

!install-all-the-categorized-features.png|thumbnail! 

There are some uncategorized things that are older versions which can't be installed (because newer already installed) but that should be fine. If a user does this they'll get remediation and may break their install, but it's an easy fix: 

* delete ~/.eclipse
* reinstall supported stuff

In future, we should ensure that the Integration Stack doesn't bundle old Neon.1 bits when devstudio / RHSCL is based on Neon.2. But at least everything works. 

---

As noted above, I did discover that findbugs re-exports javax.annotations which could cause conflicts w/ docker.core (use constraint violation). So we might have to remove findbugs from Central to avoid this.

> NPE/broken functionality/cannot start after install from Red Hat Central into rh-eclipse46-devstudio
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JBDS-4175
>                 URL: https://issues.jboss.org/browse/JBDS-4175
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Bug
>          Components: central-update, rpm
>         Environment: RHEL 7.2 with RHSCL repositories available:
>  * RHSCL 2.3 RC (http://download-node-02.eng.bos.redhat.com/rel-eng/RHSCL-2.3-RHEL-7-RC-1.1/compose/Server/x86_64/os/)
>  * update for RHBZ#1392095 (http://nest.test.redhat.com/mnt/qa/scratch/vkadlcik/eclipse/repos/rhscl23z/v02/)
>            Reporter: Václav Kadlčík
>            Assignee: Nick Boldt
>             Fix For: 10.3.0.AM2
>
>         Attachments: JBDS-4175_logs_first_half.tar.gz, devstudio-is-major-feature-groups-to-test.png, install-all-the-categorized-features.png, install-integration-stack-441cr1.png, install-springide383-correctly.png, install-springide383-create-mvc-project-done.png, install-springide383-create-mvc-project.png, integration-stack-install-everything-some-deps-are-old-neon.1-versions.png, integration-stack-install-everything-some-deps-are-old-neon.1-versions_option2.png, rh-eclipse46-devstudio10.2.log.20161115-0953.txt, rh-eclipse46-devstudio10.2.log.20161118-1112_strict.txt, slf4j-error.txt, spring-ide-fail-aop.png, spring-ide-fail-list.png, spring-ide-fail-npe.png, spring-ide-fail-project-explorer-broken-package-explorer-OK.png, spring-ide-fail.png, spring-ide-view-fail.png, springide382.png, sw_to_install.txt, workspace.log, wst.xsd.core_diff.png
>
>
> I installed rh-eclipse46-devstudio-10.2-0.20161111.0219.el7.x86_64.rpm and followed Nick's scenario [1]. In Red Hat Central, I clicked "Select All" (it found 36 items), then "Install/Update", did all the confirmations, including a restart. After the restart, Eclipse died on java.lang.NullPointerException. I'm attaching the workspace log (aside from the NPE, it's full of "Could not resolve module").
> I reproduced the problem several times on two different machines. The update for RHBZ#1392095 (rh-eclipse46-eclipse-4.6.1-2.4.el7) isn't necessary, it just makes the reproduction much faster.
> Not sure how related it is, but rh-eclipse46 disallows updating packages installed from RPM [2]. But in the list of software to be installed/updated, I saw, among others, EGit and Mylyn, which are definitely included in rh-eclipse46-base. In any case, I'm attaching the list, too.
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1392095#c6
> [2] https://bugzilla.redhat.com/show_bug.cgi?id=1173024
> (copied from comment below to make it sticky)
> Results of installing first half of the items in Central:
> ||Item||Result||Description or Errors||
> |Android_Development_Tools|(/)||
> |JBoss_Hybrid_Mobile_Tools|(/)||
> |AngularJS_for_Web_Tools|(x)|IllegalStateException: BundleContext, NullPointerException|
> |JBoss_Arquillian_Tools|(/)||
> |JBoss_Forge_Tools|(/)||
> |JBoss_OpenShift_2_Tools|(x)|BundleException|
> |JBoss_OpenShift_3_Tools|(x)|BundleException|
> |JBoss_Portlet_Tools|(x)|BundleException, NullPointerException, eclipse didn't start|
> |JBoss_Seam_Tools|(x)|BundleException, NullPointerException, eclipse didn't start|
> |JBoss_Tools_LiveReload|(x)|BundleException|
> |JST_Server|(x)|BundleException|
> |Spring_IDE|(x)|BundleException, NullPointerException, eclipse didn't start|
> |Atlassian_Connector|(x)|BundleException, loader constraint violation|
> |Eclipse_EGit_Mylyn_Support|(x)|BundleException|
> |Subclipse_SVNKit|(/)|First attempt failed due to SocketTimeoutException but second passed|
> |Subclipse_SVNKit_Mylyn_Support|(x)|BundleException|
> |Eclipse_Checkstyle|(x)|NullPointerException|
>  All logs [^JBDS-4175_logs_first_half.tar.gz].



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list