Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Getting an exception while loading a model
icon5.gif  Getting an exception while loading a model [message #1078261] Fri, 02 August 2013 15:16
eshal shah is currently offline eshal shah
Messages: 1
Registered: August 2013
Junior Member


Hi all,

i am trying to load an Ecore model using kermeta code but getting the exception given below.

"Underlying java exception cause : java.net.MalformedURLException: unknown protocol: platfrom"


my code is here...

require kermeta
require "http://www.eclipse.org/emf/2002/Ecore"

sing ecore
using kermeta::ecore
using kermeta::persistence
using kermeta::standard
using kermeta::language::structure

class Main
{

operation main() : Void is do
//creating package
var package0:ecore::EPackage init ecore::EPackage.new
//creating repository
var rep:EMFRepository init EMFRepository.new
//creating resource
var res:EMFResource
res?=rep.createResource("platform:/resource/TransCos/model/umlpackage", "platfrom:/resource/TransCos/metamodel/ecore.ecore")
//model

res.load()

package0?=res.one

end
}

kindly help me out....
Previous Topic:Ecore Model Does Does Not Create
Next Topic:"Ecore Tools" called "Ecore Diagram Editor" since Eclipse Kepler / 4.3?
Goto Forum:
  


Current Time: Sat Jul 26 13:23:22 EDT 2014

Powered by FUDForum. Page generated in 0.02619 seconds