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

Occasional asset exception in Workbench

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 4.0
    • None
    • Framework
    • None

    Description

      When using the workbench application in some cases, a page fails to load and the following exception appears (usually on the second request). It seems to me this is likely a bug with the annotation support of the framework.

      org.apache.hivemind.ApplicationRuntimeException
      Error: An error occured processing annotation @org.apache.tapestry.annotations.Asset(value=images/tab-active-left.gif) of public abstract org.apache.tapestry.IAsset org.apache.tapestry.workbench.components.Border.getActiveLeft(): Asset activeLeft has already been declared (at Annotation @org.apache.tapestry.annotations.Asset(value=images/tab-active-left.gif) of public abstract org.apache.tapestry.IAsset org.apache.tapestry.workbench.components.Border.getActiveLeft()).
      location: Annotation @org.apache.tapestry.annotations.Asset(value=images/tab-active-left.gif) of public abstract org.apache.tapestry.IAsset org.apache.tapestry.workbench.components.Border.getActiveLeft()

      org.apache.hivemind.ApplicationRuntimeException
      Asset activeLeft has already been declared (at Annotation @org.apache.tapestry.annotations.Asset(value=images/tab-active-left.gif) of public abstract org.apache.tapestry.IAsset org.apache.tapestry.workbench.components.Border.getActiveLeft()).
      location: Annotation @org.apache.tapestry.annotations.Asset(value=images/tab-active-left.gif) of public abstract org.apache.tapestry.IAsset org.apache.tapestry.workbench.components.Border.getActiveLeft()
      Stack Trace:

      • org.apache.tapestry.spec.ComponentSpecification.addAsset(ComponentSpecification.java:183)
      • org.apache.tapestry.annotations.AssetAnnotationWorker.performEnhancement(AssetAnnotationWorker.java:56)
      • org.apache.tapestry.annotations.AnnotationEnhancementWorker.performMethodEnhancement(AnnotationEnhancementWorker.java:125)
      • org.apache.tapestry.annotations.AnnotationEnhancementWorker.performMethodEnhancement(AnnotationEnhancementWorker.java:108)
      • org.apache.tapestry.annotations.AnnotationEnhancementWorker.performEnhancement(AnnotationEnhancementWorker.java:68)
      • $EnhancementWorker_105b3f8ffe4.performEnhancement($EnhancementWorker_105b3f8ffe4.java)
      • $EnhancementWorker_105b3f8ffe6.performEnhancement($EnhancementWorker_105b3f8ffe6.java)
      • $EnhancementWorker_105b3f8ffc6.performEnhancement($EnhancementWorker_105b3f8ffc6.java)
      • org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl.getComponentConstructor(ComponentConstructorFactoryImpl.java:79)
      • $ComponentConstructorFactory_105b3f8ffaf.getComponentConstructor($ComponentConstructorFactory_105b3f8ffaf.java)
      • org.apache.tapestry.pageload.PageLoader.instantiateComponent(PageLoader.java:556)
      • org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:507)
      • $IPageLoader_105b3f8ffab.createImplicitComponent($IPageLoader_105b3f8ffab.java)
      • $IPageLoader_105b3f8ffac.createImplicitComponent($IPageLoader_105b3f8ffac.java)
      • org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent(ComponentTemplateLoaderLogic.java:219)
      • org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:173)
      • org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:112)
      • org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:89)
      • org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:61)
      • $ComponentTemplateLoader_105b3f8ffb3.loadTemplate($ComponentTemplateLoader_105b3f8ffb3.java)
      • org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:661)
      • org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:77)
      • org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:107)
      • org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:469)
      • org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:632)
      • $IPageLoader_105b3f8ffab.loadPage($IPageLoader_105b3f8ffab.java)
      • $IPageLoader_105b3f8ffac.loadPage($IPageLoader_105b3f8ffac.java)
      • org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:118)
      • $IPageSource_105b3f8ff12.getPage($IPageSource_105b3f8ff12.java)
      • org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:265)
      • org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:248)
      • org.apache.tapestry.engine.DirectService.service(DirectService.java:95)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mindbridge Teodor Georgiev Toncher
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: