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

Bug 187565

Summary: IllegalArgumentException get thrown when importing WAS Symptom Catalog with IBM WebSphere propritary format importer
Product: z_Archived Reporter: Praful Rajawat <prafulr>
Component: TPTPAssignee: Yasuhisa Gotoh <gotohy>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: apnan, jkubasta, labadie
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
Patch file none

Description Praful Rajawat CLA 2007-05-17 11:09:11 EDT
Build ID: tptp.sdk-TPTP-4.4.0-200705080100A.zip

Steps To Reproduce:
1.Start the LOog Analyzer
2.Import the IBM WebSphere Application Server Standard Edition Symptom Catalog.
3.Make sure to select Import using "BM WebSphere propritary format importer"
Following exception get thrown.

java.lang.IllegalArgumentException: invalid relative pathName: ftp://ftp.software.ibm.com/software/websphere/info/tools/loganalyzer/symptoms/std/symptomdb.xml
	at org.eclipse.emf.common.util.URI.createFileURI(URI.java:842)
	at org.eclipse.tptp.monitoring.symptom.provisional.models.util.SymptomLoader.isLocalFile(SymptomLoader.java:990)
	at org.eclipse.tptp.monitoring.symptom.provisional.models.util.SymptomLoader.loadDatabase(SymptomLoader.java:242)
	at org.eclipse.tptp.monitoring.symptom.provisional.importing.handler.WASImportHandler.importSymptomDatabase(WASImportHandler.java:113)
	at org.eclipse.hyades.sdb.internal.wizard.ImportSymptomDBPage2.run(ImportSymptomDBPage2.java:1010)
	at org.eclipse.hyades.sdb.internal.wizard.ImportSymptomDBPage2$ImportSymptomDatabaseJob.operate(ImportSymptomDBPage2.java:1078)
	at org.eclipse.hyades.sdb.internal.wizard.ImportSymptomDBPage2$ImportSymptomDatabaseJob.run(ImportSymptomDBPage2.java:1053)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


More information:
Comment 1 Alex Nan CLA 2007-05-17 13:22:41 EDT
You can ignore that exception, it's not harmful.
Comment 2 Alex Nan CLA 2007-05-17 13:25:14 EDT
I'll keep this defect to see if the code cand be reworked so that this exception is not thrown anymore. Anyway the exception doesn't affect the importing of the catalog.
Comment 3 Eric Labadie CLA 2007-08-09 17:05:11 EDT
This is required from AC perspective.  Should remove the links to the old WAS catalogs and point to the new ones only.
Comment 4 Alex Nan CLA 2007-10-30 23:14:28 EDT
Targetting 4.5 i2.
Comment 5 Alex Nan CLA 2007-11-05 18:20:43 EST
Changing target to 4.5 i4.
Comment 6 Yasuhisa Gotoh CLA 2007-12-05 02:52:01 EST
Created attachment 84488 [details]
Patch file

Alex, please review the patch.

The SymptomLoader#isLocalFile(String) method is just testing the given path string whether it is a valid local file name or not, so any exceptions caught while checking the given path string should indicate that the path string is not a correct local file name.
Comment 7 Alex Nan CLA 2007-12-05 22:23:42 EST
Please check in the patch.
Comment 8 Yasuhisa Gotoh CLA 2007-12-06 03:29:11 EST
Fix checked in
Comment 9 Paul Slauenwhite CLA 2009-06-30 10:24:59 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since the originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.