Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2308

Renaming a test scenario containing a tag results in .dot file created and Indexer error thrown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 7.4.1.GA
    • Business Central
    • Business Central

    • CR1
    • -
      • Create a Legacy Test Scenario
      • Add a tag
      • Save the asset
      • Rename the asset
    • 2019 Week 41-43 (from Okt 7), 2020 Week 01-03 (from Dec 30)

      When we create a test scenario in business central 7.4. and then we add a tag to it (overview -> metadata -> tags -> add new tag -> save -> close) a "Dot file" is created after renaming the asset, which business-central does not hide from the search result list, and an exception is thrown:

      08:12:40,140 ERROR [org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer] (Thread-180) Unable to index 'default://master@MySpace/example-Mortgage_Process/src/test/resources/.testscenario3.scenario'.: java.lang.ClassCastException: org.uberfire.java.nio.base.Properties cannot be cast to org.drools.workbench.models.testscenarios.shared.Scenario
      	at org.drools.workbench.models.testscenarios.backend.util.ScenarioXMLPersistence.unmarshal(ScenarioXMLPersistence.java:96)
      	at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer.fillIndexBuilder(TestScenarioFileIndexer.java:49)
      	at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer.fillIndexBuilder(TestScenarioFileIndexer.java:33)
      	at org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer.toKObject(AbstractFileIndexer.java:78)
      	at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer$Proxy$_$$_WeldClientProxy.toKObject(Unknown Source)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processRenamed(IndexerDispatcher.java:244)
      	at org.uberfire.ext.metadata.io.IndexableIOEvent$RenamedFileEvent.apply(IndexableIOEvent.java:97)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processEvent(IndexerDispatcher.java:235)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processEvents(IndexerDispatcher.java:211)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.get(IndexerDispatcher.java:188)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.get(IndexerDispatcher.java:159)
      	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      These ".dotfiles" are created to maintain data to be shown in the "Overview" tab when using any file editor.

        1. Pagination_issue_test.gif
          422 kB
          Rishiraj Anand
        2. RHPAM-2308-stacktrace.txt
          71 kB
          Dominik Hanak

              r_anand Rishiraj Anand (Inactive)
              rhn-support-mcarvalh Marcus Carvalho (Inactive)
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: