Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-525

cfthread does not support attributes collection

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Labels:
      None
    • Environment:

      Railo 3.1.1.000 final running under Tomcat 6.0.20 on WinXP

      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

        Gliffy Diagrams

          Activity

          Hide
          micstriit 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
          micstriit 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 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 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
          micstriit Michael Offner added a comment -

          tnx for input

          Show
          micstriit Michael Offner added a comment - tnx for input

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development