Skip to content

Instantly share code, notes, and snippets.

View akbertram's full-sized avatar

Alex Bertram akbertram

View GitHub Profile
@akbertram
akbertram / R$primitive$_$43$_.java
Created September 6, 2011 14:41
Wrapper for + function
package r.base.primitives;
import r.lang.*;
import r.jvmi.wrapper.WrapperRuntime;
import r.jvmi.wrapper.ArgumentException;
import r.jvmi.wrapper.ArgumentIterator;
import r.lang.exception.EvalException;
import static r.jvmi.wrapper.WrapperRuntime.*;
public class R$primitive$_$43$_ extends BuiltinFunction {
ava.lang.NullPointerException
at org.activityinfo.server.bootstrap.ChangePasswordController.changePassword(ChangePasswordController.java:80)
at org.activityinfo.server.database.hibernate.dao.TransactionalInterceptor.attemptInvocation(TransactionalInterceptor.java:63)
at org.activityinfo.server.database.hibernate.dao.TransactionalInterceptor.invoke(TransactionalInterceptor.java:51)
at org.activityinfo.server.bootstrap.ChangePasswordController.processForm(ChangePasswordController.java:70)
at org.activityinfo.server.bootstrap.ChangePasswordController.doPost(ChangePasswordController.java:60)
at org.activityinfo.server.util.logging.LoggingInterceptor.invoke(LoggingInterceptor.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
javax.persistence.RollbackException: Error while commiting the transaction
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:71)
at org.activityinfo.server.database.hibernate.dao.TransactionalInterceptor.invoke(TransactionalInterceptor.java:55)
at org.activityinfo.server.util.logging.LoggingInterceptor.invoke(LoggingInterceptor.java:61)
at org.activityinfo.server.endpoint.gwtrpc.CommandServlet.handleCommands(CommandServlet.java:93)
at org.activityinfo.server.util.logging.LoggingInterceptor.invoke(LoggingInterceptor.java:61)
at org.activityinfo.server.endpoint.gwtrpc.CommandServlet.execute(CommandServlet.java:67)
at org.activityinfo.server.util.logging.LoggingInterceptor.invoke(LoggingInterceptor.java:61)
at sun.reflect.GeneratedMethodAccessor1455.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:41)
at org.activityinfo.server.database.hibernate.dao.TransactionalInterceptor.invoke(TransactionalInterceptor.java:49)
at org.activityinfo.server.util.logging.LoggingInterceptor.invoke(LoggingInterceptor.java:61)
at org.activityinfo.server.endpoint.gwtrpc.CommandServlet.handleCommands(CommandServlet.java:93)
at org.activityinfo.server.util.logging.LoggingInterceptor.invoke(LoggingInterceptor.java:61)
at org.activityinfo.server.endpoint.gwtrpc.CommandServlet.execute(CommandServlet.java:67)
at org.activityinfo.server.util.logging.LoggingInterceptor.invoke(LoggingInterceptor.java:61)
at sun.reflect.GeneratedMethodAccessor1455.invoke(Unknown Source)
java.lang.NullPointerException
at org.activityinfo.server.command.handler.crud.ActivityPolicy.getLocationType(ActivityPolicy.java:77)
at org.activityinfo.server.command.handler.crud.ActivityPolicy.create(ActivityPolicy.java:46)
at org.activityinfo.server.command.handler.CreateEntityHandler.execute(CreateEntityHandler.java:51)
at org.activityinfo.server.command.handler.CreateEntityHandler.execute(CreateEntityHandler.java:30)
at org.activityinfo.server.endpoint.gwtrpc.ServerExecutionContext.execute(ServerExecutionContext.java:112)
at org.activityinfo.server.endpoint.gwtrpc.CommandServlet.handleCommand(CommandServlet.java:118)
at org.activityinfo.server.database.hibernate.dao.TransactionalInterceptor.attemptInvocation(TransactionalInterceptor.java:63)
at org.activityinfo.server.database.hibernate.dao.TransactionalInterceptor.invoke(TransactionalInterceptor.java:51)
at org.activityinfo.server.util.logging.LoggingInterceptor.invoke(LoggingInte
<html>
<title>Dashboard</title>
<head>
<script src="http://mbostock.github.com/d3/d3.v2.js?2.9.5"></script>
<style type="text/css">
.cell {
border: solid 1px white;
font: 10px sans-serif;
line-height: 12px;
overflow: hidden;
@akbertram
akbertram / death.sql
Created November 8, 2012 19:33
PivotTable Query of Death
SELECT Indicator.aggregation c1,
Sum(V.value) c2,
Avg(V.value) c3,
AdminLevel1.adminentityid c4,
AdminLevel1.name c5,
partner.partnerid c6,
partner.name c7,
activity.databaseid c8,
userdatabase.name c9,
Indicator.indicatorid c10,
@akbertram
akbertram / d3.caja.js
Created November 26, 2012 01:22
d3.js safe for Caja
(function() {
function d3_class(ctor, properties) {
try {
for (var key in properties) {
Object.defineProperty(ctor.prototype, key, {
value: properties[key],
enumerable: false
});
}
@akbertram
akbertram / d3.caja.js
Created November 26, 2012 01:29
Caja-safe d3.js
d3 = {
version: "2.10.3"
};
(function() {
function d3_class(ctor, properties) {
try {
for (var key in properties) {
Object.defineProperty(ctor.prototype, key, {
value: properties[key],
(function() {
function d3_class(ctor, properties) {
try {
for (var key in properties) {
Object.defineProperty(ctor.prototype, key, {
value: properties[key],
enumerable: false
});
}