0 Replies Latest reply on Jan 9, 2008 4:58 AM by chris3

    Portel version 2.4.1 getTheme error

    chris3

      I am running jBoss Portal 2.4.1 on a client site, and have a problem with a null pointer in the getTheme method.

      A user set the portal theme to 'no selection' and I now get the following error:

      Exception:

      javax.servlet.ServletException
      org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:315)
      org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      java.lang.NullPointerException
      org.jboss.portal.core.command.MarkupCommand.getTheme(MarkupCommand.java:387)
      org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:329)
      org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
      org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
      org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
      org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
      org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
      ... (I have not posted the full error, but can if required).

      I have read the forums and see I can fix this by removing the portal database, which will cause the default settings to return.

      However, I have user details in the database, and am wondering if there is any way to reset the theme without blowing away all users. I also used the default databse rather than set up a new one via Hibernate (i.e. it runs on HSQL).

      Really hoping there is an altertnative.

      Chris