<div dir="ltr">More experiments with ASDF 3.1.7 clear the maven error, but now<div>com.sun.jna.Pointer class not found.  Details below.<div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 4, 2017 at 8:26 PM Mirko Vukovic <<a href="mailto:mirko.vukovic@gmail.com">mirko.vukovic@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">Earlier today I was able to load cffi by renaming mvn.cmd to mvn.bat.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Later on, I am unable to, and I would appreciate a fresh pair of eyes.<br class="gmail_msg"></div></div></blockquote><div><br></div><div>I did more experiments.  I decided to use with ASDF 3.1.7, for which </div><div>uiop/run-program:run-program runs cleanly (see my other thread</div><div><a href="https://mailman.common-lisp.net/pipermail/armedbear-devel/2017-January/003787.html">https://mailman.common-lisp.net/pipermail/armedbear-devel/2017-January/003787.html</a></div><div>where I tested by doing '("where" "mvn.bat")).  Now, I don't get a maven</div><div>error, which is what I was hoping for by switching to asdf 3.1.7</div><div><br></div><div>I cleared the cache, and run asdf with :force t.  I get an error about</div><div>com.sun.jna.Pointer class not found when compiling cffi-abcl:</div><div><br></div><div><div>CL-USER(31): (load "c:/mv-program-files/my-lisp-libraries/cffi/src/cffi-abcl.abcl")</div><div>Error loading C:/mv-program-files/my-lisp-libraries/cffi/src/cffi-abcl.abcl at line 32 (offset 2312)</div><div>#<THREAD "interpreter" {53BDE61}>: Debugger invoked on condition of type ERROR</div><div>  Class not found: com.sun.jna.Pointer</div><div>Restarts:</div><div>  0: ABORT     Return to debug level 1.</div><div>  1: TOP-LEVEL Return to top level.</div></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg">(ABCL/Java info:</div><div class="gmail_msg"><div class="gmail_msg">C:\Users\977315>java -jar "c:\mv-program-files\abcl-bin-1.4.0\abcl.jar"</div><div class="gmail_msg">Armed Bear Common Lisp 1.4.0</div><div class="gmail_msg">Java 1.8.0_112 Oracle Corporation</div><div class="gmail_msg">Java HotSpot(TM) 64-Bit Server VM</div><div class="gmail_msg">Low-level initialization completed in 0.243 seconds.</div><div class="gmail_msg">Startup completed in 3.812 seconds.</div><div class="gmail_msg">Loading C:\Users\977315\.abclrc completed in 13.729 seconds.)</div></div><div class="gmail_msg"><br class="gmail_msg"></div></div><div class="gmail_msg"><div class="gmail_msg">The error seems to happen in abcl-cffi.lisp.  </div><div class="gmail_msg">mvn.bat is visible:</div><div class="gmail_msg">(uiop/run-program:run-program '("where" "mvn.bat") :output :string) gives<br class="gmail_msg"></div></div><div class="gmail_msg"><div class="gmail_msg">"C:\\Program Files\\apache-maven-3.3.9\\bin\\mvn.bat</div><div class="gmail_msg">"</div><div class="gmail_msg">NIL</div><div class="gmail_msg">0</div></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I don't know how to narrow down the search for the culprit.  It makes me think</div><div class="gmail_msg">that maybe the error message is not correct - that there is a different underlying </div><div class="gmail_msg">cause.  Is there some direct way I can test maven+aether?  I now next to nothing</div><div class="gmail_msg">about Java, and looking at abcl-cffi, I did not find anything obvious.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thanks for your help and patience,</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Backtrace follows. </div><br class="gmail_msg"><div class="gmail_msg"> CL-USER(4): (asdf:load-system :cffi)<br class="gmail_msg"></div><div class="gmail_msg">; Compiling C:/mv-program-files/my-lisp-libraries/cffi/src/cffi-abcl.lisp ...</div><div class="gmail_msg">Using probed value of abcl-contrib:</div><div class="gmail_msg">'C:/mv-program-files/abcl-bin-1.4.0/abcl-contrib.jar'.</div><div class="gmail_msg">Added jar:file:C:/mv-program-files/abcl-bin-1.4.0/abcl-contrib.jar!/quicklisp/ to ASDF.</div><div class="gmail_msg">Added jar:file:C:/mv-program-files/abcl-bin-1.4.0/abcl-contrib.jar!/mvn/ to ASDF.</div><div class="gmail_msg">Added jar:file:C:/mv-program-files/abcl-bin-1.4.0/abcl-contrib.jar!/jss/ to ASDF.</div><div class="gmail_msg">Added jar:file:C:/mv-program-files/abcl-bin-1.4.0/abcl-contrib.jar!/jfli/ to ASDF.</div><div class="gmail_msg">Added jar:file:C:/mv-program-files/abcl-bin-1.4.0/abcl-contrib.jar!/asdf-jar/ to ASDF.</div><div class="gmail_msg">Added jar:file:C:/mv-program-files/abcl-bin-1.4.0/abcl-contrib.jar!/abcl-asdf/ to ASDF.</div><div class="gmail_msg">java.lang.ExceptionInInitializerError</div><div class="gmail_msg">        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</div><div class="gmail_msg">        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)</div><div class="gmail_msg">        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)</div><div class="gmail_msg">        at java.lang.reflect.Constructor.newInstance(Unknown Source)</div><div class="gmail_msg">        at java.lang.Class.newInstance(Unknown Source)</div><div class="gmail_msg">        at org.armedbear.lisp.FaslClassLoader.loadFunction(FaslClassLoader.java:130)</div><div class="gmail_msg">        at org.armedbear.lisp.FaslClassLoader$pf_get_fasl_function.execute(FaslClassLoader.java:165)</div><div class="gmail_msg">...</div><div class="gmail_msg"><div class="gmail_msg">        at org.armedbear.lisp.LispThread.execute(LispThread.java:832)<br class="gmail_msg"></div><div class="gmail_msg">        at org.armedbear.lisp.Lisp.evalCall(Lisp.java:582)</div><div class="gmail_msg">        at org.armedbear.lisp.Lisp.eval(Lisp.java:540)</div><div class="gmail_msg">        at org.armedbear.lisp.Lisp.progn(Lisp.java:709)</div><div class="gmail_msg">Caused by: org.armedbear.lisp.Go</div><div class="gmail_msg">; in (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL ...) ...)</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">; Caught SIMPLE-WARNING:</div><div class="gmail_msg">;   Unable to locate Maven executable to find Maven Aether adaptors.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">jnaASDF could not load  because Java exception 'java.lang.ClassNotFoundException: com.sun.jna.Native'..</div><div class="gmail_msg">#<THREAD "interpreter" {49B3491F}>: Debugger invoked on condition of type JAVA-EXCEPTION</div><div class="gmail_msg">  Java exception 'java.lang.ClassNotFoundException: com.sun.jna.Native'.</div><div class="gmail_msg">Restarts:</div><div class="gmail_msg">  0: RETRY                         Retry completing load for #<ASDF/SYSTEM:SYSTEM "jna">.</div><div class="gmail_msg">  1: ACCEPT                        Continue, treating completing load for #<ASDF/SYSTEM:SYSTEM "jna"> as having been successful.</div><div class="gmail_msg">  2: RETRY                         Retry compiling #<ASDF/LISP-ACTION:CL-SOURCE-FILE "cffi" "src" "cffi-abcl">.</div><div class="gmail_msg">  3: ACCEPT                        Continue, treating compiling #<ASDF/LISP-ACTION:CL-SOURCE-FILE "cffi" "src" "cffi-abcl"> as having been successful.</div><div class="gmail_msg">  4: RETRY                         Retry ASDF operation.</div><div class="gmail_msg">  5: CLEAR-CONFIGURATION-AND-RETRY Retry ASDF operation after resetting the configuration.</div><div class="gmail_msg">  6: TOP-LEVEL                     Return to top level.</div></div><div class="gmail_msg"><br class="gmail_msg"></div></div></blockquote></div></div></div></div>