cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@fztig938.bank.dresdner.net>
Subject RE: [C2 patch] Jikes 1.14
Date Wed, 04 Jul 2001 12:00:56 GMT
Hi Vadim,

On Mon, 2 Jul 2001, Vadim Gritsenko wrote:

> I patched Jikes compiler, it works fine for me know. Please test and get back
> if you need to modify something more.

	I've just tested the updated code. On my setup I'm receiving an
	exception at sitemap compilation time (when I don't include the rt.jar
	and are intentially forcing jikes to report compile errors)

ERROR   99424   [cocoon  ] (Thread-32): Error compiling sitemap
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:507)
        at org.apache.cocoon.components.language.programming.java.Jikes.parseStream(Jikes.java:179)
        at org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler.getErrors(AbstractJavaCompiler.java:114)
        at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:191)
        at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:131)
        at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:250)
        at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:159)
        at org.apache.cocoon.sitemap.Handler.run(Handler.java:191)
        at java.lang.Thread.run(Thread.java:484)
ERROR   99424   [cocoon  ] (Thread-10): Problem with servlet

	The line of code is:

	if ((line == null) || (line.charAt(0) != ' ')) break;

	On my system (x86 Debian GNU/Linux, jdk 1.3.0, jikes 1.14) the input
	being parsed when the exception is thrown is actually a string of
	length zero (in my patch I replaced this test with a test for
	line.length() == 0).

	Is this different on your system - are we seeing some platform
	discrepancies here ??

	Cheers,

	Marcus
	

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:           After Hours    : +49 69 49086750


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message