Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET AntiSpam

 AfterLogic Forum : MailBee.NET AntiSpam
Subject Topic: Error while loading spam databases Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 09 August 2010 at 5:05am | IP Logged Quote ImmoConnect

Hello,

Can you give me more informations about the following error please ?
"String spamFilename" and "String nonSpamFilename" was not null or empty and means real existing files.

Thanks by advance.

Code:

"[ConnectImmo2] - xxx.Interface.Common.GlobalException: Une erreur s'est produite lors de l'initialisation de l'anti-spam : une erreur inattendue s'est produite lors de l'initialisation de l'anti-spam. ---> xxx.Mail.Interface.AntiSpamException: une erreur inattendue s'est produite lors de l'initialisation de l'anti-spam ---> [[MailBee]].MailBeeIOException: Supplied data has invalid format. [[InnerException]] message follows: La valeur ne peut pas être null.
Nom du paramètre : String ---> System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : String
   à System.Number.StringToNumber(String str, [[NumberStyles]] options, [[NumberBuffer]]& number, [[NumberFormatInfo]] info, Boolean parseDecimal)
   à System.Number.ParseInt32(String s, [[NumberStyles]] style, [[NumberFormatInfo]] info)
   à a.j.b.c(String A_0)
   --- Fin de la trace de la pile d'exception interne ---
   à a.j.b.c(String A_0)
   à [[MailBee]].AntiSpam.BayesFilter.LoadDatabase(String spamFilename, String nonSpamFilename)
   à xxx.Mail.AntiSpam.a..ctor(IParamAntiSpam A_0, String A_1)

      
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 09 August 2010 at 5:40am | IP Logged Quote ImmoConnect

I forgot to say that mail bee version is 6.0.2.220.

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 09 August 2010 at 2:49pm | IP Logged Quote Alex

These were the same files you previously saved using SaveDatabase method?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 10 August 2010 at 12:58am | IP Logged Quote ImmoConnect

Hello,

Yes. These files are not random files but real spam.dat and antispam.dat with some datas in it.

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 10 August 2010 at 2:41am | IP Logged Quote Alex

How did it stop working? You used these databases saving or reading data, databases grew over the time, and all of a sudden - bang? Or, something changed this time?

Or, this databases were never readable (you wrote them for the first time and could not then read them)?

Can you read any other spam.dat/nonspam.dat which you were saving (i.e. all such files do not work or only particular ones)?

Didn't you have an exception when writing these databases last time (so that they were saved incorrectly)?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 10 August 2010 at 5:34am | IP Logged Quote ImmoConnect

Hello,

This error occurs in two differents ways.

During internal use. But it can be explained because files are in a network disk, everybody can access.

And, the same error occurs twice on customer's computer. And there, there is no reason that files are shared or something like that.

Files are not big. nospam is 1 Ko and spam is 1 Mo.
These files are provided to our customer by us.

I just wanted to know what cause this error. Is it a bad format ? Can it be a copy problem ?
And if it is a format problem, is there a way to test files before loading ? And a way to recover corrupted files ?

Thanks.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 11 August 2010 at 1:32am | IP Logged Quote ImmoConnect

Hello,

I can give you more informations about this.
I just get files where error occurs.
I can provide those files if you want to.

It happend like you said. Use of the anti-spam and one day, bang.
But files I've got are not big (1Ko and 400 Ko).

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 01 September 2010 at 8:03am | IP Logged Quote ImmoConnect

Hello,

I have more informations.
This error (the error in the first post) occurs when a file named : spam.dat.lockDB is present in the folder, along with files spam.dat and antispam.dat.

What is this file "spam.dat.lockDB" ? I assume it is a lock for the spam database, but why is it still here ? (the error occurs during the initialisation)

I also had a problem with a nonspam.dat.lockUndo file.
But, is this file doesn't allow savedatabase action, it doesn't provoque error at the initialisation (but the nonspam database cannot be saved).

Can you give me more explanations about all this please ?
What should I do with this spam.dat.lockDB file ? Can I encounter others lock files ? What should I do then ?

Thanks by advance.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 02 September 2010 at 5:31am | IP Logged Quote Alex

Once the AntiSpam module developer is back from vacation, we'll update the engine to eliminate issues with lock files not being deleted. I hope the next version won't even use them at all (will be released later this month).

For now, you can delete these lock files. They only exist to forbid simultaneous access to the database from multiple threads to avoid race conditions.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 29 September 2010 at 1:08am | IP Logged Quote ImmoConnect

Hello,

Any news about this ?
Is the next version managing lock files ?

Thanks by advance.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide