[ 
https://issues.apache.org/jira/browse/TAP5-1893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Howard M. Lewis Ship closed TAP5-1893.
--------------------------------------

    Resolution: Invalid
      Assignee: Howard M. Lewis Ship

The "base" package is for base component classes (that may be extended inside 
the "mixins", "components", or "pages" packages). No other type of object is 
allowed inside any of the controlled component class packages.
                
> java.lang.VerifyError in conjunction with @Mappedsuperclass and @InjectPage
> ---------------------------------------------------------------------------
>
>                 Key: TAP5-1893
>                 URL: https://issues.apache.org/jira/browse/TAP5-1893
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-hibernate, tapestry-ioc
>            Reporter: quurks
>            Assignee: Howard M. Lewis Ship
>         Attachments: MappedSuperclass.zip
>
>
> java.lang.VerifyError
> (class: $InternalPropertyConduit_1604a8692384, method: set signature: 
> (Ljava/lang/Object;Ljava/lang/Object;)V) Incompatible object argument for 
> function call
>  Stack trace :
>  java.lang.Class.getDeclaredConstructors0(Native Method) 
>  java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) 
>  java.lang.Class.getConstructor0(Class.java:2699) 
>  java.lang.Class.getConstructor(Class.java:1657) 
>  
> org.apache.tapestry5.internal.plastic.PlasticClassImpl.createInstantiatorFromClass(PlasticClassImpl.java:365)
>  
>  
> org.apache.tapestry5.internal.plastic.PlasticClassImpl.createInstantiator(PlasticClassImpl.java:358)
>  
>  
> org.apache.tapestry5.plastic.PlasticManager.createProxy(PlasticManager.java:237)
>  
>  
> org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.createProxy(PlasticProxyFactoryImpl.java:60)
>  
>  
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:1416)
>  
>  
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:1320)
>  
>  
> org.apache.tapestry5.internal.bindings.PropBindingFactory.newBinding(PropBindingFactory.java:49)
>  
>  
> org.apache.tapestry5.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:80)
>  
>  
> org.apache.tapestry5.internal.services.PageElementFactoryImpl.newExpansionElement(PageElementFactoryImpl.java:162)
>  
>  
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$15.execute(PageLoaderImpl.java:1011)
>  
>  
> org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.runActions(ComponentAssemblerImpl.java:235)
>  
>  
> org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.performAssembleRootComponent(ComponentAssemblerImpl.java:113)
>  
>  
> org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.access$000(ComponentAssemblerImpl.java:40)
>  
>  
> org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl$1.invoke(ComponentAssemblerImpl.java:88)
>  
>  
> org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl$1.invoke(ComponentAssemblerImpl.java:85)
>  
>  
> org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleRootComponent(ComponentAssemblerImpl.java:83)
>  
>  
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:185)
>  
>  
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:178)
>  
>  
> org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:177)
>  
>  
> org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:104)
>  
>  
> org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:82)
>  
>  
> org.apache.tapestry5.internal.services.ComponentSourceImpl.getPage(ComponentSourceImpl.java:83)
>  
>  
> org.apache.tapestry5.internal.transform.InjectPageWorker$InjectedPageConduit.get(InjectPageWorker.java:55)
>  
>  org.mappedsuperclass.pages.Index.conduit_get_viewPageSuper(Index.java) 
>  
> org.mappedsuperclass.pages.Index.advised$onActionFromCreateSuper_1604a8692330(Index.java:34)
> Because thats not that helpfull, I have created an example application.
> Basically this problem problem occurs when you inject a page with an Entity 
> which extends a superclass. 
> In the application (It expects a Mysql-DB named test with credentials 
> root/qwert) are 2 links, one labled createnormal, which works as I would 
> expect, and one labled createsuper, wich creates basically the same entity, 
> except all the logic is in the superclass.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to