Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Problems when Running CoAP monitor within a plug-in application
Problems when Running CoAP monitor within a plug-in application [message #1742303] Thu, 01 September 2016 13:57 Go to next message
Trung Luu is currently offline Trung LuuFriend
Messages: 32
Registered: June 2016
Member
Hi all,
I'm trying the scenario with subscribe/notify in OM2M by using CoAP. I used the code below in the Monitor class of Actuator:
public void CoAPlistenter(){
System.out.println("Starting server...");
try
{
CoAPMonitor server = new CoAPMonitor();

server.addEndpoints();

server.start();
}
catch (SocketException e)
{
System.err.println("Failed to initialize server: " + e.getMessage());
return;
}
System.out.println("The server is listening on /monitor");
}
However, when I running the application, the NoClassDefFoundError appeard:
index.php/fa/26952/0/

Can Anyone know how to fix this problem? Thanks in advanced!

Regards,
Trung
Re: Problems when Running CoAP monitor within a plug-in application [message #1742564 is a reply to message #1742303] Mon, 05 September 2016 08:43 Go to previous message
Francois AissaouiFriend
Messages: 38
Registered: April 2015
Member
Hi Trung,

It seems the class is not present in the current classloader of your bundle.
Try to import the package from the OSGi environment using import package attribute in the MANIFEST.MF file (if Californium is present as a bundle or exported by another plugin).

Otherwise, you can directly include the Californium library following this tutorial in your bundle.

Hope this can help.

Regards,
François
Previous Topic:How to connect in-cse and mn-cse which located in different network
Next Topic:How to start the plugin automatically?
Goto Forum:
  


Current Time: Thu Apr 18 22:53:06 GMT 2024

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

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

Back to the top