[Hippo-cms7-user] Re: 7.6 from archetype cms login page error

Jeroen Reijn j.reijn at onehippo.com
Tue Jun 14 09:30:26 CEST 2011


Just back from vacation. Good to see that this issue has been resolved
in the mean time.

Jeroen

On Fri, Jun 3, 2011 at 1:09 AM, Bart van der Schans
<b.vanderschans at onehippo.com> wrote:
> Hi Marijan,
>
> Thx for the digging. Another notorious CMS7-16 fix.. Any idea what
> happens to the NPE? It doesn't show up anywhere..I guess this is
> triggered by the fact that having no log4j config defaults all logging
> to debug?
>
> Bart
>
>
> On Fri, Jun 3, 2011 at 12:36 AM, marijan milicevic
> <m.milicevic at onehippo.com> wrote:
>> Hi all,
>>
>> this issue is already fixed:
>>
>> Revision: 28327
>> Author:   fvlankvelt
>> Date:     2011-05-19 17:54:19 +0200 (Thu, 19 May 2011)
>> Log Message:
>> -----------
>> CMS7-16: don't throw NPE in debug mode
>>
>> Modified Paths:
>> --------------
>>
>>  hippo-cms7/cms/trunk/engine/src/main/java/org/hippoecm/frontend/ResourceRewriteFilter.java
>>
>> Modified:
>> hippo-cms7/cms/trunk/engine/src/main/java/org/hippoecm/frontend/ResourceRewriteFilter.java
>> ===================================================================
>> ---
>> hippo-cms7/cms/trunk/engine/src/main/java/org/hippoecm/frontend/ResourceRewriteFilter.java
>>  2011-05-19 12:18:35 UTC (rev 28326)
>> +++
>> hippo-cms7/cms/trunk/engine/src/main/java/org/hippoecm/frontend/ResourceRewriteFilter.java
>>  2011-05-19 15:54:19 UTC (rev 28327)
>> @@ -60,7 +60,7 @@
>>             String superPath = super.getPathTranslated();
>>             String stripped = stripPrefix(superPath);
>>             if (log.isDebugEnabled()) {
>> -                if (!stripped.equals(superPath)) {
>> +                if (stripped != null&&  !stripped.equals(superPath)) {
>>                     log.debug("TranslatedTranslated Path from " + superPath
>> + " to " + stripped);
>>                 }
>>             }
>> @@ -72,7 +72,7 @@
>>             String superPath = super.getServletPath();
>>             String stripped = stripPrefix(superPath);
>>             if (log.isDebugEnabled()) {
>> -                if (!stripped.equals(superPath)) {
>> +                if (stripped != null&&  !stripped.equals(superPath)) {
>>                     log.debug("Translated ServletPath from " + superPath + "
>> to " + stripped);
>>                 }
>>             }
>>
>>
>>
>>
>>
>>
>> ___________
>>
>>
>> cheers,
>> /marijan
>>
>>
>>
>> On 06/02/11 20:34, M Nair wrote:
>>>
>>> Finally I made it to work by updating the catalina.sh script directly to
>>> pass
>>> the -Dlog4j.configuration=file:$CATALINA_BASE/conf/log4j.xml value to
>>> $CATALINA_OPTS.  I think the reason it was flaky before when I tried was
>>> because
>>> the path had a symlink (this is my guess but not proven).
>>>  But anyway thanks to Bart for the patch (which I did not have to use) and
>>> Woonsan for all the tips.
>>>
>>>  Here is my request..
>>>  It seems we know what the issue is and this is a tempy fix. Can you
>>> upgrade the
>>> bug which Woosan created to blocker/critical to fix the real issue? I mean
>>> log4j
>>> configuration should in no way be linked to user login.
>>>  Thanks again to all.
>>>
>>>
>>>
>>> ----- Original Message ----
>>> From: MN<mnsweeps at yahoo.com>
>>> To: Hippo CMS 7 development public mailinglist
>>> <hippo-cms7-user at lists.onehippo.com>
>>> Cc: Hippo CMS 7 development public mailinglist
>>> <hippo-cms7-user at lists.onehippo.com>
>>> Sent: Thu, June 2, 2011 5:41:35 AM
>>> Subject: Re: [Hippo-cms7-user] Re: 7.6 from archetype cms login page error
>>>
>>> Thanks Jasha and Bart for document suggestion and update. Will try Bart's
>>> patch
>>> later today and see how it works.
>>>
>>> It's 5.40 am in LA and too early for coding :))
>>>
>>> --------------------------------------
>>> This email was sent using 100% recycled electrons.
>>>
>>> On Jun 2, 2011, at 5:36 AM, Unico Hommes<u.hommes at onehippo.com>  wrote:
>>>
>>>> Nice!
>>>>
>>>> On Thu, Jun 2, 2011 at 2:33 PM, Jasha Joachimsthal
>>>> <j.joachimsthal at onehippo.com>  wrote:
>>>>>
>>>>>
>>>>> On 2 June 2011 14:27, Bart van der Schans<b.vanderschans at onehippo.com>
>>>>> wrote:
>>>>>>
>>>>>> On Thu, Jun 2, 2011 at 2:20 PM, Unico Hommes<u.hommes at onehippo.com>
>>>>>> wrote:
>>>>>>>
>>>>>>> On Thu, Jun 2, 2011 at 1:23 PM, Bart van der Schans
>>>>>>> <b.vanderschans at onehippo.com>  wrote:
>>>>>>>>
>>>>>>>> Hi M,
>>>>>>>>
>>>>>>>> I've created a patch file that you can apply. It fixes some issues in
>>>>>>>> your Tomcat config:
>>>>>>>>
>>>>>>>> - add log4j.xml and log4j.dtd to conf/
>>>>>>>> - set CATALINA_OPTS instead of JAVA_OPTS in catalina.sh (or the
>>>>>>>> shutdown.sh won't work)
>>>>>>>> - add CATALINA_PID so shutdown works correctly
>>>>>>>> - set max perm size to 128m (is this missing in our documentation??)
>>>>>>>
>>>>>>> No, it's documented here:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> https://wiki.onehippo.com/display/CMS7/Create+and+deploy+a+project+distribution
>>>>>>>
>>>>>>> As are many other things you mention.
>>>>>>
>>>>>> Great!
>>>>>>
>>>>>> The page seems quite long and indeed contains all the information.
>>>>>> Could we add an index with number steps with anchor links to the
>>>>>> detailed information? Something like:
>>>>>>
>>>>>> Required steps:
>>>>>> - 1. Add common libraries
>>>>>> - 2. Add shared libraries
>>>>>> - 3. Set datasource and repository.xml
>>>>>> - 4. Configure log4j
>>>>>> - 5. Set memory settings
>>>>>> - 6. Configure your hst properties
>>>>>> etc.
>>>>>>
>>>>>> Regards,
>>>>>> Bart
>>>>>
>>>>> Just added the TOC based on the headings at the top of the page.
>>>>> Jasha
>>>>> ps isn't it a public holiday here in NL? ;)
>>>>> _______________________________________________
>>>>> Hippo-cms7-user mailing list and forums
>>>>> http://www.onehippo.org/cms7/support/forums.html
>>>>>
>>>> _______________________________________________
>>>> Hippo-cms7-user mailing list and forums
>>>> http://www.onehippo.org/cms7/support/forums.html
>>>
>>> _______________________________________________
>>> Hippo-cms7-user mailing list and forums
>>> http://www.onehippo.org/cms7/support/forums.html
>>>
>>> _______________________________________________
>>> Hippo-cms7-user mailing list and forums
>>> http://www.onehippo.org/cms7/support/forums.html
>>
>> _______________________________________________
>> Hippo-cms7-user mailing list and forums
>> http://www.onehippo.org/cms7/support/forums.html
>>
>
>
>
> --
> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
> Boston - 1 Broadway, Cambridge, MA 02142
>
> US +1 877 414 4776 (toll free)
> Europe +31(0)20 522 4466
> www.onehippo.com
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html
>



-- 
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com



More information about the Hippo-cms7-user mailing list