Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Client Notifications Tutorial( Registry does not contain a service of type tut......services.process.INotificationProcessService)
Client Notifications Tutorial [message #1468076] Mon, 10 November 2014 14:56 Go to next message
kike Diaz is currently offline kike DiazFriend
Messages: 10
Registered: November 2014
Junior Member
Hi, I tried to follow the tutorial "Client Notifications" but i am getting an error when I try to trigger a client notification using the following line.

SERVICES.getService(INotificationService.class).sendMessageNotification();

I´m using Scout-Luna 4.4.1 and JDK7

This is the error:

registry does not contain a service of type tut.wizard.shared.services.process.INotificationProcessService

And here is the full trace:

!ENTRY org.eclipse.scout.rt.server 4 0 2014-11-10 15:23:33.892
!MESSAGE org.eclipse.scout.rt.server.DefaultTransactionDelegate.invoke(DefaultTransactionDelegate.java:115) invoking tut.wizard.shared.services.process.INotificationProcessService:sendMessageNotification
service registry does not contain a service of type tut.wizard.shared.services.process.INotificationProcessService
!STACK 0
java.lang.SecurityException: service registry does not contain a service of type tut.wizard.shared.services.process.INotificationProcessService
at org.eclipse.scout.rt.server.DefaultTransactionDelegate.invokeImpl(DefaultTransactionDelegate.java:194)
at org.eclipse.scout.rt.server.DefaultTransactionDelegate.invoke(DefaultTransactionDelegate.java:95)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.runServerJobTransactionWithDelegate(ServiceTunnelServlet.java:426)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.runServerJobTransaction(ServiceTunnelServlet.java:422)
at org.eclipse.scout.rt.server.ServiceTunnelServlet$RemoteServiceJob.runTransaction(ServiceTunnelServlet.java:450)
at org.eclipse.scout.rt.server.ServerJob.runTransactionWrapper(ServerJob.java:221)
at org.eclipse.scout.rt.server.ServerJob.access$0(ServerJob.java:205)
at org.eclipse.scout.rt.server.ServerJob$1.run(ServerJob.java:177)
at org.eclipse.scout.rt.server.ServerJob$1.run(ServerJob.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.eclipse.scout.rt.server.ServerJob.run(ServerJob.java:172)
at org.eclipse.scout.commons.job.JobEx.runNow(JobEx.java:51)
at org.eclipse.scout.rt.server.ServerJob.runNow(ServerJob.java:164)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.doPost(ServiceTunnelServlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.scout.rt.server.commons.servletfilter.HttpServletEx.access$0(HttpServletEx.java:1)
at org.eclipse.scout.rt.server.commons.servletfilter.HttpServletEx$1.service(HttpServletEx.java:38)
at org.eclipse.scout.rt.server.commons.internal.FilterChainImpl.doFilter(FilterChainImpl.java:44)
at org.eclipse.scout.rt.server.SoapWsseJaasFilter$2.run(SoapWsseJaasFilter.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.eclipse.scout.rt.server.SoapWsseJaasFilter.continueChainWithPrincipal(SoapWsseJaasFilter.java:151)
at org.eclipse.scout.rt.server.SoapWsseJaasFilter.doFilter(SoapWsseJaasFilter.java:146)
at org.eclipse.scout.rt.server.commons.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.rt.server.commons.servletfilter.ServletFilterDelegate.delegateServiceMethod(ServletFilterDelegate.java:60)
at org.eclipse.scout.rt.server.commons.servletfilter.HttpServletEx.service(HttpServletEx.java:35)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
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:240)
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(Thread.java:745)


Any help would be very appreciated, thanks in advance. Smile

Re: Client Notifications Tutorial [message #1469307 is a reply to message #1468076] Tue, 11 November 2014 13:35 Go to previous messageGo to next message
Matthias Zimmermann is currently offline Matthias ZimmermannFriend
Messages: 208
Registered: June 2015
Senior Member
i'm assuming that you are talking about this Scout client notification How-To [1].
from your error message i further assume that you somehow missed the proxy service registration on the client side. to verify you can compare your plugin.xml of the client plugin with the one we have for the bahbah chat application demo on github [2]

let me know if this helps
matthias

ps. please use the scout forum [3] in the future if you have questions related to the eclipse scout framework

[1] https://wiki.eclipse.org/Scout/HowTo/4.0/Client_notifications
[2] https://github.com/BSI-Business-Systems-Integration-AG/org.eclipsescout.demo/blob/4.1/bahbah/org.eclipsescout.demo.bahbah.client/plugin.xml
[3] https://www.eclipse.org/forums/index.php?t=thread&frm_id=174
Re: Client Notifications Tutorial [message #1471572 is a reply to message #1469307] Thu, 13 November 2014 07:16 Go to previous message
kike Diaz is currently offline kike DiazFriend
Messages: 10
Registered: November 2014
Junior Member
Thanks for the help, I really appreciate it, but I think the problem is not the client´s plugin since this is the code in my .xml:

<?xml version="1.0" encoding="UTF-8"?>
<plugin>

<extension
name=""
point="org.eclipse.scout.service.services">
<proxy
factory="org.eclipse.scout.rt.client.services.ClientProxyServiceFactory"
class="tut.wizard.shared.services.IStandardOutlineService">
</proxy>
<proxy
factory="org.eclipse.scout.rt.client.services.ClientProxyServiceFactory"
class="tut.wizard.shared.IFirstService">
</proxy>
<proxy
factory="org.eclipse.scout.rt.client.services.ClientProxyServiceFactory"
class="tut.wizard.shared.ISecondService">
</proxy>
<proxy
factory="org.eclipse.scout.rt.client.services.ClientProxyServiceFactory"
class="tut.wizard.shared.IThirdService">
</proxy>

<!-- Add the service for the notification consumer service and the
proxy for the NotificationProcessService interface -->

<proxy
factory="org.eclipse.scout.rt.client.services.ClientProxyServiceFactory"
class="tut.wizard.shared.services.process.INotificationProcessService">
</proxy>

<service
factory="org.eclipse.scout.rt.client.services.ClientServiceFactory"
class="tut.wizard.client.services.MyNotificationConsumerService"
session="tut.wizard.client.ClientSession">
</service>


</plugin>

I will ask in the Scout forum from now on, thanks.



[Updated on: Thu, 13 November 2014 07:30]

Report message to a moderator

Previous Topic:Eclipse on WP
Next Topic:History Tab appears, but no history
Goto Forum:
  


Current Time: Fri Apr 26 23:05:20 GMT 2024

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

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

Back to the top