You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/07/07 19:37:13 UTC

[jira] Created: (TAPESTRY-379) @Message does not work with parameters

@Message does not work with parameters
--------------------------------------

         Key: TAPESTRY-379
         URL: http://issues.apache.org/jira/browse/TAPESTRY-379
     Project: Tapestry
        Type: Bug
  Components: Annotations  
    Versions: 4.0    
    Reporter: Howard M. Lewis Ship


Looks like the annotation enhancement worker is creating code Javassist can't handle.  

An exception has occurred.

You may continue by restarting the session.

org.apache.hivemind.ApplicationRuntimeException
Error: An error occured processing annotation @org.apache.tapestry.annotations.Message(value=) of public abstract java.lang.String com.vaisala.ww.ui.pages.regwiz.Credentials.userIdExists(java.lang.String): Unable to add method java.lang.String userIdExists(java.lang.String) to class $Credentials_24: [source error] array initializer is not supported
 
org.apache.hivemind.ApplicationRuntimeException
Unable to add method java.lang.String userIdExists(java.lang.String) to class $Credentials_24: [source error] array initializer is not supported
 
javassist.CannotCompileException
[source error] array initializer is not supported
Stack Trace:

    * javassist.CtBehavior.setBody(CtBehavior.java:194)
    * javassist.CtBehavior.setBody(CtBehavior.java:163)
    * org.apache.hivemind.service.impl.ClassFabImpl.addMethod(ClassFabImpl.java:288)
    * org.apache.tapestry.enhance.EnhancementOperationImpl.addMethod(EnhancementOperationImpl.java:337)
    * org.apache.tapestry.annotations.MessageAnnotationWorker.performEnhancement(MessageAnnotationWorker.java:83)
    * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performMethodEnhancement(AnnotationEnhancementWorker.java:106)
    * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performMethodEnhancement(AnnotationEnhancementWorker.java:91)
    * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performEnhancement(AnnotationEnhancementWorker.java:59)
    * $EnhancementWorker_104f258ebca.performEnhancement($EnhancementWorker_104f258ebca.java)
    * $EnhancementWorker_104f258ebcc.performEnhancement($EnhancementWorker_104f258ebcc.java)
    * $EnhancementWorker_104f258ebac.performEnhancement($EnhancementWorker_104f258ebac.java)
    * org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl.getComponentConstructor(ComponentConstructorFactoryImpl.java:76)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (TAPESTRY-379) @Message does not work with parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-379?page=all ]
     
Howard M. Lewis Ship closed TAPESTRY-379:
-----------------------------------------

    Fix Version: 4.0
     Resolution: Fixed

> @Message does not work with parameters
> --------------------------------------
>
>          Key: TAPESTRY-379
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-379
>      Project: Tapestry
>         Type: Bug
>   Components: Annotations
>     Versions: 4.0
>     Reporter: Howard M. Lewis Ship
>     Assignee: Howard M. Lewis Ship
>      Fix For: 4.0

>
> Looks like the annotation enhancement worker is creating code Javassist can't handle.  
> An exception has occurred.
> You may continue by restarting the session.
> org.apache.hivemind.ApplicationRuntimeException
> Error: An error occured processing annotation @org.apache.tapestry.annotations.Message(value=) of public abstract java.lang.String com.vaisala.ww.ui.pages.regwiz.Credentials.userIdExists(java.lang.String): Unable to add method java.lang.String userIdExists(java.lang.String) to class $Credentials_24: [source error] array initializer is not supported
>  
> org.apache.hivemind.ApplicationRuntimeException
> Unable to add method java.lang.String userIdExists(java.lang.String) to class $Credentials_24: [source error] array initializer is not supported
>  
> javassist.CannotCompileException
> [source error] array initializer is not supported
> Stack Trace:
>     * javassist.CtBehavior.setBody(CtBehavior.java:194)
>     * javassist.CtBehavior.setBody(CtBehavior.java:163)
>     * org.apache.hivemind.service.impl.ClassFabImpl.addMethod(ClassFabImpl.java:288)
>     * org.apache.tapestry.enhance.EnhancementOperationImpl.addMethod(EnhancementOperationImpl.java:337)
>     * org.apache.tapestry.annotations.MessageAnnotationWorker.performEnhancement(MessageAnnotationWorker.java:83)
>     * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performMethodEnhancement(AnnotationEnhancementWorker.java:106)
>     * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performMethodEnhancement(AnnotationEnhancementWorker.java:91)
>     * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performEnhancement(AnnotationEnhancementWorker.java:59)
>     * $EnhancementWorker_104f258ebca.performEnhancement($EnhancementWorker_104f258ebca.java)
>     * $EnhancementWorker_104f258ebcc.performEnhancement($EnhancementWorker_104f258ebcc.java)
>     * $EnhancementWorker_104f258ebac.performEnhancement($EnhancementWorker_104f258ebac.java)
>     * org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl.getComponentConstructor(ComponentConstructorFactoryImpl.java:76)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Assigned: (TAPESTRY-379) @Message does not work with parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-379?page=all ]

Howard M. Lewis Ship reassigned TAPESTRY-379:
---------------------------------------------

    Assign To: Howard M. Lewis Ship

> @Message does not work with parameters
> --------------------------------------
>
>          Key: TAPESTRY-379
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-379
>      Project: Tapestry
>         Type: Bug
>   Components: Annotations
>     Versions: 4.0
>     Reporter: Howard M. Lewis Ship
>     Assignee: Howard M. Lewis Ship

>
> Looks like the annotation enhancement worker is creating code Javassist can't handle.  
> An exception has occurred.
> You may continue by restarting the session.
> org.apache.hivemind.ApplicationRuntimeException
> Error: An error occured processing annotation @org.apache.tapestry.annotations.Message(value=) of public abstract java.lang.String com.vaisala.ww.ui.pages.regwiz.Credentials.userIdExists(java.lang.String): Unable to add method java.lang.String userIdExists(java.lang.String) to class $Credentials_24: [source error] array initializer is not supported
>  
> org.apache.hivemind.ApplicationRuntimeException
> Unable to add method java.lang.String userIdExists(java.lang.String) to class $Credentials_24: [source error] array initializer is not supported
>  
> javassist.CannotCompileException
> [source error] array initializer is not supported
> Stack Trace:
>     * javassist.CtBehavior.setBody(CtBehavior.java:194)
>     * javassist.CtBehavior.setBody(CtBehavior.java:163)
>     * org.apache.hivemind.service.impl.ClassFabImpl.addMethod(ClassFabImpl.java:288)
>     * org.apache.tapestry.enhance.EnhancementOperationImpl.addMethod(EnhancementOperationImpl.java:337)
>     * org.apache.tapestry.annotations.MessageAnnotationWorker.performEnhancement(MessageAnnotationWorker.java:83)
>     * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performMethodEnhancement(AnnotationEnhancementWorker.java:106)
>     * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performMethodEnhancement(AnnotationEnhancementWorker.java:91)
>     * org.apache.tapestry.annotations.AnnotationEnhancementWorker.performEnhancement(AnnotationEnhancementWorker.java:59)
>     * $EnhancementWorker_104f258ebca.performEnhancement($EnhancementWorker_104f258ebca.java)
>     * $EnhancementWorker_104f258ebcc.performEnhancement($EnhancementWorker_104f258ebcc.java)
>     * $EnhancementWorker_104f258ebac.performEnhancement($EnhancementWorker_104f258ebac.java)
>     * org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl.getComponentConstructor(ComponentConstructorFactoryImpl.java:76)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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