Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1893

java.lang.VerifyError in conjunction with @Mappedsuperclass and @InjectPage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      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.

        Attachments

        1. MappedSuperclass.zip
          8 kB
          quurks

          Activity

            People

            • Assignee:
              hlship Howard Lewis Ship
              Reporter:
              quurks quurks
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: