BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Security Exception

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Arun Bommannavar
Guest





PostPosted: Wed Jul 12, 2006 9:18 pm    Post subject: Security Exception Reply with quote



Hi,

I am trying to build an app using JDatePicker (from Stand By Soft). The IDE
is JBuilderX. When I run the app within IDE, everything is fine. However,
when I try to run the JAR file, I get the following error.

P:\JBProjects\DatePickerTest>java -jar DatePickerTest.jar
Exception in thread "main" java.lang.SecurityException: no manifiest section
for signature file entry
com/standbysoft/component/date/swing/plaf/basic/v.class
at sun.security.util.SignatureFileVerifier.verifySection(Unknown
Source)
at sun.security.util.SignatureFileVerifier.processImpl(Unknown
Source)
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.getInputStream(Unknown Source)
at sun.misc.Resource.cachedInputStream(Unknown Source)
at sun.misc.Resource.getByteBuffer(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

I e-mailed a question to support (AT) jdatepicker (DOT) com but I have not recieved any
reply from them. I appreciate any help.

Regards,
Arun Bommannavar
Back to top
Doychin Bondzhev
Guest





PostPosted: Wed Jul 12, 2006 10:22 pm    Post subject: Re: Security Exception Reply with quote



Read this thread. There is similar problem described and the reason for it.

http://forum.java.sun.com/thread.jspa?threadID=487671&tstart=0

Doychin

"Arun Bommannavar" <abomm (AT) hpcat (DOT) aps.anl.gov> wrote in message
news:44b520cf$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

I am trying to build an app using JDatePicker (from Stand By Soft). The
IDE is JBuilderX. When I run the app within IDE, everything is fine.
However, when I try to run the JAR file, I get the following error.

P:\JBProjects\DatePickerTest>java -jar DatePickerTest.jar
Exception in thread "main" java.lang.SecurityException: no manifiest
section for signature file entry
com/standbysoft/component/date/swing/plaf/basic/v.class
at sun.security.util.SignatureFileVerifier.verifySection(Unknown
Source)
at sun.security.util.SignatureFileVerifier.processImpl(Unknown
Source)
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.getInputStream(Unknown Source)
at sun.misc.Resource.cachedInputStream(Unknown Source)
at sun.misc.Resource.getByteBuffer(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

I e-mailed a question to support (AT) jdatepicker (DOT) com but I have not recieved
any reply from them. I appreciate any help.

Regards,
Arun Bommannavar
Back to top
Gillmer J. Derge [TeamB]
Guest





PostPosted: Wed Jul 12, 2006 10:39 pm    Post subject: Re: Security Exception Reply with quote



Doychin Bondzhev wrote:
Quote:
Read this thread. There is similar problem described and the reason for it.

http://forum.java.sun.com/thread.jspa?threadID=487671&tstart=0

You're right, though I think it should be noted that a lot of the
"solutions" in that thread are red herrings. All the stuff in that
thread about "fixing" lib/win32.bin, changing to "Include required
classes and known resources," and so forth is nonsense.

The problem is that JBuilder's archive builder includes the signature
files from library JAR's, but it doesn't add the digest entries to the
manifest it generates. The result is that JBuilder creates a half
signed JAR. One solution is here:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0402&L=javahelp-interest&F=&S=&P=12530

Another approach you can take is to manually copy the missing SHA digest
entries from the library manifest files into a manifest override file
for your JBuilder archive, as described in some of the replies in the
Sun thread.

I've used both approaches myself. Neither one is very satisfying.

--
Gillmer J. Derge [TeamB]
Back to top
Arun Bommannavar
Guest





PostPosted: Thu Jul 13, 2006 2:45 am    Post subject: Re: Security Exception Reply with quote

"Gillmer J. Derge [TeamB]" <spam (AT) gillmerderge (DOT) com> wrote:
Quote:
Doychin Bondzhev wrote:
Read this thread. There is similar problem described and the reason for it.

http://forum.java.sun.com/thread.jspa?threadID=487671&tstart=0

You're right, though I think it should be noted that a lot of the
"solutions" in that thread are red herrings. All the stuff in that
thread about "fixing" lib/win32.bin, changing to "Include required
classes and known resources," and so forth is nonsense.

The problem is that JBuilder's archive builder includes the signature
files from library JAR's, but it doesn't add the digest entries to the
manifest it generates. The result is that JBuilder creates a half
signed JAR. One solution is here:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0402&L=javahelp-interest&F=&S=&P=12530

Another approach you can take is to manually copy the missing SHA digest
entries from the library manifest files into a manifest override file
for your JBuilder archive, as described in some of the replies in the
Sun thread.

I've used both approaches myself. Neither one is very satisfying.

--
Gillmer J. Derge [TeamB]

Thank you for the suggestion. I tried it but still no cigar. The error I am getting now is as follows:
P:\JBProjects\DatePickerTest>DatePickerTest.exe
Exception in thread "main" java.lang.SecurityException: invalid SHA1 signature file digest for com/standbysoft/component/date/swing/JDatePicker.class

So it appears that the SHA1 signature is incorrect. Thats puzzling to me, because the app works just fine in the JBuilderX IDE. If the SHA1 signature for a class is incorrect then it should (IMHO) have failed while running in IDE also.

I have written to their support again. I'll keep my fingers crossed.

Regards,
Arun
Back to top
Doychin Bondzhev
Guest





PostPosted: Thu Jul 13, 2006 8:13 am    Post subject: Re: Security Exception Reply with quote

It does not fail in JBuilder because when you run from there you
actually use their jar file which contains all the signatures properly.
When you run from command line you actually trying to run a single JAR
that includes all the classes and so all the signatures should be in the
manifest of this file.

Do you really need single exe solution in your case? You can use the
standbysoft library as JAR file and add it into the class path through
exe configuration file or through your manifest file. This way you won't
see this error anymore.

Doychin

Arun Bommannavar wrote:
Quote:
"Gillmer J. Derge [TeamB]" <spam (AT) gillmerderge (DOT) com> wrote:
Doychin Bondzhev wrote:
Read this thread. There is similar problem described and the reason for it.

http://forum.java.sun.com/thread.jspa?threadID=487671&tstart=0
You're right, though I think it should be noted that a lot of the
"solutions" in that thread are red herrings. All the stuff in that
thread about "fixing" lib/win32.bin, changing to "Include required
classes and known resources," and so forth is nonsense.

The problem is that JBuilder's archive builder includes the signature
files from library JAR's, but it doesn't add the digest entries to the
manifest it generates. The result is that JBuilder creates a half
signed JAR. One solution is here:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0402&L=javahelp-interest&F=&S=&P=12530

Another approach you can take is to manually copy the missing SHA digest
entries from the library manifest files into a manifest override file
for your JBuilder archive, as described in some of the replies in the
Sun thread.

I've used both approaches myself. Neither one is very satisfying.

--
Gillmer J. Derge [TeamB]

Thank you for the suggestion. I tried it but still no cigar. The error I am getting now is as follows:
P:\JBProjects\DatePickerTest>DatePickerTest.exe
Exception in thread "main" java.lang.SecurityException: invalid SHA1 signature file digest for com/standbysoft/component/date/swing/JDatePicker.class

So it appears that the SHA1 signature is incorrect. Thats puzzling to me, because the app works just fine in the JBuilderX IDE. If the SHA1 signature for a class is incorrect then it should (IMHO) have failed while running in IDE also.

I have written to their support again. I'll keep my fingers crossed.

Regards,
Arun


Back to top
Arun Bommannavar
Guest





PostPosted: Fri Jul 14, 2006 8:26 pm    Post subject: Re: Security Exception Reply with quote

Doychin,

OK. Finally I got the problem resolved. The support from JDatePicker guys is excellent!. They e-mailed me updated version of JDatePicker3.2.8 which does away with signed jars and everything worked just fine.

Thanks to all who tried to help me.

Regards,
Arun Bommannavar


Doychin Bondzhev <doychin@dsoft-bg.com> wrote:
Quote:
It does not fail in JBuilder because when you run from there you
actually use their jar file which contains all the signatures properly.
When you run from command line you actually trying to run a single JAR
that includes all the classes and so all the signatures should be in the
manifest of this file.

Do you really need single exe solution in your case? You can use the
standbysoft library as JAR file and add it into the class path through
exe configuration file or through your manifest file. This way you won't
see this error anymore.

Doychin

Arun Bommannavar wrote:
"Gillmer J. Derge [TeamB]" <spam (AT) gillmerderge (DOT) com> wrote:
Doychin Bondzhev wrote:
Read this thread. There is similar problem described and the reason for it.

http://forum.java.sun.com/thread.jspa?threadID=487671&tstart=0
You're right, though I think it should be noted that a lot of the
"solutions" in that thread are red herrings. All the stuff in that
thread about "fixing" lib/win32.bin, changing to "Include required
classes and known resources," and so forth is nonsense.

The problem is that JBuilder's archive builder includes the signature
files from library JAR's, but it doesn't add the digest entries to the
manifest it generates. The result is that JBuilder creates a half
signed JAR. One solution is here:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0402&L=javahelp-interest&F=&S=&P=12530

Another approach you can take is to manually copy the missing SHA digest
entries from the library manifest files into a manifest override file
for your JBuilder archive, as described in some of the replies in the
Sun thread.

I've used both approaches myself. Neither one is very satisfying.

--
Gillmer J. Derge [TeamB]

Thank you for the suggestion. I tried it but still no cigar. The error I am getting now is as follows:
P:\JBProjects\DatePickerTest>DatePickerTest.exe
Exception in thread "main" java.lang.SecurityException: invalid SHA1 signature file digest for com/standbysoft/component/date/swing/JDatePicker.class

So it appears that the SHA1 signature is incorrect. Thats puzzling to me, because the app works just fine in the JBuilderX IDE. If the SHA1 signature for a class is incorrect then it should (IMHO) have failed while running in IDE also.

I have written to their support again. I'll keep my fingers crossed.

Regards,
Arun


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.