entry : properties.entrySet() ) {
String name = entry.getKey();
Property property = entry.getValue();
@@ -73,13 +71,13 @@ public OutboundVariable convertOutbound( Object data, OutboundContext outctx ) t
}
ovs.put( name, nested );
}
- } catch ( MarshallException ex ) {
+ } catch ( ConversionException ex ) {
throw ex;
} catch ( Exception ex ) {
- throw new MarshallException( data.getClass(), ex );
+ throw new ConversionException( data.getClass(), ex );
}
- ov.init( ovs, getJavascript() );
+ ov.setChildren( ovs );
return ov;
}
diff --git a/gemma-web/src/main/java/ubic/gemma/web/remote/GOEvidenceCodeConverter.java b/gemma-web/src/main/java/ubic/gemma/web/remote/GOEvidenceCodeConverter.java
index cd556cb62b..0a8085302c 100755
--- a/gemma-web/src/main/java/ubic/gemma/web/remote/GOEvidenceCodeConverter.java
+++ b/gemma-web/src/main/java/ubic/gemma/web/remote/GOEvidenceCodeConverter.java
@@ -19,20 +19,18 @@
package ubic.gemma.web.remote;
import org.apache.commons.lang3.StringUtils;
+import org.directwebremoting.ConversionException;
import org.directwebremoting.convert.StringConverter;
-import org.directwebremoting.extend.InboundContext;
import org.directwebremoting.extend.InboundVariable;
-import org.directwebremoting.extend.MarshallException;
import ubic.gemma.model.association.GOEvidenceCode;
/**
* @author luke
- *
*/
public class GOEvidenceCodeConverter extends StringConverter {
@Override
- public Object convertInbound( Class paramType, InboundVariable iv, InboundContext inctx ) throws MarshallException {
- String value = ( String ) super.convertInbound( paramType, iv, inctx );
+ public Object convertInbound( Class> paramType, InboundVariable iv ) throws ConversionException {
+ String value = ( String ) super.convertInbound( paramType, iv );
if ( StringUtils.isBlank( value ) ) {
return null;
}
diff --git a/gemma-web/src/main/java/ubic/gemma/web/remote/ScaleTypeConverter.java b/gemma-web/src/main/java/ubic/gemma/web/remote/ScaleTypeConverter.java
index f84ad9ccfc..b1ec433580 100755
--- a/gemma-web/src/main/java/ubic/gemma/web/remote/ScaleTypeConverter.java
+++ b/gemma-web/src/main/java/ubic/gemma/web/remote/ScaleTypeConverter.java
@@ -1,8 +1,8 @@
/*
* The Gemma project
- *
+ *
* Copyright (c) 2007 University of British Columbia
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -18,10 +18,9 @@
*/
package ubic.gemma.web.remote;
+import org.directwebremoting.ConversionException;
import org.directwebremoting.convert.StringConverter;
-import org.directwebremoting.extend.InboundContext;
import org.directwebremoting.extend.InboundVariable;
-import org.directwebremoting.extend.MarshallException;
import ubic.gemma.model.common.quantitationtype.ScaleType;
/**
@@ -29,8 +28,8 @@
*/
public class ScaleTypeConverter extends StringConverter {
@Override
- public Object convertInbound( Class paramType, InboundVariable iv, InboundContext inctx ) throws MarshallException {
- String value = ( String ) super.convertInbound( paramType, iv, inctx );
+ public Object convertInbound( Class> paramType, InboundVariable iv ) throws ConversionException {
+ String value = ( String ) super.convertInbound( paramType, iv );
return ScaleType.valueOf( value );
}
}
diff --git a/gemma-web/src/main/java/ubic/gemma/web/remote/StandardQuantitationTypeConverter.java b/gemma-web/src/main/java/ubic/gemma/web/remote/StandardQuantitationTypeConverter.java
index a8cc639c88..0d2219f14d 100755
--- a/gemma-web/src/main/java/ubic/gemma/web/remote/StandardQuantitationTypeConverter.java
+++ b/gemma-web/src/main/java/ubic/gemma/web/remote/StandardQuantitationTypeConverter.java
@@ -18,10 +18,9 @@
*/
package ubic.gemma.web.remote;
+import org.directwebremoting.ConversionException;
import org.directwebremoting.convert.StringConverter;
-import org.directwebremoting.extend.InboundContext;
import org.directwebremoting.extend.InboundVariable;
-import org.directwebremoting.extend.MarshallException;
import ubic.gemma.model.common.quantitationtype.StandardQuantitationType;
/**
@@ -30,8 +29,8 @@
*/
public class StandardQuantitationTypeConverter extends StringConverter {
@Override
- public Object convertInbound( Class paramType, InboundVariable iv, InboundContext inctx ) throws MarshallException {
- String value = ( String ) super.convertInbound( paramType, iv, inctx );
+ public Object convertInbound( Class> paramType, InboundVariable iv ) throws ConversionException {
+ String value = ( String ) super.convertInbound( paramType, iv );
return StandardQuantitationType.valueOf( value );
}
}
diff --git a/gemma-web/src/main/java/ubic/gemma/web/util/CacheMonitorImpl.java b/gemma-web/src/main/java/ubic/gemma/web/util/CacheMonitorImpl.java
index c1f7d7eed9..7313870cfe 100644
--- a/gemma-web/src/main/java/ubic/gemma/web/util/CacheMonitorImpl.java
+++ b/gemma-web/src/main/java/ubic/gemma/web/util/CacheMonitorImpl.java
@@ -20,8 +20,8 @@
import lombok.SneakyThrows;
import net.sf.ehcache.Ehcache;
-import net.sf.ehcache.Statistics;
import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.statistics.StatisticsGateway;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -79,13 +79,11 @@ public void clearCache( String cacheName ) {
@Override
public void disableStatistics() {
CacheMonitorImpl.log.info( "Disabling statistics" );
- this.setStatisticsEnabled( false );
}
@Override
public void enableStatistics() {
CacheMonitorImpl.log.info( "Enabling statistics" );
- this.setStatisticsEnabled( true );
}
@Override
@@ -138,9 +136,9 @@ public String getStats() {
@SneakyThrows(IOException.class)
private void addEhcacheRow( String rawCacheName, Ehcache cache, Appendable buf ) {
- Statistics statistics = cache.getStatistics();
+ StatisticsGateway statistics = cache.getStatistics();
- long objectCount = statistics.getObjectCount();
+ long objectCount = statistics.getSize();
if ( objectCount == 0 ) {
return;
@@ -154,13 +152,13 @@ private void addEhcacheRow( String rawCacheName, Ehcache cache, Appendable buf )
.append( " " )
.append( escapeHtml4( cacheName ) )
.append( "" );
- long hits = statistics.getCacheHits();
- long misses = statistics.getCacheMisses();
- long inMemoryHits = statistics.getInMemoryHits();
- long inMemoryMisses = statistics.getInMemoryMisses();
+ long hits = statistics.cacheHitCount();
+ long misses = statistics.cacheMissCount();
+ long inMemoryHits = statistics.localHeapHitCount();
+ long inMemoryMisses = statistics.localHeapMissCount();
- long onDiskHits = statistics.getOnDiskHits();
- long evictions = statistics.getEvictionCount();
+ long onDiskHits = statistics.localDiskHitCount();
+ long evictions = statistics.cacheEvictedCount();
buf.append( this.makeTableCellForStat( ( double ) hits / ( hits + misses ) ) );
buf.append( this.makeTableCellForStat( hits ) );
@@ -195,13 +193,4 @@ private String makeTableCellForStat( long hits ) {
private String makeTableCellForStat( double hits ) {
return "" + ( hits > 0 ? String.format( "%.2f", hits ) : "" ) + " | ";
}
-
- private void setStatisticsEnabled( boolean b ) {
- for ( String rawCacheName : cacheManager.getCacheNames() ) {
- Cache cache = cacheManager.getCache( rawCacheName );
- if ( cache.getNativeCache() instanceof Ehcache ) {
- ( ( Ehcache ) cache.getNativeCache() ).setSampledStatisticsEnabled( b );
- }
- }
- }
}
diff --git a/gemma-web/src/main/resources/ubic/gemma/applicationContext-schedule.xml b/gemma-web/src/main/resources/ubic/gemma/applicationContext-schedule.xml
index 87ebfd4756..b2c5b0a27d 100644
--- a/gemma-web/src/main/resources/ubic/gemma/applicationContext-schedule.xml
+++ b/gemma-web/src/main/resources/ubic/gemma/applicationContext-schedule.xml
@@ -19,15 +19,15 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -37,31 +37,31 @@
W Month 1-12 or JAN-DEC , - * / Day-of-Week 1-7 or SUN-SAT , - * ? / L # Year (Optional) empty, 1970-2099 , - * / See http://www.opensymphony.com/quartz/api/org/quartz/CronExpression.html
for details, http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html for examples. If you want a schedule that
fire frequently for testing, try 0 0/2 * ? * *. -->
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/gemma-web/src/main/webapp/WEB-INF/gemma-servlet.xml b/gemma-web/src/main/webapp/WEB-INF/gemma-servlet.xml
index b52c1c7c10..c75b4a59b0 100644
--- a/gemma-web/src/main/webapp/WEB-INF/gemma-servlet.xml
+++ b/gemma-web/src/main/webapp/WEB-INF/gemma-servlet.xml
@@ -9,7 +9,7 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
- http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd
+ http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
@@ -791,8 +791,6 @@
-
@@ -802,8 +800,6 @@
class="ubic.gemma.core.tasks.visualization.DifferentialExpressionGenesConditionsValueObject$Cell"/>
-
@@ -842,7 +838,6 @@
-
@@ -961,14 +956,11 @@
class="ubic.gemma.web.controller.expression.experiment.ExpressionExperimentDataFetchCommand"/>
-
-
@@ -990,8 +982,6 @@
-
-
diff --git a/gemma-web/src/main/webapp/WEB-INF/gemma-ws-servlet.xml b/gemma-web/src/main/webapp/WEB-INF/gemma-ws-servlet.xml
index 5f3355b515..d9c6735c97 100644
--- a/gemma-web/src/main/webapp/WEB-INF/gemma-ws-servlet.xml
+++ b/gemma-web/src/main/webapp/WEB-INF/gemma-ws-servlet.xml
@@ -68,7 +68,7 @@
-
+
diff --git a/pom.xml b/pom.xml
index 82fff99626..92b6d45473 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,7 +16,7 @@
ubc.pavlab
pavlab-starter-parent
- 1.2.5
+ 1.3.0-SNAPSHOT
gemma-core
@@ -235,11 +235,10 @@
org.hibernate
hibernate-ehcache
- compile
- mysql
- mysql-connector-java
+ com.mysql
+ mysql-connector-j
@@ -258,7 +257,7 @@
net.sf.ehcache
- ehcache-core
+ ehcache
@@ -389,7 +388,7 @@
org.apache.logging.log4j
- log4j-slf4j-impl
+ log4j-slf4j2-impl
org.apache.logging.log4j
@@ -644,10 +643,10 @@