CMDBuild Forum

Can't send email

Hello !

I have a problem every time on my cmdbuild. I can't send email at all. (for everything, for example synchronous events, ...).

I configured the email accounts with google SMTP (i have the same problem with others SMTP), i put my gmail, the password, the port. Then a create my template.

 

I create (for example) my aysnchronous events. I configure a mail evey hour.

 

But... nothing. I checked in the log i have this : 

 

INFO  2015-03-06 22:38:52 [jsonrpc ] Calling url /schema/emailaccount/put

INFO  2015-03-06 22:38:52 [cmdbuild] updating account 'EmailAccount.3[id=<null>,name=test,isDefault=true,username=my_adress@gmail.com,password=my_password,address=my_adress@gmail.com,smtpServer=smtp.gmail.com,smtpPort=465,smtpSsl=true,imapServer=,imapPort=0,imapSsl=false,incomingFolder=,processedFolder=,rejectedFolder=,isRejectNotMatching=false]'

INFO  2015-03-06 22:38:53 [jsonrpc ] Calling url /schema/emailaccount/getall

INFO  2015-03-06 22:38:53 [cmdbuild] getting all accounts

INFO  2015-03-06 22:38:55 [jsonrpc ] Calling url /schema/setup/getconfiguration

INFO  2015-03-06 22:39:00 [cmdbuild] starting job '758'

INFO  2015-03-06 22:39:00 [cmdbuild] converting logic task 'org.cmdbuild.logic.taskmanager.task.event.asynchronous.AsynchronousEventTask@105239f1' to store task

WARN  2015-03-06 22:39:00 [scheduler] error calling method 'public abstract void org.cmdbuild.scheduler.command.Command.execute()'

WARN  2015-03-06 22:39:00 [scheduler] caused by

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:622)

at org.cmdbuild.scheduler.command.Commands$SafeCommand$1.invoke(Commands.java:40)

at com.sun.proxy.$Proxy234.execute(Unknown Source)

at org.cmdbuild.scheduler.command.ForwardingCommand.execute(ForwardingCommand.java:18)

at org.cmdbuild.scheduler.command.BuildableCommandBasedJob.execute(BuildableCommandBasedJob.java:62)

at org.cmdbuild.scheduler.ForwardingJob.execute(ForwardingJob.java:23)

at org.cmdbuild.logic.taskmanager.scheduler.DefaultSchedulerFacade$JobWithCallback.execute(DefaultSchedulerFacade.java:40)

at org.cmdbuild.scheduler.ForwardingJob.execute(ForwardingJob.java:23)

at org.cmdbuild.logic.taskmanager.scheduler.DefaultSchedulerFacade$JobWithCallback.execute(DefaultSchedulerFacade.java:40)

at org.cmdbuild.scheduler.quartz.QuartzJob.execute(QuartzJob.java:19)

at org.quartz.core.JobRunShell.run(JobRunShell.java:207)

at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560)

Caused by: org.cmdbuild.logic.validation.Validator$ValidationError: java.lang.IllegalArgumentException: Malformed filter

at org.cmdbuild.logic.validation.json.JsonFilterValidator.validate(JsonFilterValidator.java:58)

at org.cmdbuild.logic.data.access.QuerySpecsBuilderFiller.fillQuerySpecsBuilderWithFilterOptions(QuerySpecsBuilderFiller.java:206)

at org.cmdbuild.logic.data.access.QuerySpecsBuilderFiller.create(QuerySpecsBuilderFiller.java:101)

at org.cmdbuild.logic.taskmanager.task.event.asynchronous.AsynchronousEventTaskJobFactory$2.currentCardsMatchingFilter(AsynchronousEventTaskJobFactory.java:149)

at org.cmdbuild.logic.taskmanager.task.event.asynchronous.AsynchronousEventTaskJobFactory$2.execute(AsynchronousEventTaskJobFactory.java:106)

... 15 more

Caused by: java.lang.IllegalArgumentException: Malformed filter

at org.apache.commons.lang3.Validate.isTrue(Validate.java:155)

at org.cmdbuild.logic.validation.json.JsonFilterValidator.validateAttributeFilter(JsonFilterValidator.java:74)

at org.cmdbuild.logic.validation.json.JsonFilterValidator.validateInnerFilterObjects(JsonFilterValidator.java:65)

at org.cmdbuild.logic.validation.json.JsonFilterValidator.validate(JsonFilterValidator.java:55)

... 19 more

INFO  2015-03-06 22:39:00 [cmdbuild] stopping job '758'

 
Informations about my server :
 
Cmdbuild : 2.3.0
Os Server : Debian 7
Tomcat : Apache Tomcat/7.0.59
Postgresql : 9.3
 
I didnt install any smtp on my server ( i mean i only have everything i put on the list, above).
 
So you have any solution ?
 
Thanks ! 

From the logs look like you’ve done something wrong in the definition of the filter for the extraction of the data cards (step 2 of the configuration wizard).
CMDBuild Team

It works, i had a small problem ... :-)
 
One question, i created 1 report (with jasper). I put it in cmdbuild, it works fine. I just want to know if is-it possible to send it to my compagnie by email with the cmdb ? For example everyday at 8 am.
 
 
Previously Tecnoteca wrote:
From the logs look like you've done something wrong in the definition of the filter for the extraction of the data cards (step 2 of the configuration wizard).
CMDBuild Team

 

At the moment this is not possible, but it is one of the first feature on which we will work.
Maybe it will be available already in the next version 2.3.1 (early April), otherwise in the next one.
CMDBuild Team