[xwiki-users] null pointer exception for preferences
Folks: I've been trying to install Xwiki on a Suse 10.2 linux distribution with apache-tomcat-6.0.16 and MySQL 5.0.26 (the jdbc driver is mysql-connector-java-5.0.8.jar). With either Xwiki 1.2.2 or 1.3.rc1 i get a null pointer exception when I get to the XWikiPreferences page i.e. http://localhost:8080/xwiki/bin/objectadd/XWiki/XWikiPreferences?classname=X... for 1.2.2. Using 1.3 the error is terminal (no way to recover). Using 1.2.2 if I click on the XWikiPreferences header then I see a normal page, instead of the exception trace. Except, if I try, say, to save a comment, I get another trace. This is my JRE: java -version $java version "1.5.0_08" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_08-b03, mixed mode) this is the second trace: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: Error number 3211 in 3: Exception while updating archive XWiki.XWikiPreferences Wrapped Exception: Error number 3212 in 3: Exception while loading archive 104,408,758 Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo.setDiff com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: Error number 3211 in 3: Exception while updating archive XWiki.XWikiPreferences Wrapped Exception: Error number 3212 in 3: Exception while loading archive 104,408,758 Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo.setDiff at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:384) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97) [ ... very long omission ... ] at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1018) at com.xpn.xwiki.web.CommentAddAction.action(CommentAddAction.java:61) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException I browsed the various resources, but the only null pointer I found was wrt a totally unrelated circumstances. Any kind soul can please tell me what is the gripe about? Cheers, Al ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Hi Alberto, Alberto Squassabia wrote:
Folks:
I've been trying to install Xwiki on a Suse 10.2 linux distribution with apache-tomcat-6.0.16 and MySQL 5.0.26 (the jdbc driver is mysql-connector-java-5.0.8.jar).
With either Xwiki 1.2.2 or 1.3.rc1 i get a null pointer exception when I get to the XWikiPreferences page i.e. http://localhost:8080/xwiki/bin/objectadd/XWiki/XWikiPreferences?classname=X... for 1.2.2. Using 1.3 the error is terminal (no way to recover). Using 1.2.2 if I click on the XWikiPreferences header then I see a normal page, instead of the exception trace. Except, if I try, say, to save a comment, I get another trace.
I am not sure, but this sounds not far from a problem Sergiu Dumitriu has been working out yesterday night in the IRC channel. Please, just hoping he and others have e while to follow this thread, could you provide us with some extra information? It would be great if you could submit a couple of SQL statements to your database and post here the answers. MySQL Console or MySQL Query Browser could be used for this. Considering the database you are connected to is xwiki: 1. desc xwiki.xwikircs 2. select count(*) from xwiki.xwikircs where xwr_isdiff is null I think this will help to know if we are facing the same problem. Thanks! Cheers, Ricardo -- Ricardo RodrÃguez Your EPEC Network ICT Team
participants (2)
-
[Ricardo Rodriguez] Your EPEC Network ICT Team -
Alberto Squassabia