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 129645 - Call ws op for JAX-RPC client in EJB creates error code
Summary: Call ws op for JAX-RPC client in EJB creates error code
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-RPC (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 3 votes (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: RANDOM
: 135424 (view as bug list)
Depends on:
Blocks: 135841 136639
  Show dependency tree
 
Reported: 2008-03-10 11:55 UTC by Jaroslav Pospisil
Modified: 2008-10-02 15:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (117.39 KB, image/png)
2008-03-10 11:56 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2008-03-10 11:55:08 UTC
Build 2008031000000,JDK1.6.0_05,Win Vista

1)Create new default EJB module on Glassfish v2
2)Add JAX-RPC plugin
3)Create web service client in the EJB (http://www.waterware.com/projects/samples/RouteMaster/wsdl/)
4)Add new session bean, add Bussiness method in it and inside method Call web service operation (choose getRoutes)
5)Code is added,but error marked,although this doesn't affect the fact,that project still could be successfully built.

Attaching screenshot.
Comment 1 Jaroslav Pospisil 2008-03-10 11:56:35 UTC
Created attachment 58055 [details]
screenshot
Comment 2 bhate 2008-03-10 21:52:18 UTC
fixed. changeset d7f1738c6a9d.
Comment 3 Jaroslav Pospisil 2008-04-03 13:13:32 UTC
Reproduced again in trunk and release61 for servlet in J2EE1.4 web module.Reopen.
Comment 4 bhate 2008-04-03 18:09:15 UTC
This is a different issue really.
Original issue was in EJB project, now its in web project.
Comment 5 Lukas Jungmann 2008-04-14 17:14:53 UTC
moving opened issues where TM != dev to TM=TBD
Comment 6 rdelaplante 2008-06-11 17:28:02 UTC
Issue 135841 might be the same as this issue (web project).  This is an adoption stopper for me.  I can't work without
the code completion and with the red errors.  I'm stuck on v6.0.1 still, because it does not suffer from this regression.
Comment 7 rdelaplante 2008-06-16 16:39:38 UTC
Is this ticket part of NB 6.1 Patch 2?  Issue 135841 is, and it depends on this one.  Without this fix I won't be able
to upgrade to NB 6.1. Thanks
Comment 8 Jaroslav Pospisil 2008-06-17 17:56:32 UTC
This issue is reproducible again in trunk (6.5).
Comment 9 rdelaplante 2008-06-20 18:04:13 UTC
Shouldn't this be P2 or P1?
Comment 10 Jaroslav Pospisil 2008-06-23 07:32:02 UTC
Yes.I'm raising the priority to P2,since other depending issues are also P2.
Comment 11 Milan Kuchtiak 2008-06-24 12:13:40 UTC
Fixed.

Diffs:
http://hg.netbeans.org/main?cmd=changeset;node=df6ba7a302c3
Comment 12 Jesse Glick 2008-06-24 18:35:35 UTC
You broke commit validation; typo "core" for "project". BTW please use '-' to separate components of a FQN in a
*.instance file rather than '.'.

http://deadlock.netbeans.org/hudson/job/javadoc-nbms/1885/testReport/org.netbeans.core.projects/ValidateLayerConsistencyTest/testInstantiateAllInstances/

