>              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  - 
> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception 
> occurred while handling request:
> java.lang.ClassCastException: DDStartPage cannot be cast to 
> com.webobjects.appserver.WOResponse
> [2011-1-28 9:42:11 EST] <WorkerThread15> 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      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to [email protected]

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







Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

This email sent to [email protected]

Reply via email to