This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj 3.4.3 with uClibc: deserialization issue
- From: yoann dot huiban at devoteam dot com
- To: java at gcc dot gnu dot org
- Date: Wed, 21 Dec 2005 17:45:35 +0100
- Subject: gcj 3.4.3 with uClibc: deserialization issue
Hello,
I built a gcj compilation toolchain for a MIPS embedded target (using
buildroot).
I only succeeded to build a gcj-3.4.3.
Then I compiled my jdk1.4 project into a single statically linked
executable.
The program runs on the target, but I encounter pbs during deserialization.
I get the following message:
0x3500D9:69346089:ERROR (datagrammanager:read): java.io.EOFException:
Attempt to read primitive data, but no data block is active.
<<No stacktrace available>>
This trace is generated in the readNextBlock method of the
java.io.ObjectInputStream class.
My mips executable communicates with another mips executable.
I also made a test building the same cross compilation toolchain, but for
x86.
The behaviour is exactly the same.
I read in the mailing list that there used to be deserialization issues in
the previous versions of gcj.
Is it possible/useful to update only the java/io/ObjectInputStream.java
file in gcj with a 4.x version ? (and then recompile, of course).
Thanks to all the people who contributed to this project!
Yoann
~/buildroot/buildroot-0.9.27/buildroot/build_mips/staging_dir/bin/mips-linux-uclibc-gcj
-v Reading specs from
/home/yoann/buildroot/buildroot-0.9.27/buildroot/build_mips/staging_dir/lib/gcc/mips-linux-uclibc/3.4.3/specs
Reading specs from
/home/yoann/buildroot/buildroot-0.9.27/buildroot/build_mips/staging_dir/lib/gcc/mips-linux-uclibc/3.4.3/../../../../mips-linux-uclibc/lib/libgcj.spec
rename spec lib to liborig
Configured with:
/home/yoann/buildroot/buildroot-0.9.27/buildroot/toolchain_build_mips/gcc-3.4.3/configure
--prefix=/home/yoann/buildroot/buildroot-0.9.27/buildroot/build_mips/staging_dir
--build=i386-pc-linux-gnu --host=i386-pc-linux-gnu
--target=mips-linux-uclibc --enable-languages=c,c++,java --enable-shared
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--enable-libgcj-debug --disable-nls --enable-multilib
--enable-sjlj-exceptions
Thread model: posix
gcc version 3.4.3
+---------------------------------------------------------------------+
About Devoteam:
Devoteam is an IT consulting group.
Combining consulting and technology solutions offers enables
Devoteam to provide its customers with independent advice and
effective solutions to align their information system's technical
infrastructure with their operational objectives.
The group achieved a turnover of 150 million euros in 2004
an operating margin of 5.8% and counts 1,800 employees through
ten European countries and the Middle East.
Listed on the Euronext Paris Nouveau Marche and part of the Nexteconomy,
IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
www.devoteam.com
+---------------------------------------------------------------------+