org.jasig.portal.PortalException: Unable to find portlet definition for ID 'testsuite.TestPortlet1' at org.jasig.portal.channels.portlet.CPortletAdapter.initPortletWindow (CPortletAdapter.java:198) at org.jasig.portal.channels.portlet.CPortletAdapter.renderCharacters (CPortletAdapter.java:433) at org.jasig.portal.MultithreadedCharacterChannelAdapter.renderCharacters (MultithreadedCharacterChannelAdapter.java:71)

Apereo Issues | Rodrigo de Paula Santos | 1 decade ago
  1. 0

    I did a search for "what's" (with no double quotes) and got the following exception in the error channel: org.jasig.portal.PortalException: Expected ,, but found: s at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:299) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) --------------- Here is the exception that was logged to stdout: javax.xml.transform.TransformerException: Expected ,, but found: s at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:649) at org.apache.xpath.compiler.XPathParser.consumeExpected(XPathParser.java:567) at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1530) at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1435) at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1334) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1267) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.PredicateExpr(XPathParser.java:1951) at org.apache.xpath.compiler.XPathParser.Predicate(XPathParser.java:1933) at org.apache.xpath.compiler.XPathParser.Step(XPathParser.java:1713) at org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1613) at org.apache.xpath.compiler.XPathParser.LocationPath(XPathParser.java:1584) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1306) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:172) at org.apache.xpath.XPath.<init>(XPath.java:202) at org.apache.xpath.XPathAPI.eval(XPathAPI.java:279) at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:211) at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:191) at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:224) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) --------------- analyzeParameters() has a catch that prints the exception stack trace to stdout. This should be at least logged to the log and not stdout. Also, the catch should be changed to only catch and wrap only TransformerException. There is no point wraping runtime exceptions in a channel because the framework will wrap them for you.

    Apereo Issues | 1 decade ago | Brad Johnson
    org.jasig.portal.PortalException: Expected ,, but found: s at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:299) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345)
  2. 0

    When logged in as a non template user, the user is not able to succussfully create a fragement. After creating a user in the db via Ant, logging in as the new user, adding content to a new fragment, saving the fragment, and clicking on the link to go back to the fragment manager, I receive and error report with the following error message: null [based on exception: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 16 and LAYOUT_ID 1] I also receive the following stack trace in catalina: org.jasig.portal.PortalException: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 16 and LAYOUT_ID 1 at org.jasig.portal.layout.AggregatedUserLayoutStore.getAggregatedLayout (AggregatedUserLayoutStore.java:1881) at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout (AggregatedLayoutManager.java:1081) at org.jasig.portal.layout.channels.CFragmentManager.analyzeParameters (CFragmentManager.java:242) at org.jasig.portal.layout.channels.CFragmentManager.renderXML (CFragmentManager.java:276) at org.jasig.portal.ChannelRenderer$Worker.run (ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) If I attempt to log back in as this user, I will receive an error stating "Cannot start uPortal". The error occurs in AggregatedUserLayoutStore:1874 when the following statement is ran against the database: SELECT INIT_NODE_ID FROM UP_USER_LAYOUT_AGGR WHERE USER_ID=" + userId + " AND LAYOUT_ID = " + layoutId The problem is that there is no row in UP_USER_LAYOUT_AGGR for the new userId. If I manually enter the row into the table for the new user, the problem is fixed and the user can create fragments. This error does not occur when using template user such as 'demo'. Please let me know if you have any questions. Thanks, Dave Grimwood

    Apereo Issues | 1 decade ago | David Grimwood
    org.jasig.portal.PortalException: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 16 and LAYOUT_ID 1 at org.jasig.portal.layout.AggregatedUserLayoutStore.getAggregatedLayout (AggregatedUserLayoutStore.java:1881)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I did a search for "what's" (with no double quotes) and got the following exception in the error channel: org.jasig.portal.PortalException: Expected ,, but found: s at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:299) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) --------------- Here is the exception that was logged to stdout: javax.xml.transform.TransformerException: Expected ,, but found: s at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:649) at org.apache.xpath.compiler.XPathParser.consumeExpected(XPathParser.java:567) at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1530) at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1435) at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1334) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1267) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.PredicateExpr(XPathParser.java:1951) at org.apache.xpath.compiler.XPathParser.Predicate(XPathParser.java:1933) at org.apache.xpath.compiler.XPathParser.Step(XPathParser.java:1713) at org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1613) at org.apache.xpath.compiler.XPathParser.LocationPath(XPathParser.java:1584) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1306) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:172) at org.apache.xpath.XPath.<init>(XPath.java:202) at org.apache.xpath.XPathAPI.eval(XPathAPI.java:279) at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:211) at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:191) at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:224) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) --------------- analyzeParameters() has a catch that prints the exception stack trace to stdout. This should be at least logged to the log and not stdout. Also, the catch should be changed to only catch and wrap only TransformerException. There is no point wraping runtime exceptions in a channel because the framework will wrap them for you.

    Apereo Issues | 1 decade ago | Brad Johnson
    org.jasig.portal.PortalException: Expected ,, but found: s at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:299) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345)
  5. 0

    I was able to reproduce this exception reliably by doing the following on the 2.4.1 quickstart! ant hsql & cd uPortal_rel-2-4-1 modify properties/PersonDirs.xml: Set the uidquery to the following: -------------------- <uidquery>SELECT FIRST_NAME||' '||LAST_NAME AS FIRST_LAST, FIRST_NAME, LAST_NAME, EMAIL , 'test' as template FROM UP_PERSON_DIR WHERE USER_NAME=?</uidquery> --Add the following to map template to the template user name -------------------- <attribute><alias>uPortalTemplateUserName</alias> <name>template</name></attribute> -------------------- ant md5passwd -Dusername=test # enter password ant md5passwd -Dusername=test1 # enter password cd .. ant tomcatstart # browse to http://localhost:8080/uPortal # login as test and logout (do not do anything else such as modify the layout) # login as test1 # you will get Cannot Start uPortal along with the following exceptions in the log: ERROR [http-8080-Processor25] layout.AggregatedUserLayoutStore.[] Jan/18 08:44:58 - Error getting aggregated layout for user org.jasig.portal.security.provider.PersonImpl@145e460 org.jasig.portal.PortalException: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 17 and LAYOUT_ID 1 at org.jasig.portal.layout.AggregatedUserLayoutStore.getAggregatedLayout(AggregatedUserLayoutStore.java:1889) at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout(AggregatedLayoutManager.java:1081) at org.jasig.portal.layout.AggregatedLayoutManager.<init>(AggregatedLayoutManager.java:120) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.UserPreferencesManager.<init>(UserPreferencesManager.java:233) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:174) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:276) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) ERROR [http-8080-Processor25] portal.ExceptionHelper.[] Jan/18 08:44:58 - Programming error java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.jasig.portal.layout.UserLayoutManagerFactory.getUserLayoutManager(UserLayoutManagerFactory.java:85) at org.jasig.portal.UserPreferencesManager.<init>(UserPreferencesManager.java:233) at org.jasig.portal.UserInstance.writeContent(UserInstance.java:174) at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:276) Caused by: org.jasig.portal.PortalException: null [based on exception: AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for 17 and LAYOUT_ ID 1] at org.jasig.portal.layout.AggregatedLayoutManager.loadUserLayout(AggregatedLayoutManager.java:1101) at org.jasig.portal.layout.AggregatedLayoutManager.<init>(AggregatedLayoutManager.java:120) ... 34 more

    Apereo Issues | 1 decade ago | Brad Johnson
    java.lang.reflect.InvocationTargetException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jasig.portal.PortalException

      Unable to find portlet definition for ID 'testsuite.TestPortlet1' at org.jasig.portal.channels.portlet.CPortletAdapter.initPortletWindow (CPortletAdapter.java:198) at org.jasig.portal.channels.portlet.CPortletAdapter.renderCharacters (CPortletAdapter.java:433) at org.jasig.portal.MultithreadedCharacterChannelAdapter.renderCharacters (MultithreadedCharacterChannelAdapter.java:71)

      at org.jasig.portal.ChannelRenderer$Worker.run()
    2. org.jasig.portal
      Worker.run
      1. org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:481)
      2. org.jasig.portal.utils.threading.Worker.run(Worker.java:88)
      2 frames