Error with new mailing or copy default template

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

Error with new mailing or copy default template

Postby wendye » Thu Dec 15, 2016 1:41 pm

I have the OpenEMM 2015 R3 and try to start my first mailing based on the default template. Even if I start a simple mailing without or with template I'm getting the error:
A general error occurred. Please check your input.
I'm getting the same error when I try to copy the default template.
Here the error message from catalina log. I have also the log file from opneemm. Find it in the attachement.

08-Nov-2016 11:09:45.170 SEVERE [http-nio-8080-exec-10] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [action] in context with path [] threw exception
org.hibernate.PropertyValueException: not-null property references a null or transient value: DynamicTagEmbedded._Mailing.dynTagsBackref
at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at org.hibernate.engine.CascadingAction$5.cascade(CascadingAction.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131)
at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.agnitas.web.filter.OpenSessionInViewFilter.closeSession(OpenSessionInViewFilter.java:43)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:242)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.agnitas.web.filter.SerializeRequestFilter.doFilter(SerializeRequestFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.agnitas.web.filter.SessionHijackingPreventionFilter.doFilter(SessionHijackingPreventionFilter.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

https://sourceforge.net/p/openemm/bug-reports/149/attachment/openemm.log.2016-11-03
wendye
 
Posts: 1
Joined: Wed Oct 26, 2016 10:47 am

Re: Error with new mailing or copy default template

Postby apannwitz » Mon Jan 16, 2017 5:53 pm

No feedback since 26th October?
apannwitz
 
Posts: 2
Joined: Mon Jan 16, 2017 5:35 pm

Re: Error with new mailing or copy default template

Postby maschoff » Sat Jan 21, 2017 4:26 pm

The attached log says
Code: Select all
2016-11-08 11:09:45,150: ERROR [http-nio-8080-exec-10] org.hibernate.util.JDBCExceptionReporter - Column 'creation_date' cannot be null
2016-11-08 11:09:45,150: ERROR [http-nio-8080-exec-10] org.agnitas.web.MailingBaseAction - execute: org.springframework.dao.DataIntegrityViolationException: could not insert: [Mailing];
insert into mailing_tbl (company_id, campaign_id, shortname, description, mailing_type, is_template, needs_target, mailtemplate_id, mailinglist_id, deleted, archived, target_expression, creation_date, openaction_id, clickaction_id, dynamic_template) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [Mailing]

So, for some reason a creation_date is not set, but I cannot reproduce that. Please check if your MySQL table mailing_tbl is ok.
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2131
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Error with new mailing or copy default template

Postby apannwitz » Fri Jan 27, 2017 1:21 pm

Hi,

I used MySQL 5.7. when I installed openEMM. Then you recommended to me that I had to change it to MySQL 5.6/5.5 or MariaDB10. Maybe this error occurs because of the inital wrong installed database? Maybe I should install the server new from scratch? If so, could you please send me the best recommended settings (like OperatingSystem, Database etc.)? The specs on your site seems to be a little bit outdated:

https://www.agnitas.de/e-marketing-mana ... chnologie/

Best regards
Alex
apannwitz
 
Posts: 2
Joined: Mon Jan 16, 2017 5:35 pm

Re: Error with new mailing or copy default template

Postby maschoff » Fri Jan 27, 2017 1:35 pm

Best would be to read the Install&Admin Guide at
https://sourceforge.net/projects/openem ... rsions%29/
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2131
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany


Return to Using OpenEMM

Who is online

Users browsing this forum: No registered users and 1 guest