EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problem SBUtils.SetLicenseKey

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#24081
Posted: 03/14/2013 01:00:24
by Patricio Gebauer (Standard support level)
Joined: 03/13/2013
Posts: 8

We place the following messages to validate where the exception occurs

javax.swing.JOptionPane.showMessageDialog (null, 'Passed 1');
SBUtils.SetLicenseKey ("xxxxxxx");
javax.swing.JOptionPane.showMessageDialog (null, 'Passed 2');

Just throw the 'Passed 1' and send the error.
#24082
Posted: 03/14/2013 01:11:37
by Eugene Mayevski (EldoS Corp.)

There's absolutely nothing in a call to SetLicenseKey to cause stack overflow (there are no complicated calls there) so I am afraid it's Java that fails to load the JAR file correctly and *it* (Java runtime) crashes with stack overflow.

Please describe more details about environment:

1) what version of Java is installed in browser
2) what browser is used
3) is the applet loaded from the local disk (using file:///... URL) or from the remote server?

We will try to reproduce the issue locally then.


Sincerely yours
Eugene Mayevski
#24105
Posted: 03/14/2013 11:59:03
by Vsevolod Ievgiienko (EldoS Corp.)

Hello.

I've just looked into your source code and saw that you are using our JNI library. This library is needed when you use Windows certificate stores or PKCS#11. Try to remove JNI.initialize() and most likely the exception will go away.

If you really need JNI-based functionality then the applet should be signed. Also I've found out that we should modify our code to load JNI library from applets correctly. If you have a license then we'll be able to provide you a quick fix. Otherwise it will be included into the next SBB build.
#24106
Posted: 03/14/2013 15:31:06
by Patricio Gebauer (Standard support level)
Joined: 03/13/2013
Posts: 8

Hello,
         We tried removing the JNI libraries to see how the applet starts and stays the same error, do this to see where the problem is generated

javax.swing.JOptionPane.showMessageDialog (null, 'Passed 1');
SBUtils.SetLicenseKey ("xxxxxxx");
javax.swing.JOptionPane.showMessageDialog (null, 'Passed 2');

Only shows 'Passed 1' and exeption occurs.
#24111
Posted: 03/14/2013 20:23:39
by Patricio Gebauer (Standard support level)
Joined: 03/13/2013
Posts: 8

We finally found the problem, the applet must be signed, with that corrected the problem. Thanks for the help.

What would be the correct way to use JNI from the project?
#24115
Posted: 03/15/2013 02:33:01
by Vsevolod Ievgiienko (EldoS Corp.)

Great!

The JNI binaries (both sbbjni32.dll and sbbjni64.dll) should be installed on client side and then should be loaded using JNI.initialize() from the applet. JNI.initialize() tries to load these binaries from java.library.path that is usually equal to PATH in windows environment.
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 3057 times

Number of guests: 2, registered members: 0, in total hidden: 0




|

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!