Adding own service to OMERO (second test)
Posted: Fri Mar 18, 2016 1:17 pm
Hi OMERO team,
As I described in Post Adding own service to OMERO I try to add an own service to OMERO. With the help of atarkowska I’m able to call the implemented service and methods from the omero shell. Now I want to use the service from a java client.
For this I expand the gateway by the method:
At the client I’m able to get the service proxy without problems. But when I call the method ‘getPlasmid(long id)’ which is provided by the proxy I got the following exception:
It seems that I have to update parts of the ICE implementation or configuration at the Omero server.
The question is: Where and How?
Does anyone know how to do that?
Thanks,
Daniel
As I described in Post Adding own service to OMERO I try to add an own service to OMERO. With the help of atarkowska I’m able to call the implemented service and methods from the omero shell. Now I want to use the service from a java client.
For this I expand the gateway by the method:
- Code: Select all
IReceptorLightServicePrx getReceptorLightService(SecurityContext ctx)
At the client I’m able to get the service proxy without problems. But when I call the method ‘getPlasmid(long id)’ which is provided by the proxy I got the following exception:
- Code: Select all
Ice.OperationNotExistException
id.name = "0652e4ea-498a-4978-b7c0-3d2d37f86ca4omero.api.Search"
id.category = "c4207288-3bbd-4389-a369-583226eabc64"
facet = ""
operation = "getPlasmid"
at IceInternal.Outgoing.invoke(Outgoing.java:158)
at omero.api._IReceptorLightServiceDelM.getPlasmid(_IReceptorLightServiceDelM.java:43)
at omero.api.IReceptorLightServicePrxHelper.getPlasmid(IReceptorLightServicePrxHelper.java:58)
at omero.api.IReceptorLightServicePrxHelper.getPlasmid(IReceptorLightServicePrxHelper.java:30)
at OmeroAL.Client.Client.<init>(Client.java:96)
at OmeroAL.API.Connection.Connect(Connection.java:40)
at OmeroALTest.Controller.<init>(Controller.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at sun.reflect.misc.ReflectUtil.newInstance(ReflectUtil.java:51)
at javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:927)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.processAttribute(FXMLLoader.java:971)
at javafx.fxml.FXMLLoader$Element.processStartElement(FXMLLoader.java:220)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:744)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2707)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2527)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
at OmeroALTest.OalTest.start(OalTest.java:18)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
It seems that I have to update parts of the ICE implementation or configuration at the Omero server.
The question is: Where and How?
Does anyone know how to do that?
Thanks,
Daniel