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.

Bug 95295 - IAException and Edit WS dialog doesn't show up
Summary: IAException and Edit WS dialog doesn't show up
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 5.x
Hardware: Sun All
: P1 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
: 101827 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-12 16:09 UTC by Martin Grebac
Modified: 2007-04-22 17:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2007-02-12 16:09:52 UTC
Install WSIT or JWSDP on Tomcat, register to IDE.
Create Web Project, J2EE1.4 version, with Tomcat above as target server.
Create web service.
Invoke Edit WS attributes.

Result:
java.lang.IllegalArgumentException: Web service description name cannot be empty
or null.
org.netbeans.modules.j2ee.sun.share.configbean.services.MessageSecurityProviderImpl.validateEndpointParams(MessageSecurityProviderImpl.java:341)
org.netbeans.modules.j2ee.sun.share.configbean.services.MessageSecurityProviderImpl.getEndpointBinding(MessageSecurityProviderImpl.java:59)
org.netbeans.modules.identity.profile.api.bridgeapi.SunDDBridge.doesEndPointMSBExist(SunDDBridge.java:57)
org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.isSecurityEnabled(J2eeProjectHelper.java:689)
org.netbeans.modules.identity.profile.ui.support.SecurityCheckerImpl.isSecurityEnabled(SecurityCheckerImpl.java:55)
org.netbeans.modules.websvc.wsitconf.spi.SecurityCheckerRegistry.isNonWsitSecurityEnabled(SecurityCheckerRegistry.java:89)
org.netbeans.modules.websvc.wsitconf.ui.service.ServicePanel.enableDisable(ServicePanel.java:377)
Comment 1 Peter Liu 2007-02-12 19:45:42 UTC
SecurityCheckerImpl needs to check whether we are using glassfish before calling
J2eeProjectHelper.isSecuriytEnabled().
Comment 2 Peter Liu 2007-02-12 19:48:41 UTC
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;
>             }
Comment 3 Martin Grebac 2007-02-13 13:34:28 UTC
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)
Comment 4 Peter Liu 2007-02-14 02:30:12 UTC
Just checked in a fix for this.  Need to also call helper.isSecurable() before
we can call helper.isSecurityEnabled().

Comment 5 Martin Grebac 2007-04-03 15:57:40 UTC
v
Comment 6 Peter Pis 2007-04-22 17:51:46 UTC
*** Issue 101827 has been marked as a duplicate of this issue. ***