IDDD_Samples
IDDD_Samples copied to clipboard
gradle build fails on MacBook (cannot find symbol)
Hi,
We are preparing for the IDDD_Workshop in Paris and are getting the following error when running gradle build
. We are not so familiar with Java (understatement), so I have no clue if this has to do with our Java version, or some other settings.
I am working on a MacBook Air with Java 1.6.0_65. We used brew install maven
and brew install gradle
to install gradle on our machines, so I suppose we have the latest version. Anyone a clue?
.../IDDD_Samples/iddd_common/src/main/java/com/saasovation/common/port/adapter/messaging/slothmq/SlothWorker.java:152: cannot find symbol symbol : method bind(java.net.InetSocketAddress) location: class java.nio.channels.ServerSocketChannel this.socket.bind(new InetSocketAddress(discoveryPort)); ^ .../IDDD_Samples/iddd_common/src/main/java/com/saasovation/common/port/adapter/messaging/slothmq/SlothWorker.java:191: cannot find symbol symbol : method bind(java.net.InetSocketAddress) location: class java.nio.channels.ServerSocketChannel this.socket.bind(new InetSocketAddress(HUB_PORT)); ^ .../IDDD_Samples/iddd_common/src/main/java/com/saasovation/common/port/adapter/persistence/ResultSetObjectMapper.java:227: cannot find symbol symbol : method isAlphabetic(char) location: class java.lang.Character if (Character.isAlphabetic(ch) && Character.isUpperCase(ch)) { ^ 3 errors :iddd_common:compileJava FAILED
Are you referencing Java 7?
Otherwise don't worry. Just use the Java or C# source as a reference. On Feb 18, 2014 10:11 AM, "Jorgen Horstink" [email protected] wrote:
Hi,
We are preparing for the IDDD_Workshop in Paris and are getting to following error when running gradle build. We are not so familiar with Java (understatement), so I have no clue if this has to do with our Java version, or some other settings.
I am working on a MacBook Air with Java 1.6.0_65. We used brew install maven and brew install gradle to install gradle on our machines, so I suppose we have the latest version. Anyone a clue?
.../IDDD_Samples/iddd_common/src/main/java/com/saasovation/common/port/adapter/messaging/slothmq/SlothWorker.java:152: cannot find symbol symbol : method bind(java.net.InetSocketAddress) location: class java.nio.channels.ServerSocketChannel this.socket.bind(new InetSocketAddress(discoveryPort)); ^ .../IDDD_Samples/iddd_common/src/main/java/com/saasovation/common/port/adapter/messaging/slothmq/SlothWorker.java:191: cannot find symbol symbol : method bind(java.net.InetSocketAddress) location: class java.nio.channels.ServerSocketChannel this.socket.bind(new InetSocketAddress(HUB_PORT)); ^ .../IDDD_Samples/iddd_common/src/main/java/com/saasovation/common/port/adapter/persistence/ResultSetObjectMapper.java:227: cannot find symbol symbol : method isAlphabetic(char) location: class java.lang.Character if (Character.isAlphabetic(ch) && Character.isUpperCase(ch)) { ^ 3 errors :iddd_common:compileJava FAILED
Reply to this email directly or view it on GitHubhttps://github.com/VaughnVernon/IDDD_Samples/issues/9 .
Thanks. I see you mentioned Java 7 in the e-mail I received... It is working now, except the testsuite that completely fails. But that has to do with leveldb. So I just cloned leveldb and ran mvn install
. I am going to try to get it up and running. Thanks for the quick reply :+1:
Same here, it seems to install correctly but the tests all fail...
192:IDDD_Samples erik$ gradle build :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :jar UP-TO-DATE :assemble UP-TO-DATE :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test UP-TO-DATE :check UP-TO-DATE :build UP-TO-DATE :iddd_common:compileJava UP-TO-DATE :iddd_common:processResources UP-TO-DATE :iddd_common:classes UP-TO-DATE :iddd_common:jar UP-TO-DATE :iddd_agilepm:compileJava UP-TO-DATE :iddd_agilepm:processResources UP-TO-DATE :iddd_agilepm:classes UP-TO-DATE :iddd_agilepm:jar UP-TO-DATE :iddd_agilepm:assemble UP-TO-DATE :iddd_common:compileTestJava UP-TO-DATE :iddd_common:processTestResources UP-TO-DATE :iddd_common:testClasses UP-TO-DATE :iddd_agilepm:compileTestJava UP-TO-DATE :iddd_agilepm:processTestResources UP-TO-DATE :iddd_agilepm:testClasses UP-TO-DATE :iddd_agilepm:test
com.saasovation.agilepm.application.product.ProductApplicationServiceTest > testNewProduct FAILED java.lang.IllegalStateException Caused by: java.lang.IllegalArgumentException
com.saasovation.agilepm.application.product.ProductApplicationServiceTest > testNewProductWithDiscussion FAILED java.lang.IllegalStateException Caused by: java.lang.IllegalArgumentException
[A BUNCH OF OTHER FAILURES]
106 tests completed, 106 failed :iddd_agilepm:test FAILED
FAILURE: Build failed with an exception.
-
What went wrong: Execution failed for task ':iddd_agilepm:test'.
There were failing tests. See the report at: file:///Users/erik/Dev/IDDD_Samples/iddd_agilepm/build/reports/tests/index.html
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Hi.
The tests require the infrastructure to be set up locally. So “skip tests” in your build process for now. (hoping someday to mock the tests).
I also have a pure Maven build over at my GitHub account for those that are more familiar with Maven:
https://github.com/michaelajr/IDDD_Samples
clone, then...
mvn -DskipTests=true compile
M
On Feb 18, 2014, at 6:08 AM, erikgerrits [email protected] wrote:
Same here, it seems to install correctly but the tests all fail...
192:IDDD_Samples erik$ gradle build :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :jar UP-TO-DATE :assemble UP-TO-DATE :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test UP-TO-DATE :check UP-TO-DATE :build UP-TO-DATE :iddd_common:compileJava UP-TO-DATE :iddd_common:processResources UP-TO-DATE :iddd_common:classes UP-TO-DATE :iddd_common:jar UP-TO-DATE :iddd_agilepm:compileJava UP-TO-DATE :iddd_agilepm:processResources UP-TO-DATE :iddd_agilepm:classes UP-TO-DATE :iddd_agilepm:jar UP-TO-DATE :iddd_agilepm:assemble UP-TO-DATE :iddd_common:compileTestJava UP-TO-DATE :iddd_common:processTestResources UP-TO-DATE :iddd_common:testClasses UP-TO-DATE :iddd_agilepm:compileTestJava UP-TO-DATE :iddd_agilepm:processTestResources UP-TO-DATE :iddd_agilepm:testClasses UP-TO-DATE :iddd_agilepm:test
com.saasovation.agilepm.application.product.ProductApplicationServiceTest > testNewProduct FAILED java.lang.IllegalStateException Caused by: java.lang.IllegalArgumentException
com.saasovation.agilepm.application.product.ProductApplicationServiceTest > testNewProductWithDiscussion FAILED java.lang.IllegalStateException Caused by: java.lang.IllegalArgumentException
[A BUNCH OF OTHER FAILURES]
106 tests completed, 106 failed :iddd_agilepm:test FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':iddd_agilepm:test'.
There were failing tests. See the report at: file:///Users/erik/Dev/IDDD_Samples/iddd_agilepm/build/reports/tests/index.html
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
— Reply to this email directly or view it on GitHub.