Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317592

Summary: NullPointerException: An internal error occurred during: "Update RPM packages proposal list".
Product: [Tools] Linux Tools Reporter: Severin Gehwolf <sgehwolf>
Component: RPMAssignee: Alexander Kurtakov <akurtakov>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: linux.rpm-inbox, mikhail.kalkov, sgehwolf
Version: 0.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Severin Gehwolf CLA 2010-06-22 10:44:32 EDT
Build Identifier: M20100211-1343

I am using eclipse-* rpm packages. When Eclipse starts up and a spec file is open, I'm getting this error:

An internal error occurred during: "Update RPM packages proposal list".

Stack trace:
java.lang.NullPointerException
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:71)

I'm not sure why this is happening.

Reproducible: Didn't try
Comment 1 Severin Gehwolf CLA 2010-06-22 10:48:02 EDT
Not sure if this is relevant. Posting it anyway:

$ rpm -qa | grep eclipse
eclipse-svnkit-1.3.2-2.fc13.noarch
eclipse-mylyn-3.3.2-2.fc13.noarch
icu4j-eclipse-4.0.1-5.fc13.i686
eclipse-rse-3.1.1-3.fc13.noarch
eclipse-changelog-2.6.7-3.fc12.i686
eclipse-swt-3.5.2-1.fc13.i686
eclipse-cdt-6.0.2-5.fc13.i686
eclipse-rcp-3.5.2-1.fc13.i686
eclipse-oprofile-0.4.0-1.fc13.i686
eclipse-rpm-editor-0.5.0-1.fc13.i686
eclipse-platform-3.5.2-1.fc13.i686
eclipse-mylyn-cdt-3.3.2-2.fc13.noarch
eclipse-cdt-sdk-6.0.2-5.fc13.i686
eclipse-pde-3.5.2-1.fc13.i686
eclipse-subclipse-1.6.8-1.fc13.noarch
eclipse-jdt-3.5.2-1.fc13.i686
eclipse-fedorapackager-0.0.3-1.fc13.noarch (it's happening with or without this package)
eclipse-linuxprofilingframework-0.5.0-2.fc13.i686
eclipse-emf-2.5.0-4.fc12.noarch
tomcat5-jasper-eclipse-5.5.27-7.4.fc12.noarch
Comment 2 Mikhail Kalkov CLA 2011-07-25 12:36:25 EDT
I am not sure if it is the same bug or not, but I observe a livelock in LinuxTools RPM plug-in on Eclipse 3.6.2 M20110210-1200 win32. The livelock is triggered when I open Specfile Editor page, and looks as a lot of small "Update RPM packages proposal list" jobs, which end only when I shut down Eclipse, and then, the attached stack trace is printed on the console.

From quick code examination it seems that an update job can never succeed because linux utilities are not available on linux, and if a file with job results at PreferenceConstants.P_RPM_LIST_FILEPATH cannot be found, the job is automatically restarted. I think, the same problem could happen on linux in some particular cases when the job cannot succeed for whatever reason.

=== Stack trace ===
!ENTRY org.eclipse.core.jobs 4 2 2011-07-25 17:20:16.356
!MESSAGE An internal error occurred during: "Update RPM packages proposal list".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.linuxtools.rpm.ui.editor.RpmPackageProposalsList.setPackagesList(RpmPackageProposalsList.java:44)
	at org.eclipse.linuxtools.rpm.ui.editor.RpmPackageProposalsList.<init>(RpmPackageProposalsList.java:40)
	at org.eclipse.linuxtools.rpm.ui.editor.RpmPackageBuildProposalsJob.retrievePackageList(RpmPackageBuildProposalsJob.java:182)
	at org.eclipse.linuxtools.rpm.ui.editor.RpmPackageBuildProposalsJob.run(RpmPackageBuildProposalsJob.java:59)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


=== Linuxtools plug-ins ===
org.eclipse.linuxtools.cdt.autotools (2.0.0.201101251503) "Autotools Plug-in (Incubation)" [Active]
org.eclipse.linuxtools.cdt.autotools_docs (2.0.2.201101251503) "Autotools Documentation (Incubation)" [Resolved]
org.eclipse.linuxtools.cdt.autotools.core (1.0.1.201101251503) "Autotools Plug-in (Incubation)" [Active]
org.eclipse.linuxtools.cdt.autotools.ui (1.0.1.201101251503) "Autotools UI Plug-in (Incubation)" [Starting]
org.eclipse.linuxtools.cdt.libhover (1.0.3.201101251503) "C/C++ Libhover Plug-in (Incubation)" [Starting]
org.eclipse.linuxtools.cdt.libhover.glibc (1.0.1.201101251503) "Glibc Libhover (Incubation)" [Resolved]
org.eclipse.linuxtools.cdt.libhover.library_docs (1.0.1.201101251503) "Libhover C/C++ Library Documentation Plug-in (Incubation)" [Resolved]
org.eclipse.linuxtools.changelog.core (2.7.0.201101251503) "ChangeLog Core Functionality (Incubation)" [Starting]
org.eclipse.linuxtools.changelog.cparser (2.7.0.201101251503) "ChangeLog C parser (Incubation)" [Resolved]
org.eclipse.linuxtools.changelog.doc (2.7.0.201101251503) "ChangeLog Documentation (Incubation)" [Resolved]
org.eclipse.linuxtools.changelog.parsers.java (2.7.0.201101251503) "ChangeLog C parser (Incubation)" [Resolved]
org.eclipse.linuxtools.rpm.core (0.4.3.201101251503) "RPM Core Plug-in (Incubation)" [Active]
org.eclipse.linuxtools.rpm.rpmlint (0.4.3.201101251503) "RPM Rpmlint Plug-in (Incubation)" [Starting]
org.eclipse.linuxtools.rpm.ui (0.4.3.201101251503) "RPM UI Plug-in (Incubation)" [Starting]
org.eclipse.linuxtools.rpm.ui.editor (0.4.3.201101251503) "RPM Specfile Editor (Incubation)" [Active]
org.eclipse.linuxtools.rpm.ui.editor.doc (0.4.3.201101251503) "Documentation for RPM specfile editor (Incubation)" [Resolved]
Comment 3 Alexander Kurtakov CLA 2011-09-06 08:25:33 EDT
Is this bug reproducible with current master? Looks like I fixed it with some other issues already.
Comment 4 Alexander Kurtakov CLA 2011-09-23 06:24:27 EDT
No response and I can't reproduce and a bit of stabilization in this area happened fixing quite a few possible problems. Please reopen if it still happens with master and provide an easy way to reproduce.