Return-Path: Delivered-To: apmail-ws-tuscany-dev-archive@locus.apache.org Received: (qmail 24739 invoked from network); 1 Feb 2007 12:41:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2007 12:41:27 -0000 Received: (qmail 16423 invoked by uid 500); 1 Feb 2007 12:41:32 -0000 Delivered-To: apmail-ws-tuscany-dev-archive@ws.apache.org Received: (qmail 16384 invoked by uid 500); 1 Feb 2007 12:41:32 -0000 Mailing-List: contact tuscany-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-dev@ws.apache.org Received: (qmail 16375 invoked by uid 99); 1 Feb 2007 12:41:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 04:41:32 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 04:41:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 93BD471408A for ; Thu, 1 Feb 2007 04:41:05 -0800 (PST) Message-ID: <5435215.1170333665585.JavaMail.jira@brutus> Date: Thu, 1 Feb 2007 04:41:05 -0800 (PST) From: "Hasan Muhammad (JIRA)" To: tuscany-dev@ws.apache.org Subject: [jira] Commented: (TUSCANY-1084) Java Serialization: The Type definition is overwritten in the registry within the same scope In-Reply-To: <11745590.1170272045504.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TUSCANY-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469424 ] Hasan Muhammad commented on TUSCANY-1084: ----------------------------------------- Ok. Opened Tuscany-1086 for this limitation. Will close this one > Java Serialization: The Type definition is overwritten in the registry within the same scope > -------------------------------------------------------------------------------------------- > > Key: TUSCANY-1084 > URL: https://issues.apache.org/jira/browse/TUSCANY-1084 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Implementation > Affects Versions: Java-M2 > Environment: All > Reporter: Hasan Muhammad > Fix For: Java-M2 > > Attachments: JavaSerializeDeserializeTestCase.java > > > When a DataObject is serialized using the java serialization ( ObjectOutputStream.writeObject) and deserialized back using ObjectInputStream.readObject, the types of the two dataobjects do not match, even though this all in the same scope ( global in this case ). > During deserialization, it seems that the type of the dataobject cannot be found, and it is creating the type again and simply overwrites the previously registered type. This results in the dataobjects getting different types and the test case fails. > There is another issue here, which is that currently there seems to be no way to provide a scope when using these java serialization methods. For instance, when using XMLHelper, you can get a scope defined XMLHelper. But how do you do this when you are using the java serialization methods ? If you want me to open another Jira for this i will. > Hasan -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org For additional commands, e-mail: tuscany-dev-help@ws.apache.org