Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.npsm#|(I want to understand where the error is comming from)
Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.npsm#| [message #1765514] Sun, 11 June 2017 18:54 Go to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
I have some DSL plugins A, B and C. A uses B and C. When I create e resource with A I always get the following error if A uses a resource of C.
org.eclipse.xtext.resource.ClasspathUriResolutionException: org.eclipse.xtext.resource.FileNotFoundOnClasspathException: Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.npsm#|2'
	at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.resolve(ClassloaderClasspathUriResolver.java:49)
	at org.eclipse.xtext.resource.XtextResourceSet.resolveClasspathURI(XtextResourceSet.java:221)
	at org.eclipse.xtext.resource.XtextResourceSet.access$0(XtextResourceSet.java:220)
	at org.eclipse.xtext.resource.XtextResourceSet$1.normalize(XtextResourceSet.java:284)
	at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:239)
	at de.mdsd.xtext.support.utils.EcoreUtils.resolve(EcoreUtils.java:122)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProviderSwitch.caseGenPackage(GeneratedGenModelQualifiedNameProviderSwitch.java:309)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProviderSwitch.caseGenPackage(GeneratedGenModelQualifiedNameProviderSwitch.java:1)
	at org.eclipse.emf.codegen.ecore.genmodel.util.GenModelSwitch.doSwitch(GenModelSwitch.java:93)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProviderSwitch.apply(GeneratedGenModelQualifiedNameProviderSwitch.java:51)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProvider.getFullyQualifiedName(GeneratedGenModelQualifiedNameProvider.java:78)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProvider.apply(GeneratedGenModelQualifiedNameProvider.java:99)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProvider.doApply(GeneratedGenModelQualifiedNameProvider.java:50)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.caseGrammarReference(GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.java:331)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.caseGrammarReference(GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.java:1)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.util.NameProviderSwitchModelSwitch.doSwitch(NameProviderSwitchModelSwitch.java:107)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelProposalTextQualifiedNameProviderSwitch.caseNameProviderSwitchDefinition(GeneratedNameProviderSwitchModelProposalTextQualifiedNameProviderSwitch.java:129)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.caseNameProviderSwitchDefinition(GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.java:1)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.util.NameProviderSwitchModelSwitch.doSwitch(NameProviderSwitchModelSwitch.java:114)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelProposalTextQualifiedNameProviderSwitch.apply(GeneratedNameProviderSwitchModelProposalTextQualifiedNameProviderSwitch.java:38)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelProposalTextQualifiedNameProvider.getFullyQualifiedName(GeneratedNameProviderSwitchModelProposalTextQualifiedNameProvider.java:48)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelProposalTextQualifiedNameProvider.getFullyQualifiedName(GeneratedNameProviderSwitchModelProposalTextQualifiedNameProvider.java:42)
	at de.mdsd.xtext.support.utils.XtextSupportScopeProviderUtils.makeEObjectListScope(XtextSupportScopeProviderUtils.java:60)
	at de.mdsd.xtext.up.name.providerswitch.model.scoping.GeneratedNameProviderSwitchModelDelegateScopeProvider.scope_FeatureReference_nameProvider(GeneratedNameProviderSwitchModelDelegateScopeProvider.java:120)
	at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:296)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.polymorphicFindScopeForReferenceName(AbstractDeclarativeScopeProvider.java:152)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.getScope(AbstractDeclarativeScopeProvider.java:100)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getScope(DefaultLinkingService.java:59)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLinkingService.java:119)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:247)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:222)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:199)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:259)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:1477)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.impl.FeatureReferenceImpl.getNameProvider(FeatureReferenceImpl.java:559)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.impl.FeatureReferenceImpl.eGet(FeatureReferenceImpl.java:648)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:439)
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.next(EContentsEList.java:595)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(EcoreUtil.java:304)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:298)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:283)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseImport(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:125)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseImport(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:1)
	at de.mdsd.xtext.support.proposal.provider.proposalProvider.util.ProposalProviderSwitch.doSwitch(ProposalProviderSwitch.java:239)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseProposalProvider(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:101)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseProposalProvider(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:1)
	at de.mdsd.xtext.support.proposal.provider.proposalProvider.util.ProposalProviderSwitch.doSwitch(ProposalProviderSwitch.java:78)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseModelProposal(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:158)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseModelProposal(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:1)
	at de.mdsd.xtext.support.proposal.provider.proposalProvider.util.ProposalProviderSwitch.doSwitch(ProposalProviderSwitch.java:85)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.apply(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:53)
	at de.mdsd.xtext.support.proposal.provider.scoping.GeneratedProposalProviderDelegateScopeProvider.scope_ModelProposal_modelClass(GeneratedProposalProviderDelegateScopeProvider.java:49)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:296)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.polymorphicFindScopeForReferenceName(AbstractDeclarativeScopeProvider.java:152)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.getScope(AbstractDeclarativeScopeProvider.java:100)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getScope(DefaultLinkingService.java:59)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLinkingService.java:119)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:247)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:222)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doResolveLazyCrossReference(LazyLinkingResource.java:189)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReference(LazyLinkingResource.java:148)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReferences(LazyLinkingResource.java:134)
	at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:498)
	at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.postParse(XtextDocumentReconcileStrategy.java:175)
	at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.doReconcile(XtextDocumentReconcileStrategy.java:153)
	at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:67)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.doRun(XtextReconciler.java:442)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.access$3(XtextReconciler.java:422)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$DocumentListener$1.exec(XtextReconciler.java:133)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$DocumentListener$1.exec(XtextReconciler.java:1)
	at org.eclipse.xtext.resource.OutdatedStateManager.exec(OutdatedStateManager.java:98)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:428)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.process(XtextDocument.java:337)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$DocumentListener.performNecessaryUpdates(XtextReconciler.java:130)
	at org.eclipse.xtext.ui.editor.model.XtextDocument.updateContentBeforeRead(XtextDocument.java:249)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.internalReadOnly(XtextDocument.java:518)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.readOnly(XtextDocument.java:492)
	at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:133)
	at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$2.run(HighlightingReconciler.java:336)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.xtext.resource.FileNotFoundOnClasspathException: Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.npsm#|2'
	at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.findResourceOnClasspath(ClassloaderClasspathUriResolver.java:61)
	at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.resolve(ClassloaderClasspathUriResolver.java:46)
	... 101 more


