Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 1153 invoked from network); 17 May 2007 11:14:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 11:14:37 -0000 Received: (qmail 22228 invoked by uid 500); 17 May 2007 11:14:42 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 21842 invoked by uid 500); 17 May 2007 11:14:41 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 21833 invoked by uid 99); 17 May 2007 11:14:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 04:14:41 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of zhanghuangzhu@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 04:14:34 -0700 Received: by an-out-0708.google.com with SMTP id b33so170538ana for ; Thu, 17 May 2007 04:14:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=ERzAUuxHKa9p5WsJShMfX26xTm1Z9v9ChwMNAVJ9NiCYAj4ak71MQIEncBbcVdLCV4rKnFgbQOXoazVfeDwEQC7Eou4hAUO4edOP6OC5buWe9KeZVRw+5OSjpuq96BzdfkrihuZbvgzsWNQwTsblGvUnjqC4vGZlc0dtYL2AQng= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=F4QqTam/5J7snxEkBw84pAKd48PT+agRNaq0Bsv2at49H/Kwy4ZIWOwSKa8KSZvR4uHluYtX2jJV07MPJNW2JQ2MUX6BNPAw5+6+321dNL/x1P2+6+67mRzaudbs162y7/F6o3Y7fZG4jSa2ELz5NVjVLwIC+ghBM02sXJfjU2E= Received: by 10.100.108.11 with SMTP id g11mr193389anc.1179400453308; Thu, 17 May 2007 04:14:13 -0700 (PDT) Received: by 10.100.194.20 with HTTP; Thu, 17 May 2007 04:14:13 -0700 (PDT) Message-ID: <4d0b24970705170414i31055afbp2cc94b42a357f696@mail.gmail.com> Date: Thu, 17 May 2007 19:14:13 +0800 From: "Andrew Zhang" To: dev@harmony.apache.org Subject: [classlib][luni] Harmony fails to deserialize org.jfree.data.category.DefaultCategoryDataset MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_39651_32407151.1179400453200" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_39651_32407151.1179400453200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, When I run an existing application, I found that Harmony fails to deserialize DefaultCategoryDataset. Here is a simple test case to reproduce the problem. Any ideas? Thanks! public void testSerializable() throws Exception { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); getSerialiableObject(dataset); } public static Object getSerialiableObject(Object obj) throws Exception { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(obj); oos.close(); ByteArrayInputStream bais = new ByteArrayInputStream( baos.toByteArray()); ObjectInputStream fis = new ObjectInputStream(bais); return fis.readObject(); } It throws the following exception: java.io.NotActiveException at java.io.ObjectInputStream.registerValidation(Unknown Source) at org.jfree.data.general.AbstractDataset.readObject( AbstractDataset.java:220) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at java.lang.reflect.Method.invoke(Method.java:381) at java.io.ObjectInputStream.readObjectForClass(Unknown Source) at java.io.ObjectInputStream.readHierarchy(Unknown Source) at java.io.ObjectInputStream.readNewObject(Unknown Source) at java.io.ObjectInputStream.readNonPrimitiveContent(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at serialization.DefaultCategoryDatasetSerializationTest.getSerialiableObject( DefaultCategoryDatasetSerializationTest.java:24) at serialization.DefaultCategoryDatasetSerializationTest.testSerializable( DefaultCategoryDatasetSerializationTest.java:14) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at java.lang.reflect.Method.invoke(Method.java:381) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run( JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run( TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196) -- Best regards, Andrew Zhang http://zhanghuangzhu.blogspot.com/ ------=_Part_39651_32407151.1179400453200--