This page last changed on Sep 10, 2015 by niraviry.

After moving from a working project under version 2.1.0 to 2.1.1, I get tons of errors on each rule I have.
I was aware to this issue for a while but got to tackle it just now.
From the change log there is nothing relevant to this behaviour but it does mess up the project.
To be more specific, under 2.1.0 I did not get the Shell.log although I have added the needed code as defined in the forum. Under 2.1.1 it works after adding the same code.
Other than that, I get mail related errors on each of my rules.
The mail sending rule I have used was posted in the forum and it was working good for many months now.

The errors I get are:

DEBUG 2015-09-09 21:08:52,389 : Initializing event processor: Drools Rule Engine
DEBUG 2015-09-09 21:08:52,390 : Adding Rule 'modeler_rules.drl'...
ERROR 2015-09-09 21:08:58,949 : Rule definition 'modeler_rules.drl' could not be deployed. See errors below.
ERROR 2015-09-09 21:08:58,949 : Error importing : 'javax.mail.Message'
ERROR 2015-09-09 21:08:58,949 : Error importing : 'javax.mail.MessagingException'
ERROR 2015-09-09 21:08:58,949 : Error importing : 'javax.mail.PasswordAuthentication'
ERROR 2015-09-09 21:08:58,950 : Error importing : 'javax.mail.Session'
ERROR 2015-09-09 21:08:58,950 : Error importing : 'javax.mail.Transport'
ERROR 2015-09-09 21:08:58,953 : Error importing : 'javax.mail.internet.InternetAddress'
ERROR 2015-09-09 21:08:58,953 : Error importing : 'javax.mail.internet.MimeMessage'
ERROR 2015-09-09 21:08:58,953 : Error importing : 'org.openremote.controller.protocol._TimeStamp._TimeStamp'
ERROR 2015-09-09 21:08:58,954 : [ _TimeStamp : Function Compilation error
_TimeStamp (line:733): Only a type can be imported. javax.mail.Session resolves to a package
_TimeStamp (line:735): Only a type can be imported. javax.mail.Transport resolves to a package
_TimeStamp (line:737): Only a type can be imported. javax.mail.internet.InternetAddress resolves to a package
_TimeStamp (line:755): Only a type can be imported. javax.mail.Message resolves to a package
_TimeStamp (line:757): Only a type can be imported. javax.mail.PasswordAuthentication resolves to a package
_TimeStamp (line:765): Only a type can be imported. javax.mail.MessagingException resolves to a package
_TimeStamp (line:773): Only a type can be imported. javax.mail.internet.MimeMessage resolves to a package
 ]
ERROR 2015-09-09 21:08:58,954 : Rule Compilation error Only a type can be imported. javax.mail.Session resolves to a package
Only a type can be imported. javax.mail.Transport resolves to a package
Only a type can be imported. javax.mail.internet.InternetAddress resolves to a package
Only a type can be imported. javax.mail.Message resolves to a package
Only a type can be imported. javax.mail.PasswordAuthentication resolves to a package
Only a type can be imported. javax.mail.MessagingException resolves to a package
Only a type can be imported. javax.mail.internet.MimeMessage resolves to a package
The import org.openremote.controller.protocol._TimeStamp cannot be resolved
The method _TimeStamp() is undefined for the type Rule_Calc_if_Heat_Needed_for_6_40PM_0
ERROR 2015-09-09 21:08:58,955 : Rule Compilation error Only a type can be imported. javax.mail.Session resolves to a package
Only a type can be imported. javax.mail.Transport resolves to a package
Only a type can be imported. javax.mail.internet.InternetAddress resolves to a package
Only a type can be imported. javax.mail.Message resolves to a package
Only a type can be imported. javax.mail.PasswordAuthentication resolves to a package
Only a type can be imported. javax.mail.MessagingException resolves to a package
Only a type can be imported. javax.mail.internet.MimeMessage resolves to a package
The import org.openremote.controller.protocol._TimeStamp cannot be resolved
The method _TimeStamp() is undefined for the type Rule_Turn_off_Pergula_projector_0

This is just a sumple. The rest is the same.

I have no idea why I get these erros.

Need help.

You have to put javax mail package jar file in directory where other jar's are.

Posted by aktur at Sep 11, 2015 08:35
Document generated by Confluence on Jun 05, 2016 09:31