Re: AjaxTabbedPanel - exception while handling request

2011-01-28 Thread Raghavender
Thanks a lot Chuck,  I have updated Wonder frameworks and the issue  
got resolved.  Now I am able to see the AjaxTabbedPannel and Tabs.


Thanks,
Raghu.

On 29-Jan-11, at 8:27 AM, Chuck Hill wrote:


Caused by: java.lang.NullPointerException
   at er.ajax.AjaxTabbedPanel.findTabs(AjaxTabbedPanel.java:94)


I have no idea what you have on that line, that is an old  
version.Check your source at that line.Or update Wonder and  
see if the problem goes away.



Chuck


On Jan 28, 2011, at 6:09 PM, Raghavender wrote:


Hi Chuck,

   WOActionResults res = super.invokeAction(aRequest,  
aContext);

...
  return ((WOComponent)res);//  Exception  
occurring at this line-151.




I have changed the casting from WOResponse to WOComponent, and now  
the error in the Session invokeAction(. .) method is not  
occurring.  But the exception (InvokeTargetException) is occurring  
in the my Application's dispatchRequest(.) method, getting the  
following exception:


Also I see a NullPointerException from the AjaxTabbedPanel class at  
the end of the following exception:

---
29193 [WorkerThread15] INFO NSLog  - subcomponents: null >
29203 [WorkerThread15] WARN NSLog  -  
:  
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
[2011-1-28 14:16:3 EST]   
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
   at  
com 
.webobjects 
.foundation 
._NSUtilities._explainInstantiationException(_NSUtilities.java:600)
   at  
com 
.webobjects 
.foundation._NSUtilities.instantiateObject(_NSUtilities.java:620)
   at  
com 
.webobjects 
.appserver.WOApplication.dynamicElementWithName(WOApplication.java: 
2404)
   at  
com 
.webobjects 
.appserver 
.parser 
.WOHTMLWebObjectTag._elementWithClass(WOHTMLWebObjectTag.java:179)
   at  
com 
.webobjects 
.appserver 
.parser 
.WOHTMLWebObjectTag._elementWithDeclaration(WOHTMLWebObjectTag.java: 
234)
   at  
com 
.webobjects 
.appserver 
.parser.WOHTMLWebObjectTag.dynamicElement(WOHTMLWebObjectTag.java: 
155)
   at  
com 
.webobjects 
.appserver 
.parser 
.WOBundleComponentTemplateParser 
.didParseClosingWebObjectTag(WOBundleComponentTemplateParser.java:68)
   at  
com 
.webobjects 
.appserver 
.parser.WOHTMLParser.didParseClosingWebObjectTag(WOHTMLParser.java: 
194)
   at  
com 
.webobjects 
.appserver.parser.WOHTMLParser.endOfWebObjectTag(WOHTMLParser.java: 
161)
   at  
com 
.webobjects 
.appserver.parser.WOHTMLParser.parseHTML(WOHTMLParser.java:68)
   at  
com 
.webobjects 
.appserver 
.parser 
.WOBundleComponentTemplateParser 
.parse(WOBundleComponentTemplateParser.java:109)
   at  
com 
.webobjects 
.appserver 
.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40)
   at  
com 
.webobjects 
.appserver 
.parser 
.WOComponentTemplateParser 
.templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438)
   at  
com 
.webobjects 
.appserver 
._private.WOComponentDefinition.template(WOComponentDefinition.java: 
364)
   at  
com.webobjects.appserver.WOComponent.template(WOComponent.java:499)
   at  
com 
.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 
1112)
   at  
er 
.extensions 
.components.ERXComponent.appendToResponse(ERXComponent.java:107)
   at  
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java: 
1385)
   at  
er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java: 
540)
   at  
com 
.webobjects 
.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
   at  
er 
.extensions 
.appserver.ERXApplication.appendToResponse(ERXApplication.java:1704)
   at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
   at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
   at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
   at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._handleRequest(WOComponentRequestHandler.java:369)
   at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
.handleRequest(WOComponentRequestHandler.java:442)
   at  
com 
.webobjects 
.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
   at  
er 
.extensions 
.appserver 
.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
   at  
er 
.extensions 
.appserver.ERXApplication.dispatchRequest(ERXApplication

Re: ps: database failures not rolling up to eof stack ??

2011-01-28 Thread Chuck Hill

On Jan 28, 2011, at 7:09 PM, Jake Fisher wrote:

> In ERXSqlHelper-->MySQLHelper-->handleDatabaseException it swallows
> the jdbc exception whole and never reports it. The best you ever get
> bubbled up to you in a completely non-descriptive custom validator
> exception.
> 
> I have been meaning to log this as an issue for a long time, sorry for
> that, unless of course that is the intended behavior though I can't
> see why it would be
> 
> ~Jake
> 
> 
> 
> Code snippet from ERXSQLHelper reposted below for evaluation by more eyes.
> 
> --
>   @Override
>   public boolean handleDatabaseException(EODatabaseContext
> databaseContext, Throwable throwable) {
>   if(throwable instanceof EOGeneralAdaptorException) {
>   EOGeneralAdaptorException e = 
> (EOGeneralAdaptorException)throwable;
>   NSDictionary userInfo = e.userInfo();
>   EOAdaptorOperation failedOp =
> userInfo==null?null:(EOAdaptorOperation)userInfo.objectForKey(EOAdaptorChannel.FailedAdaptorOperationKey);
>   if(failedOp != null && failedOp.exception() 
> instanceof
> JDBCAdaptorException) {
>   JDBCAdaptorException ae = 
> (JDBCAdaptorException)failedOp.exception();
>   
>   // MySQL error codes:
> http://dev.mysql.com/doc/refman/5.0/en/error-messages-server.html
>   
> switch(ae.sqlException().getErrorCode()) {
>   
>   case 1062: //Violates unique constraint
>   
> handleUniqueConstraintAdaptorException(databaseContext, failedOp);

Thinking this should return true here.

>   break;
>   
>   default:
>   
>   }
>   }
>   }
>   return false;

This is  * @return whether or not the SQL helper can handle this 
exception
so it should be  OK.


>   }
>   
>   /**
>* Throws a validation exception for a unique constraint 
> failure.
>* @param context The database context
>* @param failedOp The operation that failed
>* @throws NSValidation.ValidationException The exception 
> thrown.
> The key for the validation template strings file is
> UniqueConstraintException
>*/
>   protected void
> handleUniqueConstraintAdaptorException(EODatabaseContext context,
> EOAdaptorOperation failedOp) throws NSValidation.ValidationException {
>   NSValidation.ValidationException ve =
> ERXValidationFactory.defaultFactory().createCustomException(null,
> "UniqueConstraintException");
>   throw ve;
>   }
>   }
> 
> 
> 
> On Fri, Jan 28, 2011 at 5:22 PM, Chuck Hill  wrote:
>> 
>> On Jan 28, 2011, at 2:16 PM, Simon wrote:
>> 
>>> Check for a custom EC, custom DB context, or delegates for either of those 
>>> as a place to start.  At what point are you NOT seeing it?  Could it just 
>>> be getting ignored at the UI level?  I have seen "clever" handling like 
>>> this:
>>> 
>>> public WOActionResults save() {
>>>try {
>>>editingContext().saveChanges();
>>>}
>>>catch (Exception e) {
>>>}
>>>return context().page();
>>> }
>>> 
>>> nice :-) we have 'L' plates in the office that we dish out to people for 
>>> that kind of stuff
>> 
>> We used to have a cane, it was a caning offense.
>> 
>> 
>>> ('L' plates in the UK are for learner drivers - i have no idea if that 
>>> translates around the globe..)
>> 
>> It does in British Columbia.  We also have N for the Newfie drivers (or is 
>> that New drivers...).   I can think of a few others that would be useful.
>> 
>> 
>>>  > ps. is WOVNG still progressing ?
>>> 
>>> Yes, about as well as your exception.  :-P
>>> 
>>> ahhh. ok. i guessed that form the number of files release on sourceforge :-P
>>> 
>>> if there is anything worth punting out then please do so - we're about to 
>>> start reviewing how we can improve validation and it would be good to see 
>>> what you were trying to do with that stuff.
>> 
>> I don't think much more got done, though I have more internally.  It is an 
>> interest of mine, so I would be keen on being part of the discussion.
>> 
>> 
>> Chuck
>> 
>> --
>> 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/practi

Re: ps: database failures not rolling up to eof stack ??

2011-01-28 Thread Jake Fisher
In ERXSqlHelper-->MySQLHelper-->handleDatabaseException it swallows
the jdbc exception whole and never reports it. The best you ever get
bubbled up to you in a completely non-descriptive custom validator
exception.

I have been meaning to log this as an issue for a long time, sorry for
that, unless of course that is the intended behavior though I can't
see why it would be

~Jake



Code snippet from ERXSQLHelper reposted below for evaluation by more eyes.

--
@Override
public boolean handleDatabaseException(EODatabaseContext
databaseContext, Throwable throwable) {
if(throwable instanceof EOGeneralAdaptorException) {
EOGeneralAdaptorException e = 
(EOGeneralAdaptorException)throwable;
NSDictionary userInfo = e.userInfo();
EOAdaptorOperation failedOp =
userInfo==null?null:(EOAdaptorOperation)userInfo.objectForKey(EOAdaptorChannel.FailedAdaptorOperationKey);
if(failedOp != null && failedOp.exception() 
instanceof
JDBCAdaptorException) {
JDBCAdaptorException ae = 
(JDBCAdaptorException)failedOp.exception();

// MySQL error codes:
http://dev.mysql.com/doc/refman/5.0/en/error-messages-server.html

switch(ae.sqlException().getErrorCode()) {

case 1062: //Violates unique constraint

handleUniqueConstraintAdaptorException(databaseContext, failedOp);
break;

default:

}
}
}
return false;
}

/**
 * Throws a validation exception for a unique constraint 
failure.
 * @param context The database context
 * @param failedOp The operation that failed
 * @throws NSValidation.ValidationException The exception 
thrown.
The key for the validation template strings file is
UniqueConstraintException
 */
protected void
handleUniqueConstraintAdaptorException(EODatabaseContext context,
EOAdaptorOperation failedOp) throws NSValidation.ValidationException {
NSValidation.ValidationException ve =
ERXValidationFactory.defaultFactory().createCustomException(null,
"UniqueConstraintException");
throw ve;
}
}



On Fri, Jan 28, 2011 at 5:22 PM, Chuck Hill  wrote:
>
> On Jan 28, 2011, at 2:16 PM, Simon wrote:
>
>> Check for a custom EC, custom DB context, or delegates for either of those 
>> as a place to start.  At what point are you NOT seeing it?  Could it just be 
>> getting ignored at the UI level?  I have seen "clever" handling like this:
>>
>> public WOActionResults save() {
>>    try {
>>        editingContext().saveChanges();
>>    }
>>    catch (Exception e) {
>>    }
>>    return context().page();
>> }
>>
>> nice :-) we have 'L' plates in the office that we dish out to people for 
>> that kind of stuff
>
> We used to have a cane, it was a caning offense.
>
>
>> ('L' plates in the UK are for learner drivers - i have no idea if that 
>> translates around the globe..)
>
> It does in British Columbia.  We also have N for the Newfie drivers (or is 
> that New drivers...).   I can think of a few others that would be useful.
>
>
>>  > ps. is WOVNG still progressing ?
>>
>> Yes, about as well as your exception.  :-P
>>
>> ahhh. ok. i guessed that form the number of files release on sourceforge :-P
>>
>> if there is anything worth punting out then please do so - we're about to 
>> start reviewing how we can improve validation and it would be good to see 
>> what you were trying to do with that stuff.
>
> I don't think much more got done, though I have more internally.  It is an 
> interest of mine, so I would be keen on being part of the discussion.
>
>
> Chuck
>
> --
> 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      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/fisherja%40gmail.com
>
> This em

Re: AjaxTabbedPanel - exception while handling request

2011-01-28 Thread Chuck Hill
> Caused by: java.lang.NullPointerException
> at er.ajax.AjaxTabbedPanel.findTabs(AjaxTabbedPanel.java:94)

I have no idea what you have on that line, that is an old version.Check 
your source at that line.Or update Wonder and see if the problem goes away.


Chuck


On Jan 28, 2011, at 6:09 PM, Raghavender wrote:

> Hi Chuck,
> 
>>> WOActionResults res = super.invokeAction(aRequest, aContext);
>>> ...
>>>return ((WOComponent)res);//  Exception occurring at 
>>> this line-151.
>> 
> 
> I have changed the casting from WOResponse to WOComponent, and now the error 
> in the Session invokeAction(. .) method is not occurring.  But the exception 
> (InvokeTargetException) is occurring in the my Application's 
> dispatchRequest(.) method, getting the following exception:
> 
> Also I see a NullPointerException from the AjaxTabbedPanel class at the end 
> of the following exception:
> ---
> 29193 [WorkerThread15] INFO NSLog  -  subcomponents: null >
> 29203 [WorkerThread15] WARN NSLog  - 
> : Exception 
> occurred while handling request:
> com.webobjects.foundation.NSForwardException 
> [java.lang.reflect.InvocationTargetException] 
> null:java.lang.reflect.InvocationTargetException
> [2011-1-28 14:16:3 EST]  
> com.webobjects.foundation.NSForwardException 
> [java.lang.reflect.InvocationTargetException] 
> null:java.lang.reflect.InvocationTargetException
> at 
> com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:600)
> at 
> com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.java:620)
> at 
> com.webobjects.appserver.WOApplication.dynamicElementWithName(WOApplication.java:2404)
> at 
> com.webobjects.appserver.parser.WOHTMLWebObjectTag._elementWithClass(WOHTMLWebObjectTag.java:179)
> at 
> com.webobjects.appserver.parser.WOHTMLWebObjectTag._elementWithDeclaration(WOHTMLWebObjectTag.java:234)
> at 
> com.webobjects.appserver.parser.WOHTMLWebObjectTag.dynamicElement(WOHTMLWebObjectTag.java:155)
> at 
> com.webobjects.appserver.parser.WOBundleComponentTemplateParser.didParseClosingWebObjectTag(WOBundleComponentTemplateParser.java:68)
> at 
> com.webobjects.appserver.parser.WOHTMLParser.didParseClosingWebObjectTag(WOHTMLParser.java:194)
> at 
> com.webobjects.appserver.parser.WOHTMLParser.endOfWebObjectTag(WOHTMLParser.java:161)
> at 
> com.webobjects.appserver.parser.WOHTMLParser.parseHTML(WOHTMLParser.java:68)
> at 
> com.webobjects.appserver.parser.WOBundleComponentTemplateParser.parse(WOBundleComponentTemplateParser.java:109)
> at 
> com.webobjects.appserver.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40)
> at 
> com.webobjects.appserver.parser.WOComponentTemplateParser.templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438)
> at 
> com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:364)
> at com.webobjects.appserver.WOComponent.template(WOComponent.java:499)
> at 
> com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1112)
> at 
> er.extensions.components.ERXComponent.appendToResponse(ERXComponent.java:107)
> at 
> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
> at 
> er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:540)
> at 
> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
> at 
> er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1704)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
> at 
> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
> at 
> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
> at 
> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
> at Application.dispatchRequest(Application.java:505)
> at 
> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
> at 
> com.webobjects.appserver._private.WOWorkerT

