Re: Couldn't locate action class
Re: Couldn't locate action class
- Subject: Re: Couldn't locate action class
- From: Jeffrey Schmitz <email@hidden>
- Date: Wed, 14 Mar 2012 23:35:53 -0500
> Notice that the error is "Couldn't locate action class named 'mcafeeLogin'." Read carefully, "action class" not "action".
Wow, good catch. That's subtle. And yeah, I don't think I want to swallow all missing action exceptions.
Thanks!
Jeff
On Mar 14, 2012, at 9:42 PM, Chuck Hill wrote:
>
> On 2012-03-14, at 6:26 PM, Jeffrey Schmitz wrote:
>
>> I'm guessing this URL to find a favicon is the root of the problem:
>>
>>>> "URL" = "/cgi-bin/WebObjects/netBrackets.woa/1/wa/mcafeewardLogin/favicon.ico";
>>
>> Weird, but guess I'll let it slide. No one is complaining.
>
> Notice that the error is "Couldn't locate action class named 'mcafeeLogin'." Read carefully, "action class" not "action". favicon.ico tagged on the end is making WO look for favicon.icoAction in the non-existant class named mcafeewardLogin.java
>
>
> Chuck
>
>>
>>
>> On Mar 14, 2012, at 8:22 PM, Pascal Robert wrote:
>>
>>> I got similar things in the past, it's just broken browsers doing stupid requests. I did notice that when it happens, it's people with strange browsers or with extensions.
>>>
>>>> Hi all,
>>>>
>>>> I'm seeing intermittent exceptions in my log files like:
>>>>
>>>> "Mar 14 09:52:08 netBrackets[2001] ERROR er.extensions.appserver.ERXApplication - Exception caught: <er.extensions.appserver.ERXDirectActionRequestHandler> Couldn't locate action class named 'mcafeeLogin'.
>>>>
>>>> As far as I can tell, they are referencing good action classes, and when I exercise the site, that action works fine. The only funny thing I can see is the referrer class, which is a favicon, is that normal.
>>>> "referer" = "http://www.mcafeeward.com/favicon.ico";
>>>>
>>>> Also, the page is being invoked with a frame redirected URL if that might make a difference.
>>>>
>>>> Any idea what might be causing these intermittent errors? I've pasted a full error below.
>>>>
>>>> Thanks!
>>>> Jeff
>>>>
>>>>
>>>> Extra info: {
>>>> "Bundles" = {
>>>> "Ajax" = "5.0";
>>>> "JavaWebObjects" = "5.4.3";
>>>> "ERDirectToWeb" = "5.0";
>>>> "ERJars" = "5.0";
>>>> "JavaJDBCAdaptor" = "5.4.3";
>>>> "ERExcelLook" = "5.0";
>>>> "netBrackets" = "";
>>>> "ERCoolComponents" = "5.0";
>>>> "JavaEOProject" = "5.4";
>>>> "WOOgnl" = "5.0";
>>>> "JavaEOControl" = "5.4.2";
>>>> "ERModernDefaultSkin" = "5.0";
>>>> "JavaFoundation" = "5.4.3";
>>>> "netBracketsFW" = "";
>>>> "JavaWOExtensions" = "5.0";
>>>> "ERPrototypes" = "5.0";
>>>> "ERExtensions" = "5.0";
>>>> "WOJRebel" = "5.0";
>>>> "JavaDirectToWeb" = "5.4.3";
>>>> "ERModernLook" = "5.0";
>>>> "FrontBasePlugIn" = "5.0";
>>>> "JavaXML" = "5.4.2";
>>>> "JavaEOAccess" = "5.4.3";
>>>> "ERModernDirectToWeb" = "5.0";
>>>> "WOLips" = "5.0";
>>>> "ExcelGenerator" = "5.0";
>>>> "JavaDTWGeneration" = "5.4";
>>>> "AjaxLook" = "5.0";
>>>> "ERRest" = "5.0";
>>>> };
>>>> "Headers" = {
>>>> "remote_host" = "12.153.11.225";
>>>> "user-agent" = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; BOIE9;ENUSSEM)";
>>>> "document_root" = "/Library/WebServer/Documents";
>>>> "nokeepalive" = "1";
>>>> "accept" = "*/*";
>>>> "remote_addr" = "12.153.11.225";
>>>> "server_name" = "127.0.0.1";
>>>> "cache-control" = "max-stale=0";
>>>> "server_admin" = "email@hidden";
>>>> "ssl-unclean-shutdown" = "1";
>>>> "remote_port" = "52347";
>>>> "connection" = "close";
>>>> "server_software" = "Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r";
>>>> "host" = "216.88.4.20";
>>>> "referer" = "http://www.mcafeeward.com/favicon.ico";
>>>> "x-webobjects-adaptor-version" = "Apache";
>>>> "x-bluecoat-via" = "D79FC36B7A967FE3";
>>>> "x-webobjects-request-id" = "4f5556800000003f00000118";
>>>> "accept-encoding" = "gzip, deflate";
>>>> "script_filename" = "/cgi-bin";
>>>> "x-webobjects-request-method" = "GET";
>>>> "script_uri" = "http://216.88.4.20/netbrackets/wa/mcafeewardLogin/favicon.ico";
>>>> "script_url" = "/netbrackets/wa/mcafeewardLogin/favicon.ico";
>>>> "server_port" = "80";
>>>> };
>>>> "URL" = "/cgi-bin/WebObjects/netBrackets.woa/1/wa/mcafeewardLogin/favicon.ico";
>>>> }
>>>>
>>>> IllegalStateException: <er.extensions.appserver.ERXDirectActionRequestHandler> Couldn't locate action class named 'mcafeewardLogin'.
>>>> at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:286)
>>>> ... skipped 8 stack elements
>>>> _ignoredPackages:: ("com.webobjects", "java.applet", "java.awt", "java.awt.datatransfer", "java.awt.event", "java.awt.image", "java.beans", "java.io", "java.lang", "java.lang.reflect", "java.math", "java.net", "java.rmi", "java.rmi.dgc", "java.rmi.registry", "java.rmi.server", "java.security", "java.security.acl", "java.security.interfaces", "java.sql", "java.text", "java.util", "java.util.zip")
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> --
> 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/gvc/practical_webobjects
>
>
>
>
>
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden