Comments (9)
Can you enable DEBUG to the log categories jclouds.headers and jclouds.wire
and send back the json? Looks like a bug in the pagination code in our
jclouds rax dep
cc @jdaggett
On Monday, May 20, 2013, Francisco A. Lozano wrote:
Thread [main](Suspended %28breakpoint at line 42 in Absent%29)
Absent.get() line: 42
RecordsToPagedIterable.markerToNextForArg0(Optional) line: 52
RecordsToPagedIterable(Arg0ToPagedIterable<T,I>).apply(IterableWithMarker) line: 73
RecordsToPagedIterable(Arg0ToPagedIterable<T,I>).apply(Object) line: 61
Functions$FunctionComposition<A,B,C>.apply(A) line: 210
InvokeHttpMethod.invoke(Invocation) line: 97
InvokeHttpMethod.apply(Invocation) line: 80
InvokeHttpMethod.apply(Object) line: 51
FunctionalReflection$FunctionalInvocationHandler.handleInvocation(Object, Method, Object[]) line: 119
FunctionalReflection$FunctionalInvocationHandler(AbstractInvocationHandler).invoke(Object, Method, Object[]) line: 70
$Proxy72.list() line: not available
CloudDNSResourceRecordSetApi.list() line: 33
ResourceRecordSetCommands$ResourceRecordSetList.doRun(DNSApiManager) line: 58
ResourceRecordSetCommands$ResourceRecordSetList(Denominator$DenominatorCommand).run() line: 132
Denominator.main(String[]) line: 74@OverRide public Object get() {
throw new IllegalStateException("Optional.get() cannot be called on an absent value");
}Only happens in a domain with lots of entries. Small domains work well.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/145
.
from denominator.
2013-05-21 12:20:10,939 DEBUG [jclouds.headers] [main] >> GET https://dns.api.rackspacecloud.com/v1.0/XXXXXX/domains/YYYYYY/records HTTP/1.1
2013-05-21 12:20:10,940 DEBUG [jclouds.headers] [main] >> Accept: application/json
2013-05-21 12:20:10,940 DEBUG [jclouds.headers] [main] >> X-Auth-Token: XXXXXXXXXXXXXXXXXXXXXXXX
2013-05-21 12:20:12,842 DEBUG [jclouds.headers] [main] << HTTP/1.1 200 OK
2013-05-21 12:20:12,843 DEBUG [jclouds.headers] [main] << Date: Tue, 21 May 2013 10:20:12 GMT
2013-05-21 12:20:12,843 DEBUG [jclouds.headers] [main] << x-api-version: 1.0.24
2013-05-21 12:20:12,843 DEBUG [jclouds.headers] [main] << Via: 1.1 Repose (Repose/2.6.11)
2013-05-21 12:20:12,843 DEBUG [jclouds.headers] [main] << Server: Jetty(8.0.y.z-SNAPSHOT)
2013-05-21 12:20:12,843 DEBUG [jclouds.headers] [main] << Content-Type: application/json
2013-05-21 12:20:12,843 DEBUG [jclouds.headers] [main] << Content-Length: 17540
2013-05-21 12:20:13,122 DEBUG [jclouds.wire] [main] << "{
"records":[
{
"name":"ZZZZZ.mydomain.com",
"id":"A-1234567",
"type":"A",
"data":"777.232.208.999",
"ttl":300,
"updated":"2010-10-20T18:03:18.000+0000",
"created":"2010-10-20T18:03:18.000+0000"
},
{
"name":"ZZZZZ.mydomain.com",
"id":"A-1234567",
"type":"A",
"data":"777.143.131.999",
"ttl":300,
"updated":"2010-11-12T02:48:38.000+0000",
"created":"2010-11-12T02:48:38.000+0000"
},
{
"name":"ZZZZZ.mydomain.com",
"id":"A-1234567",
"type":"A",
"data":"777.23.243.999",
"ttl":300,
"updated":"2010-11-25T13:21:10.000+0000",
"created":"2010-11-25T13:21:10.000+0000"
},
{
"name":"ZZZZZ.mydomain.com",
"id":"A-1234567",
"type":"A",
"data":"777.121.66.999",
"ttl":300,
"updated":"2010-12-18T14:09:14.000+0000",
"created":"2010-12-18T14:09:14.000+0000"
},
{
"name":"ZZZZZ.mydomain.com",
"id":"A-1234567",
"type":"A",
"data":"777.23.243.999",
"ttl":300,
"updated":"2010-12-18T14:09:44.000+0000",
"created":"2010-12-18T14:09:44.000+0000"
},
{
"name":"ZZZZZ.mydomain.com",
"id":"A-1234567",
"type":"A",
"data":"777.143.151.999",
"ttl":300,
"updated":"2011-01-07T13:00:40.000+0000",
"created":"2011-01-07T13:00:40.000+0000"
},
{
"name":"ZZZZZ.mydomain.com",
"id":"A-1234567",
"type":"A",
"data":"777.143.151.999",
"ttl":300,
"updated":"2011-01-13T18:18:26.000+0000",
"created":"2011-01-13T18:18:26.000+0000"
},
{
"name":"ZZZZZ.mydomain.com",
"id":"A-1234567",
"type":"A",
"data":"777.213.78.999",
"ttl":300,
"updated":"2013-04-10T02:19:04.000+0000",
"created":"2013-04-10T02:19:04.000+0000"
}
],
"totalEntries":271,
"links":[
{
"href":"https://dns.api.rackspacecloud.com/v1.0/XXXXXX/domains/YYYYYY/records?limit=100&offset=100",
"rel":"next"
}
]
}"
;; error: Optional.get() cannot be called on an absent value
(I've removed tokens, IDs and IP addresses... also there were many more records.
from denominator.
logged an upstream issue on this https://issues.apache.org/jira/browse/JCLOUDS-78
from denominator.
Issue fixed upstream in jclouds. Should be able to close this when Denominator upgrades to jclouds 1.6.1.
from denominator.
You mind opening a pr in denominator which uses snapshot and validates this
no longer breaks via a mockwebserver test?
On Thursday, May 23, 2013, Everett Toews wrote:
Issue fixed upstream in jclouds. Should be able to close this when
Denominator upgrades to jclouds 1.6.1.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/145#issuecomment-18360866
.
from denominator.
I've got the test written but am having trouble getting the snapshot using Gradle. From what I can tell in the denominator/build.gradle file the Sonatype snapshot repo is enabled. The 1.6.1 snapshot is there https://oss.sonatype.org/content/repositories/snapshots/org/jclouds/api/rackspace-clouddns/1.6.1-SNAPSHOT/
In denominator-clouddns/build.gradle I've got
dependencies {
compile project(':denominator-core')
testCompile project(':denominator-core').sourceSets.test.output
compile 'org.jclouds.provider:rackspace-clouddns-us:1.6.1-SNAPSHOT'
compile 'org.jclouds.provider:rackspace-clouddns-uk:1.6.1-SNAPSHOT'
compile 'org.jclouds.driver:jclouds-slf4j:1.6.0'
}
but when I do
./gradlew clean install
I get
Could not resolve all dependencies for configuration ':providers:denominator-clouddns:compile'.
> Could not find org.jclouds.provider:rackspace-clouddns-us:1.6.1-SNAPSHOT.
Required by:
com.netflix.denominator:denominator-clouddns:1.2.0-SNAPSHOT
> Could not find org.jclouds.provider:rackspace-clouddns-uk:1.6.1-SNAPSHOT.
Required by:
com.netflix.denominator:denominator-clouddns:1.2.0-SNAPSHOT
Do I need anything else in denominator-clouddns/build.gradle?
from denominator.
check out #144 for instructions
from denominator.
Here's the fix #151
from denominator.
fixed thanks to @everett-toews! will be in denominator 1.1.4 (shortly)
from denominator.
Related Issues (20)
- Setup process by which contributors can access shared crendentials HOT 1
- Publish test jars HOT 7
- Ensure java 6 source compatibility HOT 4
- Seems like travis is having a hard time downloading gradle HOT 5
- Add Geo support to Route53
- Control default TTL HOT 1
- Release 4.5 HOT 2
- WriteLiveTest- Case sensitive match for 'name' HOT 2
- WriteLiveTest- Quotation wrapping of TXT rdata HOT 1
- WriteLiveTest- AAAA rdata case sensetive comparison HOT 1
- Update providers wiki to include support contacts
- denominator 4.5 not compiled for java 1.6.0_65 HOT 2
- Zone with lots of records errors out HOT 8
- Spaces in rdata cause only first word to be used HOT 5
- Update download link to latest version in README.md
- Denominator needs a champion, or needs to be explicitly archived HOT 4
- NS1 Support HOT 1
- Graceful handling of API limits for large resource sets HOT 2
- Breaking API change at Rackspace CloudDNS HOT 2
- Bintray going away
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from denominator.