struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mitchell James <jmitc...@gmail.com>
Subject Re: Overnight builds & snapshots
Date Mon, 14 Jan 2008 19:53:27 GMT
Mac -- trying now .... stay tuned.


--
James Mitchell



On Jan 14, 2008, at 2:50 PM, Ted Husted wrote:

> Hmmm, do you have a non-Vista machine handy?
>
> It seems to be fine on Linux (Ubuntu?) and XPx64. Anyone try it on  
> a Mac today?
>
> On Jan 14, 2008 2:32 PM, Al Sutton <al.sutton@alsutton.com> wrote:
>> OK, After the detour down the getting eclipse working I'm back on  
>> track to
>> see whats wrong and I'd be grateful if someone could check this over.
>>
>> Whats happening at the moment is that
>> FreeMarkerResultTest.testWithoutWriteIfCompleted is calling  
>> through to
>> FreemarkerResult.execute, which in turn calls through to
>> FreemarkerResult.doExecute in turn calls through to
>> ResourceUtil.getResourceBase, which is where I beleive a problem is
>> occurring.
>>
>> ResourceUtil.getResourceBase returns a base of "" (an empty  
>> string), which
>> means the specified template can't be found (because it's in
>> org.apache.struts2.views.freemarker instead of the default  
>> package). This
>> throws an FileNotFound exception from line 167 of  
>> FreemarkerResult.java
>> (Template template = configuration.getTemplate(locationArg,
>> deduceLocale());), and because the template has not been found the
>> StringWriter has not been written to, and thus it's empty and  
>> fails the
>> test.
>>
>> Is this suppose to be the case and the StringWriter should have  
>> been written
>> to, or is ResourceUtil.getResourceBase suppose to return something  
>> useful,
>> find the template and the test case complete in another way?
>>
>> Al.
>>
>> ----- Original Message -----
>> From: "Al Sutton" <al.sutton@alsutton.com>
>> To: "Struts Developers List" <dev@struts.apache.org>
>>
>> Sent: Monday, January 14, 2008 4:20 PM
>> Subject: Re: Overnight builds & snapshots
>>
>>
>>> I've cleaned out the temporary files, put -Xmx128M in MAVEN_OPTS,  
>>> and
>>> maven reports  Final Memory: 16M/42M. The box is a 3GB Q6600 so I  
>>> can ramp
>>> up the ram available to the JVM as far as neccessary.
>>>
>>> I've been trying to see if I could hack together an Eclipse  
>>> workspace to
>>> do some tracing in to find out whats happening, but the svn tree  
>>> seems to
>>> favour IntelliJ IDEA, and I'd prefer not to have to learn a new  
>>> IDE just
>>> for investigation of the problem :(
>>>
>>> Al.
>>>
>>> ----- Original Message -----
>>> From: "Ted Husted" <husted@apache.org>
>>> To: "Struts Developers List" <dev@struts.apache.org>
>>> Sent: Monday, January 14, 2008 3:32 PM
>>> Subject: Re: Overnight builds & snapshots
>>>
>>>
>>>> On Jan 14, 2008 8:46 AM, Al Sutton <al.sutton@alsutton.com> wrote:
>>>>> I'm going to look into it some more, but is it possible that  
>>>>> bamboo is
>>>>> missing something? (or that the test is showing up a platform  
>>>>> difference
>>>>> between the bamboo compile farm and my Vista/JDK 1.5.0_14  
>>>>> machine)?
>>>>
>>>> It's working for me under XPx64. We have had platform-specific  
>>>> issues
>>>> before, using having to do with memory allocation or temporary  
>>>> files.
>>>>
>>>> The first thing to check is that Maven has enough memory. The  
>>>> second
>>>> might be that Vista has not amassed too many temporary files.
>>>>
>>>> HTH, Ted.
>>>> <http://www.StrutsMentor.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message