Problem building with non-root user on Linux

Stephen McConnell mcconnell at dpml.net
Tue Jan 10 23:01:09 EST 2006


 

> -----Original Message-----
> From: dev-dpml-bounces at lists.ibiblio.org 
> [mailto:dev-dpml-bounces at lists.ibiblio.org] On Behalf Of Carel Paradis

<snip/>

> BUILD FAILED
> One or more unit test errors occured.
> 
> Total time: 8 seconds
> [cparadis at localhost main]$
> 
> I provide as attachments the build output and the test case 
> result. You will see that some messages are null.
> 
> Do you know how to resolve this problem?
> 

The null messages are normal for things like InvocationTargetException and
UndeclaredThrowableException as these exceptions are thrown by the JVM with
the purpose of supplying a causal exception.  In this case the causal
exception is the following:

  Caused by: java.lang.IllegalArgumentException: Bad temp directory:
/tmp/http/context
	at
org.mortbay.http.HttpContext.setTempDirectory(HttpContext.java:975)
	at
net.dpml.http.impl.HttpContextImpl.<init>(HttpContextImpl.java:147)
	... 49 more

Presumably we have an issue concerning the creation of the /tmp/http/context
directory. One approach could be add code to the
net.dpml.http.impl.HttpContextImpl implementation to handle directory
creation which presumably will raise a permission exception (which would be
more useful). 

The second issue concerns access to the root causal exception.  In this
example the testcase sees a ControllerException but what we really want is a
permission exception.  We could achieve this by adding something like a
Throwable getRootCause() to the ControllerException and enabling checks in
the test case to deal with this.

/Steve.





More information about the dev-dpml mailing list