ark-java icon indicating copy to clipboard operation
ark-java copied to clipboard

Network.warmup() crashes on gradle/android app

Open geckogecko opened this issue 8 years ago • 4 comments

Caused by: groovy.lang.MissingPropertyException: No such property: ip for class: io.ark.core.Peer at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53) at org.codehaus.groovy.runtime.callsite.ConstructorSite$NoParamSite.callConstructor(ConstructorSite.java:127) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) at io.ark.core.Peer.create(Peer.groovy:24)

geckogecko avatar Nov 27 '17 17:11 geckogecko

What version of the library are you using? Are you using your own instance of Network? Network.mainnet & Network.devnet are both successfully warmed up in the test suite.

Take a look at the network test file to see how those methods should be used

Guppster avatar Jan 06 '18 06:01 Guppster

I used the 0.3 jar with an android app and Network.mainnet

geckogecko avatar Jan 07 '18 09:01 geckogecko

@geckogecko Can you try reproducing with the latest 1.0.0 release?

dafty avatar Jan 21 '18 20:01 dafty

@dafty I will try. What I did was just creating a new android project -> adding the jar -> and then I called Network.warmup() in onCreate()

geckogecko avatar Jan 24 '18 19:01 geckogecko