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 135841 - Regression: After doing a clean/build on a project with JAX-RCP client, classes are gone and can't be regnerated
Summary: Regression: After doing a clean/build on a project with JAX-RCP client, class...
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-RPC (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on: 129645 136639
Blocks:
  Show dependency tree
 
Reported: 2008-05-26 21:49 UTC by rdelaplante
Modified: 2008-08-28 17:54 UTC (History)
2 users (show)

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 rdelaplante 2008-05-26 21:49:59 UTC
I have a web project that has a JAX-RPC client.  I just added the client and it appeard to work fine.  Then I did a
clean/build and got a lot of red error lines in my  source code for lines that use the web service classes.  I tried to
refresh web service client but it does nothing.   I deleted the web service client and try to added it back in to
regenerate the files.  When I click the finish button it locks up for about 20-30 seconds, then closes.  Nothing was
done.   I still have errors and don't know what to do.
Comment 1 rdelaplante 2008-05-26 21:51:33 UTC
BTW the web service client was originally configured to have SSL, username and password.   After deleting the client and
re-adding it, it doesn't get as far as asking me if I want to accept SSL cert or input username/password.  It just
freezes for 20-30 seconds then closes the wizard.  I can access the WSDL using a web browser. 
Comment 2 rdelaplante 2008-05-29 22:33:28 UTC
I reverted to NetBeans 6.0.1 and do not have this problem anymore.
Comment 3 rdelaplante 2008-06-10 00:01:52 UTC
I'm trying it with 6.1 ML now.  I'm having trouble just getting it to generate a client. There seem to be other bugs,
such as WEB-INF/wsdl/MyService.wsdl has to exist so it can delete it before continuing.  I think I reported that
earlier.  I got it to think it regenerated the client but I can't do a build, and still tons of red errors in my code
where I try to use the generated classes.
Comment 4 Jaroslav Pospisil 2008-06-11 09:50:34 UTC
I think this issue is in fact web application version of Issue 129645, which I reported earlier. Ryan, confirm please,
that web application with error code is still compilable and deployable, just for sure. 
Comment 5 rdelaplante 2008-06-11 14:45:18 UTC
I think there are two issues being reported in this ticket.  The first is after a clean/build, the build fails.  I
wasn't able to get it to regenerate a web service client.  The second is about the red error lines in code editor.  
This morning I tried again to capture more detail for you. 


The build directory contains the web serivce client generated code and binaries.  When I try to do a build, I get this
error:

D:\dev\FolioService\FolioServiceClientDemo\nbproject\build-impl.xml:384:
D:\dev\FolioService\FolioServiceClientDemo\web\WEB-INF\wsdl\FolioService-config.xml not found.
BUILD FAILED (total time: 0 seconds)


Project tree node\Web Pages\WEB-INF contains a wsdl directory with only FolioService.wsdl.  

Next I did a clean/build and got the same error. It didn't appear to regenerate the web service client.  

Next I told it to refresh the web service client. I entered the URL, accepted SSL certificate and entered a valid
username/password.  New client was generated, but can't do a build because of missing FolioService-config.xml.

Next I deleted the web service client from the Web Service Clients tree node, then did a clean.  I recreated a web
service client by providing the URL of WSDL, package name, and accepted the SSL certificate. The project will now build.

I opened my source code that uses the web service client, and all lines that referenced it or one of its classes were
red. Code completion did not work for those classes.

Closed then re-opened IDE.  Still my source code has red errors everywhere. I am able to do a build.

I did a clean/build, and it worked. This is not consistent with what was happening when I opened this ticket.  

Even though I can build, I can't write code because the editor doesn't know about the web service client classes or
provide code completion. 
Comment 6 rdelaplante 2008-06-13 16:17:53 UTC
Someone else MAY be experiencing effects of this bug too through Maven2 & CFX generated client:

http://www.nabble.com/Netbeans-6.1,-maven-2,-junit-and-cxf-td17814535.html
Comment 7 Milan Kuchtiak 2008-06-24 12:17:06 UTC
See also the issue 129645

Fix:
http://hg.netbeans.org/main?cmd=changeset;node=df6ba7a302c3
Comment 8 rdelaplante 2008-06-24 14:29:34 UTC
Would it be possible to release this in NB 6.1 Patch 3 instead of NB 6.5?  If not, I will have to skip NB 6.1 entirely
and use NB 6.0.1 until fall/winter 2008 when NB 6.5 is released.  Thanks.
Comment 9 Jaroslav Pospisil 2008-06-30 17:00:13 UTC
Red error lines still reproducible in both trunk (build 200806300002) and M1. Reopening.
Comment 10 Milan Kuchtiak 2008-08-28 09:24:54 UTC
I I found after some investigation, the code completion doesn't work in case the first JAX-RPC client is created in a
project. The workarond is close and open the project or create another client.

The solution is probably to refresh the children of jax-rpc artifacts folder after a client is created.
Comment 11 Milan Kuchtiak 2008-08-28 10:27:46 UTC
Fixed.

Diff:
http://hg.netbeans.org/main?cmd=changeset;node=7066b7d02ed3
Comment 12 Quality Engineering 2008-08-28 17:54:02 UTC
Integrated into 'main-golden', available in build *200808281401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/7066b7d02ed3
User: mkuchtiak@netbeans.org
Log: #135841: ignit CC when JAX-RPC client is created