Project

General

Profile

Encounter Problem Using Tigase on Android.

daniel wang
Added over 3 years ago

Hi,

Thanks for your Tigase Project.

To have a Greater Concurrency for push Message server(clients are android & Ios). we are evaluating tigase server.

As a new one to test on client, I encountered some problems .

  1. The version is not inconsistent between “jaxmpp-j2se” and "tigase-xmltools". for details please check the attachment.

At line 50 in J2seElement.java file. the last version of tigase-xmltools need a 'String' parameter, but give a String array as a parameter.

  1. I find “jaxmpp-j2se” dependents on 'javax.naming' which is nonexistent in android.jar. so it shows:

"Could not find class 'javax.naming.directory.InitialDirContext', referenced from method tigase.jaxmpp.j2se.DNSResolver.resolve".

But When i put "jndi.jar" in libs folder, encountered error :

Dx 1 error; aborting

Conversion to Dalvik format failed with error 1

I want to know, Is it the last version on Git. If not Could you give me a link for the last version.

It's better If you have more document or sample for android(eclipse project is very very good) & java program.

Thank you very much.


Replies (1)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

daniel wang wrote:

  1. The version is not inconsistent between “jaxmpp-j2se” and "tigase-xmltools". for details please check the attachment.

At line 50 in J2seElement.java file. the last version of tigase-xmltools need a 'String' parameter, but give a String array as a parameter.

Please use appropriate versions declared in @pom.xml@.

  1. I find “jaxmpp-j2se” dependents on 'javax.naming' which is nonexistent in android.jar. so it shows:

"Could not find class 'javax.naming.directory.InitialDirContext', referenced from method tigase.jaxmpp.j2se.DNSResolver.resolve".

But When i put "jndi.jar" in libs folder, encountered error :

You need to place in user's SessionObject appropriate DnsResolver implementation:

        UniversalFactory.setSpi(DnsResolver.class.getName(), new FactorySpi<DnsResolver>() {

            @Override
            public DnsResolver create() {
                // TODO Auto-generated method stub
                return null;
            }
        });

    (1-1/1)