Re: AjaxTabbedPanel - exception while handling request

2011-01-28 Thread Raghavender

Hi Chuck,

WOActionResults res = super.invokeAction(aRequest,  
aContext);

...
   return ((WOComponent)res);//  Exception  
occurring at this line-151.







I have changed the casting from WOResponse to WOComponent, and now the  
error in the Session invokeAction(. .) method is not occurring.  But  
the exception (InvokeTargetException) is occurring in the my  
Application's dispatchRequest(.) method, getting the following  
exception:


Also I see a NullPointerException from the AjaxTabbedPanel class at  
the end of the following exception:

---
29193 [WorkerThread15] INFO NSLog  - subcomponents: null >
29203 [WorkerThread15] WARN NSLog  -  
:  
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
[2011-1-28 14:16:3 EST]   
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
at  
com 
.webobjects 
.foundation 
._NSUtilities._explainInstantiationException(_NSUtilities.java:600)
at  
com 
.webobjects 
.foundation._NSUtilities.instantiateObject(_NSUtilities.java:620)
at  
com 
.webobjects 
.appserver.WOApplication.dynamicElementWithName(WOApplication.java:2404)
at  
com 
.webobjects 
.appserver 
.parser.WOHTMLWebObjectTag._elementWithClass(WOHTMLWebObjectTag.java: 
179)
at  
com 
.webobjects 
.appserver 
.parser 
.WOHTMLWebObjectTag._elementWithDeclaration(WOHTMLWebObjectTag.java:234)
at  
com 
.webobjects 
.appserver 
.parser.WOHTMLWebObjectTag.dynamicElement(WOHTMLWebObjectTag.java:155)
at  
com 
.webobjects 
.appserver 
.parser 
.WOBundleComponentTemplateParser 
.didParseClosingWebObjectTag(WOBundleComponentTemplateParser.java:68)
at  
com 
.webobjects 
.appserver 
.parser.WOHTMLParser.didParseClosingWebObjectTag(WOHTMLParser.java:194)
at  
com 
.webobjects 
.appserver.parser.WOHTMLParser.endOfWebObjectTag(WOHTMLParser.java:161)
at  
com 
.webobjects.appserver.parser.WOHTMLParser.parseHTML(WOHTMLParser.java: 
68)
at  
com 
.webobjects 
.appserver 
.parser 
.WOBundleComponentTemplateParser 
.parse(WOBundleComponentTemplateParser.java:109)
at  
com 
.webobjects 
.appserver.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java: 
40)
at  
com 
.webobjects 
.appserver 
.parser 
.WOComponentTemplateParser 
.templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438)
at  
com 
.webobjects 
.appserver 
._private.WOComponentDefinition.template(WOComponentDefinition.java:364)
at  
com.webobjects.appserver.WOComponent.template(WOComponent.java:499)
at  
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 
1112)
at  
er 
.extensions.components.ERXComponent.appendToResponse(ERXComponent.java: 
107)
at  
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
at  
er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:540)
at  
com 
.webobjects 
.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
at  
er 
.extensions 
.appserver.ERXApplication.appendToResponse(ERXApplication.java:1704)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._handleRequest(WOComponentRequestHandler.java:369)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
.handleRequest(WOComponentRequestHandler.java:442)
at  
com 
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 
1687)
at  
er 
.extensions 
.appserver 
.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
at  
er 
.extensions 
.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)

at Application.dispatchRequest(Application.java:505)
at  
com 
.webobjects 
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at  
com 
.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java: 
226)

at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at  
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at  
sun 
.reflect 
.NativeConstructorAccessorImpl 
.

Re: how to handle dates alone

2011-01-28 Thread Chuck Hill

On Jan 28, 2011, at 4:59 PM, Paul Hoadley wrote:

> On 29/01/2011, at 5:39 AM, Chuck Hill wrote:
> 
>> On Jan 28, 2011, at 11:00 AM, Theodore Petrosky wrote:
>> 
>>> You say 'these are Java'. yes, but how it relates to the backend. I have 
>>> invoice dates in my database. it is just a date. no time.
>>> 
>>> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda 
>>> Time stuff but it seems that there were problems so it was pulled.
>>> 
>>> So I need to rephrase. How can I have a date column in my database and have 
>>> an object in Webobjects that is date only and not care about times and 
>>> timezones?
>> 
>> You.  Can.  Not.
> 
> You're scaring Ted, Chuck.  Mention your assumptions: "Assuming you're not 
> using a library that provides a genuine 1-day resolution date type, such as 
> Joda Time."

I think that was pretty clear from the thread.  I said that in my very first 
reply.  "Standard Java does not support such subjective concepts.   ... The 
only other solution that I am familiar with is Joda Time.


>> Java does not care what your database thinks.  Java ONLY has a point in 
>> time.  ONLY.  JodaTime extends Java with some more, uh, relaxed attitudes  
>> towards dates.
> 
> Stop scaring Ted, Chuck!  There's nothing wrong with Joda's attitude.  
> Sometimes a 1-day resolution date is precisely the type you need.


I don't think there is anything wrong with Joda's attitude.  It is the attitude 
of the JDK and JDBC that has a problem.  But it is what it is.


Chuck

-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Handling GET Requests & Redirecting

2011-01-28 Thread Pascal Robert

Le 2011-01-28 à 19:15, Chuck Hill a écrit :

> Hi Kevin,
> 
> 
> On Jan 28, 2011, at 3:54 PM, Kevin Hinkson wrote:
> 
>> Hi,
>> I'm hoping someone can help me with this problem.
>> 
>> Let's say I have a Person object. How would I go about handling a GET 
>> request (with query strings) to delete a Person, save the changes to the 
>> database, and then redirect to a URL (not a WOComponent). Oh, and I need to 
>> have a Session available as well.
>> 
>> Initially I thought about doing this as a WOComponent and calling one of 
>> it's methods from the constructor, but then there is no clean way
>> to redirect the response. The alternative seemed to be to use DirectActions.
> 
> That would work.
> 
> 
>> But using this method seems to mean I will have to write a direct action for 
>> each
>> "action" (like delete/add/edit) that I would want to perform on a particular 
>> EO. It gets even hairier if I would like to re-use these actions in an API. 
>> This seems a bit kludgy and very not the webobjects way so I think I'm 
>> missing something.
>> 
>> Can anyone offer any suggestions?
> 
> That sounds a lot like a REST interface.  Have you looked at ERRest in 
> Project Wonder?
> 
> 
>> NB: My Session on awake, looks for certain cookie values, verifies hashes 
>> and loads a user account EO as a means of implementing Sign In "Remember 
>> Me", then cookies are updated and added to the response in the Session sleep 
>> method. It's a lazy man's Serialized Session Store. Does this sound like an 
>> appropriate use of awake and sleep? I also mention it in case it will mess 
>> with any response changes suggested for the redirect action. Thanks.
> 
> I would not call it a Serialized Session Store, but I am not sure how it will 
> play with ERRest.

+1 for ERRest!

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to handle dates alone

2011-01-28 Thread Paul Hoadley
On 29/01/2011, at 5:39 AM, Chuck Hill wrote:

> On Jan 28, 2011, at 11:00 AM, Theodore Petrosky wrote:
> 
>> You say 'these are Java'. yes, but how it relates to the backend. I have 
>> invoice dates in my database. it is just a date. no time.
>> 
>> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda 
>> Time stuff but it seems that there were problems so it was pulled.
>> 
>> So I need to rephrase. How can I have a date column in my database and have 
>> an object in Webobjects that is date only and not care about times and 
>> timezones?
> 
> You.  Can.  Not.

You're scaring Ted, Chuck.  Mention your assumptions: "Assuming you're not 
using a library that provides a genuine 1-day resolution date type, such as 
Joda Time."

> Java does not care what your database thinks.  Java ONLY has a point in time. 
>  ONLY.  JodaTime extends Java with some more, uh, relaxed attitudes  towards 
> dates.

Stop scaring Ted, Chuck!  There's nothing wrong with Joda's attitude.  
Sometimes a 1-day resolution date is precisely the type you need.


-- 
Paul.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to handle dates alone

2011-01-28 Thread Paul Hoadley
On 29/01/2011, at 5:30 AM, Theodore Petrosky wrote:

> I tried the Joda Time stuff but it seems that there were problems so it was 
> pulled.

What was recently backed out of Wonder was Ramsey Gurley's attempt to integrate 
the Joda types at a lower level.  There are no problems with using Joda types 
as custom types—see the sample project I linked to in my last post.  Ramsey is 
going to re-implement his work as a standalone framework when he gets time.  
You can wait for that, or roll your own following Henrique's sample project.

> So I need to rephrase. How can I have a date column in my database and have 
> an object in Webobjects that is date only and not care about times and 
> timezones?
> 
> Am I clearer?

Perfectly.  You can do exactly that _today_ using Joda Time's LocalDate class.


-- 
Paul.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to handle dates alone

2011-01-28 Thread Paul Hoadley
Hi Ted,

On 29/01/2011, at 5:19 AM, Theodore Petrosky wrote:

> How are people handling dates with no timezone (and no time, just the date 
> alone)? I really want to use the date column type and not care about the time 
> nor zone but I haven't figured out a way.

Here's the first post in a thread I started last August:

http://lists.apple.com/archives/webobjects-dev/2010/Aug/msg00132.html

Late in the thread, Henrique Prange provides a link to a sample project 
demonstrating how to use the Joda Time LocalDate class as a custom type in an 
EO model.  I have used Henrique's code, largely unmodified, backed by a 
PostgreSQL DATE column type in a deployed application since then.  It works as 
designed.

> I just got bitten with a timezone problem when shifting my app to a different 
> box. There must be a prescribed and easier way.

There's no prescribed way.  In that thread you'll find several other 
suggestions, some of which people are apparently using quite widely, and with 
success.  My personal preference is for genuine 1-day resolution types in both 
the database and the code.

As an aside, I gather you're using PostgreSQL from your posts in another 
thread.  If you're using full-blown timestamps elsewhere in your app (or if you 
choose one of the alternative solutions to your 1-day resolution problem that 
involves timestamps), be mindful of the "feature" in the PostgreSQL JDBC driver 
described in this thread:

http://lists.apple.com/archives/webobjects-dev/2010/Dec/msg00058.html

and the workarounds listed here:

http://wiki.objectstyle.org/confluence/display/WO/Project+WONDER-Frameworks-PostgresqlPlugin

in the yellow warning box entitled "JDBC driver adjusts timestamps".


-- 
Paul.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Handling GET Requests & Redirecting

2011-01-28 Thread Kevin Hinkson
On Jan 28, 2011, at 20:15, Chuck Hill  wrote:

> Hi Kevin,
> 
> 
> On Jan 28, 2011, at 3:54 PM, Kevin Hinkson wrote:
> 
>> Hi,
>> I'm hoping someone can help me with this problem.
>> 
>> Let's say I have a Person object. How would I go about handling a GET 
>> request (with query strings) to delete a Person, save the changes to the 
>> database, and then redirect to a URL (not a WOComponent). Oh, and I need to 
>> have a Session available as well.
>> 
>> Initially I thought about doing this as a WOComponent and calling one of 
>> it's methods from the constructor, but then there is no clean way
>> to redirect the response. The alternative seemed to be to use DirectActions.
> 
> That would work.
> 
> 
>> But using this method seems to mean I will have to write a direct action for 
>> each
>> "action" (like delete/add/edit) that I would want to perform on a particular 
>> EO. It gets even hairier if I would like to re-use these actions in an API. 
>> This seems a bit kludgy and very not the webobjects way so I think I'm 
>> missing something.
>> 
>> Can anyone offer any suggestions?
> 
> That sounds a lot like a REST interface.  Have you looked at ERRest in 
> Project Wonder?
> 
> 
>> NB: My Session on awake, looks for certain cookie values, verifies hashes 
>> and loads a user account EO as a means of implementing Sign In "Remember 
>> Me", then cookies are updated and added to the response in the Session sleep 
>> method. It's a lazy man's Serialized Session Store. Does this sound like an 
>> appropriate use of awake and sleep? I also mention it in case it will mess 
>> with any response changes suggested for the redirect action. Thanks.
> 
> I would not call it a Serialized Session Store, but I am not sure how it will 
> play with ERRest.
> 
> 
> Chuck

Thank you. I will take a look at ERRest. 

> 
> 
> -- 
> 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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Handling GET Requests & Redirecting

2011-01-28 Thread Chuck Hill
Hi Kevin,


On Jan 28, 2011, at 3:54 PM, Kevin Hinkson wrote:

> Hi,
> I'm hoping someone can help me with this problem.
> 
> Let's say I have a Person object. How would I go about handling a GET request 
> (with query strings) to delete a Person, save the changes to the database, 
> and then redirect to a URL (not a WOComponent). Oh, and I need to have a 
> Session available as well.
> 
> Initially I thought about doing this as a WOComponent and calling one of it's 
> methods from the constructor, but then there is no clean way
> to redirect the response. The alternative seemed to be to use DirectActions.

That would work.


> But using this method seems to mean I will have to write a direct action for 
> each
> "action" (like delete/add/edit) that I would want to perform on a particular 
> EO. It gets even hairier if I would like to re-use these actions in an API. 
> This seems a bit kludgy and very not the webobjects way so I think I'm 
> missing something.
> 
> Can anyone offer any suggestions?

That sounds a lot like a REST interface.  Have you looked at ERRest in Project 
Wonder?


> NB: My Session on awake, looks for certain cookie values, verifies hashes and 
> loads a user account EO as a means of implementing Sign In "Remember Me", 
> then cookies are updated and added to the response in the Session sleep 
> method. It's a lazy man's Serialized Session Store. Does this sound like an 
> appropriate use of awake and sleep? I also mention it in case it will mess 
> with any response changes suggested for the redirect action. Thanks.

I would not call it a Serialized Session Store, but I am not sure how it will 
play with ERRest.


Chuck


-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Handling GET Requests & Redirecting

2011-01-28 Thread Kevin Hinkson
Hi,
I'm hoping someone can help me with this problem.

Let's say I have a Person object. How would I go about handling a GET request 
(with query strings) to delete a Person, save the changes to the database, and 
then redirect to a URL (not a WOComponent). Oh, and I need to have a Session 
available as well.

Initially I thought about doing this as a WOComponent and calling one of it's 
methods from the constructor, but then there is no clean way
to redirect the response. The alternative seemed to be to use DirectActions. 
But using this method seems to mean I will have to write a direct action for 
each
"action" (like delete/add/edit) that I would want to perform on a particular 
EO. It gets even hairier if I would like to re-use these actions in an API. 
This seems a bit kludgy and very not the webobjects way so I think I'm missing 
something.

Can anyone offer any suggestions?

NB: My Session on awake, looks for certain cookie values, verifies hashes and 
loads a user account EO as a means of implementing Sign In "Remember Me", then 
cookies are updated and added to the response in the Session sleep method. It's 
a lazy man's Serialized Session Store. Does this sound like an appropriate use 
of awake and sleep? I also mention it in case it will mess with any response 
changes suggested for the redirect action. Thanks.

---
Kevin

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ps: database failures not rolling up to eof stack ??

2011-01-28 Thread Chuck Hill

On Jan 28, 2011, at 2:16 PM, Simon wrote:

> Check for a custom EC, custom DB context, or delegates for either of those as 
> a place to start.  At what point are you NOT seeing it?  Could it just be 
> getting ignored at the UI level?  I have seen "clever" handling like this:
> 
> public WOActionResults save() {
>try {
>editingContext().saveChanges();
>}
>catch (Exception e) {
>}
>return context().page();
> }
> 
> nice :-) we have 'L' plates in the office that we dish out to people for that 
> kind of stuff

We used to have a cane, it was a caning offense.


> ('L' plates in the UK are for learner drivers - i have no idea if that 
> translates around the globe..)

It does in British Columbia.  We also have N for the Newfie drivers (or is that 
New drivers...).   I can think of a few others that would be useful.


>  > ps. is WOVNG still progressing ?
> 
> Yes, about as well as your exception.  :-P
> 
> ahhh. ok. i guessed that form the number of files release on sourceforge :-P
> 
> if there is anything worth punting out then please do so - we're about to 
> start reviewing how we can improve validation and it would be good to see 
> what you were trying to do with that stuff.

I don't think much more got done, though I have more internally.  It is an 
interest of mine, so I would be keen on being part of the discussion.


Chuck

-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ps: database failures not rolling up to eof stack ??

2011-01-28 Thread Simon
>
> Check for a custom EC, custom DB context, or delegates for either of those
> as a place to start.  At what point are you NOT seeing it?  Could it just be
> getting ignored at the UI level?  I have seen "clever" handling like this:
>
> public WOActionResults save() {
>try {
>editingContext().saveChanges();
>}
>catch (Exception e) {
>}
>return context().page();
> }
>

nice :-) we have 'L' plates in the office that we dish out to people for
that kind of stuff

('L' plates in the UK are for learner drivers - i have no idea if that
translates around the globe..)


> > ps. is WOVNG still progressing ?
>
> Yes, about as well as your exception.  :-P


ahhh. ok. i guessed that form the number of files release on sourceforge :-P

if there is anything worth punting out then please do so - we're about to
start reviewing how we can improve validation and it would be good to see
what you were trying to do with that stuff.

simon
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ps: database failures not rolling up to eof stack ??

2011-01-28 Thread Chuck Hill

On Jan 28, 2011, at 1:00 PM, Simon wrote:

> 
> > the repeatable situation that we see this happening is when we try and set 
> > a string value that is defined as width X in the model and DB to something 
> > greater than X.
> 
> That should cause a validation error in EOF, not a string truncation error in 
> the database.  Did you write that backwards?
> 
> hmmm, come to think of it, that does look the wrong way round...
>  
> > my guess is that we must somehow be disposing of the exception somewhere 
> > but i can't seem to figure it.
> >
> > any ideas ?
> 
> If you are not catching and swallowing it in your code, my suspicions would 
> like in the JDBC driver or in the EOF plugin for MySQL.  I have never seen 
> EOF swallow exceptions originating from a failure to commit.
> 
> hokey cokey, i'll start poking around from the driver up. i suspect we've 
> introduced something daft somewhere that is slurping them up, but there is 
> nothing startlingly obvious. might have to dig out some books and remind 
> myself how exceptions float up through the stack :-p

Check for a custom EC, custom DB context, or delegates for either of those as a 
place to start.  At what point are you NOT seeing it?  Could it just be getting 
ignored at the UI level?  I have seen "clever" handling like this:

public WOActionResults save() {
try {
editingContext().saveChanges();
}
catch (Exception e) {
}
return context().page();
}



> ps. is WOVNG still progressing ?

Yes, about as well as your exception.  :-P


-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ps: database failures not rolling up to eof stack ??

2011-01-28 Thread Simon
>
>
> > the repeatable situation that we see this happening is when we try and
> set a string value that is defined as width X in the model and DB to
> something greater than X.
>
> That should cause a validation error in EOF, not a string truncation error
> in the database.  Did you write that backwards?
>

hmmm, come to think of it, that does look the wrong way round...


> > my guess is that we must somehow be disposing of the exception somewhere
> but i can't seem to figure it.
> >
> > any ideas ?
>
> If you are not catching and swallowing it in your code, my suspicions would
> like in the JDBC driver or in the EOF plugin for MySQL.  I have never seen
> EOF swallow exceptions originating from a failure to commit.
>

hokey cokey, i'll start poking around from the driver up. i suspect we've
introduced something daft somewhere that is slurping them up, but there is
nothing startlingly obvious. might have to dig out some books and remind
myself how exceptions float up through the stack :-p

thanks for the hint

simon

ps. is WOVNG still progressing ?
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ps: database failures not rolling up to eof stack ??

2011-01-28 Thread Chuck Hill

On Jan 28, 2011, at 12:21 PM, Simon wrote:

> oops - i forgot to mention:
> 
> - full wonder apps and frameworks
> - wo5.4
> - mysql 5.1
> 
> 
> -- Forwarded message --
> From: Simon 
> Date: 28 January 2011 20:19
> Subject: database failures not rolling up to eof stack ??
> To: WebObjects Development 
> 
> 
> hi all -
> 
> we have an ongoing issue with database update failures seemingly not rolling 
> up into the eof stack. this is basically what happens:
> 
> - create or update a few eo's in an ec & all save changes
> - we see the insert and/or update sql transactions go through
> - app continues and thinks everything is done
> - but in the console we see "roll back" statements, and the insert and/or 
> update hasn't actually happened
> 
> the repeatable situation that we see this happening is when we try and set a 
> string value that is defined as width X in the model and DB to something 
> greater than X.

That should cause a validation error in EOF, not a string truncation error in 
the database.  Did you write that backwards?


> my guess is that we must somehow be disposing of the exception somewhere but 
> i can't seem to figure it.
> 
> any ideas ?

If you are not catching and swallowing it in your code, my suspicions would 
like in the JDBC driver or in the EOF plugin for MySQL.  I have never seen EOF 
swallow exceptions originating from a failure to commit.

Chuck

-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

ps: database failures not rolling up to eof stack ??

2011-01-28 Thread Simon
oops - i forgot to mention:

- full wonder apps and frameworks
- wo5.4
- mysql 5.1


-- Forwarded message --
From: Simon 
Date: 28 January 2011 20:19
Subject: database failures not rolling up to eof stack ??
To: WebObjects Development 


hi all -

we have an ongoing issue with database update failures seemingly not rolling
up into the eof stack. this is basically what happens:

- create or update a few eo's in an ec & all save changes
- we see the insert and/or update sql transactions go through
- app continues and thinks everything is done
- but in the console we see "roll back" statements, and the insert and/or
update hasn't actually happened

the repeatable situation that we see this happening is when we try and set a
string value that is defined as width X in the model and DB to something
greater than X. my guess is that we must somehow be disposing of the
exception somewhere but i can't seem to figure it.

any ideas ?

thanks, simon
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

database failures not rolling up to eof stack ??

2011-01-28 Thread Simon
hi all -

we have an ongoing issue with database update failures seemingly not rolling
up into the eof stack. this is basically what happens:

- create or update a few eo's in an ec & all save changes
- we see the insert and/or update sql transactions go through
- app continues and thinks everything is done
- but in the console we see "roll back" statements, and the insert and/or
update hasn't actually happened

the repeatable situation that we see this happening is when we try and set a
string value that is defined as width X in the model and DB to something
greater than X. my guess is that we must somehow be disposing of the
exception somewhere but i can't seem to figure it.

any ideas ?

thanks, simon
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: how to handle dates alone

2011-01-28 Thread John Huss
Use the "time without time zone" column or "date" data type.  Start your app
with  -Duser.timezone=GMT

John

On Fri, Jan 28, 2011 at 1:00 PM, Theodore Petrosky wrote:

> You say 'these are Java'. yes, but how it relates to the backend. I have
> invoice dates in my database. it is just a date. no time.
>
> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda
> Time stuff but it seems that there were problems so it was pulled.
>
> So I need to rephrase. How can I have a date column in my database and have
> an object in Webobjects that is date only and not care about times and
> timezones?
>
> Am I clearer?
>
> Ted
>
>
>
> --- On Fri, 1/28/11, David LeBer  wrote:
>
> > From: David LeBer 
> > Subject: Re: how to handle dates alone
> > To: "Theodore Petrosky" 
> > Cc: webobjects-dev@lists.apple.com
> > Date: Friday, January 28, 2011, 1:52 PM
> >
> > On 2011-01-28, at 1:49 PM, Theodore Petrosky wrote:
> >
> > > so I was out the other night with the really h (sorry
> > wrong forum)
> > >
> > > How are people handling dates with no timezone (and no
> > time, just the date alone)? I really want to use the date
> > column type and not care about the time nor zone but I
> > haven't figured out a way.
> > >
> > > I just got bitten with a timezone problem when
> > shifting my app to a different box.
> >
> >
> > > There must be a prescribed and easier way.
> >
> > Really? These ARE java dates we are talking about here.
> >
> > ;david
> >
> > --
> > David LeBer
> > Codeferous Software
> > 'co-def-er-ous' adj. Literally 'code-bearing'
> > site: http://codeferous.com
> > blog: http://davidleber.net
> > profile:http://www.linkedin.com/in/davidleber
> > twitter:http://twitter.com/rebeld
> > --
> > Toronto Area Cocoa / WebObjects developers group:
> > http://tacow.org
> >
> >
> >
> >
> >
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> This email sent to johnth...@gmail.com
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: how to handle dates alone

2011-01-28 Thread Jesse Tayler
I think if you look, you'll see there's just a consistent time set on each date 
in your database but either way, you'll still have to deal with a regular date 
object - there's no alternative that's all that much better - at least not that 
I've seen working.

In the end, you'll always have to keep your storage format and interface logic 
in sync if midnight is to remain midnight.

What's your trouble now? Is your app presenting dates an hour or two off from 
where they should be?

You'll have to change your timezone, change the data in the database or change 
your application's (Java) notion of the timezone.

But hey, if you come up with something else, let me know for sure! 

All Dates are BAD dates!



On Jan 28, 2011, at 2:00 PM, Theodore Petrosky wrote:

> You say 'these are Java'. yes, but how it relates to the backend. I have 
> invoice dates in my database. it is just a date. no time.
> 
> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda Time 
> stuff but it seems that there were problems so it was pulled.
> 
> So I need to rephrase. How can I have a date column in my database and have 
> an object in Webobjects that is date only and not care about times and 
> timezones?
> 
> Am I clearer?
> 
> Ted
> 
> 
> 
> --- On Fri, 1/28/11, David LeBer  wrote:
> 
>> From: David LeBer 
>> Subject: Re: how to handle dates alone
>> To: "Theodore Petrosky" 
>> Cc: webobjects-dev@lists.apple.com
>> Date: Friday, January 28, 2011, 1:52 PM
>> 
>> On 2011-01-28, at 1:49 PM, Theodore Petrosky wrote:
>> 
>>> so I was out the other night with the really h (sorry
>> wrong forum)
>>> 
>>> How are people handling dates with no timezone (and no
>> time, just the date alone)? I really want to use the date
>> column type and not care about the time nor zone but I
>> haven't figured out a way.
>>> 
>>> I just got bitten with a timezone problem when
>> shifting my app to a different box.
>> 
>> 
>>> There must be a prescribed and easier way.
>> 
>> Really? These ARE java dates we are talking about here.
>> 
>> ;david
>> 
>> --
>> David LeBer
>> Codeferous Software
>> 'co-def-er-ous' adj. Literally 'code-bearing'
>> site: http://codeferous.com
>> blog: http://davidleber.net
>> profile:http://www.linkedin.com/in/davidleber
>> twitter:http://twitter.com/rebeld
>> --
>> Toronto Area Cocoa / WebObjects developers group:
>> http://tacow.org
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to handle dates alone

2011-01-28 Thread Chuck Hill

On Jan 28, 2011, at 11:00 AM, Theodore Petrosky wrote:

> You say 'these are Java'. yes, but how it relates to the backend. I have 
> invoice dates in my database. it is just a date. no time.
> 
> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda Time 
> stuff but it seems that there were problems so it was pulled.
> 
> So I need to rephrase. How can I have a date column in my database and have 
> an object in Webobjects that is date only and not care about times and 
> timezones?

You.  Can.  Not.  

Java does not care what your database thinks.  Java ONLY has a point in time.  
ONLY.  JodaTime extends Java with some more, uh, relaxed attitudes  towards 
dates.

