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.
1. Create j2ee app project without webapp 2. Create new web service from scratch in ejb project 3. Right click WS node and select Add operation 4. Add operation getPhone with return type String, parameter name of type String 5. [ERROR] the operation is not visible under WS node, when you look at generated SEI, the code is wrong, because operation code was added into the class name: javax.rmi.Rem[here's the code]ote
I am not able to reproduce the issue. Neither on Linux nor Windows platform. Martin, try it again and send the detailed scenario how to reproduce.
Caused likely by : http://java.netbeans.org/source/browse/java/src/org/netbeans/modules/java/IndentFileEntry.java?r1=1.12&r2=1.13
This is specific for Windows platform.
[winXp, beta-build, jdk1.5.0_06-b2] Happens to me also when adding operation through editor's context menu. But if I create new line after "// Enter web service..." comment and invoke "Web Services | Add Operation" on this new line then all sources are OK. The next thing I'm observing is that in some cases (not 100% reproducible) described steps don't lead to the error described above - ws SEI is generated correctly now but ws impl class becomes uncompilable after adding operation. Full class after adding operation: public class NewWebServicevvvImpl implements NewWebServicevvvSEI { // Enter web service operations here. (Popup menu: Web Service->Add Operation /** * Web service operation */ public java.lang.String operation() throws java.rmi.RemoteException { // TODO implement operation return null; } ) }
It may depend on some changes in java module.
*** Issue 65283 has been marked as a duplicate of this issue. ***
I am not able to reproduce the issue any more. Neither on Windows XP nor Linux It seems that 65939 fix has helped.
Happens to me again in build 200510171800 on Linux => reopening
Created attachment 26773 [details] extbrowser.dll
Forget the attachment, it belongs to another bug.
Can you please add broken class as attachment?
Created attachment 27123 [details] Screenshot of broken code from David Coldrick
Not sure if following can be related to this, but: In one of my aut. tests i have j2ee module with ejb and web module. In ejb module there i have session bean with local interfaces, in web module there I have web service. Now select ws impl class in editor, go to line 11, select it and invoke Call EJB from editor's popup menu. Sometimes this leads to the state when the generated code (method signature) is appended right next to the end of the comment on line 12 (it says something about how to add ws operation). Diff between real and expected files is attached. There's also some info exception in log, maybe not related to this, but attached too.
Created attachment 27163 [details] diff between real and expected file
Created attachment 27164 [details] ide log
I was able to reproduce with some exception in web module.I fixed that. Let's see if it solved all problems... /cvs/websvc/core/src/org/netbeans/modules/websvc/core/webservices/action/WebServiceClassesCookieImpl.java,v <-- WebServiceClassesCookieImpl.java; new revision: 1.5; previous revision: 1.4 /cvs/websvc/core/src/org/netbeans/modules/websvc/core/webservices/action/AddOperationAction.java,v <-- AddOperationAction.java; new revision: 1.19; previous revision: 1.18
Fixed opening of method in editor. org.netbeans.modules.websvc.core.webservices.action.WebServiceClassesCookieImpl; 1.4 -> 1.5
Feedback from user after last fix: Just tested for 64758 with a build from nbbuilder (200511231856): didn't get the misplaced code error, but I got the following exception the second time I tried to add an operation to a web service: the source code (in the impl this time) was broken as well.
Created attachment 27221 [details] Exception log
Fixed. /cvs/websvc/dev/src/org/netbeans/modules/websvc/dev/wizard/WSGenerationUtil.java,v <-- WSGenerationUtil.java; new revision: 1.13; previous revision: 1.12
v.