{"action":"created","issue":{"url":"https://api.github.com/repos/vsilaev/java-async-await/issues/1","repository_url":"https://api.github.com/repos/vsilaev/java-async-await","labels_url":"https://api.github.com/repos/vsilaev/java-async-await/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/vsilaev/java-async-await/issues/1/comments","events_url":"https://api.github.com/repos/vsilaev/java-async-await/issues/1/events","html_url":"https://github.com/vsilaev/java-async-await/issues/1","id":164820557,"number":1,"title":"How to run example com.farata.lang.async.examples.bank.AsyncAwaitBusinessServicesExample?","user":{"login":"minhkiller","id":919899,"avatar_url":"https://avatars.githubusercontent.com/u/919899?v=3","gravatar_id":"","url":"https://api.github.com/users/minhkiller","html_url":"https://github.com/minhkiller","followers_url":"https://api.github.com/users/minhkiller/followers","following_url":"https://api.github.com/users/minhkiller/following{/other_user}","gists_url":"https://api.github.com/users/minhkiller/gists{/gist_id}","starred_url":"https://api.github.com/users/minhkiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhkiller/subscriptions","organizations_url":"https://api.github.com/users/minhkiller/orgs","repos_url":"https://api.github.com/users/minhkiller/repos","events_url":"https://api.github.com/users/minhkiller/events{/privacy}","received_events_url":"https://api.github.com/users/minhkiller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-11T11:58:24Z","updated_at":"2016-07-12T04:06:09Z","closed_at":"2016-07-12T04:06:09Z","body":"Hi Valery,\r\n\r\nI have issue when running the example com.farata.lang.async.examples.bank.AsyncAwaitBusinessServicesExample\r\n\r\n> /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50846,suspend=y,server=n -Dfile.encoding=UTF-8 -classpath \"/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/tools.jar:/Users/mtran/projects/study/java/java-async-await/com.farata.lang.async.examples/target/classes:/Users/mtran/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/mtran/projects/study/java/java-async-await/com.farata.lang.async.api/target/classes:/Users/mtran/.m2/repository/net/tascalate/javaflow/net.tascalate.javaflow.api/2.0-SNAPSHOT/net.tascalate.javaflow.api-2.0-SNAPSHOT.jar:/Users/mtran/.m2/repository/net/javacrumbs/completion-stage/completion-stage/0.0.9/completion-stage-0.0.9.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar\" com.farata.lang.async.examples.bank.AsyncAwaitBusinessServicesExample\r\n> Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true\r\n> Connected to the target VM, address: '127.0.0.1:50846', transport: 'socket'\r\n> Mon Jul 11 21:57:31 AEST 2016 START ITERATION #1\r\n> Exception in thread \"main\" java.lang.IllegalStateException: Method call must be replaced by bytecode enhancer\r\n> \tat com.farata.lang.async.api.AsyncCall.asyncResult(AsyncCall.java:36)\r\n> \tat com.farata.lang.async.examples.bank.MoneyWithdrawalTask$1DemoPrint.go(MoneyWithdrawalTask.java:36)\r\n> \tat com.farata.lang.async.examples.bank.MoneyWithdrawalTask.execute(MoneyWithdrawalTask.java:42)\r\n> \tat com.farata.lang.async.examples.bank.AsyncAwaitBusinessServicesExample.main(AsyncAwaitBusinessServicesExample.java:18)\r\n> Disconnected from the target VM, address: '127.0.0.1:50846', transport: 'socket'\r\n> Inner Class 510.5 com.farata.lang.async.examples.bank.MoneyWithdrawalTask@4f47d241\r\n> \r\n> Process finished with exit code 1\r\n\r\nHow do i instrument the example project with javaflow?\r\n\r\nThanks for your help.\r\n\r\nRegards,\r\nMinh Tran"},"comment":{"url":"https://api.github.com/repos/vsilaev/java-async-await/issues/comments/231932178","html_url":"https://github.com/vsilaev/java-async-await/issues/1#issuecomment-231932178","issue_url":"https://api.github.com/repos/vsilaev/java-async-await/issues/1","id":231932178,"user":{"login":"minhkiller","id":919899,"avatar_url":"https://avatars.githubusercontent.com/u/919899?v=3","gravatar_id":"","url":"https://api.github.com/users/minhkiller","html_url":"https://github.com/minhkiller","followers_url":"https://api.github.com/users/minhkiller/followers","following_url":"https://api.github.com/users/minhkiller/following{/other_user}","gists_url":"https://api.github.com/users/minhkiller/gists{/gist_id}","starred_url":"https://api.github.com/users/minhkiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhkiller/subscriptions","organizations_url":"https://api.github.com/users/minhkiller/orgs","repos_url":"https://api.github.com/users/minhkiller/repos","events_url":"https://api.github.com/users/minhkiller/events{/privacy}","received_events_url":"https://api.github.com/users/minhkiller/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T04:06:09Z","updated_at":"2016-07-12T04:06:09Z","body":"Thanks Valery,\r\n\r\nI used this command to build the agent jar file: `mvn install`\r\nThen passed the VM option when running **com.farata.lang.async.examples.bank.AsyncAwaitBusinessServicesExample**\r\n`-javaagent:-javaagent:<PATH-TO-MAVEN-REPO>/repository/com/farata/lang/async/com.farata.lang.async.tools.javaagent/1.0-SNAPSHOT/com.farata.lang.async.tools.javaagent-1.0-SNAPSHOT.jar`"}}
{"actor":{"display_login":"minhkiller"}}