ArcBees / gwtquery

A jQuery clone for GWT, and much more.
MIT License
85 stars 38 forks source link

Source cannot be compiled #328

Closed confile closed 9 years ago

confile commented 9 years ago

I tried to compile the source with mvn clean install and got the following error:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.google.gwt.query.client.GQueryGwtSuiteTest
GQAjaxTestServlet returns: {"a":"abc","d":"def"}
GQAjaxTestServlet returns: {"a":"abc","d":"def"}
GQAjaxTestServlet returns: {"a":"abc","d":"def"}
GQAjaxTestServlet returns: {"a":"abc","d":"def"}
GQAjaxTestServlet returns: {"a":"abc","d":"def"}
GQAjaxTestServlet returns: {"a":"abc","d":"def"}
GQAjaxTestServlet returns: jre_callback({"a":"abc","d":"def"});
GQAjaxTestServlet sleeping: 2000
GQAjaxTestServlet returns: {"a":"abc","d":"def"}
GQAjaxTestServlet returns: {"a":"abc","d":"def"}
GQAjaxTestServlet returns: __gwt_jsonp__.P0.onSuccess({"a":"abc","d":"def"});
logging for HtmlUnit thread
   [WARN] Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://localhost:60379/com.google.gwt.query.QueryTest.JUnit/test.json?cors=true&data={"a":"abc","d":"def"}&callback=__gwt_jsonp__.P0.onSuccess', but got ''.
GQAjaxTestServlet sleeping: 2000
   [WARN] Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://192.168.178.26:60379/com.google.gwt.query.QueryTest.JUnit/test.json?timeout=2000&&callback=__gwt_jsonp__.P3.onSuccess', but got ''.
   [ERROR] Load Script Error: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:522)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:401)
    at com.gargoylesoftware.htmlunit.HtmlUnitSSLSocketFactory.connectSocket(HtmlUnitSSLSocketFactory.java:153)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:167)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1281)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1198)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1098)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1039)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:409)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:272)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:729)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:92)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:679)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:616)
    at com.google.gwt.dev.shell.HtmlUnitSessionHandler.invoke(HtmlUnitSessionHandler.java:228)
    at com.google.gwt.dev.shell.BrowserChannelClient.reactToMessages(BrowserChannelClient.java:218)
    at com.google.gwt.dev.shell.BrowserChannelClient.reactToMessagesWhileWaitingForReturn(BrowserChannelClient.java:165)
    at com.google.gwt.dev.shell.JavaObject.getReturnFromJavaMethod(JavaObject.java:61)
    at com.google.gwt.dev.shell.JavaObject.call(JavaObject.java:122)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:609)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:616)
    at com.google.gwt.dev.shell.HtmlUnitSessionHandler.invoke(HtmlUnitSessionHandler.java:228)
    at com.google.gwt.dev.shell.BrowserChannelClient.reactToMessages(BrowserChannelClient.java:218)
    at com.google.gwt.dev.shell.BrowserChannelClient.reactToMessagesWhileWaitingForReturn(BrowserChannelClient.java:165)
    at com.google.gwt.dev.shell.JavaObject.getReturnFromJavaMethod(JavaObject.java:61)
    at com.google.gwt.dev.shell.JavaObject.call(JavaObject.java:122)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:609)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:616)
    at com.google.gwt.dev.shell.HtmlUnitSessionHandler.invoke(HtmlUnitSessionHandler.java:228)
    at com.google.gwt.dev.shell.BrowserChannelClient.reactToMessages(BrowserChannelClient.java:218)
    at com.google.gwt.dev.shell.BrowserChannelClient.reactToMessagesWhileWaitingForReturn(BrowserChannelClient.java:165)
    at com.google.gwt.dev.shell.JavaObject.getReturnFromJavaMethod(JavaObject.java:61)
    at com.google.gwt.dev.shell.JavaObject.call(JavaObject.java:122)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:309)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:103)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:609)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:616)
    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:230)
    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:710)
    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:94)
    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:603)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
    at com.gargoylesoftware.htmlunit.javascript.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36)
    at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:328)
    at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:162)
    at java.lang.Thread.run(Thread.java:745)
