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.
Summary: | NoSuchElementException when adding message destination entry to deployment descriptor | ||
---|---|---|---|
Product: | serverplugins | Reporter: | _ pcw <pcw> |
Component: | Sun Appserver 9 | Assignee: | _ pcw <pcw> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | pbuzek, pjiricka |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | Sun | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | exception stack trace |
Description
_ pcw
2006-03-21 22:41:03 UTC
Created attachment 29341 [details]
exception stack trace
Problem seems to be in ConfigBeanStorage class rather than in dd editor. More specifically, in fireEvent method there is (line 120): if (xpaths[i].startsWith(relPath)) { String targetPath = DDCommon.getRelativePath(xpaths[i], relPath); DDBean[] dds = eventDD.getChildBean(targetPath); ... This issue is caused by targetPath being "-ref" here (returned by getRelativePath which is called with "message-destination", "message- destination-ref"). Sorry, correct order for the getRelativePath method's parameters is of course "message-destination-ref", "message-destination". Sorry. I should have taking a closer look at that stack trace when I filed this. Fix pending... The bug is an incomplete attempt at matching the prefix of an xpath. In order to properly match a relative xpath as a prefix of another xpath, we must also check that for incomplete matches (where xpath is longer than relpath), that within xpath, immediately following the prefix, is a slash. e.g. given xpaths "foo/bar" and "foofoo/bar" with relative path "foo", we want to match the first example, but not the second because "foo" is not a prefix of "foofoo/bar". Fixed in release55_beta branch. http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/config/ConfigBeanStorage.java?r1=1.3.6.2.2.1&r2=1.3.6.2.2.1.6.1 verified in release55_beta |