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" <[EMAIL PROTECTED]>
To: "Struts Developers List" <[email protected]>
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" <[EMAIL PROTECTED]>
To: "Struts Developers List" <[email protected]>
Sent: Monday, January 14, 2008 3:32 PM
Subject: Re: Overnight builds & snapshots


On Jan 14, 2008 8:46 AM, Al Sutton <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to