EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problem SBUtils.SetLicenseKey

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#24049
Posted: 03/13/2013 00:19:21
by Patricio Gebauer (Standard support level)
Joined: 03/13/2013
Posts: 8

Dear Sirs, We received the evaluation license for the blackbox for Java, we have a problem, when running the applet in development mode this works fine, but when published to the. Jar gives an error starting this:

SBUtils.SetLicenseKey("xxxxxxxxxxxx");

You can generate an Applet. Jar all-in or is there any limitation?

The code is:
SBUtils.SetLicenseKey("License Key");
SBPDF.Initialize();
SBPDFSecurity.Initialize();
#24050
Posted: 03/13/2013 00:38:27
by Eugene Mayevski (EldoS Corp.)

1) What error are you getting?
2) looks like either you've forgotten to put all referenced SecureBlackbox JARs near your applet or they could not be loaded.

You will need SecureBlackbox.jar and SecureBlackbox.PDF.jar .


Sincerely yours
Eugene Mayevski
#24051
Posted: 03/13/2013 00:50:05
by Patricio Gebauer (Standard support level)
Joined: 03/13/2013
Posts: 8

The applet does not load, it throws the error is: ExceptionInInitializerError

JAR are referenced using the project:
SecureBlackbox.Base.jar
SecureBlackbox.HTTPClient.jar
SecureBlackbox.HTTPCommon.jar
SecureBlackbox.PDF.jar
SecureBlackbox.SSLClient.jar
SecureBlackbox.SSLCommon.jar

regards
Patricio
#24052
Posted: 03/13/2013 00:55:11
by Eugene Mayevski (EldoS Corp.)

An applet ... Are you running it locally somehow or put to the web page?

In general, please describe the environment in details - the issue is clearly specific to the way you use classes, not in classes themselves.


Sincerely yours
Eugene Mayevski
#24053
Posted: 03/13/2013 01:02:03
by Patricio Gebauer (Standard support level)
Joined: 03/13/2013
Posts: 8

Attached file for a clearer vision


[ Download ]
#24054
Posted: 03/13/2013 01:22:15
by Eugene Mayevski (EldoS Corp.)

As said, the problem is not in the code but in the way the applet is deployed.

If you put the applet to the web page, you need to also specify other JAR files that the client side must download.

This is slightly beyond the scope of our competence so I can't guess what could be wrong without clear description of the way you load and run the applet.


Sincerely yours
Eugene Mayevski
#24077
Posted: 03/13/2013 23:28:51
by Patricio Gebauer (Standard support level)
Joined: 03/13/2013
Posts: 8

Eugene, after performing various tests, it was possible to generate a .JAR operate. As we see, the libraries are loaded, but still generates a problem.
If you run the applet from the Eclipse environment works properly, but if you generate the applet (tested all modes) and try to run from an HTML page that does not work.

Applet attached the project if we can help validate what the problem.
http://demos.vistainversiones.cl/sedfrontv2/websign.rar

I appreciate your help from now
regards
Patricio
#24078
Posted: 03/14/2013 00:32:09
by Eugene Mayevski (EldoS Corp.)

Please describe in details, what "doesn't work" mean in your case.


Sincerely yours
Eugene Mayevski
#24079
Posted: 03/14/2013 00:50:10
by Patricio Gebauer (Standard support level)
Joined: 03/13/2013
Posts: 8

attached image and below which shows the results


#24080
Posted: 03/14/2013 00:53:51
by Eugene Mayevski (EldoS Corp.)

Try adding some diagnostics to the code of your applet to track down, where exactly the exception happens. It can be even not in SecureBlackbox code.

Also did you test the same document in Eclipse and in Applet?


Sincerely yours
Eugene Mayevski
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 3035 times

Number of guests: 1, 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!