Facepalm... thanks ;)

On Wed, Oct 19, 2011 at 2:12 PM, Blanco, Jose <[email protected]> wrote:
> Dennis, just read the rest of your email.  We have our hostname set without 
> the http part, have you tried that:
>
> dspace.mycompany.com
>
> -----Original Message-----
> From: Blanco, Jose [mailto:[email protected]]
> Sent: Wednesday, October 19, 2011 1:07 PM
> To: Dennis Tobar; [email protected]
> Subject: Re: [Dspace-tech] Feedback form problem
>
> Dennis, I went over to see what was going on line 65 of FeedbackServlet.java, 
> and I think you may not have dspace.hostname set correctly in dpsace.cfg.
>
> -Jose
>
> -----Original Message-----
> From: Dennis Tobar [mailto:[email protected]]
> Sent: Wednesday, October 19, 201
> To: [email protected]
> Subject: [Dspace-tech] Feedback form problem
>
> Hi all:
>
> I'm testing the feedback form in jspui (dspace 1.7.1), but I get only 
> Internal Error Server like this:
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>        at java.lang.String.substring(Unknown Source)
>        at 
> org.dspace.app.webui.servlet.FeedbackServlet.doDSGet(FeedbackServlet.java:65)
>        at 
> org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119)
>        at 
> org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at 
> org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
>        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:191)
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>        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:291)
>        at 
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
>        at 
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
>        at 
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
>        at java.lang.Thread.run(Unknown Source)
>
> I look in the code the line 65 in FeedbackServlet.java:
>
> 64: int lastDot = host.lastIndexOf('.');
> 65: basicHost = host.substring(host.substring(0, lastDot).lastIndexOf("."));
>
> and before:
> 52: String host = ConfigurationManager.getProperty("dspace.hostname");
>
> My dspace.hostname in testing is like this: http://dspace_test and production 
> is like this http://dspace.mycompany.com and fail it in both cases ....
>
> Another email thign works fine (recover password, error notification, 
> workflow related, etc.)
>
> I don't find the error
>
> Thanks :)
>
> --
> Dennis Tobar Calderón
> Ingeniero en Informática UTEM
> Licenciado en Ciencias de la Ingeniería UTEM
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a 
> definitive record of customers, application performance, security threats, 
> fraudulent activity and more. Splunk takes this data and makes sense of it. 
> Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a 
> definitive record of customers, application performance, security threats, 
> fraudulent activity and more. Splunk takes this data and makes sense of it. 
> Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>



-- 
Dennis Tobar Calderón
Ingeniero en Informática UTEM
Licenciado en Ciencias de la Ingeniería UTEM

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to