Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!

Evangelos Papadakis

Greenhorn
+ Follow
since Jul 11, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Evangelos Papadakis

Hi, actually our customer, when works with our intranet application, they want to open for a while an other application from desktop, they sometimes close the browser with the 'x' (just to see the desktop and launch some program), after that, they don't find any more the browser with our app to continue their work... (obviously !) ..I want only to put an alert on 'x' pressing in order to advise because some of them they think that our app is not compatible with that program... (public administration users... no comments ) .
...for now we decide that we cannot do that. But anyway, many thanks for responding...
P.S. Paul, in this case, X is close the browser... "usually" can remain "usually" and not "always"
10 years ago
JSF
Hi, I'm trying to add the following functionality on a JSF UI project:

I want to catch the event when the user wants to close the browser window and in that case, give an alert message.

I'm searching everywhere but so far I didn't find anything.

Thanks in advance for any help.

10 years ago
JSF
OK. Resolved. I replace JDK 1.4.2 with JDK 1.4.1 and everythink is working properly.
14 years ago
Hi, I have a big problem: I use the IAIK classes for digital signature and I get the follow problem:

java.lang.ExceptionInInitializerError
at javax.crypto.Cipher.a(DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at iaik.pkcs.pkcs7.SignerInfo.getDigest(Unknown Source)
at iaik.pkcs.pkcs7.SignedDataStream.verify(Unknown Source)
at iaik.pkcs.pkcs7.SignedDataStream.verify(Unknown Source)
at it.artware.inail.portale.associazionecategoria.digitalsignature.Firmato.analizza(Firmato.java:184)
at jsp_servlet._e_services._asscategoria.__ricevifile._jspService(__ricevifile.java:199)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:462)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at it.artware.inail.portale.FiltroAutenticazione.doFilter(FiltroAutenticazione.java:86)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5523)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
... 21 more
Caused by: java.security.PrivilegedActionException: java.security.InvalidKeyException: InitVerify error: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/ECB/PKCS1Padding
at java.security.AccessController.doPrivileged(Native Method)
... 22 more
Caused by: java.security.InvalidKeyException: InitVerify error: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/ECB/PKCS1Padding
at iaik.security.rsa.RSASignature.engineInitVerify(Unknown Source)
at java.security.Signature.initVerify(Signature.java:297)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:429)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:383)
at javax.crypto.SunJCE_b.c(DashoA6275)
at javax.crypto.SunJCE_b.b(DashoA6275)
at javax.crypto.SunJCE_s.run(DashoA6275)
... 23 more


I'm sure that the code is OK (also the combination of the algorithms RSA/ECB/PKCS1Padding is OK) because in the test machine works OK. The environment of the two machines I think is identical (BEA Weblogic 7.0).
I deploy a .war file with includes the iaik_jce-full.jar. Everythink appears the same for the two server machines. The only evident difference is that the machine doesn't work has two front end servers in a cluster but I don't think that is a problem?
Any help may be usefull..... Thanks everyone!

P.S. I use the signed jars of IAIK and I added on the java.security file the line:
security.provider.2=iaik.security.provider.IAIK
but with no effect, I add anyway the provider on the code. The strange is everythink works fine on the test machine (same .WAR, same server weblogic7, same classpath)
14 years ago
Ok. I found (I think)...
I will call the antivirus command line program for every single file I receive.

Ex. for AVG free antivirus, something like:

Process p = Runtime.getRuntime().exec("avgscan.exe -C:\toScan\myDocument.doc");

I need just to examine the return codes to understand the result!
15 years ago
Hi, thanks for the response!

ok, with curriculum File I mean a .DOC file,
That's mean, If I choose to accept only .DOC files, if I examine the begining of the file I can know that is a doc file?
It looks like a good solution. I will search now internet also for this solution.
Is there a standard bytes sequence for the doc files?
Is that method secure about the rest of the File?
I don't know how virus works. Can be a .doc file, with the initial bytes ok, to contain a virus that is activated during the reading of the word file?
15 years ago
Hello Everybody, I use an UploadServlet to upload a Curriculum from a JSP page. I want to avoid to upload a Virus... Is there some product to use? What I must do? Invoke an external virus scan program from the servlet?? Or what?

Thanx everybody!!!

Ev.
15 years ago
Hello everybody..
In the past I used the library CPIC.jar to communicate via LU6.2 with an other application. I used cpic.jar that uses .dll of the IBM Communications Server and we had Communication server.
Now I have SNA server and I have to write an application to exchange messages via LU6.6. I can't use the cpic.jar library.
Somebody knows if there exist the API for LU6.2 (Java or C) to use with SNA server (compatible)? Can I found somewhere that library?
Thanks everybody, I'm sorry for my english language.
Evan.
16 years ago