-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.0 CE RC1, 6.2.0 CE RC2
-
Fix Version/s: 6.2.0 CE RC2
-
Component/s: Calendar
-
Labels:None
-
Environment:Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 34080ddff849c33d7ef0d0e2cea4bba264d11d1f.
Plugins 6.2.x GIT ID: 9756336da19d2e585c1b2c03903a1d8cc30f60c5.
-
Fix Priority:5
-
Git Pull Request:
- Add the following to your portal-ext.properties:
pop.server.notifications.enabled=true pop.server.notifications.interval=1 pop.server.subdomain=
- Deploy the Calendar Portlet
- Configure the Mail POP/SMTP Servers
- Change the Portal Instance's mail domain
- Add a user w/ a real email address
- Add the Calendar Portlet
- Login as the new user
- Add a Calendar Event in the future w/ an Email Notification a couple minutes away from the current time
Expected Results:
Once the time for the notification is reached an email should be sent.
Actual Results:
No email notification is sent.
The following exception is thrown:
22:54:14,026 ERROR [liferay/scheduler_dispatch-5][ParallelDestination:92] Unable to process message {destinationName=liferay/scheduler_dispatch, response=null, responseDestinationName=null, responseId=null, payload=null, values={JOB_NAME=com.liferay.calendar.messaging.CheckBookingsMessageListener, EXCEPTIONS_MAX_SIZE=0, GROUP_NAME=com.liferay.calendar.messaging.CheckBookingsMessageListener, DESTINATION_NAME=liferay/scheduler_dispatch, PORTLET_ID=1_WAR_calendarportlet, [email protected], companyId=0, MESSAGE_LISTENER_CLASS_NAME=com.liferay.calendar.messaging.CheckBookingsMessageListener, RECEIVER_KEY=com.liferay.calendar.messaging.CheckBookingsMessageListener.com.liferay.calendar.messaging.CheckBookingsMessageListener, MESSAGE_LISTENER_UUID=043bad5e-0f8d-45b8-9005-63a939736e82}} com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.kernel.exception.SystemException: java.lang.IllegalArgumentException: Invalid value at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67) at com.sun.proxy.$Proxy782.receive(Unknown Source) at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:76) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593) at java.lang.Thread.run(Unknown Source) Caused by: com.liferay.portal.kernel.exception.SystemException: java.lang.IllegalArgumentException: Invalid value at com.liferay.calendar.service.impl.CalendarBookingLocalServiceImpl.checkCalendarBookings(CalendarBookingLocalServiceImpl.java:223) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175) at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62) at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51) at com.sun.proxy.$Proxy758.checkCalendarBookings(Unknown Source) at com.liferay.calendar.service.CalendarBookingLocalServiceUtil.checkCalendarBookings(CalendarBookingLocalServiceUtil.java:364) at com.liferay.calendar.messaging.CheckBookingsMessageListener.doReceive(CheckBookingsMessageListener.java:29) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26) ... 12 more Caused by: java.lang.IllegalArgumentException: Invalid value at com.liferay.calendar.notification.NotificationType.parse(NotificationType.java:29) at com.liferay.calendar.model.impl.CalendarBookingImpl.getFirstReminderNotificationType(CalendarBookingImpl.java:68) at com.liferay.calendar.util.NotificationUtil.notifyCalendarBookingReminders(NotificationUtil.java:185) at com.liferay.calendar.service.impl.CalendarBookingLocalServiceImpl.checkCalendarBookings(CalendarBookingLocalServiceImpl.java:213) ... 27 more
For more context of the Exception please see attached file.