Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot create user page using gatein public api
    primarykey
    data
    text
    <p>When i create a user page using gatein public api i got an <code>org.gatein.api.EntityNotFoundException</code> exception. Here follows my code for creating user page</p> <pre> <code> User user = PortalRequest.getInstance().getUser(); Portal portal = PortalRequest.getInstance().getPortal(); f(portal.getPage(new PageId(user, pageName))==null){ Page newpage = portal.createPage(new PageId(user, pageName));// Here i got the exception } </code> </pre> <p>Here follows the stack trace of exception</p> <pre> <code> org.gatein.api.EntityNotFoundException: Site Site.Id[type=dashboard, name=supervisor] doesn't exist at org.gatein.api.PortalImpl.createPage(PortalImpl.java:271) [exo.portal.component.api-3.6.0.Final.jar:3.6.0.Final] at com.radiant.cisms.view.bean.DynamicDashBoardBean.createUserSpecificPage(DynamicDashBoardBean.java:146) at com.radiant.cisms.view.bean.DynamicDashBoardBean.saveNewPortlets(DynamicDashBoardBean.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_45] at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_45] at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132) ... 121 more </code> </pre> <p>Also here i am attaching my portal-configuration.xml for reference</p> <pre> <code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd http://www.exoplaform.org/xml/ns/kernel_1_0.xsd" xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"&gt; &lt;external-component-plugins&gt; &lt;!-- The full qualified name of the UserPortalConfigService --&gt; &lt;target-component&gt;org.exoplatform.portal.config.UserPortalConfigService &lt;/target-component&gt; &lt;component-plugin&gt; &lt;name&gt;new.portal.config.user.listener&lt;/name&gt; &lt;set-method&gt;initListener&lt;/set-method&gt; &lt;type&gt;org.exoplatform.portal.config.NewPortalConfigListener&lt;/type&gt; &lt;description&gt;this listener init the portal configuration &lt;/description&gt; &lt;init-params&gt; &lt;value-param&gt; &lt;name&gt;default.portal&lt;/name&gt; &lt;description&gt;The default portal for checking db is empty or not &lt;/description&gt; &lt;value&gt;MPortal&lt;/value&gt; &lt;/value-param&gt; &lt;value-param&gt; &lt; &lt;name&gt;override&lt;/name&gt; &lt;description&gt;The flag parameter to decide if portal metadata is overriden on restarting server&lt;/description&gt; &lt;value&gt;true&lt;/value&gt; &lt;/value-param&gt; &lt;object-param&gt; &lt;name&gt;portal.configuration&lt;/name&gt; &lt;description&gt;description&lt;/description&gt; &lt;object type="org.exoplatform.portal.config.NewPortalConfig"&gt; &lt;field name="predefinedOwner"&gt; &lt;collection type="java.util.HashSet"&gt; &lt;value&gt; &lt;string&gt;classic&lt;/string&gt; &lt;/value&gt; &lt;value&gt; &lt;string&gt;MPortal1&lt;/string&gt; &lt;/value&gt; &lt;value&gt; &lt;string&gt;MPortalForgotPassword&lt;/string&gt; &lt;/value&gt; &lt;value&gt; &lt;string&gt;MPortalWizard&lt;/string&gt; &lt;/value&gt; &lt;value&gt; &lt;string&gt;MPortalEndUser&lt;/string&gt; &lt;/value&gt; &lt;/collection&gt; &lt;/field&gt; &lt;field name="ownerType"&gt; &lt;string&gt;portal&lt;/string&gt; &lt;/field&gt; &lt;field name="templateLocation"&gt; &lt;string&gt;war:/conf/gtec/&lt;/string&gt; &lt;/field&gt; &lt;field name="importMode"&gt; &lt;string&gt;overwrite&lt;/string&gt; &lt;/field&gt; &lt;/object&gt; &lt;/object-param&gt; &lt;/init-params&gt; &lt;/component-plugin&gt; &lt;/external-component-plugins&gt; &lt;/configuration&gt; </code> </pre> <p>Can you help me to give a reason about this issue?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload