Thanks Josef & Graham.

To enable DSpace feedback I added in dspace.hostname = ip address
In feedbackservlet.java, added if(host.equals("IP address) || ....... in
the doDSget method.
Access dspace using http://IP Address:8080/dspace

I believe once I change to a valid domain name, it should be fine.

Regards,
Jayan 

-----Original Message-----
From: Josef Bicik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 10:04 PM
To: Jayan Chirayath Kurian
Subject: Re: [Dspace-tech] Internal Error with DSpace feedback message

I'm sorry I forgot to mention that the changes I've made should be done
in:

org.dspace.app.webui.servlet.FeedbackServlet.doDSGet

method. Somehow I got a feeling that I've seen the name of the class in 
your email...



Jayan Chirayath Kurian wrote:
> Hi!
>
> In dspace config file, I gave dspace.url =
http://scil5wk898:8080/dspace
> and dspace.hostname = www.scil5wk898.com
>
> I can only access dspace using http://scil5wk898:8080/dspace and
cannot
> access through either http://dspacedev1.com:8080/dspace OR 
> http://www.dspacedev1.com:8080/dspace
>
>
> When I click on user registration - "Leave a message for DSpace
> administrators" an internal server error message is displayed.
>
> Please suggest how to rectify this and get the feedback form.
>
> Thanks,
> Jayan
>
> -----Original Message-----
> From: Graham Triggs [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 01, 2007 5:27 PM
> To: Jayan Chirayath Kurian
> Cc: dspace-tech@lists.sourceforge.net
> Subject: RE: [Dspace-tech] Internal Error with DSpace feedback message
>
> That would be your dspace.url.
>
> In such an instance, you would have:
>
> dspace.url=http://dspacedev1:8080/dspace
> dspace.hostname=dspacedev1
>
> However, from the FeedbackServlet, that would give the error you are
> receiving (it's first attempt to find a '.' would result in an index
of
> -1, breaking the substring).
>
> This would also be true if the hostname was set to 'dspacedev1.com' -
> the first location of a '.' would be OK, but the second lastIndexOf
> would return -1, causing the exception.
>
> So:
>
> dspace.hostname=dspacedev1
> dspace.hostname=dspacedev1.com
>
> would cause exceptions.
>
> dspace.hostname=www.dspacedev1.com
>
> *however* - you would only be able to send feedback if you accessed
the
> site through the urls:
>
> http://dspacedev1.com:8080/dspace
> http://www.dspacedev1.com:8080/dspace
>
> note the addition of the .com at the end of the domain name to match
the
> entry in dspace.hostname - without it the FeedbackServlet would treat
it
> as a spam attempt and throw an AuthorizeException.
>
> G
>
> On Thu, 2007-03-01 at 17:09 +0800, Jayan Chirayath Kurian wrote:
>   
>> Hi! 
>>
>>  
>>
>> Is it better if I change to http://dspacedev1:8080/dspace
>>
>>  
>>
>> Thanks,
>>
>> Jayan
>>
>>  
>>
>>                                    
>>
______________________________________________________________________
>> From: Jayan Chirayath Kurian 
>> Sent: Wednesday, February 28, 2007 7:29 PM
>> To: Graham Triggs
>> Cc: dspace-tech@lists.sourceforge.net
>> Subject: RE: [Dspace-tech] Internal Error with DSpace feedback
message
>>
>>
>>  
>>
>> dspace.hostname is set to my machine IP address. Is there anything i
>> need to change.
>>
>>
>> Thanks,
>>
>>
>> Jayan
>>
>>
>>  
>>
>>                                    
>>
______________________________________________________________________
>> From: Graham Triggs [mailto:[EMAIL PROTECTED]
>> Sent: Wed 2/28/2007 5:23 PM
>> To: Jayan Chirayath Kurian
>> Cc: dspace-tech@lists.sourceforge.net
>> Subject: Re: [Dspace-tech] Internal Error with DSpace feedback
message
>>
>>
>> What is your dspace.hostname set to?
>>
>> It looks like you've got something with less than 2 dots - ie.
>> host.com,
>> whereas the code is expecting there to be at least two - ie.
>> www.host.com
>>
>> G
>>
>> On Wed, 2007-02-28 at 14:39 +0800, Jayan Chirayath Kurian wrote:
>>     
>>> Hi!
>>>
>>>
>>>
>>> We have Dspace 1.4.1 on windows 2003. User registration through
>>>       
>> email
>>     
>>> token registration /LDAP is working fine. In the user registration
>>> page there is a link identified by the text "Leave a message for
>>> DSpace administrators". When the link is clicked an internal server
>>> error message is displayed. The dspace log file and SMTP settings
>>>       
>> are
>>     
>>> given below. Please suggest whether any other DSpace config
>>>       
>> paramters
>>     
>>> need to be set for sending messages to DSpace administrators.
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Jayan
>>>
>>>
>>>
>>> # SMTP mail server
>>>
>>> mail.server=xxxxxx
>>>
>>>
>>>
>>> # SMTP mail server authentication username and password (if
>>>       
>> required)
>>     
>>> # mail.server.username = myusername
>>>
>>> # mail.server.password = mypassword
>>>
>>>
>>>
>>>
>>>
>>> # From address for mail
>>>
>>> #mail.from.address = [EMAIL PROTECTED]
>>>
>>> mail.from.address = [EMAIL PROTECTED]
>>>
>>>
>>>
>>> # Currently limited to one recipient!
>>>
>>> #feedback.recipient = [EMAIL PROTECTED]
>>>
>>> feedback.recipient = [EMAIL PROTECTED]
>>>
>>>
>>>
>>> # General site administration (Webmaster) e-mail
>>>
>>> #mail.admin = [EMAIL PROTECTED]
>>>
>>> mail.admin = [EMAIL PROTECTED]
>>>
>>>
>>>
>>> # Recipient for server errors and alerts
>>>
>>> #alert.recipient = [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>>
>>> 2007-02-28 14:21:46,323 INFO  org.dspace.core.ConfigurationManager @
>>> DSpace logging installed using log4j.properties
>>>
>>> 2007-02-28 14:21:46,948 INFO  org.dspace.core.ConfigurationManager @
>>> DSpace logging installed using log4j.properties
>>>
>>> 2007-02-28 14:22:19,760 WARN
>>> org.dspace.app.webui.servlet.InternalErrorServlet
>>> @ :session_id=23ED50CB21BBA096E08C4ECFD6EFC944:internal_error:-- URL
>>> Was: http://dspacedev1:8080/dspace/feedback
>>>
>>> -- Method: GET
>>>
>>> -- Parameters were:
>>>
>>>
>>>
>>> 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.jav
> a:93)
>   
>>>                 at
>>>
>>>       
>
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.
> java:151)
>   
>>>                 at
>>>
>>>       
>
org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:99)
>   
>>>                 at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>
>>>                 at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>
>>>                 at
>>>
>>>       
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:290)
>   
>>>                 at
>>>
>>>       
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:206)
>   
>>>                 at
>>>
>>>       
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:228)
>   
>>>                 at
>>>
>>>       
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:175)
>   
>>>                 at
>>>
>>>       
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :128)
>   
>>>                 at
>>>
>>>       
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
>   
>>>                 at
>>>
>>>       
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:109)
>   
>>>                 at
>>>
>>>       
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
> 12)
>   
>>>                 at
>>>
>>>       
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
> 4)
>   
>>>                 at org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:634)
>>>
>>>                 at org.apache.tomcat.util.net.JIoEndpoint
>>> $Worker.run(JIoEndpoint.java:445)
>>>
>>>                 at java.lang.Thread.run(Unknown Source)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>       
>
------------------------------------------------------------------------
> -
>   
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>>       
>> share your
>>     
>>> opinions on IT & business topics through brief surveys-and earn cash
>>>
>>>       
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> V
>   
>>> _______________________________________________ DSpace-tech mailing
>>>       
>> list DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> This email has been scanned by Postini.
>> For more information please visit http://www.postini.com
>>
>>
>>
>>
>>     
> This email has been scanned by Postini.
> For more information please visit http://www.postini.com
>
>
>
>
------------------------------------------------------------------------
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to