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.
This happens for web services on Add WS Operation (Context) action. If there are no attributes in @WebService annotation exceptions are not thrown. Sample code : package a; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; @WebService(name="A") public class A { @WebMethod public String x() { // TODO implement operation return null; } }
Created attachment 31372 [details] Exception
The exception is caused by calling Resource.getSourceText() method in plannedChange method implementation in JAXWSNNListener (see the stacktrace of the first exception in messages.log). We should rewrite org.netbeans.modules.j2ee.metadata.Utils.stringValue(AttributeValue attrVal) method so that getSourceText is not being called.
Fixed. /cvs/j2ee/metadata/src/org/netbeans/modules/j2ee/metadata/Attic/NNMDRListener.java new revision: 1.1.2.18; previous revision: 1.1.2.17 /cvs/j2ee/metadata/src/org/netbeans/modules/j2ee/metadata/Attic/Utils.java new revision: 1.1.2.1.2.6; previous revision: 1.1.2.1.2.5
fixed
v.