Skip to content

Instantly share code, notes, and snippets.

[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]
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()
@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;
@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) ) {
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 / 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;
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)
ContentCentral.gwt.xml =========
<?xml version="1.0" encoding="UTF-8"?>
<!-- Custom-built GWT. You probably want to uncomment the DOCTYPE and point it to your GWT checkout
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 0.0.0//EN" "file:///path/to/gwt/checkout/distro-source/core/src/gwt-module.dtd">
-->
<module rename-to="ContentCentral">
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name="com.google.gwt.core.Core"/>
<inherits name="ailabs.jclosure.JClosure"/>
<inherits name="shopwindowshared.ShopwindowShared"/>
@ailabs-software
ailabs-software / gist:b063e3dd27ac62e5b772accaa7d7b0c9
Created January 24, 2017 19:21
Cast error from instanceof List tried on number
COMPILER OUTPUT WAS:
var $wnd = $wnd || window.parent;
var __gwtModuleFunction = $wnd.ContentCentral;
var $sendStats = __gwtModuleFunction.__sendStats;
$sendStats('moduleStartup', 'moduleEvalStart');
var $gwt_version = "2.8.0";
var $strongName = 'F926205317C5C25D0EB7D3E6EDC87BCF';
var $gwt = {};
var $doc = $wnd.document;
var $moduleName, $moduleBase;
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.ailabs:jclosure:jar:1.0-SNAPSHOT
[WARNING] 'parent.relativePath' points at com.ailabs:root-group instead of com.ailabs.rootgroup:root-group, please verify your project structure @ line 6, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------