[jboss-jira] [JBoss JIRA] (AS7-4019) Jboss Remoting and java transient fields.
David Lloyd (JIRA)
jira-events at lists.jboss.org
Thu Mar 22 11:02:47 EDT 2012
[ https://issues.jboss.org/browse/AS7-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678674#comment-12678674 ]
David Lloyd commented on AS7-4019:
----------------------------------
The second problem is fixable by adding this patch:
{noformat}
diff --git a/ejb3/src/main/java/org/jboss/as/ejb3/remote/protocol/versionone/AbstractMessageHandler.java b/ejb3/src/main/java/org/jboss/as/ejb3/remote
index 45e14ec..73f9056 100644
--- a/ejb3/src/main/java/org/jboss/as/ejb3/remote/protocol/versionone/AbstractMessageHandler.java
+++ b/ejb3/src/main/java/org/jboss/as/ejb3/remote/protocol/versionone/AbstractMessageHandler.java
@@ -33,6 +33,7 @@ import org.jboss.marshalling.MarshallerFactory;
import org.jboss.marshalling.Marshalling;
import org.jboss.marshalling.MarshallingConfiguration;
import org.jboss.marshalling.Unmarshaller;
+import org.jboss.marshalling.reflect.SunReflectiveCreator;
import org.jboss.remoting3.Channel;
import java.io.DataInput;
@@ -255,7 +256,7 @@ abstract class AbstractMessageHandler implements MessageHandler {
marshallingConfiguration.setClassTable(ProtocolV1ClassTable.INSTANCE);
marshallingConfiguration.setObjectTable(ProtocolV1ObjectTable.INSTANCE);
marshallingConfiguration.setClassResolver(classResolver);
-
+ marshallingConfiguration.setSerializedCreator(new SunReflectiveCreator());
return marshallerFactory.createUnmarshaller(marshallingConfiguration);
}
}
{noformat}
This should be happening automatically in JBMAR but isn't due to JBMAR-136.
> Jboss Remoting and java transient fields.
> ------------------------------------------
>
> Key: AS7-4019
> URL: https://issues.jboss.org/browse/AS7-4019
> Project: Application Server 7
> Issue Type: Bug
> Components: EJB, JPA / Hibernate
> Affects Versions: 7.1.0.Final
> Environment: Windows XP
> Reporter: Sueleyman Vurucu
> Assignee: Scott Marlow
>
> Java transient field with default values restore the default value after deserialisation.
> This behaviour is different from the old remoting and standard java serialisation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list