Foros de discusión

заведение юзера на портале

zoon oon, modificado hace 7 años.

заведение юзера на портале

Junior Member Mensajes: 48 Fecha de incorporación: 19/09/14 Mensajes recientes
приветствую!

пытаюсь завести юзера на портале

user = UserLocalServiceUtil.addUser(defaultUserId, company.getCompanyId(),
                            true, null, null, 
                            true, screenName, 
                            email, phone, 0,
                            StringPool.BLANK, LocaleUtil.getDefault(), 
                            first, null, last, 0, 0, true, 0, 1, 1970, null, null, null, null, null, true, new ServiceContext());


юзер не создается (в БД нет записей) и попадаю сюда

catch (com.liferay.portal.kernel.exception.PortalException ex)
System.out.println(": exception1: " + ex.getMessage());
System.out.println(": exception1: " + ex.getLocalizedMessage());


в обоих случаях выводится null

пробовал еще так юзера заводить

user = UserServiceUtil.addUserWithWorkflow(
                            company.getCompanyId(), true, null, null,
                            false, params.get("O"), params.get("EMAILADDRESS"), null, 0L, "",
                            themeDisplay.getLocale(), ((String)params.get("CN")).replace(new StringBuilder(params.get("SURNAME")).append(" ").toString(), ""), params.get("GIVENNAME"), params.get("SURNAME"), 0,
                            0, true, 1, 1, 1970, params.get("O"),
                            new long[]{}, new long[]{}, new long[]{}, new long[]{}, true,
                            ServiceContextFactory.getInstance(User.class.getName(), (PortletRequest) request.getAttribute("javax.portlet.request")));


результат тот же

подскажите куда копать или как завести юзера?!