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 86733 - Exception at calling websvc in Enterprise Application Client with JDK6
Summary: Exception at calling websvc in Enterprise Application Client with JDK6
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-07 13:23 UTC by Masaki Katakai
Modified: 2007-07-18 18:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (4.69 KB, text/plain)
2006-10-07 13:26 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2006-10-07 13:23:25 UTC
JDK1.6.0 (rc b100)
NetBeans 5.5 RC1
Windows XP SP2
Sun Java System Application Server PE 9 (using jdk1.5.0_09)

When I use NetBeans 5.5 + JDK6, calling web service operation in
Enterprise Application Client causes exception when it's used.
When I use this in normal Java Application, it works.

This exception does not occur when I use JDK1.5 for NetBeans.

1. create Web Application project
2. create Web Service on it
3. run the project
	-> OK

4. create Java Application project
5. create Web Service Client from Web Application project on it
6. modify the source to use it
7. run the project
	-> OK

8. create Enterprise Application Client project
9. create Web Service Client from Web Application project on it
10. modify the source to use it
11. run the project
	-> Exception

	java.lang.ExceptionInInitializerError

Web Service is very simple like:

    @WebMethod
    public String operation() {
        // TODO implement operation 
        return "result";
    }

Also the calling web service is also simple:


    @WebServiceRef(wsdlLocation =
"http://localhost:8080/WebApplication1/NewWebServiceService?wsdl")
    private static cc.NewWebServiceService service;
...
        try { // Call Web Service Operation
            cc.NewWebService port = service.getNewWebServicePort();
            // TODO process result here
            java.lang.String result = port.operation();
            System.out.println("Result = "+result);
        } catch (Exception ex) {
            // TODO handle custom exceptions here
        }

It works in Java application project, but does not work in Enterprise
Application Client with JDK6.

When I use JDK1.5 for NetBeans and create these projects, it works fine.
Comment 1 Masaki Katakai 2006-10-07 13:26:27 UTC
Created attachment 35018 [details]
exception
Comment 2 Lukas Jungmann 2006-10-07 13:36:57 UTC
This should be a dup of
https://glassfish.dev.java.net/issues/show_bug.cgi?id=1182. It should work if
you run GlassFish on JDK1.5
Comment 3 Lukas Jungmann 2007-07-18 18:11:44 UTC
Works for me using AS9.0UR1 as well as AS9.1. Feel free to reopen if you're able to reproduce it using the latest build
(of IDE and GlassFish). Only be aware of issue 110190.

Thanks.