Null pointer exception in formatDate() on rendering Main.RecentChanges

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Null pointer exception in formatDate() on rendering Main.RecentChanges

Roman Muntyanu
Hello,

    Could you please point me to possible root of the following problems:
        1) Null pointer exception in formatDate() method during Main.RecentChanges page rendering (it looks like $rcDt variable is null for one of the records, this is for scripts from xwiki-enterprise-wiki-2.2.2.xar). Full stack trace attached in RecentChangesStackTrace.txt
        2) A weird look&feel of the ManageGroups, ManageUsers and ManageRights (ManageRightsBroken.JPG, ManageGroupsBroken.JPG and ManageUsersBroken.JPG page-captures correspondingly)
   
    Re-importing xwiki-enterprise-wiki-2.2.2.xar did not help.
   
    From the recent modifications made I can point out only the following
        * Set up 80(publicly available)->8080(where the XWiki is installed) port forwarding at firewall level
        * Restricted guest users from accessing the site and from registering

    Notes about environment
        * XWiki Enterprise Core/UI 2.2.2
        * Most of users with LDAP Authentication + Several users with non-LDAP authentication
        * CentOS release 5.4 (Final)
        * Following errors on startup
            Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM
            /usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for this JVM
            /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm
            /usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM
            /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm
        * XWiki cannot access file xwiki.log because of permission denied

Regards,
  Roman
Reply | Threaded
Open this post in threaded view
|

Re: Null pointer exception in formatDate() on rendering Main.RecentChanges

Roman Muntyanu
Hi,

   The problem has been mysteriously solved by doing an upgrade to 2.2.3 with clean-up of previous version.
   I also solved the problem with logging by using this link http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging

    Yet it's interesting to know what might cause the page's date to be null or trigger null-pointer exception with date format.

    Regards,
Roman