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

NoClassDefFoundError in server log when service task installed in a project

XMLWordPrintable

    • CR1
    • Hide
      1. create a project, create a valid business process, save
      2. install a service task in the Settings tab of the project
      3. restart central
      4. navigate to Projects and select the project
      5. look into server.log for the error mentioned in description
      Show
      create a project, create a valid business process, save install a service task in the Settings tab of the project restart central navigate to Projects and select the project look into server.log for the error mentioned in description

      After enabling a service task, then installing it in a project, then for a process (that doesn't even utilize the new work item) a class loading issue occurs. Sometimes it results in UI 'Unexpected error' dialog, sometimes not (couldn't determine the situation).

      The service task this issue was filed for: CamelXSLTConnector
      Doesn't happen for 'Email' for example.

      When accessing the project without the service task installed:

      2019-03-01 11:40:18,687 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (Thread-165) KieModule was added: MemoryKieModule[releaseId=com.myspace:b:1.0.0-SNAPSHOT]
      2019-03-01 11:40:19,096 INFO  [org.uberfire.ext.metadata.io.IndexerDispatcher] (Thread-165) Completed indexing 1 events for indexer [id=org.kie.workbench.common.stunner.bpmn.backend.indexing.BpmnFileIndexer] in cluster [KClusterImpl [clusterId=MySpace/b/master]].
      2019-03-01 11:40:19,097 INFO  [org.uberfire.ext.metadata.io.BatchIndex] (Thread-165) Completed indexing of MySpace/b/master
      2019-03-01 11:40:22,681 INFO  [org.kie.workbench.common.screens.impl.LibraryServiceImpl] (default task-2) Asset lookup result: project [git://MySpace/b] is indexed with 2 index hits.
      2019-03-01 11:40:23,142 INFO  [org.kie.workbench.common.screens.impl.LibraryServiceImpl] (default task-8) Asset lookup result: project [git://MySpace/b] is indexed with 2 index hits.
      

      after that when the service task is installed, central restarted and user navigates to Projects page:

      2019-03-01 11:36:04,473 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (Thread-172) KieModule was added: MemoryKieModule[releaseId=com.myspace:b:1.0.0-SNAPSHOT]
      2019-03-01 11:36:05,835 WARN  [org.kie.workbench.common.services.backend.builder.core.ClassVerifier] (Thread-172) Verification of class com.sun.xml.bind.v2.runtime.unmarshaller.StAXExConnector failed and will not be available for authoring.
      Underlying system error is: org/jvnet/staxex/XMLStreamReaderEx. Please check the necessary external dependencies for this project are configured correctly.
      2019-03-01 11:36:05,843 WARN  [org.kie.workbench.common.services.backend.builder.core.ClassVerifier] (Thread-172) Verification of class com.sun.xml.bind.v2.runtime.unmarshaller.FastInfosetConnector failed and will not be available for authoring.
      Underlying system error is: com/sun/xml/fastinfoset/stax/StAXDocumentParser. Please check the necessary external dependencies for this project are configured correctly.
      2019-03-01 11:36:06,430 INFO  [org.kie.workbench.common.screens.impl.LibraryServiceImpl] (default task-12) Asset lookup result: project [git://MySpace/b] is indexed with 3 index hits.
      2019-03-01 11:36:07,410 INFO  [org.kie.workbench.common.screens.impl.LibraryServiceImpl] (default task-1) Asset lookup result: project [git://MySpace/b] is indexed with 3 index hits.
      2019-03-01 11:36:07,632 WARN  [org.kie.workbench.common.services.backend.builder.core.ClassVerifier] (Thread-172) Verification of class com.sun.xml.bind.v2.runtime.output.FastInfosetStreamWriterOutput failed and will not be available for authoring.
      Underlying system error is: org/jvnet/fastinfoset/VocabularyApplicationData. Please check the necessary external dependencies for this project are configured correctly.
      2019-03-01 11:36:07,636 WARN  [org.kie.workbench.common.services.backend.builder.core.ClassVerifier] (Thread-172) Verification of class com.sun.xml.bind.v2.runtime.output.StAXExStreamWriterOutput failed and will not be available for authoring.
      Underlying system error is: org/jvnet/staxex/XMLStreamWriterEx. Please check the necessary external dependencies for this project are configured correctly.
      2019-03-01 11:36:07,641 WARN  [org.jboss.modules.define] (Thread-172) Failed to define class com.sun.xml.bind.v2.runtime.output.FastInfosetStreamWriterOutput$AppData in Module "deployment.business-central.war" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link com/sun/xml/bind/v2/runtime/output/FastInfosetStreamWriterOutput$AppData (Module "deployment.business-central.war" from Service Module Loader): org/jvnet/fastinfoset/VocabularyApplicationData
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:839)
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:424)
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:519)
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:731)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:128)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
      	at org.drools.core.common.ProjectClassLoader.internalLoadClass(ProjectClassLoader.java:171)
      	at org.drools.core.common.ProjectClassLoader.loadClass(ProjectClassLoader.java:151)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:348)
      	at org.kie.scanner.KieModuleMetaDataImpl.getClass(KieModuleMetaDataImpl.java:117)
      	at org.kie.workbench.common.services.backend.builder.core.ClassVerifier.verifyClass(ClassVerifier.java:66)
      	at org.kie.workbench.common.services.backend.builder.core.ClassVerifier.verify(ClassVerifier.java:54)
      	at org.kie.workbench.common.services.backend.builder.core.Builder.verifyClasses(Builder.java:292)
      	at org.kie.workbench.common.services.backend.builder.core.Builder.build(Builder.java:269)
      	at org.kie.workbench.common.services.backend.builder.core.BuildHelper.build(BuildHelper.java:92)
      	at org.kie.workbench.common.services.backend.builder.core.BuildHelper$Proxy$_$$_WeldClientProxy.build(Unknown Source)
      	at org.kie.workbench.common.services.backend.builder.ala.LocalBuildExecConfigExecutor.apply(LocalBuildExecConfigExecutor.java:61)
      	at org.kie.workbench.common.services.backend.builder.ala.LocalBuildExecConfigExecutor.apply(LocalBuildExecConfigExecutor.java:32)
      	at org.kie.workbench.common.services.backend.builder.ala.LocalBuildExecConfigExecutor$Proxy$_$$_WeldClientProxy.apply(Unknown Source)
      	at org.guvnor.ala.pipeline.execution.PipelineExecutor.lambda$continuePipeline$0(PipelineExecutor.java:109)
      	at org.guvnor.ala.pipeline.StageUtil$1.execute(StageUtil.java:38)
      	at org.guvnor.ala.pipeline.StageUtil$1.execute(StageUtil.java:33)
      	at org.guvnor.ala.pipeline.execution.PipelineExecutor.continuePipeline(PipelineExecutor.java:94)
      	at org.guvnor.ala.pipeline.execution.PipelineExecutor.execute(PipelineExecutor.java:76)
      	at org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker.invokeLocalBuildPipeLine(BuildPipelineInvoker.java:88)
      	at org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker$Proxy$_$$_WeldClientProxy.invokeLocalBuildPipeLine(Unknown Source)
      	at org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper.invokeLocalBuildPipeLine(BuildServiceHelper.java:152)
      	at org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper.localBuild(BuildServiceHelper.java:82)
      	at org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper$Proxy$_$$_WeldClientProxy.localBuild(Unknown Source)
      	at org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl.build(BuildServiceImpl.java:69)
      	at org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl$Proxy$_$$_WeldClientProxy.build(Unknown Source)
      	at org.kie.workbench.common.services.backend.builder.service.BuildInfoService.getBuildInfo(BuildInfoService.java:59)
      	at org.kie.workbench.common.services.backend.builder.service.BuildInfoService$Proxy$_$$_WeldClientProxy.getBuildInfo(Unknown Source)
      	at org.kie.workbench.common.services.backend.project.ModuleClassLoaderHelper.getModuleClassLoader(ModuleClassLoaderHelper.java:40)
      	at org.kie.workbench.common.services.backend.project.ModuleClassLoaderHelper$Proxy$_$$_WeldClientProxy.getModuleClassLoader(Unknown Source)
      	at org.kie.workbench.common.stunner.bpmn.backend.indexing.AbstractBpmnFileIndexer.getModuleClassLoader(AbstractBpmnFileIndexer.java:162)
      	at org.kie.workbench.common.stunner.bpmn.backend.indexing.AbstractBpmnFileIndexer.fillIndexBuilder(AbstractBpmnFileIndexer.java:85)
      	at org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer.toKObject(AbstractFileIndexer.java:78)
      	at org.kie.workbench.common.stunner.bpmn.backend.indexing.BpmnFileIndexer$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)
      
      2019-03-01 11:36:07,644 WARN  [org.kie.workbench.common.services.backend.builder.core.ClassVerifier] (Thread-172) Verification of class com.sun.xml.bind.v2.runtime.output.FastInfosetStreamWriterOutput$AppData failed and will not be available for authoring.
      Underlying system error is: Failed to link com/sun/xml/bind/v2/runtime/output/FastInfosetStreamWriterOutput$AppData (Module "deployment.business-central.war" from Service Module Loader): org/jvnet/fastinfoset/VocabularyApplicationData. Please check the necessary external dependencies for this project are configured correctly.
      2019-03-01 11:36:07,866 INFO  [org.uberfire.ext.metadata.io.IndexerDispatcher] (Thread-172) Completed indexing 1 events for indexer [id=org.kie.workbench.common.stunner.bpmn.backend.indexing.BpmnFileIndexer] in cluster [KClusterImpl [clusterId=MySpace/b/master]].
      2019-03-01 11:36:07,867 INFO  [org.uberfire.ext.metadata.io.BatchIndex] (Thread-172) Completed indexing of MySpace/b/master
      

        1. Screen Shot 2019-03-25 at 10.03.25 AM.png
          159 kB
          Tihomir Surdilovic
        2. Screen Shot 2019-03-25 at 10.03.49 AM.png
          111 kB
          Tihomir Surdilovic
        3. Screen Shot 2019-03-25 at 9.51.51 AM.png
          117 kB
          Tihomir Surdilovic
        4. Screen Shot 2019-03-25 at 9.52.19 AM.png
          110 kB
          Tihomir Surdilovic
        5. Screen Shot 2019-03-25 at 9.52.36 AM.png
          138 kB
          Tihomir Surdilovic

              rhn-support-wsiqueir William Siqueira
              jstastny@redhat.com Jan Stastny
              Jan Stastny Jan Stastny
              Jan Stastny Jan Stastny
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: