Question

Google bot is causing a lot of errors in my tapestry 5 application. For example, recently I have changed component id from 'select' to something else. Since that I have a lot of errors in logs (see below), but for users everything is working fine.

I'm not able to get rid off this. I have tried to play with caching, XHR request etc. Nothing seems to work. Could you please help me with this issue? Have i overlooked something? Thank you in advance.

30.11.2013 08:53:14 79499699 [TP-Processor16] ERROR TapestryModule.RequestExceptionHandler  - Processing of request failed with uncaught exception: Component profile/View:companycard.broadnavigation does not contain embedded component 'select'.
org.apache.tapestry5.ioc.util.UnknownValueException: Component profile/View:companycard.broadnavigation does not contain embedded component 'select'.
Was it helpful?

Solution

You might be able to formulate a robots.txt to tell googlebot not to follow your ajax URL's. Since all ajax URL's contain a : character, you might be able to do something like:

robots.txt

User-agent: *
Disallow: \*:*

I'm not sure there's common pattern for submit URL's. I think it will be harder to tell googlebot to ignore submit URL's.

OTHER TIPS

You could tweak tapestry's exception reporting to fail silently for googlebot and other crawlers. You can test for most bots by injecting the Request and checking the User-Agent header.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top