Skip to content

Instantly share code, notes, and snippets.

Error: java.util.ConcurrentModificationException
at ConcurrentModificationException.createError (ContentCentral-0.js:3728)
at ConcurrentModificationException.initializeBackingError (ContentCentral-0.js:3739)
at ConcurrentModificationException.RuntimeException (ContentCentral-0.js:3754)
at ConcurrentModificationException (ContentCentral-0.js:5165)
at checkStructuralChange (ContentCentral-0.js:5154)
at $next (ContentCentral-0.js:4685)
at cycleAnimations_ (ContentCentral-0.js:1129)
at AnimationDelay$0methodref$doAction$Type.apply_0 [as apply_1] (ContentCentral-0.js:512)
at apply_42 (ContentCentral-0.js:3828)
@ailabs-software
ailabs-software / file.java
Created March 13, 2017 19:16
Line 20: Native JsType method 'boolean PipelineItemLayoutModel.equals(Object)' should be native or abstract.
@JsType(isNative=true, namespace=GLOBAL, name="Object")
public class PipelineItemLayoutModel
{
public String templateName;
public int alignment; // 0 is left, 1 is right
public int openType;
public String button;
public String buttonTheme;
public String buttonColor;
public List<String> activeFields;
package client.model;
import java.util.List;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsOverlay;
import static jsinterop.annotations.JsPackage.GLOBAL;
@JsType(isNative=true, namespace=GLOBAL, name="Object")
public class PipelineItemLayoutModel
@ailabs-software
ailabs-software / gist:44b313db4e713a5adf345be992a0384f
Created April 4, 2017 00:54
GWT error when nesting for loops
public void resolveResize(Size targetSize)
{
// Main loop over layout boxes.
for (CartesianLayoutBox box : xyLayout.getLayoutBoxes() )
{
// Try each resolution strategy, only one can match the box.
// The acceptance dependent upon the resolution strategy identifying the relationship of the box to other boxes or the viewport.
for (IResolutionStrategy resolutionStrategy : resolutionStrategies)
{
if ( resolutionStrategy.accepts(box) ) {
@ailabs-software
ailabs-software / StringUtil.java
Last active April 13, 2017 17:07
Is it okay to use StringBuilder like this?
public class StringUtil
{
// Pad zeros.
// NOTE: Assumes base-10 representation of number.
public static String padNumber(double value, int len)
{
// Supports signed numbers.
boolean isNegative = value<0;
package shopwindowshared.client.entrypoint;
import ailabs.jclosure.client.dom.NativeObject;
import ailabs.jclosure.client.encoding.json.JsonParser;
/** @fileoverview Prevents Java objects from being passed back to JS by proxying methods */
public class NativeToJavaObjectProxy extends NativeObject
{
protected NativeToJavaObjectProxy()
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project shopwindowshared: Compilation failure
[ERROR] /opt/deployment/applications/shopwindow/modular/shopwindowshared/src/main/java/shopwindowshared/client/crm/FunnelSelector.java:[26,37] error: method listen in class EventTarget cannot be applied to given types;
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
@ailabs-software
ailabs-software / jstack_dump_javaproc.txt
Created April 27, 2017 04:39
GWT compiler threaddump
2017-04-27 00:36:59
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode):
"Attach Listener" #27 daemon prio=9 os_prio=0 tid=0x00007fe768001000 nid=0xeb57 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"In-process PermutationWorker 0" #26 prio=5 os_prio=0 tid=0x00007fe7986af000 nid=0xeb1d runnable [0x00007fe77a52c000]
java.lang.Thread.State: RUNNABLE
at java.util.HashMap.getNode(HashMap.java:571)
at java.util.LinkedHashMap.get(LinkedHashMap.java:440)
package ailabs.jclosure.client.encoding;
import java.util.Set;
import java.util.LinkedHashSet;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.element.TypeElement;
package ailabs.jclosure.client.encoding;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/** @fileoverview The Serializable annotation. */
@Retention(RetentionPolicy.RUNTIME)
public @interface Serializable
{