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 123198 - Oneway generated in websvc when an exception is listed
Summary: Oneway generated in websvc when an exception is listed
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-01 00:20 UTC by gcmcnutt
Modified: 2007-12-12 23:22 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 gcmcnutt 2007-12-01 00:20:33 UTC
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.
Comment 2 Lukas Jungmann 2007-12-12 23:22:03 UTC
v.
Comment 3 Lukas Jungmann 2007-12-12 23:22:28 UTC
*** Issue 123917 has been marked as a duplicate of this issue. ***