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 79069 - Exceptions thrown from JMI
Summary: Exceptions thrown from JMI
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks: 78814
  Show dependency tree
 
Reported: 2006-06-26 11:02 UTC by Milan Kuchtiak
Modified: 2006-09-28 14:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (41.12 KB, text/plain)
2006-06-26 11:03 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kuchtiak 2006-06-26 11:02:34 UTC
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;
    }
}
Comment 1 Milan Kuchtiak 2006-06-26 11:03:20 UTC
Created attachment 31372 [details]
Exception
Comment 2 Daniel Prusa 2006-06-28 15:25:23 UTC
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.
Comment 3 Daniel Prusa 2006-07-10 14:35:38 UTC
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
Comment 4 Daniel Prusa 2006-07-10 14:35:58 UTC
fixed
Comment 5 Lukas Jungmann 2006-09-28 14:00:28 UTC
v.