I although have another plugin D that uses B and C without errors.

I checked the MANIFEST.INF files for missing dependencies but I could not find any.
All used resources are already saved to disk nothing in the parsing state.

What could be the reason for that behaviour.
Re: Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.np [message #1765515 is a reply to message #1765514] Sun, 11 June 2017 19:04 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
The uri you use looks strange to me. Where does it come from ?
Using dot inside a classpath is usually replaced by a slash.
And the name looks like a plugin name
But then you won't need it. So just classpath:/xxx.yyy

So can you give some more context


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.np [message #1765721 is a reply to message #1765515] Tue, 13 June 2017 20:40 Go to previous messageGo to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
Hi Christian,
I changed all my classpath uris and get now this error:
org.eclipse.xtext.resource.ClasspathUriResolutionException: org.eclipse.xtext.resource.FileNotFoundOnClasspathException: Couldn't find resource on classpath. URI was 'classpath:/de/mdsd/xtext/support/utils/GenModel.npsm#|2'
	at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.resolve(ClassloaderClasspathUriResolver.java:49)
	at org.eclipse.xtext.resource.XtextResourceSet.resolveClasspathURI(XtextResourceSet.java:221)
	at org.eclipse.xtext.resource.XtextResourceSet.access$0(XtextResourceSet.java:220)
	at org.eclipse.xtext.resource.XtextResourceSet$1.normalize(XtextResourceSet.java:284)
	at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:239)
	at de.mdsd.xtext.support.utils.EcoreUtils.resolve(EcoreUtils.java:122)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProviderSwitch.caseGenPackage(GeneratedGenModelQualifiedNameProviderSwitch.java:309)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProviderSwitch.caseGenPackage(GeneratedGenModelQualifiedNameProviderSwitch.java:1)
	at org.eclipse.emf.codegen.ecore.genmodel.util.GenModelSwitch.doSwitch(GenModelSwitch.java:93)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProviderSwitch.apply(GeneratedGenModelQualifiedNameProviderSwitch.java:51)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProvider.getFullyQualifiedName(GeneratedGenModelQualifiedNameProvider.java:78)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProvider.apply(GeneratedGenModelQualifiedNameProvider.java:99)
	at de.mdsd.xtext.support.utils.GeneratedGenModelQualifiedNameProvider.doApply(GeneratedGenModelQualifiedNameProvider.java:50)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.caseGrammarReference(GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.java:331)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.caseGrammarReference(GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.java:1)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.util.NameProviderSwitchModelSwitch.doSwitch(NameProviderSwitchModelSwitch.java:107)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelProposalTextQualifiedNameProviderSwitch.caseNameProviderSwitchDefinition(GeneratedNameProviderSwitchModelProposalTextQualifiedNameProviderSwitch.java:129)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.caseNameProviderSwitchDefinition(GeneratedNameProviderSwitchModelQualifiedNameProviderSwitch.java:1)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.util.NameProviderSwitchModelSwitch.doSwitch(NameProviderSwitchModelSwitch.java:114)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelProposalTextQualifiedNameProviderSwitch.apply(GeneratedNameProviderSwitchModelProposalTextQualifiedNameProviderSwitch.java:38)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelProposalTextQualifiedNameProvider.getFullyQualifiedName(GeneratedNameProviderSwitchModelProposalTextQualifiedNameProvider.java:48)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelProposalTextQualifiedNameProvider.getFullyQualifiedName(GeneratedNameProviderSwitchModelProposalTextQualifiedNameProvider.java:42)
	at de.mdsd.xtext.support.utils.XtextSupportScopeProviderUtils.makeEObjectListScope(XtextSupportScopeProviderUtils.java:60)
	at de.mdsd.xtext.up.name.providerswitch.model.scoping.GeneratedNameProviderSwitchModelDelegateScopeProvider.scope_FeatureReference_nameProvider(GeneratedNameProviderSwitchModelDelegateScopeProvider.java:120)
	at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:296)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.polymorphicFindScopeForReferenceName(AbstractDeclarativeScopeProvider.java:152)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.getScope(AbstractDeclarativeScopeProvider.java:100)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getScope(DefaultLinkingService.java:59)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLinkingService.java:119)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:247)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:222)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:199)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:259)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:1477)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.impl.FeatureReferenceImpl.getNameProvider(FeatureReferenceImpl.java:559)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.impl.FeatureReferenceImpl.eGet(FeatureReferenceImpl.java:648)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:439)
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.next(EContentsEList.java:595)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(EcoreUtil.java:304)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:298)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:283)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.caseImport(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:115)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.caseImport(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:1)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.util.NameProviderSwitchModelSwitch.doSwitch(NameProviderSwitchModelSwitch.java:330)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.caseNameProviderSwitchModel(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:91)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.caseNameProviderSwitchModel(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:1)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.util.NameProviderSwitchModelSwitch.doSwitch(NameProviderSwitchModelSwitch.java:78)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.caseNameProviderSwitchDefinition(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:204)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.caseNameProviderSwitchDefinition(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:1)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.util.NameProviderSwitchModelSwitch.doSwitch(NameProviderSwitchModelSwitch.java:114)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.caseGrammarReference(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:176)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.caseGrammarReference(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:1)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.util.NameProviderSwitchModelSwitch.doSwitch(NameProviderSwitchModelSwitch.java:107)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.up.name.providerswitch.model.utils.GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.apply(GeneratedNameProviderSwitchModelMakeImportedGenPackageListSwitch.java:43)
	at de.mdsd.xtext.up.name.providerswitch.model.scoping.GeneratedNameProviderSwitchModelDelegateScopeProvider.scope_GrammarReference_baseModel(GeneratedNameProviderSwitchModelDelegateScopeProvider.java:67)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:296)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.polymorphicFindScopeForReferenceName(AbstractDeclarativeScopeProvider.java:152)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.getScope(AbstractDeclarativeScopeProvider.java:100)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getScope(DefaultLinkingService.java:59)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLinkingService.java:119)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:247)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:222)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:199)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:259)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:1477)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.impl.GrammarReferenceImpl.getBaseModel(GrammarReferenceImpl.java:130)
	at de.mdsd.xtext.up.name.providerswitch.model.nameProviderSwitchModel.impl.GrammarReferenceImpl.eGet(GrammarReferenceImpl.java:177)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:439)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(EcoreUtil.java:304)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:298)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:283)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseImport(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:125)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseImport(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:1)
	at de.mdsd.xtext.support.proposal.provider.proposalProvider.util.ProposalProviderSwitch.doSwitch(ProposalProviderSwitch.java:239)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseProposalProvider(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:101)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseProposalProvider(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:1)
	at de.mdsd.xtext.support.proposal.provider.proposalProvider.util.ProposalProviderSwitch.doSwitch(ProposalProviderSwitch.java:78)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseModelProposal(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:158)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.caseModelProposal(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:1)
	at de.mdsd.xtext.support.proposal.provider.proposalProvider.util.ProposalProviderSwitch.doSwitch(ProposalProviderSwitch.java:85)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
	at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
	at de.mdsd.xtext.support.proposal.provider.utils.GeneratedProposalProviderMakeImportedGenClassListSwitch.apply(GeneratedProposalProviderMakeImportedGenClassListSwitch.java:53)
	at de.mdsd.xtext.support.proposal.provider.scoping.GeneratedProposalProviderDelegateScopeProvider.scope_ModelProposal_modelClass(GeneratedProposalProviderDelegateScopeProvider.java:49)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:296)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.polymorphicFindScopeForReferenceName(AbstractDeclarativeScopeProvider.java:152)
	at org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.getScope(AbstractDeclarativeScopeProvider.java:100)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getScope(DefaultLinkingService.java:59)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLinkingService.java:119)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:247)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:222)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doResolveLazyCrossReference(LazyLinkingResource.java:189)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReference(LazyLinkingResource.java:148)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReferences(LazyLinkingResource.java:134)
	at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:498)
	at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:230)
	at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:116)
	at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:287)
	at org.eclipse.xtext.builder.impl.XtextBuilder.fullBuild(XtextBuilder.java:319)
	at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:155)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.xtext.resource.FileNotFoundOnClasspathException: Couldn't find resource on classpath. URI was 'classpath:/de/mdsd/xtext/support/utils/GenModel.npsm#|2'
	at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.findResourceOnClasspath(ClassloaderClasspathUriResolver.java:61)
	at org.eclipse.xtext.resource.ClassloaderClasspathUriResolver.resolve(ClassloaderClasspathUriResolver.java:46)
	... 146 more