File
Projects/org-netbeans-modules-j2ee-clientproject/Lookup/org.netbeans.modules.websvc.core.jaxws.project.JaxRpcLookupProvider.instance
threw java.lang.ClassNotFoundException: org.netbeans.modules.websvc.core.jaxws.project.JaxRpcLookupProvider
Comment 13 rdelaplante 2008-08-26 13:43:28 UTC
Why isn't this in patch 3?  I'm still stuck on NetBeans 6.0.1 after 3 patch releases because of this regression.  I
installed NB 6.1 patch 3 two days before the release (http://blogs.sun.com/coreqa/entry/patch3_for_netbeans_6_1).  I
have a J2EE 1.4 web project that has a JAX-RPC client.  It builds fine, but the editor doesn't know where the generated
code is and shows red error lines under every line that uses the web service's objects.  No code completion is available.
Comment 14 rdelaplante 2008-08-26 13:50:57 UTC
To me this is a P1 showstopper for the patch 3 release.  It is a regression of 6.0 identified before 6.1 was even
released (I think), and is an adoption blocker for people who use JAX-RPC. Do you want me to create a separate ticket
because it is a web project I'm using?  I'll see if it happens from an EJB project soon. 
Comment 15 Milan Kuchtiak 2008-08-27 14:45:05 UTC
Fixed incorrect instance reference in layer.xml (on 06/24):
http://hg.netbeans.org/release65_m1?cmd=changeset;node=323b22c75c75

also replaced dots(.) with dashes (-) in layer.xml file:
http://hg.netbeans.org/main?cmd=changeset;node=38e87b004c43

Finally I also implemented SourceForBiaryQuery for JAX-RPC artifacts:
http://hg.netbeans.org/main?cmd=changeset;node=8d36f2b6a2a9

The last fix is important when JAX-RPC clients are used in another project. (e.g. when JAX-RPC client created in J2SE
project is consumed in web application).

I consider the issue fixed for 6.5 release.
Comment 16 Quality Engineering 2008-08-28 06:22:11 UTC
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/8d36f2b6a2a9
User: mkuchtiak@netbeans.org
Log: #129645: implement SourceForBinaryQuery for JAX-RPC Client artifacts
Comment 17 rdelaplante 2008-09-02 04:34:53 UTC
I am using daily build 200808311401.  I did two tests and both show the editor is completely unusable, and the project
won't build:

Test #1: EJB Module Project (Java EE5)

1) Create the new project
2) Added a web service client for a JAX-RPC web service
3) Created a session bean
4) Used the "Call Web Service Operation" dialog to generate code in my EJB to call the web service

All lines that touch the web service in the editor are red.
The project will not compile


Test #2: Web Project (java EE 5)

1) Created a web project
2) Add web service client for a JAX-RPC web service
3) Create a servlet
4) Use the "Call Web Service Operation" dialog to have it generate code in my servlet that calls the web service

All lines that touch the web service in the editor are red.
The project will not compile
This is worse than before.  At least before it would compile.

Comment 18 rdelaplante 2008-09-02 04:46:32 UTC
I may have put my comment in the wrong ticket.  However, it seems that nobody at Sun has even tried to create a JAX-RPC
web service client and then use it. They only look at tiny fragments and fix them one at a time. I have been complaining
about this and creating tickets since before 6.1 was released. Several fixes made it into patch 1, patch 2, patch 3, and
now NetBeans 6.5 and it is STILL completely unusable. This is a big regression since 6.0 where it worked fine. Someone
PLEASE complete the full use case of creating a web service client in both web and EJB projects, use the client from a
servlet or EJB, make sure the editor works, and make sure the project compiles.   DO NOT LET 6.5 BE RELEASED UNLESS THIS
WORKS.  I've had to skip 6.1 entirely because of this regression and if I also have to skip 6.5 then I am going to 
switch IDEs. 
Comment 19 Milan Kuchtiak 2008-09-02 10:44:20 UTC
I tested the fix for issue 135841 in Web Application. Wouldn't mark the issue fix if it were not working at my laptop.

Tested that again for both Web App and EJB.
Works for me in web applications - see the picture (client for http://www.webservicex.net/CurrencyConvertor.asmx?wsdl)
The only red lines are related to 

currencyConvertorSoap.conversionRate(/* TODO enter operation arguments*/);

that's "as designed" since arguments should be completed.

Now I see in EJB - there is a problem.
Working on that now.
Comment 20 Milan Kuchtiak 2008-09-02 12:13:28 UTC
Now I am able to reproduce it also in Web Application.
Sorry for inconveniences.

Note:the workaround is to open the Project's Properties dialog and close it.

Investigating why it works for JAX-WS but not for JAX-RPC.
Comment 21 Milan Kuchtiak 2008-09-02 13:17:52 UTC
Fixed.

build/generated/wsclient/ should be created before project.xml is changed.

Diff:
http://hg.netbeans.org/main?cmd=changeset;node=ff4c2341c7ed

For sure I'd like to ask QE manager to test this fix.
Comment 22 Quality Engineering 2008-09-03 17:20:50 UTC
Integrated into 'main-golden', will be available in build *200809031401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ff4c2341c7ed
User: mkuchtiak@netbeans.org
Log: #129645: code completion fix for JAX-RPC artifacts
Comment 23 Lukas Jungmann 2008-09-09 00:10:50 UTC
*** Issue 135424 has been marked as a duplicate of this issue. ***
Comment 24 Jaroslav Pospisil 2008-10-02 15:30:20 UTC
v.