Skip to content

Instantly share code, notes, and snippets.

View grelland's full-sized avatar
🤷‍♂️

Halvdan Hoem Grelland grelland

🤷‍♂️
  • Instabee
  • Oslo, Norway
View GitHub Profile
0x74a0d8a6182d81cdB2F50e9Cd4F41AfFF6B0B5FD
...
Properties properties = new Properties();
properties.setProperty( FilesystemConstants.PROPERTY_BASEDIR, "base_dir" );
BlobStoreContext blobStoreContext = ContextBuilder.newBuilder( "filesystem" )
.overrides( properties )
.buildView( BlobStoreContext.class );
BlobStore blobStore = blobStoreContext.getBlobStore();
blobStore.createContainerInLocation( null, "container_name" );
[...snip...]
Caused by:
com.google.inject.CreationException: Guice creation errors:||1) Could not find a suitable constructor in org.jclouds.internal.FilterStringsBoundToInjectorByName. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.| at org.jclouds.internal.FilterStringsBoundToInjectorByName.class(FilterStringsBoundToInjectorByName.java:40)| at org.jclouds.config.BindPropertiesToExpandedValues$1.expanded(BindPropertiesToExpandedValues.java:55)||1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354)
at com.google.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:152)
at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:105)
at com.google.inject.Guice.createInjector(Guice.java:92)
at com.google.inject.Guice.createInjector(Guice.java:80)
at org.jclouds.ContextBuilder.expandProperties(ContextBuilder.java:382)
at org.jclouds.ContextBuilder.buildInjector(C
# Maven options
export MAVEN_OPTS="-Xms1024m -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=2048m -Djava.awt.headless=true"
# Tomcat options
export CATALINA_OPTS="-Xms1024m -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=2048m -Djava.awt.headless=true"
# Aliases for quickbuilds
alias dhisrun="mvn jetty:run-war -DskipTests -DuseWarCompression=false"
alias dhisins="mvn install -DskipTests -DuseWarCompression=false"
alias dhisclb="mvn clean install -DskipTests -DuseWarCompression=false"
@grelland
grelland / gist:7318579
Created November 5, 2013 12:53
interpretation table
dhis2=# \d+ interpretation;
Table "public.interpretation"
Column | Type | Modifiers | Storage | Description
--------------------+-----------------------------+-----------+----------+-------------
interpretationid | integer | not null | plain |
uid | character varying(11) | | extended |
lastupdated | timestamp without time zone | | plain |
chartid | integer | | plain |
mapviewid | integer | | plain |
reporttableid | integer | | plain |