Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-152

CodeGenerationException in case of a component parameter type "long"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 3.0
    • None
    • Framework
    • None
    • Operating System: Windows XP
      Platform: PC
    • 28235

    Description

      In my component I have a required auto parameter with type long and I bind a
      long property to it. In this case I get the following exception:

      org.apache.tapestry.ApplicationRuntimeException
      A code generation error occured while enhancing class
      example.AddressPanel.

      org.apache.tapestry.enhance.CodeGenerationException

      javassist.CannotCompileException
      [source error] Method setObject not found in
      org.apache.tapestry.IBinding
      reason:javassist.CannotCompileException: [source error] Method setObject
      not found in org.apache.tapestry.IBinding

      Stack Trace:
      a.. javassist.CtBehavior.setBody(CtBehavior.java:163)
      b.. javassist.CtMethod.setBody(CtMethod.java:311)
      c..
      org.apache.tapestry.enhance.javassist.CreateAutoParameterEnhancer.createWrit
      eMethod(CreateAutoParameterEnhancer.java:187)
      d.. ...

      If I change the type of the parameter from long to either java.lang.Long or
      int it works OK. (The bound property remained type long.)

      I use Tapestry RC2, J2SE1.4.2_04, Tomcat 5.0.19.
      I have deployed RC2 very carefully to prevent any classpath errors.

      Thanks for any help,
      Norbi

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            programozas@hotmail.com Norbert P.
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: