Hello,

It doesn't happens in all machines..

In my computer it works, in another computer it doesn't..

I cannot warranty that if I provide a demo app it will fail. Don't know in 
which conditions if fails.

I have debbugged a little and the error, as the stack trace points, occurs in 

 
NVelocity.Runtime.Resource.Loader.AssemblyResourceLoader.Init(ExtendedProperties
 configuration)

It is the method

 public override void Init(ExtendedProperties configuration)
    {
        object value = configuration["assembly"];
        if (value is string)
        {
            List<string> assemblies = new List<string>();
            assemblies.Add((string) configuration["assembly"]);
            ...
        }
        else
        {
            if (!(value is List<string>))
            {
                throw new VelocityException("Expected property 'assembly' to be 
of type string or List<string>.");
            }
            this.assemblyNames = configuration.GetStringList("assembly");
        }
    }

The configuration["assembly"] is neither string nor List<String>

As I said, I does not occurre in all machines

  ----- Original Message ----- 
  From: Jonathon Rossi 
  To: [email protected] 
  Sent: Wednesday, July 15, 2009 3:37 AM
  Subject: Re: [Monorail] - Scaffolding error (Urgent)


  Can you provide a demo app or a test case that I can use. It looks like it 
may be a NVelocity issue, however it is difficult to confirm with a stack trace 
without line numbers.


  On Wed, Jul 15, 2009 at 1:07 AM, [email protected] 
<[email protected]> wrote:


    Hello,

    I have an application that manage some catalogs.. In order to achive
    this I use scaffolding
    The problem is that it is generating this exception:

    Cannot convert an object of type  'System.Collections.ArrayList' to
    'System.Collections.Generic.List`1[System.String]'.

    StackTrace

    [InvalidCastException: Cannot convert an object of type
    'System.Collections.ArrayList' to 'System.Collections.Generic.List`1
    [System.String]'.
      Commons.Collections.ExtendedProperties.GetStringList(String key)
    +85
      NVelocity.Runtime.Resource.Loader.AssemblyResourceLoader.Init
    (ExtendedProperties configuration) +48
      NVelocity.Runtime.Resource.ResourceManagerImpl.Initialize
    (IRuntimeServices rs) +420
      NVelocity.Runtime.RuntimeInstance.initializeResourceManager() +428
      NVelocity.Runtime.RuntimeInstance.Init() +101
      NVelocity.Runtime.RuntimeInstance.Init(ExtendedProperties p) +66
      NVelocity.App.VelocityEngine.Init(ExtendedProperties p) +42

    
Castle.Components.Common.TemplateEngine.NVelocityTemplateEngine.NVelocityTemplateEngine.BeginInit
    () +1070

    
Castle.MonoRail.ActiveRecordSupport.Scaffold.ScaffoldingSupport.InitializeTemplateEngine
    () +99

    Castle.MonoRail.ActiveRecordSupport.Scaffold.ScaffoldingSupport.Process
    (IEngineContext context, IController controller, IControllerContext
    controllerContext) +95
      Castle.MonoRail.Framework.Controller.ProcessScaffoldIfAvailable()
    +169
      Castle.MonoRail.Framework.Controller.PrepareToExecuteAction
    (IEngineContext engineContext, IControllerContext context) +108
      Castle.MonoRail.Framework.Controller.Process(IEngineContext
    engineContext, IControllerContext context) +40
      Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext
    context) +150

    [MonoRailException: Error processing MonoRail request. Action list on
    controller operator]
      Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext
    context) +444
      Castle.MonoRail.Framework.BaseHttpHandler.ProcessRequest
    (HttpContext context) +36

    
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
    () +181
      System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
    Boolean& completedSynchronously) +75








  -- 
  Jono

  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to