Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 110463 - RPM import: TargetInvocationException/"Finish" error
RPM import: TargetInvocationException/"Finish" error
Product: Red Hat Developer Suite
Classification: Retired
Component: eclipse (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Muldoon
Depends On:
  Show dependency treegraph
Reported: 2003-11-19 13:45 EST by Keith Seitz
Modified: 2007-04-18 12:59 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-11-19 16:31:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Error message on console (5.82 KB, text/plain)
2003-11-19 13:48 EST, Keith Seitz
no flags Details

  None (edit)
Description Keith Seitz 2003-11-19 13:45:07 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2)

Description of problem:
When importing a source RPM, the import wizard appears to select a
default project into which to import the sources. When "finishing",
something throws a TargetInvocationException, and the RPM import
plug-in is toast from there on out.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Create CDT project (File->New->Project...: C; Standard Make C Project)
2.Right-click new project and select Import...
3.Choose Source RPM and click Next
4. Click Browse... and select an SRPM
5. Click Finish

Actual Results:  TargetInvocationException printed to terminal. See
stack trace in attachment. Note: The actual problem is a
StringOutOfBoundsException in RPM plugin.

Expected Results:  Import SRPM or do not allow user to select Finish

Additional info:

I suspect one (or both) of the followiong is happening:
1. Even though it appears that a default project has been selected
when opening the wizard, some initialization is not happening OUTSIDE
setting up the actual dialog (unitialized variable?).
2. The user is allowed to press "Finish" before he should be allowed to
Comment 1 Keith Seitz 2003-11-19 13:48:51 EST
Created attachment 96064 [details]
Error message on console
Comment 2 Keith Seitz 2003-11-19 13:53:20 EST
Hmm. Well, after reproducing this bug EVERY time about 10 times in a
row, restarting eclipse (and removing workspace), suddenly the bug is
not reproducible. Goofy. I suspect that safe-gaurding against the
StringOutOfBoundsException ought to be easy enough anyway. (And
double-check the whole Finish button logic.)
Comment 3 Keith Seitz 2003-11-19 14:08:49 EST
Okay, my goof, but still a bug. I was attempting to import
slocate-BLAH.i386.rpm instead fo slocate-BLAH.src.rpm. So try
importing  something that is not an SRPM. 
Comment 4 Phil Muldoon 2003-11-19 16:31:01 EST
Fixed as part of #110443 fix. Should not allow any files without
src.rpm to pass validation

Note You need to log in before you can comment on or make changes to this bug.