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: | IAException and Edit WS dialog doesn't show up | ||
---|---|---|---|
Product: | serverplugins | Reporter: | Martin Grebac <mgrebac> |
Component: | Identity | Assignee: | Peter Liu <petertliu> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | Sun | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Martin Grebac
2007-02-12 16:09:52 UTC
SecurityCheckerImpl needs to check whether we are using glassfish before calling J2eeProjectHelper.isSecuriytEnabled(). Fix checked into release551 branch. Index: SecurityCheckerImpl.java =================================================================== RCS file: /cvs/identity/profileui/src/org/netbeans/modules/identity/profile/ui/s upport/Attic/SecurityCheckerImpl.java,v retrieving revision 1.1.2.3 diff -r1.1.2.3 SecurityCheckerImpl.java 52c52 < public boolean isSecurityEnabled(Node node, JaxWsModel jaxWsModel) { --- > public boolean isSecurityEnabled(Node node, JaxWsModel jaxWsModel) { 54,61c54,65 < J2eeProjectHelper helper = new J2eeProjectHelper(node, jaxWsModel) ; < isSecurityEnabled = helper.isSecurityEnabled(); < < //System.out.println("helper.isSecurityEnabled() = " + isSecurityE nabled); < < // Turn on the transient state flag so we don't need to use < // the J2eeProjectHelper next time. < isTransientStateSet = true; --- > J2eeProjectHelper helper = new J2eeProjectHelper(node, jaxWsModel) ; > if (helper.isAppServerSun()) { > isSecurityEnabled = helper.isSecurityEnabled(); > > //System.out.println("helper.isSecurityEnabled() = " + isSecur ityEnabled); > > // Turn on the transient state flag so we don't need to use > // the J2eeProjectHelper next time. > isTransientStateSet = true; > } else { > isSecurityEnabled = false; > } Now I'm getting a different one: java.lang.NullPointerException org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.getServiceInfo(J2eeProjectHelper.java:436) org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.getServiceDescriptionName(J2eeProjectHelper.java:473) org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.isSecurityEnabled(J2eeProjectHelper.java:685) org.netbeans.modules.identity.profile.ui.support.SecurityCheckerImpl.isSecurityEnabled(SecurityCheckerImpl.java:55) org.netbeans.modules.websvc.wsitconf.spi.SecurityCheckerRegistry.isNonWsitSecurityEnabled(SecurityCheckerRegistry.java:89) Just checked in a fix for this. Need to also call helper.isSecurable() before we can call helper.isSecurityEnabled(). v *** Issue 101827 has been marked as a duplicate of this issue. *** |