Hello to all.
We use Portal 8.2 as a preview server for WEM 8.1.
I use the next code for creation ContentInstance on portal's jsp page:
AuthnBundle authn = new AuthnBundle();authn.setAuthType(AuthnConsts.WEBLOGIC_CONTEXT);authn.setProtocol(PROTOCOL);authn.setHost(VCM_HOST);authn.setPort(VCM_PORT);authn.setUsername(USERNAME);authn.setPassword(PASSWORD);authn.setEnableSSL(false);LoginMgr loginMgr = new LoginMgr();loginMgr.login(authn);
ManagedObject ci = ContentInstance.newInstance("questions");ci.setAttributeValue("question", question);ci.setLogicalPath("/questions");ci.setNew(true);ci.commit(); I got a error:
Error 9 (CreateError), Message 026-130-0002: Error in retrieving Authorization Ops Object.
com.vignette.as.server.pluggable.AuthzImpl.isAuthorized(AuthzImpl.java:81)
com.vignette.as.server.logic.auth.AuthorizationOpsLogic.isAuthorized(AuthorizationOpsLogic.java:126)
com.vignette.as.server.logic.common.AuthorizationHelper.verifyAuthorization(AuthorizationHelper.java:257)
com.vignette.as.server.logic.common.AuthorizationHelper.verifyAuthorization(AuthorizationHelper.java:244)
Could anyone help to resolve my trouble?
Thanks.