You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Annapoorna Shanmugam <sh...@gmail.com> on 2014/02/12 11:33:47 UTC

Apache Directory Ldap

Is Apache Directory Ldap api applicable to android applications that
connect and search ldap server? I tried to use apache ldap api in an
android app, and I got NoClassDefFound error for LdapNetworkConnection and
some errors like :

02-12 05:26:37.010: E/AndroidRuntime(1257):
java.lang.IllegalStateException: Could not execute method of the activity
02-12 05:26:37.010: E/AndroidRuntime(1257): at
android.view.View$1.onClick(View.java:3814)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
android.view.View.performClick(View.java:4424)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
android.view.View$PerformClick.run(View.java:18383)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
android.os.Handler.handleCallback(Handler.java:733)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
android.os.Handler.dispatchMessage(Handler.java:95)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
android.os.Looper.loop(Looper.java:137)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
android.app.ActivityThread.main(ActivityThread.java:4998)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
java.lang.reflect.Method.invokeNative(Native Method)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
java.lang.reflect.Method.invoke(Method.java:515)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
dalvik.system.NativeStart.main(Native Method)
02-12 05:26:37.010: E/AndroidRuntime(1257): Caused by:
java.lang.reflect.InvocationTargetException
02-12 05:26:37.010: E/AndroidRuntime(1257): at
java.lang.reflect.Method.invokeNative(Native Method)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
java.lang.reflect.Method.invoke(Method.java:515)
02-12 05:26:37.010: E/AndroidRuntime(1257): at
android.view.View$1.onClick(View.java:3809)
02-12 05:26:37.010: E/AndroidRuntime(1257): ... 11 more
02-12 05:26:37.010: E/AndroidRuntime(1257): Caused by:
java.lang.NoClassDefFoundError:
org.apache.directory.ldap.client.api.LdapNetworkConnection
02-12 05:26:37.010: E/AndroidRuntime(1257): at
com.example.apachetest.MainActivity.show(MainActivity.java:38)
02-12 05:26:37.010: E/AndroidRuntime(1257): ... 14 more
Thanks,
Annapoorna

Re: Apache Directory Ldap

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 2/12/14 11:33 AM, Annapoorna Shanmugam a écrit :
> Is Apache Directory Ldap api applicable to android applications that
> connect and search ldap server? I tried to use apache ldap api in an
> android app, and I got NoClassDefFound error for LdapNetworkConnection and
> some errors like :

Are you sure you have linked all the needed jars ?


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com