"FAILED TO COMPILE CLASS" errai errors in "dashbuilder-runtime.war"

Solution Verified - Updated -

Issue

Below error output from errai component is observed in JBoss EAP server.log when dashbuilder-runtime.war is deployed following installation guide :

2021-03-24 14:39:38,437 ERROR [stderr] (MSC service thread 1-6) *** FAILED TO COMPILE CLASS ***
2021-03-24 14:39:38,438 ERROR [stderr] (MSC service thread 1-6) *** Classpath Used: ....../jboss-eap-7.3/jboss-modules.jar
2021-03-24 14:39:38,449 ERROR [stderr] (MSC service thread 1-6) ----------
2021-03-24 14:39:38,452 ERROR [stderr] (MSC service thread 1-6) 1. ERROR in /tmp/.../errai/.../errai.gen/classes/org/jboss/errai/cdi/EventQualifierSerializerImpl.java (at line 4)
2021-03-24 14:39:38,454 ERROR [stderr] (MSC service thread 1-6)     import javax.inject.Named;
2021-03-24 14:39:38,455 ERROR [stderr] (MSC service thread 1-6)            ^^^^^^^^^^^^^^^^^^
2021-03-24 14:39:38,456 ERROR [stderr] (MSC service thread 1-6) The import javax.inject.Named cannot be resolved
2021-03-24 14:39:38,456 ERROR [stderr] (MSC service thread 1-6) ----------
2021-03-24 14:39:38,458 ERROR [stderr] (MSC service thread 1-6) 2. WARNING in /tmp/.../errai/.../errai.gen/classes/org/jboss/errai/cdi/EventQualifierSerializerImpl.java (at line 14)
2021-03-24 14:39:38,461 ERROR [stderr] (MSC service thread 1-6)     serializers.put("org.jboss.errai.ioc.client.api.ReplyTo", AnnotationPropertyAccessorBuilder.create().with("value", new Function() {
2021-03-24 14:39:38,463 ERROR [stderr] (MSC service thread 1-6)       public Object apply(final Object anno) {
2021-03-24 14:39:38,464 ERROR [stderr] (MSC service thread 1-6)         return SharedAnnotationSerializer.stringify(((ReplyTo) anno).value());
2021-03-24 14:39:38,465 ERROR [stderr] (MSC service thread 1-6)       }
2021-03-24 14:39:38,465 ERROR [stderr] (MSC service thread 1-6)     }).build());
2021-03-24 14:39:38,469 ERROR [stderr] (MSC service thread 1-6)                                                                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-03-24 14:39:38,470 ERROR [stderr] (MSC service thread 1-6) Type safety: The expression of type new Function(){} needs unchecked conversion to conform to Function<Annotation,String>
2021-03-24 14:39:38,471 ERROR [stderr] (MSC service thread 1-6) ----------
2021-03-24 14:39:38,472 ERROR [stderr] (MSC service thread 1-6) 3. WARNING in /tmp/.../errai/.../errai.gen/classes/org/jboss/errai/cdi/EventQualifierSerializerImpl.java (at line 14)
2021-03-24 14:39:38,473 ERROR [stderr] (MSC service thread 1-6)     serializers.put("org.jboss.errai.ioc.client.api.ReplyTo", AnnotationPropertyAccessorBuilder.create().with("value", new Function() {
2021-03-24 14:39:38,475 ERROR [stderr] (MSC service thread 1-6)                                                                                                                            ^^^^^^^^
2021-03-24 14:39:38,476 ERROR [stderr] (MSC service thread 1-6) Function is a raw type. References to generic type Function<T,R> should be parameterized
2021-03-24 14:39:38,476 ERROR [stderr] (MSC service thread 1-6) ----------
2021-03-24 14:39:38,477 ERROR [stderr] (MSC service thread 1-6) 4. WARNING in /tmp/.../errai/.../errai.gen/classes/org/jboss/errai/cdi/EventQualifierSerializerImpl.java (at line 19)
2021-03-24 14:39:38,478 ERROR [stderr] (MSC service thread 1-6)     serializers.put("javax.inject.Named", AnnotationPropertyAccessorBuilder.create().with("value", new Function() {
2021-03-24 14:39:38,478 ERROR [stderr] (MSC service thread 1-6)       public Object apply(final Object anno) {
2021-03-24 14:39:38,479 ERROR [stderr] (MSC service thread 1-6)         return SharedAnnotationSerializer.stringify(((Named) anno).value());
2021-03-24 14:39:38,479 ERROR [stderr] (MSC service thread 1-6)       }
2021-03-24 14:39:38,480 ERROR [stderr] (MSC service thread 1-6)     }).build());
2021-03-24 14:39:38,481 ERROR [stderr] (MSC service thread 1-6)                                                                                                    
......

Environment

  • Red Hat Process Automation Manager (RHPAM)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In