What context infos do you need ?

The DSL plugin that runs the DSL file has dependencies to 'npsm' plugin and the plugin containing the DSL file has the same dependencies to the 'npsm' plugin.
It seems to be a classpath issue but I don't know witch plugins classpath is improper.

Thank you
Re: Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.np [message #1765863 is a reply to message #1765721] Wed, 14 June 2017 04:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
Since I have NO idea what you are doing inside your plugins I can only guess.

Can you give some hints on the structure of the plugins and the model projects

Where ever is the model file
Where is the file that cannot be found
How do the projects relate to each other?

Did you try to debug the place of the error?
What instance is the classloader of
If it is a bundle classloader which bundle is that?
....


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.np [message #1765864 is a reply to message #1765863] Wed, 14 June 2017 04:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
P.s. Eclipse sometimes does wired things so maybe it helps to delete the runtime workspace and recreate it.
And: if you introspective the classpath / library etc of the model project in package explorer can you see the file there?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Couldn't find resource on classpath. URI was 'classpath:/de.mdsd.xtext.support.utils/GenModel.np [message #1765916 is a reply to message #1765864] Wed, 14 June 2017 13:18 Go to previous message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
Thank you, this was the right answer. Recreating the runtime-workspace did the trick.
Previous Topic:Return to the line
Next Topic:Question concerning "IF", "ELSE IF", "ELSE" structures
Goto Forum:
  


Current Time: Mon Dec 09 10:22:05 GMT 2024

Powered by FUDForum. Page generated in 0.04425 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top