Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » getting resource malformed URL exception while loading the model(getting resource malformed URL exception while loading the model)
getting resource malformed URL exception while loading the model [message #1801541] Tue, 22 January 2019 06:55 Go to next message
Sharmila D is currently offline Sharmila DFriend
Messages: 81
Registered: June 2018

I have created an project with artop as model in backend.Iam not using editor plugin.Iam using my own editor.
Iam adding the resources to my Semantic model as like this

EcorePlatformUtil.saveNewModelResource(editingDomain, arxmlfile.getFullPath(), initialModelProperties.getMetaModelDescriptor().getDefaultContentTypeId(), global_rootObject,
false, new NullProgressMonitor());

If add the resource like this then in editor it is writing like the way I want.
eerything works fine upto now. Now I map reference of an element to other element if I close the eclipse and open Iam getting resource malformed exception:unknown protocal error.

please find the below stack trace.

!ENTRY 4 2 2019-01-22 12:25:06.605
!MESSAGE An internal error occurred during: "Loading models".
java.lang.RuntimeException: The modeling project "fr" is invalid: Problem during loading models: unknown protocol: ar
Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: unknown protocol: ar
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$ResourceLocator.demandLoadHelper(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$MappedResourceLocator.getResource(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(
at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxyInResourceSet(
at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxy(
at org.eclipse.sphinx.emf.ecore.ExtendedMinimalEObjectImpl.eResolveProxy(
at autosar40.swcomponent.composition.impl.SwComponentPrototypeImpl.getType(
at autosar40.swcomponent.composition.impl.SwComponentPrototypeImpl.eGet(
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(
at org.eclipse.sirius.ecore.extender.tool.internal.ReferencesResolver.resolveCrossReferences(
at org.eclipse.sirius.ecore.extender.tool.internal.ReferencesResolver.doResolveAll(
at org.eclipse.sirius.ecore.extender.tool.internal.ReferencesResolver.resolve(
at org.eclipse.sirius.ecore.extender.tool.api.ModelUtils.resolveAll(
... 2 more
Caused by: unknown protocol: ar
at<init>(Unknown Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at org.eclipse.emf.ecore.resource.impl.URIHandlerImpl.createInputStream(
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(
... 24 more

Please help me what Iam doing wrong
Re: getting resource malformed URL exception while loading the model [message #1801680 is a reply to message #1801541] Thu, 24 January 2019 16:37 Go to previous message
Julien Dupont is currently offline Julien DupontFriend
Messages: 172
Registered: July 2009
Senior Member
Hello Sharmila,

As explain the stack trace you have a problem in the URL built. More exactly there is a "fr" element in the URL of your semantic model and this element seems not to be defined in the metamodel.

Previous Topic:[ANN] Sirius 5.1.4
Next Topic:multiple diagram elements for the same domain class
Goto Forum:

Current Time: Sat Jan 23 06:02:02 GMT 2021

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

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

Back to the top