Some more info based on testing after looking at the code for 4.0.5 from
jahia.org CVS
where it seems exception is thrown.
- I am logged in as the super administrator I created when I installed
Jahia.
- When I set the default group home page for the administrators (to the
valid site home page) I get the exception.
- When I set the default group home page to NONE, I also get the exception.
This seems strange
unless "none" causes some default value or the system does not know the
user for some reason.
I suspect this because the exception is always preceeded by:
387068 [http-8080-Processor4] WARN - No ParamBean passed, assuming
normal mode and using site guest user to check for read access
java.lang.NullPointerException....
- I have also set the "guest" user and "guest" group to the site home page
but still same behavior.
- Is there a particular database entry that could be examined and/or forced
to ensure that
"getGroupDefaultHomepageDef" returns correct data
- any other external test suggestion?
George
---------------------------------------------------------------
private void displayGroupCreate( HttpServletRequest request,
HttpServletResponse response,
HttpSession session )
throws IOException, ServletException, JahiaException
{
logger.debug("Started");
request.setAttribute("groupName",
JahiaTools.nnString(request.getParameter("groupName")));
// Is here any home page definition ?
JahiaHomepagesService hpServ =
ServicesRegistry.getInstance().getJahiaHomepagesService();
JahiaHomepage homePage =
hpServ.getHomepage(jahiaSite.getGroupDefaultHomepageDef());
if (homePage != null) {
JahiaHomepageLink homePageLink = (JahiaHomepageLink)homePage;
session.setAttribute("homePageID", new
Integer(homePageLink.getPageID()));
exception here >>>> request.setAttribute("defaultHomePage",
JahiaPageBaseService.getInstance().
lookupPageWhitoutTemplates(homePageLink.getPageID()).getTitle() +
" (" + homePage.getName() + ")");
}
request.setAttribute("jspSource", JSP_PATH +
"group_management/group_create.jsp");
-----Original Message-----
From: George Myers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 20, 2005 7:57 PM
To: [email protected]
Subject: RE: failure to create new group
Serge,
I have verified that all users have a valid home page setting, that the home
page itself seems consistent - and I "applied" its data again, and the site
settings also have been re-applied.
The problem persists. Perhaps I misunderstood your advice - or can you be
more specific in terms of
what data I should try changing.
Thanks,
George.
-----Original Message-----
From: Serge Huber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 19, 2005 1:45 AM
To: [email protected]
Subject: Re: failure to create new group
Hi George,
I just checked your stack trace and it seems that maybe something is wrong
with your home page settings. Try changing them and see if this solves the
problem with the group creation.
Regards,
Serge Huber.
George Myers wrote:
>Hi
>
>In Jahia 405 build 6020 I can no longer create a new group. While
>trying this I am logged in as admin and can perform other admin
>operations. Not sure when this surfaced as this operation has not been
>attempted for many months. I see the exception reported below.
>However the work around of copying an existing group then modifying it
seems
>fine. Any advice how to get create
>to work?
>
>Here is the log output including the exception:
>-------------------
>387068 [http-8080-Processor4] WARN - No ParamBean passed, assuming
>normal mode and using site guest user to check for r ead access
>java.lang.NullPointerException
> at
>org.jahia.admin.users.ManageGroups.displayGroupCreate(ManageGroups.java:293
)
> at
>org.jahia.admin.users.ManageGroups.userRequestDispatcher(ManageGroups.j
>ava:1
>46)
> at org.jahia.admin.users.ManageGroups.<init>(ManageGroups.java:121)
> at
>org.jahia.bin.JahiaAdministration.userRequestDispatcher(JahiaAdministration
.
>java:388)
> at
>org.jahia.bin.JahiaAdministration.service(JahiaAdministration.java:245)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
>ation
>FilterChain.java:200)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
>terCh
>ain.java:146)
> at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
>ve.ja
>va:209)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
>invok
>eNext(StandardPipeline.java:596)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
>ve.ja
>va:144)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
>invok
>eNext(StandardPipeline.java:596)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
> at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
>a:133
>)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
>invok
>eNext(StandardPipeline.java:596)
> at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
.
>java:118)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
>invok
>eNext(StandardPipeline.java:594)
> at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
>a:116
>)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
>invok
>eNext(StandardPipeline.java:594)
> at
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
>invok
>eNext(StandardPipeline.java:594)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
>.java
>:127)
> at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
>invok
>eNext(StandardPipeline.java:596)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
> at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> at
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
> at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
>Conne
>ction(Http11Protocol.java:705)
> at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
>l.jav
>a:683)
> at java.lang.Thread.run(Thread.java:534)
>------------
>George
>
>
>
>