diff options
author | Artur Signell <artur@vaadin.com> | 2012-09-24 08:54:50 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-24 12:06:20 +0300 |
commit | 45332b5744d886e36bb999a48f0de26161458066 (patch) | |
tree | 2ed18ecabfc86b37b872ed25b1aa2c565d5f39e2 /server/src/com/vaadin | |
parent | b6f3d703051ec6bc471eac1f77c78e22cbb71393 (diff) | |
download | vaadin-framework-45332b5744d886e36bb999a48f0de26161458066.tar.gz vaadin-framework-45332b5744d886e36bb999a48f0de26161458066.zip |
Fixed serialization issues (#9640)
ConnectorTracker diff state is now transient and thus not serialized. This could be improved in the future (#9717)
Diffstat (limited to 'server/src/com/vaadin')
4 files changed, 8 insertions, 4 deletions
diff --git a/server/src/com/vaadin/server/AddonContextListener.java b/server/src/com/vaadin/server/AddonContextListener.java index 504062c039..602ba0ba66 100644 --- a/server/src/com/vaadin/server/AddonContextListener.java +++ b/server/src/com/vaadin/server/AddonContextListener.java @@ -16,6 +16,7 @@ package com.vaadin.server; +import java.io.Serializable; import java.util.EventListener; /** @@ -29,7 +30,7 @@ import java.util.EventListener; * @author Vaadin Ltd * @since 7.0.0 */ -public interface AddonContextListener extends EventListener { +public interface AddonContextListener extends EventListener, Serializable { /** * Notifies the listener that the add-on context has been created and * initialized. An add-on can use this method to get access to an diff --git a/server/src/com/vaadin/server/BootstrapListener.java b/server/src/com/vaadin/server/BootstrapListener.java index 9b68df3d51..a37cf799d9 100644 --- a/server/src/com/vaadin/server/BootstrapListener.java +++ b/server/src/com/vaadin/server/BootstrapListener.java @@ -16,6 +16,7 @@ package com.vaadin.server; +import java.io.Serializable; import java.util.EventListener; import javax.portlet.RenderResponse; @@ -29,7 +30,7 @@ import javax.portlet.RenderResponse; * @author Vaadin Ltd * @since 7.0.0 */ -public interface BootstrapListener extends EventListener { +public interface BootstrapListener extends EventListener, Serializable { /** * Lets this listener make changes to the fragment that makes up the actual * Vaadin application. In a typical Servlet deployment, this is the contents diff --git a/server/src/com/vaadin/server/VaadinSessionInitializationListener.java b/server/src/com/vaadin/server/VaadinSessionInitializationListener.java index 11b14cc9fc..c4722b9a86 100644 --- a/server/src/com/vaadin/server/VaadinSessionInitializationListener.java +++ b/server/src/com/vaadin/server/VaadinSessionInitializationListener.java @@ -16,6 +16,8 @@ package com.vaadin.server; +import java.io.Serializable; + /** * Event listener that can be registered to a {@link VaadinService} to get an * event when a new Vaadin session is initialized for that service. @@ -30,7 +32,7 @@ package com.vaadin.server; * @author Vaadin Ltd * @since 7.0.0 */ -public interface VaadinSessionInitializationListener { +public interface VaadinSessionInitializationListener extends Serializable { /** * Invoked when a new Vaadin session is initialized for that service. * <p> diff --git a/server/src/com/vaadin/ui/ConnectorTracker.java b/server/src/com/vaadin/ui/ConnectorTracker.java index d454df98ee..3fb83eeb92 100644 --- a/server/src/com/vaadin/ui/ConnectorTracker.java +++ b/server/src/com/vaadin/ui/ConnectorTracker.java @@ -59,7 +59,7 @@ public class ConnectorTracker implements Serializable { private boolean writingResponse = false; private UI uI; - private Map<ClientConnector, Object> diffStates = new HashMap<ClientConnector, Object>(); + private transient Map<ClientConnector, Object> diffStates = new HashMap<ClientConnector, Object>(); /** * Gets a logger for this class |