This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build number: 200405251800 File XMIReader contains a code segement: public Collection read (InputStream input, String uri, RefPackage[] extents, String encoding) throws IOException, SAXException, ParserConfigurationException { InputSource is = new InputSource (input); if (encoding != null) { is.setEncoding(encoding); } if (uri != null) { is.setSystemId(uri); try { docURL = new URI (uri).toURL (); } catch (URISyntaxException e) { } catch (MalformedURLException e) { } //New start catch (IllegalArgumentException e) { } //New end } return read (is, extents); } I had to add the line which is enclosed by the //New start //New end lines to be able to load xmi files. Otherwise an IllegalArgumentException will be thrown.
I did not quote the filename correctly. That one is: org.netbeans.lib.jmi.xmi.XmiSAXReader
How are you using the XMI reader? Could you attach the stacktrace of the exception? I don't see why this is a P1 bug in MDR code since the exception most likely means you are passing an invalid URI.
Oops, ok, I see what you mean. Could you please attach the exception stacktrace and the url you are passing?
Fixed. Checking in jmiutils/src/org/netbeans/lib/jmi/xmi/XmiSAXReader.java; /cvs/mdr/jmiutils/src/org/netbeans/lib/jmi/xmi/XmiSAXReader.java,v <-- XmiSAXReader.java new revision: 1.3; previous revision: 1.2 done