Thanks, now I'm stuck again.
I get mail from our portal server, then I pass it to konakart if email and password match, then I check for EmailExisting, if not then i create a user other else I return logonAttempts.
The problem becomes when I check for email existing, the executions stops and the debugs returns a null pointer error. In order to create an account I put :
import com.konakart.app.CustomerRegistration;
import com.konakart.appif.CustomerRegistrationIf;
import com.konakart.appif.KKEngIf;
and for initilization I copied it from BasicApiExample:
static protected void init() throws ClassNotFoundException, InstantiationException,
IllegalAccessException, KKException
{
/*
* Instantiate a KonaKart Engine instance
*/
Class engineClass = Class.forName("com.konakart.app.KKEng");
eng = (KKEngIf) engineClass.newInstance();
/*
* Login with default credentials
*/
sessionId = eng.login(DEFAULT_USERNAME, DEFAULT_PASSWORD);
}
I'm not sure if this init() it's called or if this overrides the LoginMgr, or if I'm mistaken, and don't see the error.
Thanks in advance again.