• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AjaxTabbedPanel - exception while handling request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AjaxTabbedPanel - exception while handling request


  • Subject: AjaxTabbedPanel - exception while handling request
  • From: Raghavender <email@hidden>
  • Date: Fri, 28 Jan 2011 20:23:39 +0530

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AjaxTabbedPanel - exception while handling request
      • From: Chuck Hill <email@hidden>
  • Prev by Date: WOWODC 2011: registration and lodging details
  • Next by Date: Re: AjaxTabbedPanel - exception while handling request
  • Previous by thread: WOWODC 2011: registration and lodging details
  • Next by thread: Re: AjaxTabbedPanel - exception while handling request
  • Index(es):
    • Date
    • Thread