tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2303-unable-to-load-extension-fileInfinite Kind: Discussion 2019-05-10T12:50:23Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-06T14:44:11Z2019-02-06T14:44:11Zunable to load extension file<div><p>Hi Malcolm,</p>
<p>Would it be possible to get a copy of the extension file? Did you create the extension file using the ant build.xml file that came with the dev kit?</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-06T15:17:25Z2019-02-06T15:17:25Zunable to load extension file<div><p>Attached is the myextension.mxt which was created by running "ant myextension" in the src folder. I made no changes to the build.xml, also attached.</p>
<p>Note - I have zipped the myextension.mxt file as it could not be uploaded as is. There was an error message on uploading "myextension.mxt has contents that are not what they are reported to be"</p>
<p>Thanks for your help</p>
<p>Malcolm</p></div>malcolm jonestag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-06T15:47:22Z2019-02-06T15:47:22Zunable to load extension file<div><p>Hi Sean,</p>
<p>Further to the above, following is the output from running ant</p>
<p>Thanks for your help</p>
<p>Malcolm</p>
<p>D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\src>ant myextension<br>
Buildfile: D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\src\build.xml</p>
<p>init:</p>
<p>myextension:<br>
[javac] This version of java does not support the classic compiler; upgrading to modern [jar] error while reading original manifest in file: D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\dist\myextension.mxt due to zip END header not found [jar] Building jar: D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\dist\myextension.mxt [java] Changes to environment variables are ignored when same JVM is used. Enter a passphrase to decrypt this key</p>
<pre>
<code> [java] Adding files:
[java] META-INF/
[java] META-INF/MANIFEST.MF
[java] com/
[java] com/moneydance/
[java] com/moneydance/modules/
[java] com/moneydance/modules/features/
[java] com/moneydance/modules/features/myextension/
[java] com/moneydance/modules/features/myextension/icon.gif
[java] com/moneydance/modules/features/myextension/AccountListWindow$ConsoleStream.class
[java] com/moneydance/modules/features/myextension/AccountListWindow.class
[java] com/moneydance/modules/features/myextension/Main.class
[java] writing 1359 bytes of meta data for com/moneydance/modules/features/myextension/meta_info.dict
[java] java.security.InvalidKeyException: No installed provider supports this key: com.moneydance.security.RSAPrivateKeyImpl
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:861)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[java] at jdk.internal.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
[java] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[java] at org.apache.tools.ant.Task.perform(Task.java:350)
[java] at org.apache.tools.ant.Target.execute(Target.java:449)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:834)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:223)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
[java] Caused by: java.security.InvalidKeyException: No installed provider supports this key: com.moneydance.security.RSAPrivateKeyImpl
[java] at java.base/java.security.Signature$Delegate.chooseProvider(Signature.java:1163)
[java] at java.base/java.security.Signature$Delegate.engineInitSign(Signature.java:1204)
[java] at java.base/java.security.Signature.initSign(Signature.java:546)
[java] at com.moneydance.admin.KeyAdmin.signModule(KeyAdmin.java:331)
[java] at com.moneydance.admin.KeyAdmin.main(KeyAdmin.java:48)
[java] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[java] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:218)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155)
[java] ... 20 more
[java] Java Result: -1
[move] Moving 1 file to D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\dist</code>
</pre>
<p>BUILD SUCCESSFUL<br>
Total time: 12 seconds</p></div>malcolm jonestag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-06T20:40:42Z2019-02-06T20:40:42Zunable to load extension file<div><p>Hi Sean,<br>
I responded in the discussion with the files - would you also like them in an email?<br>
Malcolm<br>
On Wednesday, February 6, 2019, 9:44:14 AM EST, Sean Reilly <a href="mailto:tender+d7eae88d3c@tenderapp.com">tender+d7eae88d3c@tenderapp.com</a> wrote:</p>
<table>
<tr>
<td></td>
</tr>
</table></div>malcolm jonestag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-06T22:47:39Z2019-02-06T22:47:39Zunable to load extension file<div><p>Hi Malcolm,</p>
<p>Thanks for sending those files over. I've gotten the copies and will check them out. I hope to have an answer to you tomorrow (the 7th).</p>
<p>Thanks!<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-07T11:09:17Z2019-02-07T11:09:17Zunable to load extension file<div><p>Hi Malcolm,<br>
Ok, it seems like the version of java you're using when running ant is not able to instantiate the RSA private key that is used for signing. I doubt that getting a newer version of java would help, but it may be that the encryption restrictions are still intact in your JDK. Would it be possible to send me the output of running "java --version"?</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-07T12:01:38Z2019-02-07T12:01:38Zunable to load extension file<div><p>Hi Sean,<br>
Here you go, it is a very recent version.<br>
Thanks for your help<br>
Malcolm</p>
<p>C:\Users\malco>java --versionjava 11.0.2 2019-01-15 LTSJava(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)<br>
C:\Users\malco></p>
<pre>
<code>On Thursday, February 7, 2019, 6:09:21 AM EST, Sean Reilly <tender+d7eae88d3c@tenderapp.com> wrote:</code>
</pre>
<table>
<tr>
<td></td>
</tr>
</table></div>malcolm jonestag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-07T12:14:06Z2019-02-07T12:14:06Zunable to load extension file<div><p>Hi Malcolm,</p>
<p>OK, in that case, in the JDK directory where java lives can you check for the existence of a "conf" folder? If it exists (it should, in java 11) can you remove the conf/security/policy/limited directory? That should remove any encryption limitations which I suspect is the issue.</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-07T12:48:28Z2019-02-07T12:48:28Zunable to load extension file<div><p>Hi Sean,<br>
I removed the limited directory but get the same result. The cmd window output follows.<br>
Malcolm</p>
<p>Also here is the Java directory structure to make sure it is as you expect.</p>
<p>D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\src>ant myextensionBuildfile: D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\src\build.xml<br>
init:<br>
myextension: [javac] This version of java does not support the classic compiler; upgrading to modern [jar] error while reading original manifest in file: D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\dist\myextension.mxt due to zip END header not found [jar] Building jar: D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\dist\myextension.mxt [java] Changes to environment variables are ignored when same JVM is used.Enter a passphrase to decrypt this key<br>
[java] Adding files: [java] META-INF/ [java] META-INF/MANIFEST.MF [java] com/ [java] com/moneydance/ [java] com/moneydance/modules/ [java] com/moneydance/modules/features/ [java] com/moneydance/modules/features/myextension/ [java] com/moneydance/modules/features/myextension/icon.gif [java] com/moneydance/modules/features/myextension/AccountListWindow$ConsoleStream.class [java] com/moneydance/modules/features/myextension/AccountListWindow.class [java] com/moneydance/modules/features/myextension/Main.class [java] writing 1359 bytes of meta data for com/moneydance/modules/features/myextension/meta_info.dict [java] java.security.InvalidKeyException: No installed provider supports this key: com.moneydance.security.RSAPrivateKeyImpl [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:861) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) [java] at jdk.internal.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) [java] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) [java] at org.apache.tools.ant.Task.perform(Task.java:350) [java] at org.apache.tools.ant.Target.execute(Target.java:449) [java] at org.apache.tools.ant.Target.performTasks(Target.java:470) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1361) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:834) [java] at org.apache.tools.ant.Main.startAnt(Main.java:223) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) [java] Caused by: java.security.InvalidKeyException: No installed provider supports this key: com.moneydance.security.RSAPrivateKeyImpl [java] at java.base/java.security.Signature$Delegate.chooseProvider(Signature.java:1163) [java] at java.base/java.security.Signature$Delegate.engineInitSign(Signature.java:1204) [java] at java.base/java.security.Signature.initSign(Signature.java:546) [java] at com.moneydance.admin.KeyAdmin.signModule(KeyAdmin.java:331) [java] at com.moneydance.admin.KeyAdmin.main(KeyAdmin.java:48) [java] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [java] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:218) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155) [java] ... 20 more [java] Java Result: -1 [move] Moving 1 file to D:\OneDrive\Documents\EclipseMD2\moneydance-devkit-5.0\dist BUILD SUCCESSFULTotal time: 9 seconds</p>
<pre>
<code>On Thursday, February 7, 2019, 7:14:09 AM EST, Sean Reilly <tender+d7eae88d3c@tenderapp.com> wrote:</code>
</pre>
<table>
<tr>
<td></td>
</tr>
</table></div>malcolm jonestag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-07T21:06:47Z2019-02-07T21:06:47Zunable to load extension file<div><p>Hi Malcolm,</p>
<p>OK, thanks for trying that. I've just found the issue and published a new dev kit (v5.1) which fixes the problem. Sorry about the trouble and waste of time!</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-08T01:22:42Z2019-02-08T01:22:42Zunable to load extension file<div><p>Hi Sean,<br>
Thanks for the quick response.<br>
I tried the v5.1 and had a strange result in making it work.<br>
1. The "ant genkeys" and "ant myextension" both ran as expected and generated a myextension.mxt file.<br>
2. Copied the mxt file into .moneydance\fmodules. The file size is 9KB.<br>
3. Opened moneydance and went to manage extensions - add from file and selected "myextension". There was a series of messages: - Warning: The signature on this extension is either invalid or missing...would you like to continue loading? Selected "Yes" - Please confirm that you would like to install this extension. Selected "Install Extension" - ??There was an error installing the extension?? java.util.zip.ZIPException: zip file is empty<br>
4. The extension does not appear. Shut down moneydance.<br>
5. At this point the myextension.mxt file in .moneydance\fmodules has changed to size 0KB.<br>
6. Re copied the same 9KB mxt file back into .moneydance\fmodules<br>
7. Re opened moneydance - now the extension appears and works as expected.<br>
All the best<br>
Malcolm</p>
<pre>
<code>On Thursday, February 7, 2019, 4:06:51 PM EST, Sean Reilly <tender+d7eae88d3c@tenderapp.com> wrote:</code>
</pre>
<table>
<tr>
<td></td>
</tr>
</table></div>malcolm jonestag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-08T02:49:57Z2019-02-08T02:49:57Zunable to load extension file<div><p>Hi Malcolm,</p>
<p>Clicking Manage Extensions > Add from File, copies the extension from it's current location into the .moneydance/fmodules folder.</p>
<p>Manually placing it there and then using 'Add from File' is likely the cause of the first odd behavior.</p>
<p>The invalid signature warning just means that TIK hasn't signed off on the code.</p>
<p>-Kevin N. (not a member of MD support)</p></div>-Kevin N.tag:infinitekind.tenderapp.com,2009-01-14:Comment/469250072019-02-08T12:44:51Z2019-02-08T12:44:51Zunable to load extension file<div><p>Hi Kevin,<br>
Thanks for your help, worked exactly as you said..</p>
<p>Malcolm</p></div>malcolm jones