RAD Chat Room Verify Error: ChatRoomView overrides final method AbstractEntityView.bind

23 views
Skip to first unread message

David Wafula

unread,
Jan 15, 2021, 3:05:00 PM1/15/21
to CodenameOne Discussions
Hi,

Am trying to integrate the RAD Chatroom in my existing (Non-MVC) application. However, I get this error when I try to run the code below :


java.lang.VerifyError: class com.codename1.rad.ui.chatroom.ChatRoomView overrides final method com.codename1.rad.ui.AbstractEntityView.bind()V
at java.base/java.lang.ClassLoader.defineClass1(Native Method)

My code:


public class RChatRoom extends Form {

    public RChatRoom() {
        setLayout(new BorderLayout());
       
        ChatRoomView.ViewModel room = new ChatRoomView.ViewModel();

        ChatBubbleView.ViewModel message = new ChatBubbleView.ViewModel();
        message.messageText("Hello World");
        room.addMessages(message);

        ChatRoomView view = new ChatRoomView(room, this);
        add(BorderLayout.CENTER, view);
    }
}


I am using Oracle JDK12 on Netbeans 12.2

What could be the issue ?

Thanks
--
/dww

David Wafula

unread,
Jan 15, 2021, 4:11:05 PM1/15/21
to CodenameOne Discussions
Ok I got this to work. Manually replacing the cnlibs downloaded via the Plugin with these https://github.com/shannah/RADChatRoom/tree/master/bin did it.
It looks like the CN1plugin  is still using 'older' versions?

/dww
--
David W

Shai Almog

unread,
Jan 16, 2021, 1:38:59 AM1/16/21
to CodenameOne Discussions
Thanks, we'll check.

Steve Hannah

unread,
Jan 18, 2021, 7:35:02 AM1/18/21
to codenameone...@googlegroups.com
Thanks for reporting this.  I've updated the RADChatRoom library in CodenameOneLibs so it should be available in the control center soon.

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/37f1385c-88c6-4faf-9627-ce4387445c4fn%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages