Stuart,
        Thanks for your message.  It started me looking about to see
what the real problem was and I found this
http://sourceforge.net/mailarchive/message.php?msg_id=11201450, made the
modification in my input-forms.xml and now have a couple of happy
instances of 1.3.2.  Originally, input-forms.xml had a drop down value
without a matching "real" value.  
        Again, thanks for getting me going in the right direction.

Brian A. Helstien, SISD, MLS, 
Director, Special Technologies Initiatives,
IDM, University Libraries                               x06913
University of Southern California,              (213) 740-6913
Los Angeles, California, 90089                [EMAIL PROTECTED]
           Information is independent of media or format


-----Original Message-----
From: Stuart Lewis [sdl] [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 04, 2007 1:20 PM
To: Brian Helstien; [email protected]
Subject: Re: [Dspace-tech] Submit Problem

Hi Brian,

It looks like DSpace is getting upset when it tries to display the
review page once the file has been uploaded (review.jsp).

The reason it is failing is because it is trying to prepare some of the
text (e.g. replace & with &amp for valid HTML etc) and that text is
non-existent (null). There has been a fix for this included since
version 1.4.1 of DSpace. For details (it is only a few lines long) see:

http://sourceforge.net/tracker/index.php?func=detail&aid=1605635&group_i
d=19984&atid=119984

It requires you to add the following line to org.dspace.core.Utils:

Just after: public static String addEntities(String value)

Add:

 if (value==null || value.length() == 0) return value;

*However*, why DSpace is doing this (trying to display a non-existent
piece of metadata), I am not sure.

Hope this helps,


Stuart
_________________________________________________________________

Datblygydd Cymwysiadau'r We            Web Applications Developer
Gwasanaethau Gwybodaeth                      Information Services
Prifysgol Cymru Aberystwyth       University of Wales Aberystwyth

            E-bost / E-mail: [EMAIL PROTECTED]
                 Ffon / Tel: (01970) 622860
_________________________________________________________________


On 1/2/07 23:51, "Brian Helstien" <[EMAIL PROTECTED]> wrote:

> OK,
>     This is perhaps not so very weird, but ... I've an identical test 
> and "production" system, 1.3.2.  If anyone (me as administrator 
> included) attempts to submit a new item to a collection, the web
displays "An Internal System
> Error."   The item is still available in my workflow, but I cannot
> successfully select "Next" on Upload.  I've stopped and restarted 
> tomcat on my test server and catalina.out is written to at that point.

> When I attempt the "Next" to upload nothing is written to catalina.out

> on test.  I have made no changes to the system "under the hood" in 
> some time, although I have granted administrator status to a couple of

> library staff who need to create users/communities via the 
> administrative interface.  On production catalina.out has the
following message.
>  
> internal_error:-- URL Was: http://lib-app1.usc.edu:8180/dspace/submit?
> -- Method: POST
> -- Parameters were:
> -- submit_next: "Next >"
> -- workspace_item_id: "119"
> -- step: "102"
>  
> java.lang.NullPointerException
>         at org.dspace.core.Utils.addEntities(Utils.java:261)
>         at
org.apache.jsp.submit.review_jsp.layoutSection(review_jsp.java:81)
>         at
org.apache.jsp.submit.review_jsp._jspService(review_jsp.java:320)
>         at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:332>
)
>         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:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFi
> lterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChai
> n.java:173)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispa
> tcher.ja
> va:672)
>         at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicat
> ionDispa
> tcher.java:463)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDi
> spatcher
> .java:398)
>         at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDisp
> atcher.j
> ava:301)
>         at
org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:91)
>         at
>
org.dspace.app.webui.servlet.SubmitServlet.showProgressAwareJSP(SubmitSe
rvlet.
> java:2036)
>         at
>
org.dspace.app.webui.servlet.SubmitServlet.doStep(SubmitServlet.java:184
0)
>         at
>
org.dspace.app.webui.servlet.SubmitServlet.processFileList(SubmitServlet
.java:
> 1255)
>         at
>
org.dspace.app.webui.servlet.SubmitServlet.doDSPost(SubmitServlet.java:3
99)
>         at
> org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServle
> t.java:1
> 47)
>         at
>
org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105
)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFi
> lterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChai
> n.java:173)
>         at
> org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOn
> lyFilter
> .java:100)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFi
> lterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChai
> n.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> lve.java
> :213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
> lve.java
> :178)
>         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(StandardEngineValv
> e.java:1
> 07)
>         at
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
>         at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
>         at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
> ocessCon
> nection(Http11BaseProtocol.java:664)
>         at
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:
> 527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
> owerWork
> erThread.java:80)
>         at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:
> 684)
>         at java.lang.Thread.run(Thread.java:595)
>  
> Any guidance or suggestions would be extremely welcome.
>  
> TIA
>  
> Brian A. Helstien, SISD, MLS,
> Director, Special Technologies Initiatives,
> IDM, University Libraries                               x06913
> University of Southern California,              (213) 740-6913
> Los Angeles, California, 90089                [EMAIL PROTECTED]
> <blocked::mailto:[EMAIL PROTECTED]>
>            Information is independent of media or format
>  
> 
> 
> ----------------------------------------------------------------------
> --- Using Tomcat but need to do more? Need to support web services, 
> security?
> Get stuff done quickly with pre-integrated technology to make your job
easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache 
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216
> 42



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to