Skip to content

Instantly share code, notes, and snippets.

View romartin's full-sized avatar

Roger Martínez romartin

  • RedHat
  • Barcelona
View GitHub Profile
package org.kie.workbench.common.stunner.client.lienzo.components.views;
import javax.enterprise.context.Dependent;
import com.ait.lienzo.client.core.shape.Group;
import com.ait.lienzo.client.core.shape.Layer;
import org.kie.workbench.common.stunner.client.lienzo.canvas.wires.WiresCanvas;
import org.kie.workbench.common.stunner.core.client.canvas.Canvas;
import org.kie.workbench.common.stunner.core.client.components.views.EmptyScreen;
package org.kie.workbench.common.stunner.core.client.components.views;
import org.kie.workbench.common.stunner.core.client.canvas.Canvas;
public interface EmptyScreen {
public void configure(Canvas canvas, String text);
public void show();
Class Node
**********
protected Node<T> copyTo(Node<T> other) {
other.m_type = this.m_type;
other.x = this.x;
other.y = this.y;
other.rotation = this.rotation;
other.scale = this.scale.copy();
other.shear = this.shear.copy();
other.offset = this.offset.copy();
@romartin
romartin / gist:659bc4129f3c075914603a29944ef7c3
Created October 25, 2019 00:33
Stunner - Compilation issues after AF-2125
[INFO] --- gwt-maven-plugin:2.8.2:compile (gwt-compile) @ kie-wb-common-bpmn-kogito-runtime ---
[INFO] Compiling module org.kie.workbench.common.stunner.kogito.KogitoBPMNEditorWithSourceMap
[INFO] Tracing compile failure path for type 'org.kie.workbench.common.stunner.kogito.client.editor.BPMNDiagramEditor'
[INFO] [ERROR] Errors in 'file:/home/roger/development/romartin/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-kogito-runtime/src/main/webapp/WEB-INF/classes/org/kie/workbench/common/stunner/kogito/client/editor/BPMNDiagramEditor.java'
[INFO] [ERROR] Line 101: No source code is available for type org.uberfire.ext.widgets.core.client.editors.texteditor.TextEditorView; did you forget to inherit a required module?
[INFO] [ERROR] Errors in 'jar:file:/home/roger/.m2/repository/org/kie/workbench/stunner/kie-wb-common-stunner-kogito-client/7.29.0-SNAPSHOT/kie-wb-common-stunner-kogito-client-7.29.0-SNAPSHOT-sources.jar!/o
@romartin
romartin / gist:5919df003b957456eee86825cefd29dd
Created October 18, 2019 00:28
lienzo-core compilation issues when moving from elemental2 RC1 back to beta-1 (as appformer)
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project lienzo-core: Compilation failure: Compilation failure:
[ERROR] /home/roger/development/temp/lienzo-to-native/lienzo-core/src/main/java/com/ait/lienzo/client/core/AttributeOp.java:[25,23] cannot find symbol
[ERROR] symbol: class JsArray
[ERROR] location: package elemental2.core
[ERROR] /home/roger/development/temp/lienzo-to-native/lienzo-core/src/main/java/com/ait/lienzo/client/core/event/AbstractNodeHumanInputEvent.java:[8,23] cannot find symbol
[ERROR] symbol: class JsArray
[ERROR] location: package elemental2.core
[ERROR] /home/roger/development/temp/lienzo-to-native/lienzo-core/src/main/java/com/ait/lienzo/tools/client/collection/NArrayBase.java:[22,23] cannot find symbol
[ERROR] symbol: class JsIterable
[ERROR] location: package elemental2.core
{"ToSubject":"org.uberfire.ext.security.management.api.service.UserManagerService:RPC.search:org.uberfire.ext.security.management.api.AbstractEntityManager.SearchRequest::153:RespondTo:RPC"} | Uncaught exception: Client-side exception occurred although RPC call succeeded. Caused by: (TypeError) : Cannot read property 'kQw' of null | {"ToSubject":"org.uberfire.ext.security.management.api.service.GroupManagerService:RPC.search:org.uberfire.ext.security.management.api.AbstractEntityManager.SearchRequest::155:RespondTo:RPC"}
[INFO] Compiling module org.kie.workbench.common.stunner.project.StunnerProjectShowcase
[INFO] Tracing compile failure path for type 'elemental2.core.Float32Array'
[INFO] [ERROR] Errors in 'jar:file:/home/roger/.m2/repository/com/vertispan/elemental2/elemental2-core/1.0.0-SNAPSHOT/elemental2-core-1.0.0-SNAPSHOT.jar!/elemental2/core/Float32Array.java'
[INFO] [ERROR] Line 97: The method asString(Float32Array.FromSourceUnionType) is undefined for the type Js
[INFO] [ERROR] Line 34: The method asInt(Float32Array.ConstructorLengthUnionType) is undefined for the type Js
[INFO] [ERROR] Errors in 'jar:file:/home/roger/.m2/repository/com/vertispan/elemental2/elemental2-core/1.0.0-SNAPSHOT/elemental2-core-1.0.0-SNAPSHOT.jar!/elemental2/core/TypedArray.java'
[INFO] [ERROR] Line 57: The method asDouble(TypedArray.ReduceCallbackFn.P0UnionType<INIT,RET>) is undefined for the type Js
[INFO] [ERROR] Line 91: The method asDouble(TypedArray.ReduceRightCallbackFn.P0UnionType<IN
[INFO] Compiling module org.kie.workbench.common.stunner.project.StunnerProjectShowcase
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:55 min
[INFO] Finished at: 2019-10-01T20:51:40+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project kie-wb-common-library-backend: Compilation failure: Compilation failure:
[ERROR] /home/roger/development/romartin/kie-wb-common/kie-wb-common-screens/kie-wb-common-library/kie-wb-common-library-backend/src/main/java/org/kie/workbench/common/screens/impl/LibraryServiceImpl.java:[57,55] package org.guvnor.structure.repositories.changerequest does not exist
[ERROR] /home/roger/development/romartin/kie-wb-common/kie-wb-common-screens/kie-wb-common-library/kie-wb-common-library-backend/src/main/java/org/kie/workbench/common/screens/impl/LibraryServiceImpl.java:[126
@romartin
romartin / gist:4b43d2222e705bb5b374ef371a2447b5
Created August 23, 2019 23:20
bpmn kogito showcase - issue running the server
01:20:56,136 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 6) WELD-000119: Not generating any bean definitions from org.jboss.errai.ServerMarshallingFactoryImpl$Marshaller_o_k_w_c_s_c_c_i_CommandResultImpl_Impl because of underlying class loading error: Type Failed to link org.jboss.errai.ServerMarshallingFactoryImpl$Marshaller_o_k_w_c_s_c_c_i_CommandResultImpl_Impl (Module "deployment.ROOT.war" from Service Module Loader): org.jboss.errai.marshalling.client.api.GeneratedMarshaller not found. If this is unexpected, enable DEBUG logging to see the full error.
01:20:56,136 WARN [org.jboss.modules.define] (Weld Thread Pool -- 7) Failed to define class org.jboss.errai.ServerMarshallingFactoryImpl$Marshaller_o_u_m_i_PathPlaceRequest_Impl in Module "deployment.ROOT.war" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link org/jboss/errai/ServerMarshallingFactoryImpl$Marshaller_o_u_m_i_PathPlaceRequest_Impl (Module "deployment.ROOT.war" from Service Module Loader): org/jboss/errai/mar