Skip to contentSkip to conversation

GNU Classpath and the XMPP Smack API

DISCUSSION Jan Pannecoeck 2 participants 3 messages Jan 29, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,

No clue where the fire this question, but since I'm using OE with GNU Classpath and JamVM 1.5 I thought I could ask my question here... Since finding a solution for my problem is quite hard. And maybe someone who is reading this mailinglist has had this problem before.

As the subject is already telling you, I'm stuck trying to get the Smack API working on my embedded device. The Smack library is written to communicate using XMPP. I know already that smack is developed to work under the Java Sun library, and that using GNU Classpath could cause problems. But since they have managed to get it working at Android, with the GNU Classpath, I think that it should be possible to run it also on an OpenEmbedded device.

I've got the latest version of the smack.jar that was patched for the Android, but that still isn't working. I have had a bunch of different errors like:

- OEFException during the SSLSocket doHandshake method.
- KeyStoreException: jks during an SALSAuthentication

And now I'm having a "No response from the server" exception during the NonSASLAuthentication.authenticate method.

I know this problem is quite big and my explanation is probably not that great neither, but still I hope that someone has done this before and succeeded in his mission. If someone could send me some more information about this, or a working smack.jar (if possible with source code) that would be great!!

All help is welcome ofcourse!

Thanks in advance,
Jan Pannecoeck

#1 lore raw

Hi,

Quoted 7 lines · Jan Pannecoeck

As the subject is already telling you, I'm stuck trying to get the Smack API working on my embedded device. The Smack library is written to communicate using XMPP. I know already that smack is developed to work under the Java Sun library, and that using GNU Classpath could cause problems. But since they have managed to get it working at Android, with the GNU Classpath, I think that it should be possible to run it also on an OpenEmbedded device.

Android is using Apache's JavaSE library called Harmony.

Quoted 6 lines

I've got the latest version of the smack.jar that was patched for the Android, but that still isn't working. I have had a bunch of different errors like:

- OEFException during the SSLSocket doHandshake method.
- KeyStoreException: jks during an SALSAuthentication

First of all, the "Java Keystore" (jks) format isn't supported by GNU Classpath.

Furthermore I know that SSL stuff often caused trouble but do not understand this enough to fix it on my own.

Quoted 7 lines

I know this problem is quite big and my explanation is probably not that great neither, but still I hope that someone has done this before and succeeded in his mission. If someone could send me some more information about this, or a working smack.jar (if possible with source code) that would be great!!

All help is welcome ofcourse!

If you are adventurous you might try the Cacao+OpenJDK solution for your device.
That would give you OpenJDK class library plus Cacao as the VM.

In order to build it you need to add the Jalimo SVN repo as an overlay to OE. Disable the strict md5sum checking for now, since the files mentioned in the overlay are not in OE's official checksum.ini .

Regards
Robert

#2 lore raw

Hi,

Thansk for the reply, I've tried OpenJDK and Cacao before, but that was a little bit to adventures for me... :-) Maybe I'll try again later, if there really isn't a solution to get Smack working with GNU Classpath. So I'll wait a few days to see if someone here knows some solution ... I hope someone does! :-)

Jan Pannecoeck

Quoted 59 lines · Robert Schuster

Hi,

Quoted 8 lines · Jan Pannecoeck

As the subject is already telling you, I'm stuck trying to get the Smack API working on my embedded device. The Smack library is written to communicate using XMPP. I know already that smack is developed to work under the Java Sun library, and that using GNU Classpath could cause problems. But since they have managed to get it working at Android, with the GNU Classpath, I think that it should be possible to run it also on an OpenEmbedded device.

Android is using Apache's JavaSE library called Harmony.

Quoted 7 lines

I've got the latest version of the smack.jar that was patched for the Android, but that still isn't working. I have had a bunch of different errors like:

- OEFException during the SSLSocket doHandshake method.
- KeyStoreException: jks during an SALSAuthentication

First of all, the "Java Keystore" (jks) format isn't supported by GNU Classpath.

Furthermore I know that SSL stuff often caused trouble but do not understand this enough to fix it on my own.

Quoted 8 lines

I know this problem is quite big and my explanation is probably not that great neither, but still I hope that someone has done this before and succeeded in his mission. If someone could send me some more information about this, or a working smack.jar (if possible with source code) that would be great!!

All help is welcome ofcourse!

If you are adventurous you might try the Cacao+OpenJDK solution for your device.
That would give you OpenJDK class library plus Cacao as the VM.

In order to build it you need to add the Jalimo SVN repo as an overlay to OE. Disable the strict md5sum checking for now, since the files mentioned in the overlay are not in OE's official checksum.ini .

Regards
Robert

------------------------------------------------------------------------

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel