Re: New error about er.javamail ..more info
Re: New error about er.javamail ..more info
- Subject: Re: New error about er.javamail ..more info
- From: Larry Mills-Gahl <email@hidden>
- Date: Thu, 18 Nov 2010 16:24:51 -0500
The javax.mail.Session error sounds like a clue that your launch
arguments are not exactly what you expect for a WOApplication. I've had
this when I use an ERXMainRunner from a Wonder Framework project (one
that doesn't have an Application and Session class in the highest
priority part of the classpath.
ERXProperties can produce some INFO output to the console that shows
what properties files are loaded in what order and what the resulting
properties are after all are loaded/overriden. This may give you an idea
of where your properties may be overriden or not read in the order you
expect.
INFO [Thread-0] (er.extensions.foundation.ERXProperties:975) -
ERXProperties has found the following Properties files:
JavaDirectToWeb.framework ->
/Developer/WebObjects543/System/Library/Frameworks/JavaDirectToWeb.framework/Resources/Properties
JavaJDBCAdaptor.framework ->
/Developer/WebObjects543/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Properties
JavaEOControl.framework ->
/Developer/WebObjects543/System/Library/Frameworks/JavaEOControl.framework/Resources/Properties
[... and other loaded frameworks ... then on to my own frameworks ...]
VAJava_EOFramework.framework ->
/Users/lmg42/Development/Eclipse.Workspaces/VascAlert_201009/Web6/VAJava_EOFramework/Resources/Properties
VAJava_EOFramework.framework.user ->
/Users/lmg42/Development/Eclipse.Workspaces/VascAlert_201009/Web6/VAJava_EOFramework/Resources/Properties.lmg42
[... etc ...]
VABizLogic.app ->
/Users/lmg42/Development/Eclipse.Workspaces/VascAlert_201009/Web6/VABizLogic/Resources/Properties
Application-User Properties ->
/Users/lmg42/Development/Eclipse.Workspaces/VascAlert_201009/Web6/VABizLogic/Resources/Properties.lmg42
[... and then gives you the entire properties when the application
finishes launching ...]
ERXProperties currently has the following properties:
Audit.DBPassword=<deleted for log>
On 11/18/10 1:05 PM, James Cicenia wrote:
> OK if I put in the startup properties via eclipse to set centralize to off... I now get this error:
> it thinks my Session is javax.mail.Session.
>
> WTF... this works on three other systems?
>
>
>
>
>
>
> On Nov 18, 2010, at 11:52 AM, James Cicenia wrote:
>
>> Uh... yea... had that in there.... I believe it isn't reading my properties file.
>> really!
>>
>>
>> On Nov 18, 2010, at 11:41 AM, Chuck Hill wrote:
>>
>>> Dude! Really?
>>>
>>>>>> sent to 'er.javamail.adminEmail' instead of the normal TO addresses, but you did not provide a valid email for that property
>>>
>>> er.javamail.adminEmail ... did not provide a valid email for that property
>>>
>>> For giggles try
>>> er.javamail.adminEmail=email@hidden
>>>
>>>
>>>
>>> On Nov 18, 2010, at 9:39 AM, James Cicenia wrote:
>>>
>>>> Read?
>>>>
>>>> hmm, what is there to read? Inside my properties file it says false. This setup works on the other workstations.
>>>>
>>>> - j-
>>>>
>>>>
>>>> On Nov 18, 2010, at 11:33 AM, Chuck Hill wrote:
>>>>
>>>>>
>>>>> On Nov 18, 2010, at 9:27 AM, James Cicenia wrote:
>>>>>
>>>>>> Trying to get the new developer running...
>>>>>> Things look the same but when I try to launch the app from eclipse I get:
>>>>>>
>>>>>> [2010-11-18 11:23:7 CST] <main> null
>>>>>> [2010-11-18 11:23:7 CST] <main> A fatal exception occurred: When 'er.javamail.centralize' is true (default), all outgoing mails will get sent to 'er.javamail.adminEmail' instead of the normal TO addresses, but you did not provide a valid email for that property.
>>>>>> [2010-11-18 11:23:7 CST] <main> java.lang.IllegalArgumentException: When 'er.javamail.centralize' is true (default), all outgoing mails will get sent to 'er.javamail.adminEmail' instead of the normal TO addresses, but you did not provide a valid email for that property.
>>>>>> at er.javamail.ERJavaMail.initializeFrameworkFromSystemProperties(ERJavaMail.java:132)
>>>>>> at er.javamail.ERJavaMail.finishInitialization(ERJavaMail.java:113)
>>>>>>
>>>>>> Any suggestions?
>>>>>> My properties file:
>>>>>>
>>>>>> er.javamail.centralize = false
>>>>>
>>>>> Read? :-)
>>>>>
>>>>>> sent to 'er.javamail.adminEmail' instead of the normal TO addresses, but you did not provide a valid email for that property
>>>>>
>>>>>
>>>>> --
>>>>> Chuck Hill Senior Consultant / VP Development
>>>>>
>>>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>>>> http://www.global-village.net/products/practical_webobjects
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>> --
>>> Chuck Hill Senior Consultant / VP Development
>>>
>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>> http://www.global-village.net/products/practical_webobjects
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden