t1794t7586 / mdcsvimporter

Automatically exported from code.google.com/p/mdcsvimporter
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Building the project on Linux #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Setup Moneydance 2010 and Netbeans 6.8 on Ubuntu 9.10 Linux (i386)
2. Checkout mdcsvimporter sources from Subversion
3. Modify project properties according to library file names
4. Clean and build the project on NetBeans
5. Install the extension on Moneydance

What is the expected output? What do you see instead?

When building the project this is the console output:

init:
Deleting:
/home/rodrigo/Workspace/201-MoneyDance/mdcvsimporter/build/built-jar.properties
deps-jar:
Updating property file:
/home/rodrigo/Workspace/201-MoneyDance/mdcvsimporter/build/built-jar.properties
compile:
Building jar:
/home/rodrigo/Workspace/201-MoneyDance/mdcvsimporter/dist/mdcsvimporter.mxt
Copy libraries to
/home/rodrigo/Workspace/201-MoneyDance/mdcvsimporter/dist/lib.
Updating jar:
/home/rodrigo/Workspace/201-MoneyDance/mdcvsimporter/dist/mdcsvimporter.mxt
Enter a passphrase to decrypt this key
Note: Your passphrase will be displayed as it is entered
a
Exception in thread "main" javax.crypto.BadPaddingException: Given final
block not properly padded
        at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
        at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
        at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..)
        at javax.crypto.Cipher.doFinal(DashoA13*..)
        at
com.moneydance.security.KeyUtil.decrypt_DES_ECB_PKCS5(KeyUtil.java:425)
        at com.moneydance.security.KeyUtil.decryptBytes(KeyUtil.java:183)
        at com.moneydance.security.KeyUtil.decryptString(KeyUtil.java:150)
        at com.moneydance.security.KeyUtil.decodePrivateKey(KeyUtil.java:130)
        at com.moneydance.admin.KeyAdmin.signModule(KeyAdmin.java:283)
        at com.moneydance.admin.KeyAdmin.main(KeyAdmin.java:46)
Java Result: 1
/home/rodrigo/Workspace/201-MoneyDance/mdcvsimporter/build.xml:95: Warning:
Could not find file
/home/rodrigo/Workspace/201-MoneyDance/mdcvsimporter/s-mdcsvimporter.mxt to
copy.
FALHA NA CONSTRUÇÃO (tempo total: 6 segundos)

What version of the product are you using? On what operating system?

Linux 2.6.31-20-generic #58-Ubuntu SMP i686 GNU/Linux
javac 1.6.0_15
NetBeans 6.8

Please provide any additional information below.

I tried to build the project on NetBeans, but got no success. Is there any
step I'm missing or perhaps something I'm doing wrong on this process?

Regards,

Rodrigo

Original issue reported on code.google.com by rodrigo....@gmail.com on 11 Apr 2010 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago
I don't have a Linux box handy, so I can't reproduce it. From your log I think 
that
the only thing missing is using the proper passphrase. The passphrase is
"mdcsvimporter", without the quotes.

If I understand Moneydance documentation correctly, the passphrase is not 
important
unless plugin becomes official Moneydance plugin. Until then there is really no
advantage to signing as noone can verify my key. Hence, I don't mind making it 
public
like this.

BTW, thanks for thorough bug information!

Original comment by Jovanovi...@gmail.com on 11 Apr 2010 at 8:44

GoogleCodeExporter commented 9 years ago
Jovanovic,

Thanks, it worked successfully using proper pass!

By the way, I initially tried to build the project on Eclipse along with Maven
plugin, but there were some issues concerning Ant tasks, thus I used NetBeans.

If this given signing process is ommitted, a NullPointerException is raised 
during
extension installation on Moneydance.

Original comment by rodrigo....@gmail.com on 11 Apr 2010 at 11:39

GoogleCodeExporter commented 9 years ago
Good to hear that. I'll close it unless you have any other related issue.

As for Eclipse build problem, I'll need more info if you want me to help. Build 
is
basically standard ant, with the addition of required Moneydance tasks which 
don't
look very common, and could be flawed. But they are not my, but I copied them 
from MD
people.

Original comment by Jovanovi...@gmail.com on 12 Apr 2010 at 3:35