[WARN] 404 - GET /com.google.gwt.query.QueryTest.JUnit/whatever (192.168.178.26) 1410 bytes
[WARN] 404 - GET /com.google.gwt.query.QueryTest.JUnit/whatever (192.168.178.26) 1410 bytes
[WARN] 404 - GET /com.google.gwt.query.QueryTest.JUnit/whatever (192.168.178.26) 1410 bytes
[WARN] 404 - GET /com.google.gwt.query.QueryTest.JUnit/whatever (192.168.178.26) 1410 bytes
Tests run: 246, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 77.952 sec
manolo commented 9 years ago

That is perfectly ok, some tests cause exception on purpose.

This is the interesting line:

Tests run: 246, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 77.952 sec

If you want to package without running tests add -Dmaven.test.skip option to mvn command

confile commented 9 years ago

okay thanks

confile commented 9 years ago

Well I did

 mvn clean install -Dmaven.test.skip

The target dir remains empty. No jar file. I get build and compile failure.

Output is:

http-server:gwtquery-gesture-plugin mg$ mvn clean install -Dmaven.test.skip
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Gestures plugin for gQuery 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gestures-plugin ---
[INFO] Deleting /Users/mg/Downloads/gwtquery-gesture-plugin/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gestures-plugin ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] skip non existing resourceDirectory /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ gestures-plugin ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 4 source files to /Users/mg/Downloads/gwtquery-gesture-plugin/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[39,49] error: cannot find symbol
[ERROR]   symbol:   class SpecialEvent
  location: package com.google.gwt.query.client.plugins.events
/Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[40,62] error: package com.google.gwt.query.client.plugins.events.SpecialEvent does not exist
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[162,53] error: cannot find symbol
[ERROR]   symbol:   class SpecialEvent
  location: class Gesture
/Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[151,28] error: method put in class JsMap<S,T> cannot be applied to given types;
[ERROR]   required: String,SpecialEvent
  found: String,GestureSpecialEvent
  reason: actual argument GestureSpecialEvent cannot be converted to SpecialEvent by method invocation conversion
  where S,T are type-variables:
    S extends Object declared in class JsMap
    T extends Object declared in class JsMap
/Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[158,44] error: cannot find symbol
[ERROR]   symbol:   class DefaultSpecialEvent
  location: class Gesture
/Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[159,42] error: cannot find symbol
[ERROR]   symbol:   class DefaultSpecialEvent
  location: class Gesture
/Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[170,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[282,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[290,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[300,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[414,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/KeyFrame.java:[56,24] error: getVendorPropertyName(String) has private access in Transitions
[INFO] 12 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.487s
[INFO] Finished at: Wed Dec 31 16:03:03 CET 2014
[INFO] Final Memory: 16M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project gestures-plugin: Compilation failure: Compilation failure:
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[39,49] error: cannot find symbol
[ERROR] symbol:   class SpecialEvent
[ERROR] location: package com.google.gwt.query.client.plugins.events
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[40,62] error: package com.google.gwt.query.client.plugins.events.SpecialEvent does not exist
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[162,53] error: cannot find symbol
[ERROR] symbol:   class SpecialEvent
[ERROR] location: class Gesture
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[151,28] error: method put in class JsMap<S,T> cannot be applied to given types;
[ERROR] required: String,SpecialEvent
[ERROR] found: String,GestureSpecialEvent
[ERROR] reason: actual argument GestureSpecialEvent cannot be converted to SpecialEvent by method invocation conversion
[ERROR] where S,T are type-variables:
[ERROR] S extends Object declared in class JsMap
[ERROR] T extends Object declared in class JsMap
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[158,44] error: cannot find symbol
[ERROR] symbol:   class DefaultSpecialEvent
[ERROR] location: class Gesture
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[159,42] error: cannot find symbol
[ERROR] symbol:   class DefaultSpecialEvent
[ERROR] location: class Gesture
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[170,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[282,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[290,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[300,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/Gesture.java:[414,4] error: method does not override or implement a method from a supertype
[ERROR] /Users/mg/Downloads/gwtquery-gesture-plugin/src/main/java/com/google/gwt/query/client/plugin/KeyFrame.java:[56,24] error: getVendorPropertyName(String) has private access in Transitions
[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
jDramaix commented 9 years ago

It's related to gwtquery-gesture-plugin : https://github.com/manolo/gwtquery-gesture-plugin

Please open an issue there.

confile commented 9 years ago

Sorry I posted in the wrong thread.