EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SolFSStorage.open - Invalid parameter in function call - Win - Java

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#31968
Posted: 01/21/2015 18:24:20
by Bryan Wisdom (Basic support level)
Joined: 01/21/2015
Posts: 1

Hello,

I am evaluating SolFS (Application Edition) for use in one of our software products. The application we are writing has to be cross-platform so we are interested in using Java. I have received a trial key and have been trying to get a test working on Windows.
Here is what I have:

Code
    SolFSStorage storage = new SolFSStorage();
    storage.setRegistrationKey(ELDOS_SOLFS_LIC_KEY);
    storage.setFileName(SOURCE_FILE);
    storage.open(SolFSStorage.StorageOpenMode.CreateAlways);


Where...
"ELDOS_SOLFS_LIC_KEY" is a constant string containing the license key that I received in my email.
"SOURCE_FILE" is a constant string that is the absolute path to a file where the directory exists but the file does not exist yet.

Everything seems fine until I try to call "open" on the "SolFSStorage" object (as shown above), I get get the following exception:

Code
eldos.solfs.SolFSException: Invalid parameter in function call
   at eldos.solfs.SolFSStorage.StorageCreate(Native Method) ~[eldos.solfs.jar:?]
   at eldos.solfs.SolFSStorage.create(SolFSStorage.java:766) ~[eldos.solfs.jar:?]
   at eldos.solfs.SolFSStorage.open(SolFSStorage.java:717) ~[eldos.solfs.jar:?]
   at com.example.jtest.JTest.TestSolFS1(JTest.java:61) ~[JTest/:?]
   at com.example.jtest.JTest.main(JTest.java:114) [JTest/:?]

Since I'm new to ELDOS SolFS, it is very possible I'm not setting something up right. Here is some more information; perhaps someone has an idea of what is going on.

OS: Windows 7 Enterprise x64
SolFS for Windows: 5.1.137
I'm using the "...EldoS\SolFS.App\Java\eldos.solfs.jar" file that came with the windows installer (SolFSAppSetup.exe) along with the 32-bit DLL "...EldoS\SolFS.App\Java\Windows\Win32\jnisolfs.dll".
Not sure if it matters, but I'm building this with Java 8 (1.8.0_25).

On another note, I noticed that the Linux x86 version of SolFS comes with a "libsolfs.a" and a "libsolfs.so" file but no .jar file. Is it possible for us to develop our software in Java for both Windows and Linux with your product? I would not think it would matter in Java, except for the syscalls or OS specific part of your product. In that case I would assume we would just link against different libraries when deploying. But I might be wrong.

Thank you very much for your time!
~ Bryan Wisdom
#31970
Posted: 01/22/2015 02:09:56
by Alexander Plas (EldoS Corp.)

Moved to HelpDesk

Reply

Statistics

Topic viewed 2387 times

none




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!