Railo
  1. Railo
  2. RAILO-525

cfthread does not support attributes collection

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 3.1 Final (3.1.1.000)
    • Fix Version/s: 3.1.2.003
    • Labels:
      None
    • Environment:
      Railo 3.1.1.000 final running under Tomcat 6.0.20 on WinXP
    • Similar Issues:
      Show 10 results 

      Description

      This code:

      <cfset collection =

      {action="run", name=threadName, event=arguments.event, interceptData=arguments.interceptData }

      />

      <cfthread attributeCollection="#collection#">

      Produces this error:

      Error Type: java.lang.classcastexception : 0
      Error Messages: railo.runtime.tag.ThreadTag cannot be cast to
      railo.runtime.ext.tag.DynamicAttributes

        Activity

        Hide
        Michael Offner
        added a comment -

        can not reproduce issue on version 3.1.2.001 (current stable release), please update to this version and check again.

        Show
        Michael Offner
        added a comment - can not reproduce issue on version 3.1.2.001 (current stable release), please update to this version and check again.
        Hide
        Judah McAuley
        added a comment -

        I've updated as requested and the operation still throws an error (although it is a different error)

        This code:

        <cfset collection =

        {action="run", name=threadName, event=arguments.event, interceptData=arguments.interceptData }

        />

        <cfthread attributesCollection="#collection#">

        Now throws the error:

        Error Type: application : 0
        Error Messages: Attribute [name] for tag [thread] is required if attribute action has the value [run]

        I receive this error regardless of whether the name value in the collection struct is a static string or a dynamic variable.

        Show
        Judah McAuley
        added a comment - I've updated as requested and the operation still throws an error (although it is a different error) This code: <cfset collection = {action="run", name=threadName, event=arguments.event, interceptData=arguments.interceptData } /> <cfthread attributesCollection="#collection#"> Now throws the error: Error Type: application : 0 Error Messages: Attribute [name] for tag [thread] is required if attribute action has the value [run] I receive this error regardless of whether the name value in the collection struct is a static string or a dynamic variable.
        Hide
        Michael Offner
        added a comment -

        tnx for input

        Show
        Michael Offner
        added a comment - tnx for input

          People

          • Assignee:
            Michael Offner
            Reporter:
            Judah McAuley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: