Closed James-Guo closed 6 years ago
Hello James, I have not experienced that issue. It looks like an invalid configuration? Have you changed something? Have you checked that the parameters are correct?
Anyway I was reading about your exception: https://stackoverflow.com/questions/1980452/what-causes-java-lang-incompatibleclasschangeerror
Check it out and let me know. Greetings!
Hi Carlos,
Thanks for the quick response. I'm not too sure if it's an invalid configuration. The only thing I've changed would have been in the EntryPoint class from using the args to just hard coding the values for testing
public static void main(String[] args) throws SmackException, IOException {
// final String fcmProjectSenderId = args[0];
// final String fcmServerKey = args[1];
// final String toRegId = args[2];
final String fcmProjectSenderId = "XXXXXXXX";
final String fcmServerKey = "XXXXXXXX";
final String toRegId = "XXXXXXXX";
}
I'm quite new to Java so I'm not too certain on importing libraries and I was thinking it was potentially a problem with using multiple versions of a specific class within the libraries that I have imported. A similar problem is shown here. https://stackoverflow.com/questions/16209623/incompatibleclasschangeerror-class-classmetadatareadingvisitor-has-interface-cl
These are the libraries that I'm using: screenshot
Am I missing anything or have I made an importing overlap perhaps?
Thank you once again
I'm using eclipse and I've been looking into maven at the moment
Solved the issue. It was just a problem with how I was importing the project.
Another quick question. Would this server be able to receive XMPP messages from external sources i.e, not through Firebase?
To provide some context. I'm looking to create a web application that would be able to communicate with this Java server and the Java server can communicate with the Android devices.
Hello James. That's good you solved the problem. About your question. I guess yes because Smack let you do that and the app was built on top of the Smack library (ccs client server).
I'm having difficulty attempting to add the GcmPacketExtension where I'm encountering this exception:
It's occurring here: