portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandip Ghosh (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS1-553) Jetspeed throws NPE exception attempting to load the index page when installed in "C:\Program Files" on Windows XP
Date Wed, 20 Jul 2005 02:40:50 GMT
    [ http://issues.apache.org/jira/browse/JS1-553?page=comments#action_12316195 ] 

Sandip Ghosh commented on JS1-553:
----------------------------------

I have a fix for this NPE. The following change needs to be made to
org.apache.jetspeed.services.registry.LateInitCastorRegistryService:

In loadFragment, line 579, I made the the following change:

Document d = builder.parse(new File(file));

to

Document d = builder.parse(new FileInputStream(new File(file)));

javax.xml.parsers.DocumentBuilder fails to parse an XML document if the File object is passed
to it if the file path contains spaces in it. Creating an InputStream from the file object
and invoking the parse(InputStream) method fixes the problem.

I am still however running into other issues when JBoss and Jetspeed is installed in program
files. No exceptions now, but I get the following error message from the index.jsp page:

 Error retrieving Portal Page: Profile not found.

Will be looking into this now.

> Jetspeed throws NPE exception attempting to load the index page when installed in "C:\Program
Files" on Windows XP
> ------------------------------------------------------------------------------------------------------------------
>
>          Key: JS1-553
>          URL: http://issues.apache.org/jira/browse/JS1-553
>      Project: Jetspeed
>         Type: Bug
>     Versions: 1.6
>  Environment: Windows XP Professional, JBoss 4.02, Tomcat 5.5 Adapter, Jetspeed 1.6
>     Reporter: Sandip Ghosh

>
> For the above environment, when JBoss and Tomcat 5.5 adapter are installed in "C:\Program
Files" the following exception is thrown attempting to load the index.jsp page: Jetspeed works
without a problem when installed in a directory without a space in the path.
> Stacktrace:
>       
>           java.lang.NullPointerException
> 	at org.apache.jetspeed.util.parser.DefaultJetspeedParameterParser.setRequest(DefaultJetspeedParameterParser.java:88)
> 	at org.apache.turbine.services.rundata.DefaultTurbineRunData.getParameters(DefaultTurbineRunData.java:493)
> 	at org.apache.turbine.Turbine.doGet(Turbine.java:472)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
> 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
> 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> 	at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
> 	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
> 	at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:45)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
> 	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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
> 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
> 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	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:856)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> 	at java.lang.Thread.run(Thread.java:534)
>       
> I have debugged into this and my feeling is ClientRegistry is failing to initialize when
installed in a directory with spaces in the path. There are no entries in the ClientRegistry.
I will be debugging further and will post the exact problem area if I can figure it out. Would
appreciate any comments on where to look for the error. Thanks.        

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message