Problem linking ABCL code into a larger Java program

Robert Goldman <[email protected]> Thu, 14 Nov 2024 16:16:28 -0600
Newsgroups gmane.editors.j.devel
Message-ID <6DBD35D1-4D7A-4D8D-B7DE-EB45BC3C1284__32534.2414829478$1731622632$gmane$org@sift.net>
--=_MailMate_0C4600B8-9928-44C9-B702-3A5FCE8FB8AA_=
Content-Type: text/plain; format=flowed; markup=markdown
Content-Transfer-Encoding: quoted-printable

I've been trying to resuscitate some old code that used some functions I =

wrote in ABCL into a larger Java system (if anyone cares, the PRISM =

probabilistic model checker).

I'm getting the following error message:
```
; Compiling =

jar:file:///Users/rpg/projects/matrics/prism/prism/lib/abcl-contrib.jar!/=
asdf-jar/package.lisp =

=2E..
; (DEFPACKAGE #:ASDF-JAR ...)
; Wrote =

/Users/rpg/.cache/common-lisp/abcl-1.9.2-fasl43-macosx-arm64/Users/rpg/pr=
ojects/matrics/prism/prism/lib/abcl-contrib.jar/asdf-jar/package-tmp1FUW8=
2KK.abcl =

(0.022 seconds)
; Compiling =

jar:file:///Users/rpg/projects/matrics/prism/prism/lib/abcl-contrib.jar!/=
asdf-jar/asdf-jar.lisp =

=2E..
; (IN-PACKAGE #:ASDF-JAR)
; (DEFUN ADD-SYSTEM-FILES-TO-MAPPING! ...)
; (DEFUN SYSTEMS->HASH-TABLE ...)
; (DEFUN PACKAGE ...)
; (DEFUN ALL-FILES ...)
; (DEFUN RESOLVE-SYSTEM-OR-FEATURE ...)
; (DEFUN DEPENDENT-SYSTEMS ...)
; (DEFUN ARCHIVE-RELATIVE-PATH ...)
; (DEFUN TMPDIR ...)
; (DEFUN ADD-TO-ASDF ...)
; (DEFUN PREPARE-FOR-WAR ...)
; Wrote =

/Users/rpg/.cache/common-lisp/abcl-1.9.2-fasl43-macosx-arm64/Users/rpg/pr=
ojects/matrics/prism/prism/lib/abcl-contrib.jar/asdf-jar/asdf-jar-tmpLI46=
SF5K.abcl =

(0.206 seconds)
#<THREAD "main" native {753AACF}>: Debugger invoked on condition of type =

TYPE-ERROR
   The value #<jdk.internal.loader.ClassLoaders$AppClassLoader =

jdk.internal.loader.ClassLoaders.... {6470078D}> is not of type LIST.
[1] CL-USER(1): Exception trying to start ABCL PRISM!
```

backtrace: [gist =

here](https://gist.github.com/rpgoldman/c50f2d371386d13d4a98e2fe84a86be5"=
)

This is Java 23, and I suspect I should be trying an earlier version, =

but I'm not sure what one.

I'm really barely literate in Java, which is why I wrote the code in =

question in ABCL instead of Java, so I apologize if this question is =

just plain stupid.

=10Thanks for any clues
--=_MailMate_0C4600B8-9928-44C9-B702-3A5FCE8FB8AA_=
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/xhtml; charset=3Dutf-8"=
>
</head>
<body><div style=3D"font-family: sans-serif;"><div class=3D"markdown" sty=
le=3D"white-space: normal;">
<p dir=3D"auto">I've been trying to resuscitate some old code that used s=
ome functions I wrote in ABCL into a larger Java system (if anyone cares,=
 the PRISM probabilistic model checker).</p>
<p dir=3D"auto">I'm getting the following error message:</p>
<pre style=3D"margin-left: 15px; margin-right: 15px; padding: 5px; backgr=
ound-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; ma=
x-width: 90vw;"><code style=3D"margin: 0 0; border-radius: 3px; backgroun=
d-color: #F7F7F7; padding: 0px;">; Compiling jar:file:///Users/rpg/projec=
ts/matrics/prism/prism/lib/abcl-contrib.jar!/asdf-jar/package.lisp ...
; (DEFPACKAGE #:ASDF-JAR ...)
; Wrote /Users/rpg/.cache/common-lisp/abcl-1.9.2-fasl43-macosx-arm64/User=
s/rpg/projects/matrics/prism/prism/lib/abcl-contrib.jar/asdf-jar/package-=
tmp1FUW82KK.abcl (0.022 seconds)
; Compiling jar:file:///Users/rpg/projects/matrics/prism/prism/lib/abcl-c=
ontrib.jar!/asdf-jar/asdf-jar.lisp ...
; (IN-PACKAGE #:ASDF-JAR)
; (DEFUN ADD-SYSTEM-FILES-TO-MAPPING! ...)
; (DEFUN SYSTEMS-&gt;HASH-TABLE ...)
; (DEFUN PACKAGE ...)
; (DEFUN ALL-FILES ...)
; (DEFUN RESOLVE-SYSTEM-OR-FEATURE ...)
; (DEFUN DEPENDENT-SYSTEMS ...)
; (DEFUN ARCHIVE-RELATIVE-PATH ...)
; (DEFUN TMPDIR ...)
; (DEFUN ADD-TO-ASDF ...)
; (DEFUN PREPARE-FOR-WAR ...)
; Wrote /Users/rpg/.cache/common-lisp/abcl-1.9.2-fasl43-macosx-arm64/User=
s/rpg/projects/matrics/prism/prism/lib/abcl-contrib.jar/asdf-jar/asdf-jar=
-tmpLI46SF5K.abcl (0.206 seconds)
#&lt;THREAD &quot;main&quot; native {753AACF}&gt;: Debugger invoked on co=
ndition of type TYPE-ERROR
  The value #&lt;jdk.internal.loader.ClassLoaders$AppClassLoader jdk.inte=
rnal.loader.ClassLoaders.... {6470078D}&gt; is not of type LIST.
[1] CL-USER(1): Exception trying to start ABCL PRISM!
</code></pre>
<p dir=3D"auto">backtrace: <a href=3D"https://gist.github.com/rpgoldman/c=
50f2d371386d13d4a98e2fe84a86be5%22" style=3D"color: #3983C4;">gist here</=
a></p>
<p dir=3D"auto">This is Java 23, and I suspect I should be trying an earl=
ier version, but I'm not sure what one.</p>
<p dir=3D"auto">I'm really barely literate in Java, which is why I wrote =
the code in question in ABCL instead of Java, so I apologize if this ques=
tion is just plain stupid.</p>
<p dir=3D"auto">=10Thanks for any clues</p>

</div>
</div>
</body>

</html>

--=_MailMate_0C4600B8-9928-44C9-B702-3A5FCE8FB8AA_=--