You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2004/04/06 18:27:24 UTC

DO NOT REPLY [Bug 28235] New: - CodeGenerationException in case of a component parameter type "long"

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28235>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28235

CodeGenerationException in case of a component parameter type "long"

           Summary: CodeGenerationException in case of a component parameter
                    type "long"
           Product: Tapestry
           Version: 3.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Framework
        AssignedTo: tapestry-dev@jakarta.apache.org
        ReportedBy: programozas@hotmail.com


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

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org