0 Replies Latest reply on Jun 4, 2005 6:39 AM by Xiaogang Cao

    RC2 is not worked out

    Xiaogang Cao Newbie

      I'm using JBoss 4.0.2, mysql 4.1.9, JBP2 RC2, using the binary version and a clean jboss 4.0.2 AS.

      first of all ,the setup process is much improved, now it will create the database automaticaly, very good.

      I have very happy experence with Mambo, a php CMS system, so after I login into jbp2, I try to do the following:

      1,How to add a new menu item to the global menu? e.g. I want to add new menu 'Read Me First' and 'Donate' to articles in the CMS.

      2, how to create a new screen 'block'? e.g. i'd like to add a newsflash to the site, just write the greeting message.

      4,how to define the layout of the portlets? e.g. how to move the 'login block' to the right side of the window, and the newsflash to the top.

      5, How to set the permission of a special portlet to user? I mean, to let a special role (like CMS administrator) to see a red newsflash, while anonymous see a blue newsflash;

      for the last question, when I click 'admin->AdminCMSPortlet -> Global Read -> Add/Remove roles' and check 'User' and 'Anonymous' and click save, an exception is throw as following :


      HTTP Status 500 -

      --------------------------------------------------------------------------------

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: An error occured during the action request : null
      org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:86)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      root cause

      javax.servlet.ServletException: An error occured during the action request : null
      org.jboss.portal.core.servlet.CoreServlet.render(CoreServlet.java:174)
      org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:81)
      org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
      org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMainServlet.java:62)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.portal.core.servlet.TransactionFilter$1.run(TransactionFilter.java:79)
      org.jboss.portal.common.transaction.Transactions.requiresNew(Transactions.java:149)
      org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:75)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      root cause

      java.lang.NullPointerException
      org.jboss.portal.core.impl.tree.tm.TransactionManagerObserver.rollback(TransactionManagerObserver.java:128)
      org.jboss.portal.core.impl.tree.tm.TransactionObservation.rollback(TransactionObservation.java:84)
      org.jboss.portal.core.impl.tree.SessionImpl.rollback(SessionImpl.java:55)
      org.jboss.portal.core.impl.security.SchemeStoreImpl.saveScheme(SchemeStoreImpl.java:107)
      org.jboss.portal.core.portlet.permission.PermissionPortlet.modifyRoles(PermissionPortlet.java:401)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:324)
      org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:140)
      org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:96)
      org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:342)
      org.jboss.portal.portlet.invocation.DispatcherInterceptor.invokeAction(DispatcherInterceptor.java:110)
      org.jboss.portal.portlet.invocation.DispatcherInterceptor.invoke(DispatcherInterceptor.java:191)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.portlet.invocation.PreferencesInterceptor.invoke(PreferencesInterceptor.java:93)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:94)
      sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:324)
      org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:49)
      org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:98)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:58)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(AccessControlInterceptor.java:125)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.invocation.component.CacheInterceptor.invoke(CacheInterceptor.java:74)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
      org.jboss.portal.server.Component.invoke(Component.java:130)
      org.jboss.portal.server.invocation.portal.TargetInterceptor.invokeWindow(TargetInterceptor.java:167)
      org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(TargetInterceptor.java:67)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:117)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:92)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
      org.jboss.portal.server.PortalServer.invoke(PortalServer.java:186)
      org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:78)
      org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
      org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMainServlet.java:62)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.portal.core.servlet.TransactionFilter$1.run(TransactionFilter.java:79)
      org.jboss.portal.common.transaction.Transactions.requiresNew(Transactions.java:149)
      org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:75)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.


      --------------------------------------------------------------------------------

      Apache Tomcat/5.5.9