Red Hat Bugzilla – Bug 110463
RPM import: TargetInvocationException/"Finish" error
Last modified: 2007-04-18 12:59:37 EDT
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):
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
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
Created attachment 96064 [details]
Error message on console
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.)
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.
Fixed as part of #110443 fix. Should not allow any files without
src.rpm to pass validation