org.apache.ignite.IgniteException

classic Classic list List threaded Threaded
2 messages Options
rajeshrai248 rajeshrai248
Reply | Threaded
Open this post in threaded view
|

org.apache.ignite.IgniteException

This post has NOT been accepted by the mailing list yet.
I have created Ignite service which implements both Service and a dummy Test interface. I am trying to invoke Test interface method through below code
IgniteServiceTestInterface cntrSvc = ignite.services().
                serviceProxy("IgniteServiceTestInterface", IgniteServiceTestInterface.class, *//*not-sticky*//*false);
        System.out.println(cntrSvc.invokeNext(1));

method is already implemented in Service and returns next counter whenever gets invoked. But instead I am getting an error as below
Exception in thread "main" class org.apache.ignite.IgniteException: Failed to find deployed service: IgniteServiceTestInterface
        at org.apache.ignite.internal.processors.service.GridServiceProxy$ProxyInvocationHandler.invoke(GridServiceProxy.java:167)
        at com.sun.proxy.$Proxy30.invokeNext(Unknown Source)
        at IgniteClient.main(IgniteClient.java:15)
        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:497)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

Could anyone tell me what I am missing here
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: org.apache.ignite.IgniteException

Hi Rajesh,

Can you please properly subscribe to the mailing list so that the community receives email notifications? Here is the instruction: http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1

rajeshrai248 wrote
I have created Ignite service which implements both Service and a dummy Test interface. I am trying to invoke Test interface method through below code
IgniteServiceTestInterface cntrSvc = ignite.services().
                serviceProxy("IgniteServiceTestInterface", IgniteServiceTestInterface.class, *//*not-sticky*//*false);
        System.out.println(cntrSvc.invokeNext(1));

method is already implemented in Service and returns next counter whenever gets invoked. But instead I am getting an error as below
Exception in thread "main" class org.apache.ignite.IgniteException: Failed to find deployed service: IgniteServiceTestInterface
        at org.apache.ignite.internal.processors.service.GridServiceProxy$ProxyInvocationHandler.invoke(GridServiceProxy.java:167)
        at com.sun.proxy.$Proxy30.invokeNext(Unknown Source)
        at IgniteClient.main(IgniteClient.java:15)
        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:497)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

Could anyone tell me what I am missing here
Most likely your service was not properly deployed. Can you show the code that does this?

-Val