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 67565

Summary: AE and never ending process when creating new websvc
Product: webservices Reporter: Lukas Jungmann <jungi>
Component: CodeAssignee: Martin Adamek <madamek>
Status: VERIFIED FIXED    
Severity: blocker CC: pjiricka
Priority: P2 Keywords: RANDOM
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 68739    
Attachments: exception
here it is... (ide log with next exception - NPE)

Description Lukas Jungmann 2005-10-26 10:49:25 UTC
[build 200510251800]

-have web app with more source roots
-have some classes in standart source root
-create new websvc in custom source root

=> java.lang.AssertionError: Cannot end transaction from a different thread!
	at org.netbeans.modules.javacore.ExclusiveMutex.leave(ExclusiveMutex.java:337)
	at org.netbeans.mdr.NBMDRepositoryImpl.endTrans(NBMDRepositoryImpl.java:248)
	at org.netbeans.modules.j2ee.common.JMIUtils.endJmiTransaction(JMIUtils.java:238)
	at
org.netbeans.modules.websvc.dev.wizard.WebServiceGenerator.generateWebService(WebServiceGenerator.java:262)
...

now let's close IDE
=> dialog with running Web service creation task appears and you have to "kill" it
Comment 1 Lukas Jungmann 2005-10-26 10:50:14 UTC
Created attachment 26350 [details]
exception
Comment 2 Milan Kubec 2005-10-27 08:50:20 UTC
This issue was identified as Q-Build stopper. Please do not forget to commit the
fix also to Q-Build branch - QBE200510251800. Thanks.
Comment 3 Martin Grebac 2005-10-31 09:07:32 UTC
Working on it.
Comment 4 Martin Grebac 2005-10-31 09:47:42 UTC
I not able to reproduce it neither with current build, nor with the mentioned one.
Comment 5 Petr Blaha 2005-10-31 10:02:26 UTC
I can't reproduce the issue in q-build candidate 200510251800 on Linux OS.
Therefore, the issue isn't q-build stopper. It seems that issue is random or
related to specific configuration. 
Lukasi, pls add more info for reproducing the issue.
Thanks  
Comment 6 Lukas Jungmann 2005-10-31 10:49:23 UTC
I'm able to reproduce it on 2 boxes with winxp (one in lab and on NB) and while
i've been working on fixing aut. tests for wizards I saw this also on linux and
solaris. Will look at it again.
Comment 7 Martin Grebac 2005-10-31 14:18:05 UTC
I'm still not able to reproduce, but I think I have a fix for the exception
which went to trunk right now:

Checking in WebServiceGenerator.java;
/cvs/websvc/dev/src/org/netbeans/modules/websvc/dev/wizard/WebServiceGenerator.java,v
 <--  WebServiceGenerator.java
new revision: 1.33; previous revision: 1.32
done

Please verify if it helped or not.
Comment 8 _ pcw 2005-10-31 22:37:16 UTC
Just to chime in here, I saw this issue at least 6-8 times if not more last
week.  Since for my purposes it's occurence was a deal killer (forced me to
restart the IDE and try again) for what I was trying to do, here's what I did:

I saw this happen a lot ( > 50%) when I switched to some other task (like
browser, or other copy of NetBeans) while I was waiting for the webservice to be
generated (this is after hitting finish on the wizard).

I found I rarely or never saw the problem if I just sat and waited after hitting
finish (no typing, no mouse, just waiting), until the webservice was fully created.

So my recommendation for reproducing this is this:

Start IDE
Create new webapp
Create new webservice from scratch
hit <Finish>

Switch to some other full or mostly full screen task like your web browser and
read email or something until it's done.  Preferably do this on a slow enough
computer that the web service generation takes 30 seconds to a minute to
generate the service.  I also had a copy of NB up debugging the target NB
instance that is doing these steps, not sure what impact that had.
Comment 9 Lukas Jungmann 2005-11-02 09:14:23 UTC
now (just checked this on solaris) it throws RuntimeException:

      java.lang.RuntimeException
	at
org.netbeans.modules.websvc.dev.wizard.WebServiceGenerator.generateWebService(WebServiceGenerator.java:252)
	at
org.netbeans.modules.websvc.dev.wizard.WebServiceGenerator.generateWebService(WebServiceGenerator.java:107)
	at
org.netbeans.modules.websvc.dev.wizard.WebServiceWizard.generateWebService(WebServiceWizard.java:211)
	at
org.netbeans.modules.websvc.dev.wizard.WebServiceWizard.access$000(WebServiceWizard.java:62)
	at
org.netbeans.modules.websvc.dev.wizard.WebServiceWizard$1.run(WebServiceWizard.java:183)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:471)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:904)
Comment 10 Lukas Jungmann 2005-11-17 13:38:33 UTC
Replacing INCOMPLETE with RANDOM - according to feedback I'm not the only one
who saw this. According to aut. tests this is also reproducible with simple web
project. Will try to add HW configuration of some box, on which this is
reproducible.

Also I'm also decreasing priority to P2, because original AE and its
consequences are fixed and now only RuntimeException from my last comment is thrown.
Comment 11 Martin Adamek 2005-11-18 13:26:03 UTC
I increased exception verbosity of last mentioned exception by adding original
exception. Please try to reproduce and add new exception log as attachment.
http://websvc.netbeans.org/source/browse/websvc/dev/src/org/netbeans/modules/websvc/dev/wizard/WebServiceGenerator.java?r1=1.33&r2=1.34
Comment 12 Lukas Jungmann 2005-11-21 14:21:50 UTC
Created attachment 27093 [details]
here it is... (ide log with next exception - NPE)
Comment 13 coldrick 2005-11-21 22:38:12 UTC
I just had a BYO laptop web services workshop with some customers yesterday (and
have another tomorrow, and yet another next week), and this bug was a problem.
we had 10 people in yesterday's workshop, and 4 systems showed the problem: 3 XP
and one Linux.  Note that it was not consistent on those machines - sometimes,
by exiting the IDE and trying again, it worked. 

Not good. 
Comment 15 Lukas Jungmann 2005-11-22 12:42:15 UTC
Now it works fine on my box. Will verify again in next daily build.
Comment 16 Martin Adamek 2005-11-25 09:42:16 UTC
*** Issue 69295 has been marked as a duplicate of this issue. ***
Comment 17 Lukas Jungmann 2005-11-27 11:34:56 UTC
*** Issue 69385 has been marked as a duplicate of this issue. ***
Comment 18 Lukas Jungmann 2005-11-29 10:38:50 UTC
v. in 200511271900
Comment 19 Lukas Jungmann 2005-12-14 22:47:27 UTC
*** Issue 70436 has been marked as a duplicate of this issue. ***
Comment 20 Lukas Jungmann 2006-01-09 11:45:05 UTC
*** Issue 71142 has been marked as a duplicate of this issue. ***
Comment 21 Lukas Jungmann 2006-01-12 12:17:58 UTC
*** Issue 71298 has been marked as a duplicate of this issue. ***