As David alluded to, dates in Java are no ones' idea of fun.


Chuck


> 
> Am I clearer?
> 
> Ted
> 
> 
> 
> --- On Fri, 1/28/11, David LeBer  wrote:
> 
>> From: David LeBer 
>> Subject: Re: how to handle dates alone
>> To: "Theodore Petrosky" 
>> Cc: webobjects-dev@lists.apple.com
>> Date: Friday, January 28, 2011, 1:52 PM
>> 
>> On 2011-01-28, at 1:49 PM, Theodore Petrosky wrote:
>> 
>>> so I was out the other night with the really h (sorry
>> wrong forum)
>>> 
>>> How are people handling dates with no timezone (and no
>> time, just the date alone)? I really want to use the date
>> column type and not care about the time nor zone but I
>> haven't figured out a way.
>>> 
>>> I just got bitten with a timezone problem when
>> shifting my app to a different box.
>> 
>> 
>>> There must be a prescribed and easier way.
>> 
>> Really? These ARE java dates we are talking about here.
>> 
>> ;david
>> 
>> --
>> David LeBer
>> Codeferous Software
>> 'co-def-er-ous' adj. Literally 'code-bearing'
>> site: http://codeferous.com
>> blog: http://davidleber.net
>> profile:http://www.linkedin.com/in/davidleber
>> twitter:http://twitter.com/rebeld
>> --
>> Toronto Area Cocoa / WebObjects developers group:
>> http://tacow.org
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: how to handle dates alone

2011-01-28 Thread David LeBer

On 2011-01-28, at 2:00 PM, Theodore Petrosky wrote:

> You say 'these are Java'. yes, but how it relates to the backend. I have 
> invoice dates in my database. it is just a date. no time.
> 
> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda Time 
> stuff but it seems that there were problems so it was pulled.
> 
> So I need to rephrase. How can I have a date column in my database and have 
> an object in Webobjects that is date only and not care about times and 
> timezones?
> 
> Am I clearer?

See Chuck's reply. My comment was more of a sarcastic allusion to the fact that 
working with Java dates is *always* a pain, regardless of how your backend is 
persisting them.

> 
> Ted
> 
> 
> 
> --- On Fri, 1/28/11, David LeBer  wrote:
> 
>> From: David LeBer 
>> Subject: Re: how to handle dates alone
>> To: "Theodore Petrosky" 
>> Cc: webobjects-dev@lists.apple.com
>> Date: Friday, January 28, 2011, 1:52 PM
>> 
>> On 2011-01-28, at 1:49 PM, Theodore Petrosky wrote:
>> 
>>> so I was out the other night with the really h (sorry
>> wrong forum)
>>> 
>>> How are people handling dates with no timezone (and no
>> time, just the date alone)? I really want to use the date
>> column type and not care about the time nor zone but I
>> haven't figured out a way.
>>> 
>>> I just got bitten with a timezone problem when
>> shifting my app to a different box.
>> 
>> 
>>> There must be a prescribed and easier way.
>> 
>> Really? These ARE java dates we are talking about here.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to handle dates alone

2011-01-28 Thread Jesse Tayler
dates are always a pain, right?

I lean toward normalizing the dates and looking at them more at presentation - 
relative date formats are all the rage because it excuses timezone and other 
issues but you always have to have a static way to store them - use seconds 
from epoch, or modern timezones or whatever is most consistent for your needs 
but you gotta stick to that.

In your case, sounds like you just want to set the "time" to always be 5:pm or 
midnight or something, and just ignore that during presentation and input.

Anyway, moving to a new box and timezone or changes like that are always tough, 
I feel for ya! At least you've caught it now eh?

good luck, and sorry dates still suck and stuff.

On Jan 28, 2011, at 1:49 PM, Theodore Petrosky wrote:

> so I was out the other night with the really h (sorry wrong forum)
> 
> How are people handling dates with no timezone (and no time, just the date 
> alone)? I really want to use the date column type and not care about the time 
> nor zone but I haven't figured out a way.
> 
> I just got bitten with a timezone problem when shifting my app to a different 
> box. There must be a prescribed and easier way.
> 
> Ted
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to handle dates alone

2011-01-28 Thread Theodore Petrosky
You say 'these are Java'. yes, but how it relates to the backend. I have 
invoice dates in my database. it is just a date. no time.

how can I set up Entity Modeler to not use a Timestamp. I tried the Joda Time 
stuff but it seems that there were problems so it was pulled.

So I need to rephrase. How can I have a date column in my database and have an 
object in Webobjects that is date only and not care about times and timezones?

Am I clearer?

Ted



--- On Fri, 1/28/11, David LeBer  wrote:

> From: David LeBer 
> Subject: Re: how to handle dates alone
> To: "Theodore Petrosky" 
> Cc: webobjects-dev@lists.apple.com
> Date: Friday, January 28, 2011, 1:52 PM
> 
> On 2011-01-28, at 1:49 PM, Theodore Petrosky wrote:
> 
> > so I was out the other night with the really h (sorry
> wrong forum)
> > 
> > How are people handling dates with no timezone (and no
> time, just the date alone)? I really want to use the date
> column type and not care about the time nor zone but I
> haven't figured out a way.
> > 
> > I just got bitten with a timezone problem when
> shifting my app to a different box.
> 
> 
> > There must be a prescribed and easier way.
> 
> Really? These ARE java dates we are talking about here.
> 
> ;david
> 
> --
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site:     http://codeferous.com
> blog:     http://davidleber.net
> profile:    http://www.linkedin.com/in/davidleber
> twitter:    http://twitter.com/rebeld
> --
> Toronto Area Cocoa / WebObjects developers group:
> http://tacow.org
> 
> 
> 
> 
> 



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to handle dates alone

2011-01-28 Thread Chuck Hill
Dates don't actually exist.  Only instantaneous points in time exist (well, 
give or take certain theories from  theoretical physics).  What we talk about 
as dates are highly subjective spans of time.  Standard Java does not support 
such subjective concepts.  You could "normalize" all dates to noon in GMT so 
that the times are equal (assuming you never go more than 11 time zones away).  
The only other solution that I am familiar with is Joda Time.

Chuck


On Jan 28, 2011, at 10:49 AM, Theodore Petrosky wrote:

> so I was out the other night with the really h (sorry wrong forum)
> 
> How are people handling dates with no timezone (and no time, just the date 
> alone)? I really want to use the date column type and not care about the time 
> nor zone but I haven't figured out a way.
> 
> I just got bitten with a timezone problem when shifting my app to a different 
> box. There must be a prescribed and easier way.
> 
> Ted
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: how to handle dates alone

2011-01-28 Thread David LeBer

On 2011-01-28, at 1:49 PM, Theodore Petrosky wrote:

> so I was out the other night with the really h (sorry wrong forum)
> 
> How are people handling dates with no timezone (and no time, just the date 
> alone)? I really want to use the date column type and not care about the time 
> nor zone but I haven't figured out a way.
> 
> I just got bitten with a timezone problem when shifting my app to a different 
> box.


> There must be a prescribed and easier way.

Really? These ARE java dates we are talking about here.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


how to handle dates alone

2011-01-28 Thread Theodore Petrosky
so I was out the other night with the really h (sorry wrong forum)

How are people handling dates with no timezone (and no time, just the date 
alone)? I really want to use the date column type and not care about the time 
nor zone but I haven't figured out a way.

I just got bitten with a timezone problem when shifting my app to a different 
box. There must be a prescribed and easier way.

Ted


  
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: AjaxTabbedPanel - exception while handling request

2011-01-28 Thread Chuck Hill
>  WOActionResults res = super.invokeAction(aRequest, aContext);
> ...
> return ((WOResponse)res);//  Exception occurring at this 
> line-151.

Perhaps if you cast correctly? The issue is with your code, not AjaxTabbedPanel.



On Jan 28, 2011, at 6:53 AM, Raghavender wrote:

> Hi,
> 
>   I am trying to implement Project Wonder's AjaxTabbedPanel and 
> AjaxTabbedPanelTab in my application by following the Wonder Ajax Examples 
> from the link 
> http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa/1 .  But 
> after added these AjaxTabbedPanel and AjaxTabbedPanelTab in my component's 
> html and wod files then my page is not loading, getting the following 
> exception:
>   
> 
> 23848 [WorkerThread15] WARN NSLog  - 
> : Exception 
> occurred while handling request:
> java.lang.ClassCastException: DDStartPage cannot be cast to 
> com.webobjects.appserver.WOResponse
> [2011-1-28 9:42:11 EST]  java.lang.ClassCastException: 
> DDStartPage cannot be cast to com.webobjects.appserver.WOResponse
> at Session.invokeAction(Session.java:151)
> at 
> com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
> at 
> er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:50)
> at 
> er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1687)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
> at 
> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
> at 
> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
> at 
> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
> at 
> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
> at Application.dispatchRequest(Application.java:503)
> at 
> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
> at 
> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
> at java.lang.Thread.run(Thread.java:619)
> 
> 
> 
> My Application and Session classes extends ERXApplication and ERXSession 
> classes.
> 
> Any help would be appreciated.
> 
> Also adding my Session class invokeAction method code:
> 
> 
> public WOActionResults  invokeAction(WORequest aRequest, WOContext aContext) {
> 
> WOElement element = 
> (WOElement)requestLookup.objectForKey(aRequest.uri());
>  if ( element == null ) {
>  WOActionResults res = super.invokeAction(aRequest, aContext);
>  try{
>  element = ((WOComponent)res).template();
>  }catch(Exception e){
>e.printStackTrace();
>  return ((WOResponse)res);//  Exception occurring at this 
> line-151.
>  }
>  if (res!=null && element != null && 
> !isReportMillComponent(element)) {
>  requestLookup.setObjectForKey(element, aRequest.uri());
>  
>  }
>  return res;
>  }
>  else if ( element instanceof WOComponent ){
>  ((WOComponent)element).ensureAwakeInContext(aContext);
>  return (WOComponent)element;
>   
>  }
>  return null;
> }
> 
> 
> Thanks,
> Raghu.
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to 

AjaxTabbedPanel - exception while handling request

2011-01-28 Thread Raghavender

Hi,

	I am trying to implement Project Wonder's AjaxTabbedPanel and  
AjaxTabbedPanelTab in my application by following the Wonder Ajax  
Examples from the link http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa/1 
 .  But after added these AjaxTabbedPanel and AjaxTabbedPanelTab in  
my component's html and wod files then my page is not loading, getting  
the following exception:



23848 [WorkerThread15] WARN NSLog  -  
:  
Exception occurred while handling request:
java.lang.ClassCastException: DDStartPage cannot be cast to  
com.webobjects.appserver.WOResponse
[2011-1-28 9:42:11 EST]  java.lang.ClassCastException:  
DDStartPage cannot be cast to com.webobjects.appserver.WOResponse

at Session.invokeAction(Session.java:151)
at  
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 
1745)
at  
er 
.extensions 
.appserver 
.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:50)
at  
er 
.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java: 
1687)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._handleRequest(WOComponentRequestHandler.java:369)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
.handleRequest(WOComponentRequestHandler.java:442)
at  
com 
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 
1687)
at  
er 
.extensions 
.appserver 
.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
at  
er 
.extensions 
.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)

at Application.dispatchRequest(Application.java:503)
at  
com 
.webobjects 
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at  
com 
.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java: 
226)

at java.lang.Thread.run(Thread.java:619)



My Application and Session classes extends ERXApplication and  
ERXSession classes.


Any help would be appreciated.

Also adding my Session class invokeAction method code:


public WOActionResults  invokeAction(WORequest aRequest, WOContext  
aContext) {


WOElement element =  
(WOElement)requestLookup.objectForKey(aRequest.uri());

 if ( element == null ) {
 WOActionResults res = super.invokeAction(aRequest,  
aContext);

 try{
 element = ((WOComponent)res).template();
 }catch(Exception e){
 e.printStackTrace();
 return ((WOResponse)res);//  Exception occurring  
at this line-151.

 }
 if (res!=null && element != null && ! 
isReportMillComponent(element)) {
 requestLookup.setObjectForKey(element,  
aRequest.uri());


 }
 return res;
 }
 else if ( element instanceof WOComponent ){
 ((WOComponent)element).ensureAwakeInContext(aContext);
 return (WOComponent)element;

 }
 return null;
}


Thanks,
Raghu. ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

WOWODC 2011: registration and lodging details

2011-01-28 Thread Pascal Robert
Good morning everyone,

Everything's is up and running for registration and lodging for WOWODC 2011!  

Early bird pricing is $465 for an individual ticket, that offer ends on May 16. 
Regular pricing is $575 from May 17 to June 22.  As the same as previous 
WOWODCs, you get an additional discount for groups. We also have a discount 
($40) for people who stay at the hotel.

If you are a member of the Community Membership program, you also get a $115 
discount, but you cannot combine it with the "stay at the hotel" discount.

About the hotel, fees start at $129 + taxes for a regular room. Don't forget 
that WOWODC is held on the last week-end of the Montreal International Jazz 
Festival, so hotels can fill up fast, and become pricy (for the WOWODC 
week-end, regular pricing at the Gouverneur is $179 instead of $129 for our 
group). It's probably best if you can book your room before May.

Check out wowodc.com for all the details about registration, lodging and tips!

See you in July!

--
Pascal Robert
prob...@macti.ca

AIM/iChat : MacTICanada
LinkedIn : http://www.linkedin.com/in/macti
Twitter : pascal_robert

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


WebEx channel for the community

2011-01-28 Thread Pascal Robert
Hi everyone,

We now have a WebEx channel for the community. That channel is a complement to 
WOWODC and will be use for:

• presentations in other languages than English;
• follow-up on WOWODC sessions;
• shorter presentations (< 45 minutes);
• case studies.

One idea that we have is to do a monthly "Get To Know a Wonder component" where 
someone would show to use some specific component or other part of Project 
Wonder.

The channel allows a limited number of connections, so members of the Community 
Membership program have access priority to the channel. But we can record the 
presentation and the presenter can decide if the recording can be made 
available to everyone.

If you want to give a presentation on this channel, contact me directly or 
i...@wocommunity.org.

--
Pascal Robert
prob...@macti.ca

AIM/iChat : MacTICanada
LinkedIn : http://www.linkedin.com/in/macti
Twitter : pascal_robert

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com