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.
A fairly minor issue, Create a web service, add an operation in the designer that returns void, but does trigger an exception. The resulting code won't compile: ----- /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ws1; import javax.ejb.DuplicateKeyException; import javax.jws.Oneway; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; /** * * @author Greg */ @WebService() public class WS1 { /** * Web service operation */ @WebMethod(operationName = "get") public byte[] get(@WebParam(name = "a") int a, @WebParam(name = "b") int b) { //TODO write your implementation code here: return null; } /** * Web service operation */ @WebMethod(operationName = "load") @Oneway public void load(@WebParam(name = "a") String a, @WebParam(name = "b") String b, @WebParam(name = "stuff") byte[] stuff) throws DuplicateKeyException { } } workaround to remove the oneway seems to be usable for the time being.
Fixed. Diff: http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/AddWsOperationHelper.java?r1=1.24&r2=1.25
v.
*** Issue 123917 has been marked as a duplicate of this issue. ***