• JavaHandler is not working in Frames

    By Shashikumar V 8 years ago

    I am using openntf domino api version-2 graph api to develop xpages application. Issue is with javahandler, since gremlin groovy is not supported yet, i have to use javahandlers in frames.

    Following is the sample code which defines the framed entity 'ConferenceSession' in which javahandler is implemented using abstract class 'Impl'.

    @TypeValue(“ConferenceSession”)
    @JavaHandlerClass(ConferenceSession.Impl.class)
    public interface ConferenceSession extends DVertexFrame
    {

    @Property("title")
    public String getTitle();
    
    @Property("title")
    public void setTitle(String title);
    
    @AdjacencyUnique(label = "attends", direction = Direction.IN)
    public Iterable<Attendee> getAttendees();
    
    @AdjacencyUnique(label = "attends", direction = Direction.IN)
    public Attendee addAttendee(Attendee attendee);
    
    @AdjacencyUnique(label = "attends", direction = Direction.IN)
    public void removeAttendee(Attendee attendee);
    
    @JavaHandler
    public long getAttendeesCount();
    
    public abstract class Impl implements ConferenceSession,JavaHandlerContext<Vertex> 
    {
        public long getAttendeesCount() 
        {
            long ret = gremlin().in("attends").count();
            return ret;
        }
    }
    

    }

    when the method 'getAttendeesCount' is invoked using framed conferencesession object, it throws the following exception:

    com.google.common.util.concurrent.UncheckedExecutionException:
    java.lang.RuntimeException:by java.lang.NoClassDefFoundError: javassist.util.proxy.ProxyObject

    It behaves the same when one of the javahandlers(asDocument(), asMap(), getEditors()) of DVertexFrame is called.

    Is Javahandler supported in this version ?. if yes, can anybody help me on this.

    Thanks & Regards
    Shashikumar V