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 81727 - can't create web service client
Summary: can't create web service client
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 18:46 UTC by jenniferb
Modified: 2006-10-23 15:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE stack trace (1.40 KB, text/plain)
2006-08-03 15:48 UTC, jenniferb
Details
stack trace (1.17 KB, application/octet-stream)
2006-08-18 04:19 UTC, jenniferb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jenniferb 2006-08-02 18:46:12 UTC
According to issue 64329, I need a src directory (even though I have no src
files) to create a web service client.  When I create an empty src directory,
I'm able to get past the problem mentioned in 64329, but after I click Finish in
the new web service client dialog, I get an NPE and the IDE says its creating
web service client with a progress bar, but it stays like that indefinitely.
Comment 1 Radko Najman 2006-08-03 15:32:43 UTC
I improved the wizard validation test yestarday so no source root is necessary
if you use JAX-WS. It is required just for JAX_RPC now. It works fine for me, ws
client is created, no NPE is thrown. Could you attach the exception, please?
Comment 2 jenniferb 2006-08-03 15:48:43 UTC
Created attachment 32499 [details]
NPE stack trace
Comment 3 Radko Najman 2006-08-07 10:14:41 UTC
Milane, do you think that it could be related to the recent jax-ws.xml changes?
The problem is that getXmlArtifactsRoot() method in ProjectJAXWSClientSupport
returns null.
Comment 4 Milan Kuchtiak 2006-08-07 12:10:12 UTC
Problem is that src/conf directory is missing in project.
Comment 5 Radko Najman 2006-08-07 12:22:09 UTC
Basically the problem is not in missing src/conf directory but in missing
property conf.dir in project.properties. Configuration directory can be placed
anywhere.
Comment 6 Radko Najman 2006-08-07 12:47:42 UTC
Fixed.
conf.dir property must exist in project.properties. It is not set now but in the
future it would be nice to set it in the wizard.

Checking in WebProjectUtilities.java;
/cvs/web/project/src/org/netbeans/modules/web/project/api/WebProjectUtilities.java,v
 <--  WebProjectUtilities.java
new revision: 1.2.2.5.2.13; previous revision: 1.2.2.5.2.12
done
Comment 7 Radko Najman 2006-08-07 15:48:27 UTC
One small enhancement - it tries to guess conf directory in case there could be any.

Checking in ui/wizards/FileSearchUtility.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/wizards/FileSearchUtility.java,v
 <--  FileSearchUtility.java
new revision: 1.1.54.2; previous revision: 1.1.54.1
done
Checking in api/WebProjectUtilities.java;
/cvs/web/project/src/org/netbeans/modules/web/project/api/WebProjectUtilities.java,v
 <--  WebProjectUtilities.java
new revision: 1.2.2.5.2.15; previous revision: 1.2.2.5.2.14
done
Comment 8 Jaroslav Pospisil 2006-08-09 14:06:57 UTC
I just tried the scenario with build 200608090000,jdk1.6.0,WinXP and it
failed,although the exception was different:

*********** Exception occurred ************ at 3:04 PM on Aug 9, 2006
java.lang.ArrayIndexOutOfBoundsException: 0
        at org.netbeans.modules.websvc.core.client.wizard.WebServiceClientCreato
r.generate14Client(WebServiceClientCreator.java:298)
        at org.netbeans.modules.websvc.core.client.wizard.WebServiceClientCreato
r.access$100(WebServiceClientCreator.java:68)
        at org.netbeans.modules.websvc.core.client.wizard.WebServiceClientCreato
r$1.run(WebServiceClientCreator.java:114)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)

[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java
:932)

Reopening.
Comment 9 Jaroslav Pospisil 2006-08-09 15:14:07 UTC
Decribed behaviour is restricted for web project without src folder, created
from existing J2EE 1.4 sources, but in the wizard set to JavaEE5 and glassfish.
Otherwise it works,so decreasing priority to P3. 
Comment 10 jenniferb 2006-08-18 04:18:10 UTC
I still can't get this to work, even though I have the latest Daily and I have
the project set to Java EE 5.  After I go through the dialog to create the web
service client, I get an AssertionException.  I will attach stack trace.
Comment 11 jenniferb 2006-08-18 04:19:24 UTC
Created attachment 33049 [details]
stack trace
Comment 12 Radko Najman 2006-08-18 09:10:27 UTC
Did you create your project with your latest daily build? From the stack trace
it seems that you are working with a project created before my fix on Aug 7 and
in that project is not defined conf.dir property. Could you attach your
project.properties, please?
Comment 13 jenniferb 2006-08-18 17:32:42 UTC
OK. It works now with a Java EE 5 project.  Sorry for false alarm.
Comment 14 Radko Najman 2006-08-22 14:47:10 UTC
Jarda's exception fixed.

Checking in WebServiceClientWizardDescriptor.java;
/cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/WebServiceClientWizardDescriptor.java,v
 <--  WebServiceClientWizardDescriptor.java
new revision: 1.5.2.2.2.6; previous revision: 1.5.2.2.2.5
done
Checking in ClientInfo.java;
/cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/ClientInfo.java,v
 <--  ClientInfo.java
new revision: 1.20.8.3.2.40; previous revision: 1.20.8.3.2.39
done
Checking in Bundle.properties;
/cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.24.2.4.2.17; previous revision: 1.24.2.4.2.16
done
Checking in WebServiceClientCreator.java;
/cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/Attic/WebServiceClientCreator.java,v
 <--  WebServiceClientCreator.java
new revision: 1.1.2.27; previous revision: 1.1.2.26
done