Bug 1202293 - java.lang.LinkageError: Failed to link org/eclipse/jdt/core/JDTCompilerAdapter with jbpm-executor as project dependency
Summary: java.lang.LinkageError: Failed to link org/eclipse/jdt/core/JDTCompilerAdapte...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: DR1
: 6.2.0
Assignee: manstis
QA Contact: Dominik Hanak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-16 10:25 UTC by Zuzana Krejčová
Modified: 2020-03-27 19:40 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:40:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
server.log (2.40 MB, text/plain)
2015-03-16 10:25 UTC, Zuzana Krejčová
no flags Details
field types in data modeler (10.92 KB, text/plain)
2015-03-16 11:15 UTC, Zuzana Krejčová
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1201853 0 high CLOSED Huge amount ClassNotFoundException WARNs on project build 2021-02-22 00:41:40 UTC

Internal Links: 1201853

Description Zuzana Krejčová 2015-03-16 10:25:53 UTC
Created attachment 1002201 [details]
server.log

Description of problem:
When org.jbpm:jbpm-executor:6.2.0.Final-redhat-2 is added as dependency to a project, M2Servlet first starts downloading artifacts, then after getting to:

INFO  [o.g.m.b.s.M2Servlet] ... GET request received for /commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar

there's a ton of WARNs logged to the server log, all similar to this:

WARN  [org.jboss.modules] (EJB default - 3) Failed to define class org.eclipse.jdt.core.JDTCompilerAdapter in Module "org.jboss.as.web:main" from local module loader @602f958 (finder: local module finder @2d40037d (roots: <path_to_product>/modules,<path_to_product>/modules/system/layers/base)): java.lang.LinkageError: Failed to link org/eclipse/jdt/core/JDTCompilerAdapter (Module "org.jboss.as.web:main" from local module loader @602f958 (finder: local module finder @2d40037d (roots: <path_to_product>/modules,<path_to_product>/modules/system/layers/base)))

Further interesting logs:

WARN  [org.kie.workbench.common.services.backend.builder.Builder] (EJB default - 3) Verification of class org.eclipse.jdt.core.JDTCompilerAdapter$1 failed and will not be available for authoring.

WARN  [org.jboss.modules] (EJB default - 3) Failed to define class freemarker.ext.jdom.NodeListModel$JDOMXPathEx in Module "deployment.business-central.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link freemarker/ext/jdom/NodeListModel$JDOMXPathEx (Module "deployment.business-central.war:main" from Service Module Loader)

WARN  [org.kie.workbench.common.services.backend.builder.Builder] (EJB default - 3) Verification of class freemarker.ext.jdom.NodeListModel$JDOMXPathEx$NamespaceContextImpl failed and will not be available for authoring.

WARN  [org.jboss.modules] (EJB default - 3) Failed to define class freemarker.template.utility.JythonRuntime in Module "deployment.business-central.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link freemarker/template/utility/JythonRuntime (Module "deployment.business-central.war:main" from Service Module Loader)

Caused by: java.lang.ClassNotFoundException: org.jaxen.NamespaceContext from [Module "deployment.business-central.war:main" from Service Module Loader]

See attached server log.

Version-Release number of selected component (if applicable):
6.1 ER6


Steps to Reproduce:
(0. Point business-central to valid product maven repository. Use EAP 6.4.)
1. Create an empty project, open editor for pom.xml.
2. Add dependency on org.jbpm:jbpm-executor:6.2.0.Final-redhat-2.
3. Save the changes, look into server log (wait a minute or two).

Comment 1 Zuzana Krejčová 2015-03-16 11:04:00 UTC
This happens for every incremental build.
The log also contains some errors:
ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-/10.40.2.129:8080-1) Failed to link freemarker/template/utility/JythonRuntime (Module "deployment.business-central.war:main" from Service Module Loader)
ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-/10.40.2.129:8080-1) sun/misc/Unsafe
ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-/10.40.2.129:8080-1) Lsun/misc/Unsafe;
ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-/10.40.2.129:8080-1) Failed to link freemarker/ext/jdom/NodeListModel$JDOMXPathEx (Module "deployment.business-central.war:main" from Service Module Loader)
ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-/10.40.2.129:8080-1) freemarker/ext/jdom/NodeListModel$JDOMXPathEx

Comment 2 Zuzana Krejčová 2015-03-16 11:10:25 UTC
The business central is significantly slower, Messages panel contains these warnings as well, project can be built. There are some issues within the Data modeler - there's a complete mess in the available field types - see screenshot.

Comment 3 Zuzana Krejčová 2015-03-16 11:15:34 UTC
Created attachment 1002208 [details]
field types in data modeler

Seem I cannot capture screenshot with the field type select box open, so here's a bit of the element itself.

Comment 5 manstis 2015-03-16 15:43:44 UTC
(In reply to Zuzana Krejčová from comment #3)
> Created attachment 1002208 [details]
> field types in data modeler
> 
> Seem I cannot capture screenshot with the field type select box open, so
> here's a bit of the element itself.

That looks correct to me. A lot of the classes cannot have their definitions retrieved and hence are prefixed "-ext-" meaning they are from an external source and their definition cannot be modified.

I am discussing the other issue on the related BZ.

Comment 6 Zuzana Krejčová 2015-03-16 15:48:09 UTC
(In reply to manstis from comment #5)
> That looks correct to me. A lot of the classes cannot have their definitions
> retrieved and hence are prefixed "-ext-" meaning they are from an external
> source and their definition cannot be modified.
> 
> I am discussing the other issue on the related BZ.

The '-ext-' part is okay, the '- ext - [[[[C' bit (and similar) is not, I think. :)

Comment 7 Dominik Hanak 2015-10-07 09:54:59 UTC
Project with dependency on jbpm-executor cannot be built as expected.
Error message: "Unresolved dependency org.jbpm:jbpm-executor..." is shown in Messages panel as it should be.

Log messages:
11:31:44,341 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: org.jbpm:jbpm-executor:6.2.0.Final-redhat-2
11:31:44,403 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: org.jbpm:jbpm-executor:pom:6.2.0.Final-redhat-2
11:31:44,511 WARN  [org.kie.scanner.MavenRepository] (EJB default - 1) Unable to resolve artifact: org.jbpm:jbpm-executor:6.2.0.Final-redhat-2
11:31:44,511 ERROR [org.kie.scanner.MavenClassLoaderResolver] (EJB default - 1) Dependency artifact not found for: org.jbpm:jbpm-executor:6.2.0.Final-redhat-2
11:31:44,518 WARN  [org.drools.compiler.kie.builder.impl.AbstractKieModule] (EJB default - 1) No files found for KieBase defaultKieBase

Verified in 6.2.0.ER3.


Note You need to log in before you can comment on or make changes to this bug.