gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <>
Subject gump failures, please help
Date Fri, 05 Sep 2008 18:13:03 GMT
ok. after weeks of wrestling with gump to find out what the failures
are about, this last build gave some decent info.


I think this section shows the main problem:

    [junit] log:  [debug] Velocity was not initialized! Calling init()...
    [junit]  [debug] Starting Apache Velocity v03092008 (compiled:
2008-09-03 18:37:33)
    [junit]  [debug] Default Properties File:
    [junit]  [debug] ResourceManager : No configuration information
for resource loader named 'string'. Skipping.
    [junit]  [debug] ResourceLoader instantiated:
    [junit]  [debug] Do unicode file recognition:  false
    [junit]  [debug] FileResourceLoader : adding path
    [junit]  [debug] ResourceCache: initialized (class
org.apache.velocity.runtime.resource.ResourceCacheImpl) with class
java.util.Collections$SynchronizedMap cache map.

As you can see, the engine knows there are two resource loaders 'file'
and 'string'.  It has path info for the 'file' resource loader, but it
has *no* info on the 'string' resource loader.  But if you look at the
test case, it clearly adds info for both loaders:

        velocity = new VelocityEngine();
        velocity.setProperty("resource.loader", "file,string");
        velocity.setProperty("file.resource.loader.path", path);

This code runs perfectly on my machine and probably on yours too.  So,
what the hell?  If you further peruse the output from the last gump
build (link above), you will see that the ResourceInstanceTestCase has
the same problem (no info for the 'testrl' resource loader).

The ResourceManager code producing that 'no config info' log message is:

            String loaderName = (String);
            StringBuffer loaderID = new StringBuffer(loaderName);

            ExtendedProperties loaderConfiguration =
            if (loaderConfiguration == null)
                log.debug("ResourceManager : No configuration
information for resource loader named '" +
                          loaderName + "'. Skipping.");

Why this would work for 'file' and not for 'string' or 'testrl' is
currently a baffling mystery to me.  My best guess at this point is
that it is due to some underlying change in Commons-Collections'
ExtendedProperties class.  But that seems kind of unlikely.  Any
insights?  I'm about ready to give up and just find a workaround that
makes gump happy, but if there is a bug coming down the line, that
would not be helpful...

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message