Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFForms][RAP] No render found
[EMFForms][RAP] No render found [message #1274509] Fri, 21 March 2014 15:23 Go to next message
Phil Wim is currently offline Phil Wim
Messages: 48
Registered: October 2013
Member
Hi there,

i try to use EMFForms in my RAP app. I created a "task" object of example model makeithappen. Than I'm passing the object to
ECPSWTViewRenderer.INSTANCE.render

When I open the view I get a NoRendererFoundException.

org.eclipse.emf.ecp.view.spi.renderer.: No renderer for View found.
	at org.eclipse.emf.ecp.view.spi.swt.SWTRendererFactory.render(SWTRendererFactory.java:110)
	at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:66)
	at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:56)
	at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:44)


Any ideas?
Re: [EMFForms][RAP] No render found [message #1274528 is a reply to message #1274509] Fri, 21 March 2014 15:46 Go to previous messageGo to next message
Phil Wim is currently offline Phil Wim
Messages: 48
Registered: October 2013
Member
Now i played with my included bundles. I added all bundles with no validation issues to my launch conf. Now i receive: java.lang.NullPointerException: A null service reference is not allowed.

I'm kind of lost in all these bundles. What bundles do I need to run EMFForms in my RAP app? Is EMFForms working with RAP at all?
Re: [EMFForms][RAP] No render found [message #1274535 is a reply to message #1274528] Fri, 21 March 2014 15:57 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen Neufeld
Messages: 52
Registered: March 2012
Member
Hi Phil,
yes EMFForms is working on RAP.
Which version of ECP are you using?
Can you paste your exception here?

Cheers,
Eugen
Re: [EMFForms][RAP] No render found [message #1275719 is a reply to message #1274535] Sun, 23 March 2014 14:04 Go to previous messageGo to next message
Phil Wim is currently offline Phil Wim
Messages: 48
Registered: October 2013
Member
Hi Eugen,

thanks for your quick answer. I'm using ecp 1.2.1. Now I try it by feature selection. Can you tell me which features I need for rap approach?

Thanks in advance
Philippe
Re: [EMFForms][RAP] No render found [message #1276316 is a reply to message #1275719] Mon, 24 March 2014 11:36 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen Neufeld
Messages: 52
Registered: March 2012
Member
Hi Phil,
you most probably checked out the ECP source code. Thus there should be a project called org.eclipse.emf.ecp.releng . In this project there should be a file called ecpDevelopmentDemo.launch . You can use this to launch a RAP application.

If you want to try to setup an own launch config based on features, I would start by selecting the org.eclipse.rap.equinox.target.feature and the org.eclipse.emf.ecp.rap.feature and org.eclipse.emf.ecp.rap.util.feature. After that press "Select Required". You most probably will also need the org.eclipse.emf.edit feature.

Nevertheless I would suggest to using the pre-configured launch config.

Cheers,
Eugen
Re: [EMFForms][RAP] No render found [message #1276949 is a reply to message #1275719] Tue, 25 March 2014 08:57 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas Helming
Messages: 454
Registered: July 2009
Senior Member
Hi Phil,

do you only use EMF Forms, or also ECP?

Regards

Jonas

Am 23.03.2014 15:04, schrieb Phil Wim:
> Hi Eugen,
>
> thanks for your quick answer. I'm using ecp 1.2.1. Now I try it by
> feature selection. Can you tell me which features I need for rap approach?
> Thanks in advance
> Philippe
>
Re: [EMFForms][RAP] No render found [message #1277040 is a reply to message #1276316] Tue, 25 March 2014 11:56 Go to previous messageGo to next message
Phil Wim is currently offline Phil Wim
Messages: 48
Registered: October 2013
Member
Hi Eugen,

i finally got it working. Thanks for the starting point.

Cheers Philippe
Re: [EMFForms][RAP] No render found [message #1405465 is a reply to message #1277040] Thu, 07 August 2014 12:22 Go to previous messageGo to next message
akgun demirbas is currently offline akgun demirbas
Messages: 7
Registered: October 2013
Location: izmir
Junior Member
Hi, I've used ecpDevelopmentDemo.launch. On the launch config 'Bundles' tab I've added my EMF plugins (model and edit). Also I've added org.eclipse.emf.ecp.ui.view.swt plugin.
But I got following exception.
Any idea?
Thanks.

2014-08-07 15:08:24.902:WARN:oejs.ServletHandler:ERROR:  /hello
java.lang.NullPointerException
	at org.eclipse.emf.ecp.view.spi.model.util.ViewModelUtil.resolveDomainReferences(ViewModelUtil.java:46)
	at org.eclipse.emf.ecp.view.internal.context.ViewModelContextImpl.instantiate(ViewModelContextImpl.java:152)
	at org.eclipse.emf.ecp.view.internal.context.ViewModelContextImpl.<init>(ViewModelContextImpl.java:125)
	at org.eclipse.emf.ecp.view.spi.context.ViewModelContextFactory.createViewModelContext(ViewModelContextFactory.java:42)
	at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:56)
	at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:45)
	at org.example.rap.helloworld.BasicEntryPoint.createContents(BasicEntryPoint.java:26)
	at org.eclipse.rap.rwt.application.AbstractEntryPoint.createUI(AbstractEntryPoint.java:53)
	at org.eclipse.rap.rwt.internal.lifecycle.PrepareUIRoot.execute(PrepareUIRoot.java:40)
	at org.eclipse.rap.rwt.internal.lifecycle.PhaseExecutor.execute(PhaseExecutor.java:40)
	at org.eclipse.rap.rwt.internal.lifecycle.SimpleLifeCycle.execute(SimpleLifeCycle.java:48)
	at org.eclipse.rap.rwt.internal.service.RWTMessageHandler.executeLifeCycle(RWTMessageHandler.java:57)
	at org.eclipse.rap.rwt.internal.service.RWTMessageHandler.handleMessage(RWTMessageHandler.java:41)
	at org.eclipse.rap.rwt.internal.remote.MessageChainElement.handleMessage(MessageChainElement.java:28)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.processMessage(LifeCycleServiceHandler.java:175)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.processUIRequest(LifeCycleServiceHandler.java:147)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.handleUIRequest(LifeCycleServiceHandler.java:105)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.synchronizedService(LifeCycleServiceHandler.java:83)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.service(LifeCycleServiceHandler.java:75)
	at org.eclipse.rap.rwt.engine.RWTServlet.handleValidRequest(RWTServlet.java:126)
	at org.eclipse.rap.rwt.engine.RWTServlet.handleRequest(RWTServlet.java:110)
	at org.eclipse.rap.rwt.engine.RWTServlet.doPost(RWTServlet.java:100)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.rap.rwt.osgi.internal.CutOffContextPathWrapper.service(CutOffContextPathWrapper.java:106)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:370)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Unknown Source)
Re: [EMFForms][RAP] No render found [message #1405819 is a reply to message #1405465] Fri, 08 August 2014 08:51 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen Neufeld
Messages: 52
Registered: March 2012
Member
Hi,
you are probably missing the org.eclipse.emf.ecp.view.model.provider.generator and org.eclipse.emf.ecp.view.model.provider.xmi bundles.
I will check the launch config why it is missing those.

Cheers,
Eugen
Re: [EMFForms][RAP] No render found [message #1407245 is a reply to message #1405819] Tue, 12 August 2014 07:19 Go to previous messageGo to next message
akgun demirbas is currently offline akgun demirbas
Messages: 7
Registered: October 2013
Location: izmir
Junior Member
I've added them to launch config. But this time I got different error.
Thanks.

2014-08-12 10:16:17.654:WARN:oejs.ServletHandler:ERROR:  /hello
java.lang.NullPointerException
	at org.eclipse.emf.ecp.view.internal.swt.SWTRendererFactoryImpl.getRenderer(SWTRendererFactoryImpl.java:217)
	at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:70)
	at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:58)
	at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:45)
	at org.example.rap.helloworld.BasicEntryPoint.createContents(BasicEntryPoint.java:26)
	at org.eclipse.rap.rwt.application.AbstractEntryPoint.createUI(AbstractEntryPoint.java:53)
	at org.eclipse.rap.rwt.internal.lifecycle.PrepareUIRoot.execute(PrepareUIRoot.java:40)
	at org.eclipse.rap.rwt.internal.lifecycle.PhaseExecutor.execute(PhaseExecutor.java:40)
	at org.eclipse.rap.rwt.internal.lifecycle.SimpleLifeCycle.execute(SimpleLifeCycle.java:48)
	at org.eclipse.rap.rwt.internal.service.RWTMessageHandler.executeLifeCycle(RWTMessageHandler.java:57)
	at org.eclipse.rap.rwt.internal.service.RWTMessageHandler.handleMessage(RWTMessageHandler.java:41)
	at org.eclipse.rap.rwt.internal.remote.MessageChainElement.handleMessage(MessageChainElement.java:28)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.processMessage(LifeCycleServiceHandler.java:175)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.processUIRequest(LifeCycleServiceHandler.java:147)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.handleUIRequest(LifeCycleServiceHandler.java:105)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.synchronizedService(LifeCycleServiceHandler.java:83)
	at org.eclipse.rap.rwt.internal.service.LifeCycleServiceHandler.service(LifeCycleServiceHandler.java:75)
	at org.eclipse.rap.rwt.engine.RWTServlet.handleValidRequest(RWTServlet.java:126)
	at org.eclipse.rap.rwt.engine.RWTServlet.handleRequest(RWTServlet.java:110)
	at org.eclipse.rap.rwt.engine.RWTServlet.doPost(RWTServlet.java:100)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.rap.rwt.osgi.internal.CutOffContextPathWrapper.service(CutOffContextPathWrapper.java:106)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:370)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Unknown Source)
Re: [EMFForms][RAP] No render found [message #1408387 is a reply to message #1407245] Thu, 14 August 2014 23:56 Go to previous message
Eugen Neufeld is currently offline Eugen Neufeld
Messages: 52
Registered: March 2012
Member
Hi,
you seam to be missing a renderer. Please check in you launch configuration if you added a *.swt bundle whenever you have selected a model bundle, e.g. if you selected the org.eclipse.emf.ecp.view.vertical.model bundle you must also add the org.eclipse.emf.ecp.view.vertical.swt bundle to your launch configuration.

--
Eugen Neufeld

Get Professional Eclipse Support: http://eclipsesource.com/munich
Previous Topic:EMF EObject with JPA
Next Topic:[EMF FORMS] Date control
Goto Forum:
  


Current Time: Thu Oct 23 06:00:47 GMT 2014

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

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