This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
AW: java.lang.NullPointerException when loading SSAX.scm in kawa- 1.7
- From: "Hoehle, Joerg-Cyril" <Joerg-Cyril dot Hoehle at t-systems dot com>
- To: kawa at sources dot redhat dot com
- Date: Tue, 15 Jul 2003 13:26:20 +0200
- Subject: AW: java.lang.NullPointerException when loading SSAX.scm in kawa- 1.7
Stan asked:
>how do you run kawa?
>(defun run-kawa ()
> "Run Kawa Scheme in an Emacs buffer."
> (interactive)
> (require 'cmuscheme)
> (let ((scheme-program-name "/usr/local/bin/kawa"))
> (run-scheme scheme-program-name)))
I tried this with scheme-program-name as
"java -cp /home/hoehle/archive/kawa-1.7.jar kawa.repl")) -- no difference:
#|kawa:1|# (try-catch (catch #t (lambda () (+ "abc" 1)) (lambda _ #f)) (exc <java.lang.Exception> (display 6)))
java.lang.NullPointerException
at gnu.expr.LambdaExp.getReturnType(LambdaExp.java:1548)
[...]
at kawa.Shell.run(Shell.java:154)
at kawa.repl.main(repl.java:609)
#|kawa:2|# (newline (current-error-port))
<unknown>:0: Internal compiler exception: java.lang.NullPointerException
Jim White wrote:
>> Looking at SSAX on SF shows distributions for a number of
>Schemes but
>> not Kawa. Where can I get the version that you used
>successfully with
>> Kawa-1.6.9x?
What I posted (myenv-kawa.scm) to the mailing lists last year or so (the attached file is also found in the Kawa mailing list archives) was what I used for SXML-tree-trans and SXML-to-HTML. I didn't use SSAX last year, only pre-post-order and transformations: no parsing of XML.
Trying out the current CVS SSAX now, I'm under the impression that it would not work with Kawa-1.6.98 (some errors I reported, others I did not even bother to report, for they are gone in 1.7), nor would presumably last year's SSAX code work.
Stan Pinte wrote:
>here enclosed the tar version of my modified SSAX...
I tried it out now: no improvement!
On a Linux box this time, featuring a slightly newer Java version
java version "1.3.1_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
Java HotSpot(TM) Client VM (build 1.3.1_04-b02, mixed mode)
I obtain the dreaded NullPointerExc on the previously mentioned expression containing these test cases:
(test "]]>" '())
(test "abcd]]>" '("abcd" ""))
(test "abcd]]]>" '("abcd" "" "]" ""))
I used
M-x run-kawa then from your file test-kawa.scm:
(load "lib/myenv.scm")
(load "lib/myenv-kawa.scm")
(load "lib/srfi-13-local.scm")
;(load "lib/srfi-12.scm")
(load "lib/catch-error.scm")
(load "lib/char-encoding.scm")
(load "lib/input-parse.scm")
;(load "lib/util.scm")
(load "lib/SSAX.scm")
If from there, I evaluate further definitions from SSAX.scm interactively I get until (define ssax:read-attributes ...
which also errors out.
How comes your code/archive works for you!? what else could be different
Regards,
Jorg Hohle.
This time using Suse Linux 8.1