Brian,

Sorry for a delayed response.  I've been en route to a conference and 
will be out all week.

You are correct that you would need to recompile Utils.java and rebuild 
the wars.  You should also try and clear out tomcat's pre-compiled code 
by removing the webapps/dspace/ directory and restarting tomcat.

The output of Utils.java is a compiled java class within the 
'dspace.jar' file (in [dspace]/lib).

If this continues to be a pain, you might consider if an upgrade to 
Dspace 1.4 or 1.4.1 may be easier overall.  If you haven't performed 
many customizations overall, the upgrade process may be easier than 
trying to manually fix it.  Just something to consider :)

- Tim

Brian Helstien wrote:
> Tim,
>       After adding that snippet of code into the Utils.java, I assume
> that I must recompile and rebuild wars.  I did that and still have the
> identical error at Utils.addEntities ...  The question I have here, now
> is, when I performed that compile, exactly what file is the output of
> Utils.java?  I want to diff the old / new version.
> 
> 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: Tim Donohue [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 21, 2007 10:22 AM
> To: Brian Helstien
> Cc: [email protected]
> Subject: Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
> 
> Brian,
> 
> The lines of direct importance that I can see from the last 100 is:
> 
> "java.lang.NullPointerException
>       at org.dspace.core.Utils.addEntities(Utils.java:261)"
> 
> This looks to be errorring out on this line in the "addEntities()" 
> method of Utils.java:
> "value = value.replaceAll("&", "&");"
> 
> In particular, it's saying that something calling that method passed in
> a null value as the "value" parameter.  This is something that has since
> been fixed in DSpace 1.4.1 with the addition of these lines (just before
> the one above):
> 
> if (value==null || value.length() == 0)
>          return value;
> 
> So, it's *possible* that you can add that code into addEntities() and it
> may resolve the issue (or, even better upgrade to DSpace 1.4 and then
> 1.4.1, to have all the latest bug fixes).  But, it's also *possible*
> there's something more going on.  It's hard to tell, since the last 100
> lines of catalina.out didn't include the initial Java error (it started
> with an "at" statement, which was just detailing the location of an
> error in the "stack"). So I'm not sure if the "NullPointerException" was
> the result of something larger or not.
> 
> Hopefully that helps.
> 
> - Tim
> 
> Brian Helstien wrote:
>> Tim,
>>      Here are the last 100 of catalina.out and my browser/tomcat
> response.  
>> In making 1.3.2 work with Oracle, we needed to change 
>> Item/History/Registration Data tables from Timestamp to Date.  The
>> ORA-01858 makes me think that I've another table attribute value that 
>> needs to be modified, but ...what'a I know?
>>
>> bash-2.05b$ tail -100 catalina.out
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>> av
>> a:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>> or
>> Impl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
> ORG.oclc.oai.server.OAIHandler.getResult(OAIHandler.java:306)
>>         at ORG.oclc.oai.server.OAIHandler.doGet(OAIHandler.java:225)
>>         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(Appli
>> ca
>> tionFilterChain.java:252)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>> lt
>> erChain.java:173)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>> lv
>> e.java:213)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>> lv
>> e.java:178)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>> va
>> :126)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>> va
>> :105)
>>         at
>>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>> java:107)
>>         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
>> oc
>> essConnection(Http11BaseProtocol.java:664)
>>         at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
>> nt
>> .java:527)
>>         at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
>> ow
>> erWorkerThread.java:80)
>>         at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>> ol
>> .java:684)
>>         at java.lang.Thread.run(Thread.java:595)
>> java.lang.NullPointerException
>>         at org.dspace.core.Utils.addEntities(Utils.java:261)
>>         at
>>
> org.dspace.app.oai.DSpaceOAICatalog.listSets(DSpaceOAICatalog.java:660)
>>         at
>> ORG.oclc.oai.server.verb.ListSets.construct(ListSets.java:107)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>> av
>> a:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>> or
>> Impl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
> ORG.oclc.oai.server.OAIHandler.getResult(OAIHandler.java:306)
>>         at ORG.oclc.oai.server.OAIHandler.doGet(OAIHandler.java:225)
>>         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(Appli
>> ca
>> tionFilterChain.java:252)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>> lt
>> erChain.java:173)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>> lv
>> e.java:213)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>> lv
>> e.java:178)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>> va
>> :126)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>> va
>> :105)
>>         at
>>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>> java:107)
>>         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
>> oc
>> essConnection(Http11BaseProtocol.java:664)
>>         at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
>> nt
>> .java:527)
>>         at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
>> ow
>> erWorkerThread.java:80)
>>         at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>> ol
>> .java:684)
>>         at java.lang.Thread.run(Thread.java:595)
>> java.lang.NullPointerException
>>         at org.dspace.core.Utils.addEntities(Utils.java:261)
>>         at
>>
> org.dspace.app.oai.DSpaceOAICatalog.listSets(DSpaceOAICatalog.java:660)
>>         at
>> ORG.oclc.oai.server.verb.ListSets.construct(ListSets.java:107)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>> av
>> a:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>> or
>> Impl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
> ORG.oclc.oai.server.OAIHandler.getResult(OAIHandler.java:306)
>>         at ORG.oclc.oai.server.OAIHandler.doGet(OAIHandler.java:225)
>>         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(Appli
>> ca
>> tionFilterChain.java:252)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>> lt
>> erChain.java:173)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>> lv
>> e.java:213)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>> lv
>> e.java:178)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>> va
>> :126)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>> va
>> :105)
>>         at
>>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>> java:107)
>>         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
>> oc
>> essConnection(Http11BaseProtocol.java:664)
>>         at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
>> nt
>> .java:527)
>>         at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
>> ow
>> erWorkerThread.java:80)
>>         at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>> ol
>> .java:684)
>>         at java.lang.Thread.run(Thread.java:595)
>> java.lang.NullPointerException
>>         at org.dspace.core.Utils.addEntities(Utils.java:261)
>>         at
>>
> org.dspace.app.oai.DSpaceOAICatalog.listSets(DSpaceOAICatalog.java:660)
>>         at
>> ORG.oclc.oai.server.verb.ListSets.construct(ListSets.java:107)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>> av
>> a:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>> or
>> Impl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
> ORG.oclc.oai.server.OAIHandler.getResult(OAIHandler.java:306)
>>         at ORG.oclc.oai.server.OAIHandler.doGet(OAIHandler.java:225)
>>         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(Appli
>> ca
>> tionFilterChain.java:252)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>> lt
>> erChain.java:173)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>> lv
>> e.java:213)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>> lv
>> e.java:178)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>> va
>> :126)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>> va
>> :105)
>>         at
>>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>> java:107)
>>         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
>> oc
>> essConnection(Http11BaseProtocol.java:664)
>>         at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
>> nt
>> .java:527)
>>         at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
>> ow
>> erWorkerThread.java:80)
>>         at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>> ol
>> .java:684)
>>         at java.lang.Thread.run(Thread.java:595)
>>
>>
>> HTTP Status 500 - java.sql.SQLException: ORA-01858: a non-numeric 
>> character was found where a numeric was expected
>>
>> ----------------------------------------------------------------------
>> --
>> --------
>>
>> type Status report
>>
>> message java.sql.SQLException: ORA-01858: a non-numeric character was 
>> found where a numeric was expected
>>
>> description The server encountered an internal error
>> (java.sql.SQLException: ORA-01858: a non-numeric character was found 
>> where a numeric was expected ) that prevented it from fulfilling this 
>> request.
>>
>>
>> ----------------------------------------------------------------------
>> --
>> --------
>>
>> Apache Tomcat/5.5.17
>>
>>
>> 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
>>
> 
> -------------------------------------------------------------------------
> 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=DEVDEV
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 

-- 

========================================
Tim Donohue
Research Programmer, Illinois Digital Environment for
Access to Learning and Scholarship (IDEALS)
135 Grainger Engineering Library
University of Illinois at Urbana-Champaign

email: [EMAIL PROTECTED]
web:   http://www.ideals.uiuc.edu
phone: (217) 333-4648
fax:   (217) 244-7764
========================================

-------------------------------------------------------------------------
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=DEVDEV
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to