[Logo]
Forums Register Login
encryption problem
hy,
i have a problem when i am using a website achtpublic.com when i tryi have to response to a tender , i shoud click on encrypt button, the problem is that when i do this an error message abour read or write problem on the disk.when i verified the logfile i found this:

[19/04/2016 16:55:41] ERROR component.PliEnConstitutionModel method 1 0 : 0 %
[19/04/2016 16:55:41] ERROR lib.EnveloppeNonChiffreeEnConsitutionImpl je passe par class com.achatpublic.sdm.econfiance.tools.model.lib.EnveloppeNonChiffreeEnConsitutionImpl
[19/04/2016 16:55:41] INFO util.RuntimeCounter <<< debut operation chiffrer l'enveloppe : offre-lot1 >>>
[19/04/2016 16:55:41] ERROR lib.EnveloppeNonChiffreeEnConsitutionImpl method 2 0 : 0 %
[19/04/2016 16:55:41] DEBUG lib.PliEnConstitutionImpl chiffrerEnveloppe()
[19/04/2016 16:55:41] DEBUG lib.PliEnConstitutionImpl method 3 680084
[19/04/2016 16:55:41] DEBUG lib.PliEnConstitutionImpl method 3 0 : 0 %
[19/04/2016 16:55:41] DEBUG lib.EnveloppeNonChiffreeEnConsitutionImpl effacerCry FILE + C:\Users\FR001465\.achatpublic\depot\CSL_2011_M3hCzAu3BG_0_1461077697305/offre-lot1
[19/04/2016 16:55:41] ERROR component.ChiffrementInProgress Erreur I/O
java.io.IOException: Accès refusé
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)
at com.achatpublic.sdm.econfiance.tools.model.lib.PliEnConstitutionImpl.chiffrerEnveloppe(PliEnConstitutionImpl.java:945)
at com.achatpublic.sdm.econfiance.tools.model.lib.EnveloppeNonChiffreeEnConsitutionImpl.chiffrer(EnveloppeNonChiffreeEnConsitutionImpl.java:132)
at com.achatpublic.sdm.econfiance.tools.component.PliEnConstitutionModel.chiffrer(PliEnConstitutionModel.java:354)
at com.achatpublic.sdm.econfiance.tools.component.ChiffrementInProgress$1.run(ChiffrementInProgress.java:237)


i have etsted on another machine with the same java version and it's works but not on other machine

can you help me please??

NB: i'm not a developer
error stack trace is not in english so it is hard to understand me but for the line "java.io.IOException: Accès refusé " i am guessing
it is saying "access is refused". If that so it means user don't have permission to create file on the computer on which its running.

Please check if proper access is there or not.
 

ucef youssef wrote:i have a problem when i am using a website achtpublic.com when i tryi have to response to a tender , i shoud click on encrypt button, the problem is that when i do this an error message abour read or write problem on the disk.when i verified the logfile i found this:


Well
  java.io.IOException: Accès refusé
sounds fairly serious to me.

I suspect you are trying to read from something you don't have access to, or writing to a filesystem you're not allowed to.

Either way, it's something you should probably talk to your administrators about.

HIH

Winston
 

at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)


Definitely trying to create a file on a Windows system (the OP's?) and can't.
Welcome to the Ranch you seem to have a answer.
Thank you for your answers but i have verified all the priviliges that i have on the folder .achatpublic
This folder is created automaticlly when we use the website.i have all permissions on it and i have created files manually on it,wich means that i have permissions with my acccount.i have the same permissions on an other laptop and its works correctly.
And on the website we can do a test about java and read and write priviliges...
The website days that everythin is ok even the write and read priviliges on the disk are ok

If you are trying to create a file exclusively and access is refused, my guess is that the file already exists and may currently be open by some other program or method.
I have also verified is ther anyfolder with the same name but nothing is there.i think that is there a problem when java try to call the certificate to encrypt data on the disk.
I dont know much about this but i should find a solution because its blocking me since two weeks
If that code is running in a Windows service, then it can't write to a folder unless the service is running as a user which is authorized to write to that folder. If the service is running as one of those generic accounts then it can't even write to a folder whose permissions are "Everyone".

You mentioned a website so I guessed you might be asking about a server.
No not about a server,but the website should encrypt data on my disk with java i guess and it creates also folders and files
Someone else's website? How are you getting their log information? Somehow you are asking it to create a file on its hard drive, not on yours.
Im getting the log file from my computer,there's a folder created by the website on my computer

.achatpublic/logs
So you are running this website on your computer, then? If so then I expect it is running as a service. See my previous post about how to configure the service.
I don't see any post about how to configure the service.and how can i find the service that running but the website on my computer?
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 376 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 19, 2018 14:12:04.