Skip to content

Instantly share code, notes, and snippets.

services.factory('camera', ['$rootScope', '$q', 'ENV', function($rootScope, $q, ENV) {
return {
getPicture: function(options, fromLibrary) {
// init $q
var deferred = $q.defer();
if (ENV.browser) {
# Dimension: Application with Spring Data (SD) REST and Spring MVC
# SD REST offers DELETE via
DELETE
http://horst:8080/entity/239892389239823
# Sometime CUSTOM DELETES are necessary. E.g. for BULK operations (DELETE in this case). SD REST is not able to map those
# operations automatically and expose them.
# The way to go though, is through usage of Spring MVC Controllers. This may be done with a custom Mapping of the
@jhiemer
jhiemer / manifest.yml
Created June 20, 2014 06:28
Wrong handling of services in manifest.yml of CloudFoundry Bamboo Plugin.
---
# This is a minimal manifest
applications:
- name: broker
instances: 1
memory: 1024M
path: target/broker.war
buildpack: https://github.com/cloudfoundry/java-buildpack.git
services:
- cs-mongodb
org.gaptap.bamboo.cloudfoundry.org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Can not construct instance of org.gaptap.bamboo.cloudfoundry.org.springframework.security.oauth2.common.OAuth2AccessToken, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information
at [Source: org.apache.http.conn.EofSensorInputStream@2e5dcc38; line: 1, column: 1]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of org.gaptap.bamboo.cloudfoundry.org.springframework.security.oauth2.common.OAuth2AccessToken, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information
at [Source: org.apache.http.conn.EofSensorInputStream@2e5dcc38; line: 1, column: 1]
at org.gaptap.bamboo.cloudfoundry.org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readJavaTyp
@Document
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY,
property = "@class")
public class ChildOne extends Parent {
private long up;
private long down;
}
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMapppingContext': Cannot create inner bean '(inner bean)' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
at org.spring
Module Plugins
-- Plugins::PluginA (registerAtPluginSystem)
-- Plugins::PluginB (registerAtPluginSystem)
-- Plugins::PluginC (registerAtPluginSystem)
-- Plugins::PluginD (registerAtPluginSystem)
# All Plugins below Module Plugins should call their method registerAtPluginSytem automatically. For example through initialize()
# But how do I achieve, that all Plugins (A-D) call their method initialize(), without calling it specifically.
? (172.16.56.255) at FF:FF:FF:FF:FF:FF [ether] on vmnet8
? (192.168.64.255) at FF:FF:FF:FF:FF:FF [ether] on vmnet1
8 total CPUs..
Vendor........Intel
Model.........MacBookPro10,1
Current Mhz...2700
Maximum Mhz...0
Minimum Mhz...0
Cache size....256
Vendor........Intel
[{ "max" : {
"label" : "Maximum",
"value" : "max"
}
},{ "min" : {
"label" : "Minimum",
"value" : "min"
}
},{ "avg" : {
"label" : "Average",
module InitFromHash
def initialize(*args)
args.first.each do |k, v|
unless defined?(k).nil?
result = v.instance_of?(Array) ? v.inject([]) {|arr, v1| arr << init_object(v1, k)} : init_object(v, k)
instance_variable_set("@#{k}", result)
end
end if (args.length == 1 && args.first.is_a?(Hash))
end