This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ab -k -c 100 -n 50000 http://localhost:3000/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 5000 requests | |
Completed 10000 requests | |
Completed 15000 requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JSON = require("json"); | |
var core = require("riak_core"); | |
(function() { | |
exports.handle_command = function(msg) { | |
return core.reply({ | |
"result": "result value" | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.reflect.InvocationTargetException: null | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_31] | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_31] | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_31] | |
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_31] | |
at org.springframework.data.rest.webmvc.RepositoryRestController.query(RepositoryRestController.java:573) ~[classes/:na] | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_31] | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_31] | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_31] | |
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_31] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-( restsh ):> bin/restsh | |
___ ___ __ _____ __ _ _ _ _ __ | |
| _ \ __/' _/_ _/' _/| || | / / | \ \ | |
| v / _|`._`. | | `._`.| >< | / / / > > | |
|_|_\___|___/ |_| |___/|_||_| |_/_/ /_/ | |
Welcome to the REST shell. For assistance hit TAB or type "help". | |
http://localhost:8080:> discover | |
rel href |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> JAVA_OPTS="-DbaseUri=http://localhost:8080/exporter" rest-shell | |
___ ___ __ _____ __ _ _ _ _ __ | |
| _ \ __/' _/_ _/' _/| || | / / | \ \ | |
| v / _|`._`. | | `._`.| >< | / / / > > | |
|_|_\___|___/ |_| |___/|_||_| |_/_/ /_/ | |
Welcome to the REST shell. For assistance hit TAB or type "help". | |
http://localhost:8080:> discover #{env.baseUri} | |
rel href |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RestExporterWebInitializer implements WebApplicationInitializer { | |
@Override public void onStartup(ServletContext servletContext) throws ServletException { | |
AnnotationConfigWebApplicationContext rootCtx = new AnnotationConfigWebApplicationContext(); | |
rootCtx.register(JpaRepositoryConfig.class, MongoDbRepositoryConfig.class); | |
servletContext.addListener(new ContextLoaderListener(rootCtx)); | |
AnnotationConfigWebApplicationContext webCtx = new AnnotationConfigWebApplicationContext(); | |
webCtx.register(RestExporterExampleRestConfig.class); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.springframework.data.rest.webmvc; | |
import static java.lang.String.*; | |
import static java.util.Collections.*; | |
import static org.springframework.data.rest.core.util.UriUtils.*; | |
import static org.springframework.data.rest.repository.support.RepositoryUtils.*; | |
import static org.springframework.util.ReflectionUtils.*; | |
import java.io.IOException; | |
import java.net.URI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.neo4j.graphdb.NotInTransactionException | |
at org.neo4j.kernel.impl.index.IndexConnectionBroker.acquireResourceConnection(IndexConnectionBroker.java:49) | |
at org.neo4j.index.impl.lucene.LuceneIndex.getConnection(LuceneIndex.java:85) | |
at org.neo4j.index.impl.lucene.LuceneIndex.remove(LuceneIndex.java:196) | |
at org.springframework.data.neo4j.support.typerepresentation.AbstractIndexingTypeRepresentationStrategy.remove(AbstractIndexingTypeRepresentationStrategy.java:91) | |
at org.springframework.data.neo4j.support.typerepresentation.AbstractIndexingTypeRepresentationStrategy.preEntityRemoval(AbstractIndexingTypeRepresentationStrategy.java:86) | |
at org.springframework.data.neo4j.support.mapping.EntityRemover.removeNode(EntityRemover.java:49) | |
at org.springframework.data.neo4j.support.mapping.EntityRemover.removeNodeEntity(EntityRemover.java:45) | |
at org.springframework.data.neo4j.support.mapping.EntityRemover.remove(EntityRemover.java:85) | |
at org.springframework.data.neo4j.support.Neo4jTemplate.delete(Neo4jTemplate.j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Groovyc: Apr 18, 2013 3:57:44 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule | |
WARNING: Module [reactor-groovy-module] - Unable to load extension class [reactor.groovy.ext.ObservableExtensions] | |
Apr 18, 2013 3:57:44 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule | |
WARNING: Module [reactor-groovy-module] - Unable to load extension class [reactor.groovy.ext.LinkableExtensions] | |
Apr 18, 2013 3:57:44 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule | |
WARNING: Module [reactor-groovy-module] - Unable to load extension class [reactor.groovy.ext.PromiseExtensions] | |
Apr 18, 2013 3:57:44 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule | |
WARNING: Module [reactor-groovy-module] - Unable to load extension class [reactor.groovy.ext.ReactorStaticExtensions] | |
java.lang.StackOverflowError | |
at sun.nio.cs.UTF_8$Decoder.decodeArrayLoop(UTF_8.java:201) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set a UriTemplateSelector to respond to any events happening on data in the 'test' bucket | |
riak.on(U("/test/{key}"), (Event ev) -> { | |
String key = ev.getHeaders().get("key"); | |
boolean isStore = StoreEvent.class.isInstance(ev); | |
// Only count down on store | |
if (isStore) { | |
latch.countDown(); | |
} | |
}); |