Opened 6 years ago

Closed 6 years ago

#356 closed defect (fixed)

JNA maven dependency resolution causes NPE

Reported by: charmon Owned by:
Priority: major Milestone:
Component: abcl-contrib Version:
Keywords: Cc:
Parent Tickets:

Description

Something in commit 0030b89b2eb24b0b63b5f1ca4d4c9a7644eea02d broke the JNA maven dependency resolution:

(sly@cyruss-mbp):~/src/abcl$ ./abcl
Armed Bear Common Lisp 1.4.0-dev
Java 1.7.0_51 Oracle Corporation
Java HotSpot?(TM) 64-Bit Server VM
Low-level initialization completed in 0.351 seconds.
Startup completed in 1.786 seconds.
Loading /Users/sly/.abclrc completed in 9.51 seconds.
Type ":help" for a list of available commands.
CL-USER(1): (require 'abcl-contrib)
Using probed value of abcl-contrib:
'/Users/sly/src/abcl/dist/abcl-contrib.jar'.
Added jar:file:/Users/sly/src/abcl/dist/abcl-contrib.jar!/quicklisp/ to ASDF.
Added jar:file:/Users/sly/src/abcl/dist/abcl-contrib.jar!/mvn/ to ASDF.
Added jar:file:/Users/sly/src/abcl/dist/abcl-contrib.jar!/jss/ to ASDF.
Added jar:file:/Users/sly/src/abcl/dist/abcl-contrib.jar!/jfli/ to ASDF.
Added jar:file:/Users/sly/src/abcl/dist/abcl-contrib.jar!/asdf-jar/ to ASDF.
Added jar:file:/Users/sly/src/abcl/dist/abcl-contrib.jar!/asdf-install/ to ASDF.
Added jar:file:/Users/sly/src/abcl/dist/abcl-contrib.jar!/abcl-asdf/ to ASDF.
("ABCL-CONTRIB")
CL-USER(2): (require 'jna)
ARTIFACT_RESOLVING net.java.dev.jna:jna:pom:4.1.0
ARTIFACT_RESOLVED net.java.dev.jna:jna:pom:4.1.0 (/Users/sly/.m2/repository/net/java/dev/jna/jna/4.1.0/jna-4.1.0.pom) @ central (http://repo1.maven.org/maven2/, releases+snapshots)
jnaASDF could not load because Java exception 'java.lang.NullPointerException?'..
#<THREAD "interpreter" {4323B3D5}>: Debugger invoked on condition of type JAVA-EXCEPTION

Java exception 'java.lang.NullPointerException?'.

Restarts:

0: RETRY Retry compiling #<ASDF/INTERFACE:MVN "jna" "net.java.dev.jna/jna/4.1.0">.
1: ACCEPT Continue, treating compiling #<ASDF/INTERFACE:MVN "jna" "net.java.dev.jna/jna/4.1.0"> as having been successful.
2: TOP-LEVEL Return to top level.

[1] CL-USER(4): :bt

0: (SYSTEM:BACKTRACE)
1: (INVOKE-DEBUGGER

#<JAVA-EXCEPTION java.lang.NullPointerException? {1DA02950}>)

2: org.armedbear.lisp.Lisp.error(Lisp.java:382)
3: org.armedbear.lisp.Java$pf_jnew.execute(Java.java:581)
4: org.armedbear.lisp.Primitive.execute(Primitive.java:135)
5: (JNEW

#<java class org.eclipse.aether.resolution.DependencyRequest?>
#<org.eclipse.aether.graph.DefaultDependencyNode? net.java.dev.jna:jna:jar:4.1.0 (.... {60206C1}>
#<null {6F096BFB}>)

6: (ABCL-ASDF:RESOLVE-DEPENDENCIES "net.java.dev.jna" "jna" "4.1.0")
7: (#<FUNCTION {28D8442C}>

(#<ASDF/INTERFACE:MVN "jna" "net.java.dev.jna/jna/4.1.0">))

Change History (2)

comment:1 Changed 6 years ago by charmon

Whoops. The commit in question is:

Make JCALL work in more places.


A reimplementation of org.apache.commons.lang.ClassUtils?.isAssignable
instead of the standard isAssignableFrom test.


<http://abcl.org/trac/ticket/352> .


From Olof.


git-svn-id: http://abcl.org/svn/trunk/abcl@14682 1c010e3e-69d0-11dd-93a8-456734b0d56f

comment:2 Changed 6 years ago by Mark Evenson

Resolution: fixed
Status: newclosed

Olof's patch was applied to trunk in <http://abcl.org/trac/changeset/14687> which fixes this issue.

Note: See TracTickets for help on using tickets.