Dicheva, Darina wrote:
Sergiu,
Any idea why I am getting the following exception (http://www.airl ine-tickets.dl.pl is not something I have entered anywhere ...)?
Thanks in advance.
I searched the site, and couldn't find that string anywhere.
I know, I have searched the site for urs appearing in different exceptions ...
I don't think that is an URL generated by XWiki, so I'd say that most probably somebody browsing the site accidentally entered a wrong URL. Does that exception appear more than once?
In fact, yes, I get such exceptions all the time (see the latest three below). Interesting, while in exceptions with url (eg 1st and 2nd), urls change, the third exception ([http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/IISMembers?xpage=pr int&rev=1.158]) reoccurs. Perhaps these are two different cases. I did have an older version of xwiki installed before, where I think I had a page IISMembers, however, I deleted that installation completely, including the xwiki database (in MySQL) and did a new installation, so there is nowhere this page could come from ... Complete mystery ...
Not a mystery, I think Google is causing some of the errors (exceptions for old pages). Sometime these links used to be there, Google indexed them, and now it tries to reindex them. The rest of the exceptions are indeed spam attempts. I've seen them too on one of the servers I manage, but they don't succeed in doing anything. Probably a spambot trying URLs that work on other sites, but that don't affect XWiki.
As to the first case, I wonder can this browsing be done by programs that try to insert somehow various urls in the wiki site, and if it is so, whether can I prevent this ... also, if this is the reason, should it really cause exception but not just a warning message that there is no such document?
Normally, it should say that the document does not exist, but the URL is so malformed, that the engine gets an error. I'll try to fix this, but it will help you only if you upgrade to the next XWiki version. As long as these exceptions don't affect the users, but just confuse Google and fill the logs, I'd say they are not of great importance. Watch http://jira.xwiki.org/jira/browse/XWIKI-2091 for details.
Thanks a lot for your help, Darina -------------------- 09:28:26,247 [http://iiscs.wssu.edu/xwiki/bin/view/Photos/url=http://www.quizill a.com/users/ringtone-807/journal/572561/] [http-80-Processor29] ERROR log.Simple Log4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPointerException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at ----------------------- 09:52:28,563 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/url=http://herbalph enik.ovp.pl] [http-80-Processor26] ERROR log.SimpleLog4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPoint erException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt --------------------- 09:40:11,202 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/IISMembers?xpage=pr int&rev=1.158] [http-80-Processor29] ERROR log.SimpleLog4JLogSystem - Method getRenderedContent threw exception for reference $cdoc in template at [7,1] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception com.xpn. xwiki.XWikiException: Error number 3205 in 3: Version 1.158 does not exist while reading document Photos.IISMembers @ <unknown template>[7,7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318)
-- Sergiu Dumitriu http://purl.org/net/sergiu/