Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332835

Summary: Refreshing external folders
Product: [Modeling] TMF Reporter: zli <pllqpllqpllq>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: curtis.windatt.public, Olivier_Thomann, sebastian.zarnekow
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description zli CLA 2010-12-17 05:13:17 EST
Build Identifier: 3.6.1

 installed xtext and used it to develop.
I edited the xtext model and then  run as MWE2 WorkFlow will report error as follows:
An internal error occurred during: "Refreshing external folders".
java.lang.NullPointerException




Reproducible: Always

Steps to Reproduce:
1.installed xtext and used it to develop.
2.I edited the xtext model and then  run as MWE2 WorkFlow 
3.some gen file was missing in jobscripts plugin and Jobscripts.ui plugin.
Comment 1 zli CLA 2010-12-17 05:15:38 EST
Please give me a message if you relolve it. thank you!
Comment 2 Olivier Thomann CLA 2010-12-17 08:29:10 EST
Look at the .log file inside the .metadata folder and provide the part that refers to this NPE.
Thanks.
Comment 3 Curtis Windatt CLA 2010-12-17 09:43:45 EST
You need to provide more information, specifically the stack trace for the NPE.  Moving to XText
Comment 4 zli CLA 2010-12-19 22:11:11 EST
If I refresh one plugin (not for xtext) in my eclipse, it also report this pb.
mybe this is helpful for this bug.
for Xtext, much generated code missing. So I can't go on my task.
Comment 5 zli CLA 2010-12-19 23:08:43 EST
the log is too long,  only cut part of it.


org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/org.eclipse.xtext.xtext.ui_1.0.1.v201008251220.jar" by thread "Worker-5".
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:282)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
.....
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
	... 105 more


org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:282)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)

...
...
...
...
...
...
org.eclipse.ui.PartInitException: No editor descriptor for id org.eclipse.xtext.Xtext
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:601)
...
...
...
!MESSAGE An internal error occurred during: "Refreshing external folders".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.ExternalFoldersManager$RefreshJob.run(ExternalFoldersManager.java:387)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

...
...
...
!SUBENTRY 1 org.eclipse.team.svn.core.svnnature 4 0 2010-12-20 11:59:47.329
!MESSAGE Some resources were not reverted.
!STACK 0
org.eclipse.team.svn.core.connector.SVNConnectorException: svn: No write-lock in 'D:\Talend_trunk\org.talend.metalanguage.jobscript.ui\src-gen\org\talend\metalanguage\jobscript\ui\contentassist\antlr\internal'
	at org.polarion.team.svn.connector.svnkit.SVNKitConnector.handleClientException(SVNKitConnector.java:1424)
	at org.polarion.team.svn.connector.svnkit.SVNKitConnector.revert(SVNKitConnector.java:323)
	at org.eclipse.team.svn.core.extension.factory.ThreadNameModifier.revert(ThreadNameModifier.java:508)
	at org.eclipse.team.svn.core.operation.local.RevertOperation$1.run(RevertOperation.java:64)
	at org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doSubTask(ProgressMonitorUtility.java:118)
	at org.eclipse.team.svn.core.operation.AbstractActionOperation.protectStep(AbstractActionOperation.java:154)
	at org.eclipse.team.svn.core.operation.AbstractActionOperation.protectStep(AbstractActionOperation.java:149)
	at org.eclipse.team.svn.core.operation.local.RevertOperation.runImpl(RevertOperation.java:62)
	at org.eclipse.team.svn.core.operation.AbstractActionOperation.run(AbstractActionOperation.java:81)
	at org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doTask(ProgressMonitorUtility.java:104)
	at org.eclipse.team.svn.core.operation.CompositeOperation.runImpl(CompositeOperation.java:95)
	at org.eclipse.team.svn.core.operation.AbstractActionOperation.run(AbstractActionOperation.java:81)
	at org.eclipse.team.svn.core.operation.LoggedOperation.run(LoggedOperation.java:39)
	at org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doTask(ProgressMonitorUtility.java:104)
	at org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doTaskExternal(ProgressMonitorUtility.java:90)
	at org.eclipse.team.svn.ui.utility.WorkspaceModifyCancellableOperationWrapper.execute(WorkspaceModifyCancellableOperationWrapper.java:58)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
	at org.eclipse.team.svn.ui.utility.SVNTeamOperationWrapper.run(SVNTeamOperationWrapper.java:35)
	at org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnableContext.java:144)
	at org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.runInWorkspace(JobRunnableContext.java:72)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.tigris.subversion.javahl.ClientException: svn: No write-lock in 'D:\Talend_trunk\org.talend.metalanguage.jobscript.ui\src-gen\org\talend\metalanguage\jobscript\ui\contentassist\antlr\internal'
	at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:778)
	at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java:1924)
	at org.tmatesoft.svn.core.javahl.SVNClientImpl.revert(SVNClientImpl.java:625)
	at org.polarion.team.svn.connector.svnkit.SVNKitConnector.revert(SVNKitConnector.java:320)
	... 22 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: No write-lock in 'D:\Talend_trunk\org.talend.metalanguage.jobscript.ui\src-gen\org\talend\metalanguage\jobscript\ui\contentassist\antlr\internal'
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
	at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14.saveEntries(SVNAdminArea14.java:609)
	at org.tmatesoft.svn.core.internal.wc.admin.SVNLogRunner.logCompleted(SVNLogRunner.java:531)
	at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea.runLogs(SVNAdminArea.java:591)
	at org.tmatesoft.svn.core.wc.SVNWCClient.revert(SVNWCClient.java:3634)
	at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3411)
	at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:1897)
	at org.tmatesoft.svn.core.javahl.SVNClientImpl.revert(SVNClientImpl.java:621)
	... 23 more
Comment 6 zli CLA 2010-12-20 22:52:12 EST
Hi,
when i refresh or clear up  the plugin in org.XXX.libraries  will report this error:

!ENTRY org.eclipse.core.jobs 4 2 2010-12-21 11:50:17.406
!MESSAGE An internal error occurred during: "Refreshing external folders".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.ExternalFoldersManager$RefreshJob.run(ExternalFoldersManager.java:387)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

How can i resolve it?
Thank you !
Comment 7 Sebastian Zarnekow CLA 2011-01-10 11:10:09 EST
Could you please try to provide a reproducable sample for your problem? How does your configuration look like?
Comment 8 Sebastian Zarnekow CLA 2012-04-02 16:11:08 EDT
Since no additional information is available I'll close this as not reproducable. Please feel free to reopen the ticket if this still happens.
Comment 9 Karsten Thoms CLA 2017-09-19 17:44:27 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 10 Karsten Thoms CLA 2017-09-19 17:55:44 EDT
Closing all bugs that were set to RESOLVED before Neon.0