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-tp15399312p15399312.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to