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 209619 - Netbeans drops web services from list
Summary: Netbeans drops web services from list
Status: RESOLVED INCOMPLETE
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Localhistory (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 14:01 UTC by js-java
Modified: 2012-05-07 06:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Complete log (215.73 KB, text/plain)
2012-03-19 14:41 UTC, js-java
Details
Next log (69.02 KB, text/plain)
2012-03-19 14:47 UTC, js-java
Details
New log (72.45 KB, text/plain)
2012-03-19 15:02 UTC, js-java
Details
Sorry, but next file (73.80 KB, text/plain)
2012-03-19 15:18 UTC, js-java
Details

Note You need to log in before you can comment on or make changes to this bug.
Description js-java 2012-03-15 14:01:59 UTC
Netbeans 7.1.1 dropped ALL own configured web services from project! :-( The 2nd time!
Comment 1 js-java 2012-03-15 14:31:53 UTC
Down to P2, thanks to SVN.
Comment 2 David Konecny 2012-03-16 01:07:31 UTC
Please provide step by step instructions how to reproduce this problem. I can understand the pain of files being deleted but I have no idea how to fix this problem without more detailed info. As it has not happened before the issue must be closely related to your project setup/structure/... and what you do with it. Thanks.
Comment 3 js-java 2012-03-16 10:09:42 UTC
When I was reading the logfile of NetBeans I found several OutOfMemory exceptions. 

I have many projects open (about 10), two with many files.

So all I can say (for the moment): 
- many open projects
- memory exceptions in the log
- all web services have protocoll handlers configured
- jax-ws.xml had removed all services
- jaxws-build.xml was deleted
- sun-jaxws.xml had removed the services
- web.xml had removed the services
- changes occured when committing to svn
- rolling back these files inside NetBeans didn't help
- stopping NetBeans and rolling back outside helped


I closed those 2 "big projects" from the projects list hoping this will help me.
Comment 4 David Konecny 2012-03-18 20:14:56 UTC
Can you attach the IDE log please when the removal of files happened? Can you reproduce the problem? If so what are the steps you do in the IDE which lead to the problem?
Comment 5 js-java 2012-03-19 14:41:20 UTC
Just occured, found this in the log:

INFO [org.netbeans.modules.web.project.WebProject]
java.io.SyncFailedException: C:\Users\js\Documents\NetBeansProjects\BMW\ScmBackend\build\web\WEB-INF\sun-jaxws.xml.0.nblh~
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:393)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:340)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:306)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:304)
	at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:119)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:309)
	at org.openide.filesystems.FileUtil.createData(FileUtil.java:941)
	at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.ensureDestinationFileExists(WebProject.java:1887)
	at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.handleCopyFileToDestDir(WebProject.java:1839)
	at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.handleCopyFileToDestDir(WebProject.java:1812)
[catch] at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.fileDataCreated(WebProject.java:1623)
	at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:139)
	at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEvent(FCLSupport.java:128)
	at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:105)
	at org.openide.filesystems.FileObject$ED.dispatch(FileObject.java:1203)
	at org.openide.filesystems.FileSystem$EventDispatcher.run(FileSystem.java:956)
	at org.openide.filesystems.EventControl.dispatchEvent(EventControl.java:84)
	at org.openide.filesystems.FileSystem.dispatchEvent(FileSystem.java:601)
	at org.openide.filesystems.FileObject.dispatchEvent(FileObject.java:548)
	at org.openide.filesystems.FileObject.fireFileDataCreatedEvent(FileObject.java:500)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.fireFileDataCreatedEvent(BaseFileObj.java:611)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.refreshImpl(FolderObj.java:493)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.refresh(BaseFileObj.java:801)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.refresh(FolderObj.java:550)
	at org.openide.filesystems.FileObject.refresh(FileObject.java:1078)
	at org.netbeans.modules.masterfs.watcher.Watcher$1.run(Watcher.java:378)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
Comment 6 js-java 2012-03-19 14:41:53 UTC
Created attachment 116865 [details]
Complete log
Comment 7 js-java 2012-03-19 14:45:53 UTC
Steps before:

Editing code, deploy, edit, deploy, ... so nothing special.
Comment 8 js-java 2012-03-19 14:47:22 UTC
Created attachment 116866 [details]
Next log

Even with restored files the problem persists!! Log attached.
Comment 9 js-java 2012-03-19 15:02:55 UTC
Created attachment 116870 [details]
New log

Another log. This time project was closed, then files recovered vom svn, NetBeans started, project opened. Again some services were deleted.

This is a show stopper for me. If I find no solution we have to go back to 6.9.
Comment 10 js-java 2012-03-19 15:18:46 UTC
Created attachment 116872 [details]
Sorry, but next file

Found this:
java.io.FileNotFoundException: FileObject C:\Users\js\Documents\NetBeansProjects\BMW\ScmBackend\web\WEB-INF\web.xml@f336a91b:38b1f1[invalid] is not valid.

and

org.openide.filesystems.FileAlreadyLockedException: C:\Users\js\Documents\NetBeansProjects\BMW\ScmBackend\build\web\WEB-INF\web.xml
Comment 11 js-java 2012-03-19 15:29:53 UTC
Found a work around (hopefully....):

I removed all files from var/cache/index/, var/cahce/lastModified/, var/cache/svncache/, var/cache/vcshistory/. Now no services were dropped. However, starting NetBeans took 12 minutes.
Comment 12 David Konecny 2012-03-19 20:29:19 UTC
Despite the logs and information provided by user I still have no idea what's wrong. Passing to Subversion/Filesystems to evaluate. It does look like a problem on lower layer.
Comment 13 Ondrej Vrabec 2012-03-20 06:48:16 UTC
java.io.SyncFailedException: C:\Users\js\Documents\NetBeansProjects\BMW\ScmBackend\build\web\WEB-INF\sun-jaxws.xml.0.nblh~
.nblh~ - local history? Tomas, is it a duplicate of bug #202673 ?
Comment 14 Tomas Stupka 2012-03-21 16:08:03 UTC
> java.io.SyncFailedException: C:\Users\js\Documents\NetBeansProjects\BMW\ScmBackend\build\web\WEB-INF\sun-jaxws.xml.0.nblh~
> .nblh~ - local history? Tomas, is it a duplicate of bug #202673 ?
might be the same cause as in #202673 but i'm not familiar enough with web services to be able to confirm.

anyway, the functionality in local history which is related to .nblh~ should cause no trouble anymore, as it was removed over two weeks ago. 
The easiest way to verify if the problem is gone would be to try to reporduce on a daily build. reassigning back.
Comment 15 Ondrej Vrabec 2012-03-22 20:44:23 UTC
> The easiest way to verify if the problem is gone would be to try to reporduce on a daily build. reassigning back.
js-java@netbeans.org: i suggest you download and test the latest dev build: http://bits.netbeans.org/download/trunk/nightly/latest/

In 7.1.1 you can check if the problem is caused by local history by disabling this module in Tools -> Plugins. After that the problem should go away.
Comment 16 Tomas Stupka 2012-03-22 21:25:59 UTC
the switch 
-J-Dnetbeans.localhistory.storeChangesSynchronously=true 
could also help
Comment 17 js-java 2012-05-04 21:23:56 UTC
Not sure if this is the result of this option:

I set this storeChangesSynchronously option. Now no web service were deleted but sometime in jax-ws.xml some services moved to the end of the list. It looks like they were deleted but then detected again and added to the list. Same in web.xml.

If this is the expected behaviour, bug can be closed again.
Comment 18 Ondrej Vrabec 2012-05-05 05:45:30 UTC
(In reply to comment #17)
> but sometime in jax-ws.xml some services moved to the end of the list. It looks
> like they were deleted but then detected again and added to the list. Same in
> web.xml.
Could you disable Local History (Tools -> Plugins -> Available Plugins) for a while and check if it still happens? And what is the *exact* single action that causes this?