Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-734

ClassNotFoundException during datamodeller indexing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.3.0.GA
    • 7.0.0.GA
    • Data Modeler
    • 2019 Week 05-07

      Hi,

      when creating a data object class which implements Comparable interface, a ClassNotFoundException is thrown when saving the asset (see stacktrace below).

      ~~~~~~~~~~
      22:20:58,722 ERROR [org.kie.workbench.common.screens.datamodeller.backend.server.indexing.JavaSourceVisitor] (Thread-145) Unable to index implemented interface qualified name for class: com.OrderedStatusView, interface: Comparable<OrderedStatusView>: java.lang.ClassNotFoundException: Unable to find class 'Comparable<OrderedStatusView>' at org.kie.soup.project.datamodel.commons.types.ClassTypeResolver.resolveType(ClassTypeResolver.java:268) at org.kie.soup.project.datamodel.commons.types.ClassTypeResolver.resolveType(ClassTypeResolver.java:153) at org.kie.soup.project.datamodel.commons.types.ClassTypeResolver.getFullTypeName(ClassTypeResolver.java:386) at org.kie.workbench.common.screens.datamodeller.backend.server.indexing.JavaSourceVisitor.visit(JavaSourceVisitor.java:151) at org.kie.workbench.common.screens.datamodeller.backend.server.indexing.JavaSourceVisitor.visit(JavaSourceVisitor.java:69) at org.kie.workbench.common.screens.datamodeller.backend.server.indexing.JavaFileIndexer.fillIndexBuilder(JavaFileIndexer.java:139) at org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer.toKObject(AbstractFileIndexer.java:78) at org.kie.workbench.common.screens.datamodeller.backend.server.indexing.JavaFileIndexer$Proxy$_$$_WeldClientProxy.toKObject(Unknown Source) at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processNew(IndexerDispatcher.java:255) at org.uberfire.ext.metadata.io.IndexableIOEvent$NewFileEvent.apply(IndexableIOEvent.java:62) 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)

      ~~~~~~~~~~

              wmedvede@redhat.com Walter Medvedeo
              rhn-support-abchavan Abhijeet Chavan (Inactive)
              Tomas David Tomas David
              Tomas David Tomas David
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: