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.
Netbeans 7.1.1 dropped ALL own configured web services from project! :-( The 2nd time!
Down to P2, thanks to SVN.
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.
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.
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?
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)
Created attachment 116865 [details] Complete log
Steps before: Editing code, deploy, edit, deploy, ... so nothing special.
Created attachment 116866 [details] Next log Even with restored files the problem persists!! Log attached.
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.
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
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.
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.
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 ?
> 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.
> 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.
the switch -J-Dnetbeans.localhistory.storeChangesSynchronously=true could also help
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.
(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?