[xwiki-devs] latest deployment from source failing
Hi, Very recently I update the source and built again and after I tried to access xwiki it failed with following stack trace: 2008-02-10 23:33:40,218 [] [http-9080-Processor25] WARN action.RequestProcessor - Unhandled Exception thrown: class java.lang.NullPointerException 2008-02-10 23:33:40,234 [] [http-9080-Processor25] ERROR [/xwiki].[action] - Servlet.service() for servlet action threw exception java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source) at com.xpn.xwiki.web.Utils.prepareContext(Utils.java:266) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:111) 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.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:346) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) In the code of Utils.java I see the following code added: // This is a temporary bridge so that non XWiki component classes can lookup XWiki // components. A ComponentManager instance has been set up in the Servlet Context and // we now populate the XWiki Context with it so that code can then use it to look up // components. // This is of course not necessary for XWiki components since they just need to implement // the Composable interface to get access to the Component Manager or better they simply // need to define the Components they require as field members and configure the Plexus // deployment descriptors (components.xml) so that they are automatically injected. ComponentManager componentManager = (ComponentManager) engine_context.getAttribute(ComponentManager.class.getName()); context.put(ComponentManager.class.getName(), componentManager); I debugged and checked that componentManager is being fetched as null. Can you please help me what I may be doing wrong. I have updated the jars xwiki-core-plexus-1.3-SNAPSHOT.jar and xwiki-core-component-1.3-SNAPSHOT.jar so I don't think it may be related to some old source. Thanks Sachin ----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/latest-deployment-from-source-failing-tp15399312p15399... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi Sachin, The answer is here: http://teamcity.xwiki.org/overview.html This our CI so whenever you have a build not working you can check it to see whether it's a local issue or not. Maybe you could tell us how to reproduce your problem. Also please do a svn up and build again to ensure you have the latest sources. Let us know also what you're checking out. -Vincent On Feb 10, 2008, at 7:15 PM, Sachin Mittal wrote:
Hi, Very recently I update the source and built again and after I tried to access xwiki it failed with following stack trace: 2008-02-10 23:33:40,218 [] [http-9080-Processor25] WARN action.RequestProcessor - Unhandled Exception thrown: class java.lang.NullPointerException 2008-02-10 23:33:40,234 [] [http-9080-Processor25] ERROR [/xwiki]. [action] - Servlet.service() for servlet action threw exception java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source) at com.xpn.xwiki.web.Utils.prepareContext(Utils.java:266) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:111) 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.doGet(ActionServlet.java: 414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 252) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com .xpn .xwiki .web .SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java: 117) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 202) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org .apache .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 213) at org .apache .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 178) at org .apache .catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org .apache .catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java: 346) at org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org .apache .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 107) at org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 148) at org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 869) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java: 664) at org .apache .tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java: 527) at org .apache .tomcat .util .net .LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source)
In the code of Utils.java I see the following code added: // This is a temporary bridge so that non XWiki component classes can lookup XWiki // components. A ComponentManager instance has been set up in the Servlet Context and // we now populate the XWiki Context with it so that code can then use it to look up // components. // This is of course not necessary for XWiki components since they just need to implement // the Composable interface to get access to the Component Manager or better they simply // need to define the Components they require as field members and configure the Plexus // deployment descriptors (components.xml) so that they are automatically injected. ComponentManager componentManager = (ComponentManager) engine_context.getAttribute(ComponentManager.class.getName()); context.put(ComponentManager.class.getName(), componentManager);
I debugged and checked that componentManager is being fetched as null. Can you please help me what I may be doing wrong.
I have updated the jars xwiki-core-plexus-1.3-SNAPSHOT.jar and xwiki-core-component-1.3-SNAPSHOT.jar so I don't think it may be related to some old source.
Thanks Sachin
----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/latest-deployment-from-source-failing-tp15399312p15399... Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
OK I was able to get it working now and I know what caused the problem. When I had built the xwiki\xwiki-platform-core it had only updated the jar under xwiki\xwiki-platform-core\xwiki-core. Then I had to go and build all the sub dir under xwiki-platform-core and all their jars got updated. Thus the problem got solved. However I then faced with a new problem when trying to build xwiki-patchservice It gave me the following error: [INFO] compiler:compile [INFO] Compiling 36 source files to E:\xwiki\xwiki-platform-core\xwiki-patchservice\target\classes org.apache.maven.plugin.CompilationFailureException: Compilation failure at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:578) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:328) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:151) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:813) at org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:85) [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD FAILURE org.xwiki.platform:xwiki-core-patchservice:jar:1.0-SNAPSHOT ( task-segment: [install] ) [INFO] ---------------------------------------------------------------------------- [INFO] Build for project: org.xwiki.platform:xwiki-core-patchservice:jar:1.0-SNAPSHOT failed during execution of mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile [INFO] ---------------------------------------------------------------------------- I don't know why this error as I see all my files compiled under the eclipse project of xwiki-patchservice. Also I have created an account at TeamCity. Thanks Sachin vmassol wrote:
Hi Sachin,
The answer is here: http://teamcity.xwiki.org/overview.html
This our CI so whenever you have a build not working you can check it to see whether it's a local issue or not.
Maybe you could tell us how to reproduce your problem. Also please do a svn up and build again to ensure you have the latest sources. Let us know also what you're checking out.
-Vincent
----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/latest-deployment-from-source-failing-tp15399312p15400... Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (2)
-
Sachin Mittal -
Vincent Massol