• 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
DirectAction question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DirectAction question


  • Subject: DirectAction question
  • From: Greg <email@hidden>
  • Date: Mon, 9 May 2005 15:47:13 +1000

I am having a problem with a direct action that is in the default DirectAction class. It keeps throwing a cannot find method exception for the action, but it is in there and there are other actions there that work fine. Is there a way to list the direct actions of a class? I know this would be a security concern, but just for development?

Regards,
Greg

Exception:
java.lang.reflect.InvocationTargetException
Stack Trace:
java.lang.reflect.InvocationTargetException
at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest( WOActionRequestHandler.java:250)
at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest (WOActionRequestHandler.java:142)
at er.extensions.ERXDirectActionRequestHandler.handleRequest (ERXDirectActionRequestHandler.java:77)
at com.webobjects.appserver.WOApplication.dispatchRequest (WOApplication.java:1306)
at er.extensions.ERXApplication.dispatchRequest (ERXApplication.java:633)
at au.com.shoebox.woapplication.Application.dispatchRequest (Application.java:224)
at com.webobjects.appserver._private.WOWorkerThread.runOnce (WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run (WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:552)
Caused by: java.lang.NoSuchMethodException: au.com.shoebox.woapplication.DirectAction.viewPublicAlbumAction()
at com.webobjects.appserver.WODirectAction.performActionNamed (WODirectAction.java:125)
at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest( WOActionRequestHandler.java:240)
... 8 more



public WOComponent viewPublicAlbumAction() {
PublicAlbumViewer viewer = (PublicAlbumViewer)pageWithName ("PublicAlbumViewer");
Long aID = new Long(context().request().stringFormValueForKey ("albumID"));
try {
Album a = (Album)EOUtilities.objectMatchingKeyAndValue (session().defaultEditingContext(), "Album", "albumID", aID);
if (a.isPublic()) {
viewer.setAlbum(a);
}
} catch (Exception e) {
//do nothing
}
return viewer;
}
_______________________________________________
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: DirectAction question
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: cache in memory
  • Next by Date: RE: SELECT objects with condition on all their relationships
  • Previous by thread: old WO5.1 version wanted
  • Next by thread: Re: DirectAction question
  • Index(es):
    • Date
    • Thread