public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
* Re: serialization problem with tomcat with gcj
       [not found] <E17Glex-00087J-00@smarthost2.mail.easynet.fr>
@ 2002-06-08 12:52 ` Anthony Green
  2002-06-08 19:43 ` Anthony Green
  1 sibling, 0 replies; 4+ messages in thread
From: Anthony Green @ 2002-06-08 12:52 UTC (permalink / raw)
  To: Christophe Roux; +Cc: rhug-rhats

Hi Christophe,

	I suspect a bug in gcj's serialization implementation.  Would it be
possible for you to try and reproduce the bug with a stand-alone program
which serializes/deserializes the same data?  This might be easier to
debug.  If you can reproduce this, then I suggest filing a bug with the
`gccbug' program.

Thanks,

AG



On Sat, 2002-06-08 at 12:15, Christophe Roux wrote:
> I try to port a java set of servlet from jdk1.2 / tomcat-2.3.2 to gcj 
> (gcc-3.1) with tomcat-3.2.3 from rhug.
> I met a problem with object deserialization as transmitting data from a first 
> servlet to a second one with a POST request.
> I build a scenario to reproduce my problem simply (tgz joined).
> I put flags in the second servlet to see where tomcat stops (I have no 
> stack-trace and the servlet never hands back).
> The servlet stops on the instruction which create an ObjectInputStream from 
> the servlet InputStream (before flag "POST2").
> I build gcc and rhug/jakarta-tomcat with UTF-8 encoding.
> But I build my program with ISO-8859-1 encoding for my program, as I use 
> french accents in my strings.
> If you need anything more to investigate, or if you think I should contact 
> someone in charge of gcj, tell me.
> Thanks a lot.
> Christophe Roux


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: serialization problem with tomcat with gcj
       [not found] <E17Glex-00087J-00@smarthost2.mail.easynet.fr>
  2002-06-08 12:52 ` serialization problem with tomcat with gcj Anthony Green
@ 2002-06-08 19:43 ` Anthony Green
       [not found]   ` <E17H9G3-0006fn-00@smarthost2.mail.easynet.fr>
  1 sibling, 1 reply; 4+ messages in thread
From: Anthony Green @ 2002-06-08 19:43 UTC (permalink / raw)
  To: Christophe Roux; +Cc: rhug-rhats

On Sat, 2002-06-08 at 12:15, Christophe Roux wrote:
> I try to port a java set of servlet from jdk1.2 / tomcat-2.3.2 to gcj 
> (gcc-3.1) with tomcat-3.2.3 from rhug.

Ok - on second thought, ignore my previous comment.  The compiler's
inliner has been found to produce bad code in some instances.  It will
likely be disabled in GCC 3.1.1.  

This may take a long time, but it's probably a smart idea...  Try
rebuilding everything (including libgcj) with -fno-inline.  The easiest
way to do this is to add -fno-inline to gcc/libjava/libgcj.spec.in
(right after -fkeep-inline-functions) and then rebuild the library,
rhug, and your servlets.  Let me know if this fixes things.

AG


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: serialization problem with tomcat with gcj
       [not found]   ` <E17H9G3-0006fn-00@smarthost2.mail.easynet.fr>
@ 2002-06-10  1:25     ` Anthony Green
       [not found]       ` <E17JzAT-0000dx-00@smarthost1.mail.easynet.fr>
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony Green @ 2002-06-10  1:25 UTC (permalink / raw)
  To: Christophe Roux; +Cc: rhug-rhats

On Sun, 2002-06-09 at 13:27, Christophe Roux wrote:
> After a new compilation with -fno-inline there is no difference.

Thanks for taking the time to try this.

> About your first mail, I have tested first with a simple 
> ByteArrayOutputStream, in order to test the serialization before trying with 
> tomcat.
> I hope you can help me.

So do I!  I'm in the middle of a two week vacation with my family in
Hawaii -- so I don't expect I'll be able to do much until I return at
the end of the week.  My suggestion is to report this bug on
java@gcc.gnu.org in the meanwhile.

Thanks,

AG


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: serialization problem with tomcat with gcj
       [not found]       ` <E17JzAT-0000dx-00@smarthost1.mail.easynet.fr>
@ 2002-06-17 11:11         ` Anthony Green
  0 siblings, 0 replies; 4+ messages in thread
From: Anthony Green @ 2002-06-17 11:11 UTC (permalink / raw)
  To: Christophe Roux; +Cc: rhug-rhats

On Mon, 2002-06-17 at 09:18, Christophe Roux wrote:
> After a few investigation about my problem of serialization, I focused on 
> InputStream on the second class side (M2).
> Do you know why in rhug the class 
> org.apache.tomcat.service.connector.AJP12RequestAdapter is not given as 
> source code?

If I recall correctly, it's because it depends on something that gcj
doesn't support.  I could be wrong though.  Does your test require it?

> What does it mean for an open-source software?
> I hope you can answer.

Now that I'm back from my holiday I'm going to make time to look into
this tonight.

A couple of other things...

 - please copy rhug-rhats@sources.redhat.com, because other people may
have insight or advice
 - I'll be on irc.openprojects.net's #gcj channel when I do this, if you
want to chat

AG



AG


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-17 18:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E17Glex-00087J-00@smarthost2.mail.easynet.fr>
2002-06-08 12:52 ` serialization problem with tomcat with gcj Anthony Green
2002-06-08 19:43 ` Anthony Green
     [not found]   ` <E17H9G3-0006fn-00@smarthost2.mail.easynet.fr>
2002-06-10  1:25     ` Anthony Green
     [not found]       ` <E17JzAT-0000dx-00@smarthost1.mail.easynet.fr>
2002-06-17 11:11         ` Anthony Green

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).