[xwiki-users] Velocity error messages in xwiki-1.1.1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! In the past days I sucessfully upgraded our XWiki installation from 0.9.840 to 1.1.1. We use jboss-4.2.1.GA and postgresql-8.2.5 and everything went quite well! In the process I only had to remove the servlet-api-2.3.jar from WEB-INF/lib/ as it is incompatible with the one JBoss AS already has. I also added lucene-analyzers-2.0.0.jar as I want to use Lucene's german analyzer. Porting the database for use with XWiki-1.1.1 also went well using the "schema_pre.sql" and "schema_post.sql" scripts Rudolf Van der Leeden posted to this list a few months ago (many thanks, Rudolf!) We now have our wiki with about 2000 pages on version 1.1.1 and are very happy with the results. XWiki-1.1.1 is really amazing and the improvements relative to 0.9.840 are great! Excellent work! There is one thing I still haven't solved, though: The application seems to work fine, but in the logfiles I find lots of the following messages: [...] 19:38:15,510 INFO [STDOUT] 19:38:15,504 ERROR http-0.0.0.0-8080-2 http://test5.intern.xss.co.at:8080/xwiki/bin/view/Main/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Main.WebHome [line 6, column 14] 19:38:15,541 INFO [STDOUT] 19:38:15,540 ERROR http-0.0.0.0-8080-2 http://test5.intern.xss.co.at:8080/xwiki/bin/view/Main/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Main.WebHome [line 6, column 14] 19:38:15,636 INFO [STDOUT] 19:38:15,634 ERROR http-0.0.0.0-8080-2 http://test5.intern.xss.co.at:8080/xwiki/bin/view/Main/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Main.WebHome [line 6, column 14] 19:38:15,714 INFO [STDOUT] 19:38:15,712 ERROR http-0.0.0.0-8080-2 http://test5.intern.xss.co.at:8080/xwiki/bin/view/Main/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Main.WebHome [line 6, column 14] [...] Basically, access to every page in the wiki gives at least one of those messages: WebHome pages usually give 4 of them, others only 1: [...] 20:52:10,877 INFO [STDOUT] 20:52:10,877 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.WebHome [line 6, column 14] 20:52:10,905 INFO [STDOUT] 20:52:10,903 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.WebHome [line 6, column 14] 20:52:10,906 INFO [STDOUT] 20:52:10,906 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.WebHome [line 6, column 14] 20:52:10,910 INFO [STDOUT] 20:52:10,908 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.WebHome [line 6, column 14] 20:52:22,023 INFO [STDOUT] 20:52:22,021 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/Systemadmini... SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.Systemadministration [line 6, column 14] 20:52:36,162 INFO [STDOUT] 20:52:36,161 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/HOWTOS SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.HOWTOS [line 6, column 14] 20:53:03,694 INFO [STDOUT] 20:53:03,692 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/VariousSamba... SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.VariousSambaHOWTOs [line 6, column 14] [...] Does anyone know what might cause these errors? What or where does "line 6, column 14" refer to? Should I worry about these errors? Any ideas how to solve these errors? Many thanks in advance! Regards, - - andreas - -- Andreas Haumer | mailto:andreas@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHJ41lxJmyeGcXPhERAhQlAJsGeQUmm9qL9xj2379n1rV1GeQczwCfSozo 4g3JziRVC2zmts8d8GKE7vc= =W685 -----END PGP SIGNATURE-----
Hi Andreas, Thanks a lot for the praise. I'm really happy that you got the upgrade working since it's not always that easy to move from 0.9 to 1.1. These velocity warnings are not important. We've also fixed them in 1.2M2. We've even added automated tests so that they don't appear again. Thanks -Vincent On Oct 30, 2007, at 9:00 PM, Andreas Haumer wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi!
In the past days I sucessfully upgraded our XWiki installation from 0.9.840 to 1.1.1. We use jboss-4.2.1.GA and postgresql-8.2.5 and everything went quite well!
In the process I only had to remove the servlet-api-2.3.jar from WEB-INF/lib/ as it is incompatible with the one JBoss AS already has. I also added lucene-analyzers-2.0.0.jar as I want to use Lucene's german analyzer.
Porting the database for use with XWiki-1.1.1 also went well using the "schema_pre.sql" and "schema_post.sql" scripts Rudolf Van der Leeden posted to this list a few months ago (many thanks, Rudolf!)
We now have our wiki with about 2000 pages on version 1.1.1 and are very happy with the results. XWiki-1.1.1 is really amazing and the improvements relative to 0.9.840 are great! Excellent work!
There is one thing I still haven't solved, though: The application seems to work fine, but in the logfiles I find lots of the following messages:
[...] 19:38:15,510 INFO [STDOUT] 19:38:15,504 ERROR http-0.0.0.0-8080-2 http://test5.intern.xss.co.at:8080/xwiki/bin/view/Main/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Main.WebHome [line 6, column 14] 19:38:15,541 INFO [STDOUT] 19:38:15,540 ERROR http-0.0.0.0-8080-2 http://test5.intern.xss.co.at:8080/xwiki/bin/view/Main/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Main.WebHome [line 6, column 14] 19:38:15,636 INFO [STDOUT] 19:38:15,634 ERROR http-0.0.0.0-8080-2 http://test5.intern.xss.co.at:8080/xwiki/bin/view/Main/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Main.WebHome [line 6, column 14] 19:38:15,714 INFO [STDOUT] 19:38:15,712 ERROR http-0.0.0.0-8080-2 http://test5.intern.xss.co.at:8080/xwiki/bin/view/Main/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Main.WebHome [line 6, column 14] [...]
Basically, access to every page in the wiki gives at least one of those messages: WebHome pages usually give 4 of them, others only 1:
[...] 20:52:10,877 INFO [STDOUT] 20:52:10,877 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.WebHome [line 6, column 14] 20:52:10,905 INFO [STDOUT] 20:52:10,903 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.WebHome [line 6, column 14] 20:52:10,906 INFO [STDOUT] 20:52:10,906 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.WebHome [line 6, column 14] 20:52:10,910 INFO [STDOUT] 20:52:10,908 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/ SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.WebHome [line 6, column 14] 20:52:22,023 INFO [STDOUT] 20:52:22,021 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/Systemadmini... SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.Systemadministration [line 6, column 14] 20:52:36,162 INFO [STDOUT] 20:52:36,161 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/HOWTOS SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.HOWTOS [line 6, column 14] 20:53:03,694 INFO [STDOUT] 20:53:03,692 ERROR http-0.0.0.0-8080-4 http://test5.intern.xss.co.at:8080/xwiki/bin/view/KnowledgeBase/VariousSamba... SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($first) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. KnowledgeBase.VariousSambaHOWTOs [line 6, column 14] [...]
Does anyone know what might cause these errors? What or where does "line 6, column 14" refer to? Should I worry about these errors? Any ideas how to solve these errors?
Many thanks in advance!
Regards,
- - andreas
- -- Andreas Haumer | mailto:andreas@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHJ41lxJmyeGcXPhERAhQlAJsGeQUmm9qL9xj2379n1rV1GeQczwCfSozo 4g3JziRVC2zmts8d8GKE7vc= =W685 -----END PGP SIGNATURE----- _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Thanks for your reply! Vincent Massol schrieb:
Hi Andreas,
Thanks a lot for the praise. I'm really happy that you got the upgrade working since it's not always that easy to move from 0.9 to 1.1.
Well, I did my homework: read the docs, did several tests and at the end of the day everything went surprisingly smooth... :-)
These velocity warnings are not important. We've also fixed them in 1.2M2. We've even added automated tests so that they don't appear again.
ok, so I'll ignore the messages for now and re-check after upgrade to 1.2 Thanks for the info! - - andreas - -- Andreas Haumer | mailto:andreas@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKIB7xJmyeGcXPhERAq0lAKDChne1jQO5V7iy+qEfHu8LMPgssgCfZI+f THBZNHiJdgzWQf7pQwQ5Wsw= =cFcV -----END PGP SIGNATURE-----
participants (2)
-
Andreas Haumer -
Vincent Massol