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.

View | Details | Raw Unified | Return to bug 40729
Collapse All | Expand All

(-)loaders/src/org/openide/loaders/XMLDataObject.java (-6 / +10 lines)
Lines 1155-1166 Link Here
1155
                        newID = parsedId;
1155
                        newID = parsedId;
1156
                    } catch (SAXException checkStop) {
1156
                    } catch (SAXException checkStop) {
1157
                        // stop parsing anyway
1157
                        // stop parsing anyway
1158
                        String msg = "Thread:" + Thread.currentThread().getName(); //NOI18N
1158
                        if (STOP.getMessage ().equals (checkStop.getMessage ())) {
1159
                        emgr().annotate(checkStop, "DocListener should not throw SAXException but STOP one.\n" + msg);  //NOI18N
1159
                            newID = parsedId;
1160
                        emgr().notify(emgr().INFORMATIONAL, checkStop);
1160
                        } else {
1161
                        Exception ex = checkStop.getException();
1161
                            String msg = "Thread:" + Thread.currentThread().getName(); //NOI18N
1162
                        if (ex != null) {
1162
                            emgr().annotate(checkStop, "DocListener should not throw SAXException but STOP one.\n" + msg);  //NOI18N
1163
                            emgr().notify(emgr().INFORMATIONAL, ex);
1163
                            emgr().notify(emgr().INFORMATIONAL, checkStop);
1164
                            Exception ex = checkStop.getException();
1165
                            if (ex != null) {
1166
                                emgr().notify(emgr().INFORMATIONAL, ex);
1167
                            }
1164
                        }
1168
                        }
1165
                    } catch (FileNotFoundException ex) {
1169
                    } catch (FileNotFoundException ex) {
1166
                        // thrown when there is a problem with URL for example
1170
                        // thrown when there is a problem with URL for example

Return to bug 40729