Re: [Dspace-tech] DSpace 5.1 - oai 500
Hi Kostas, I filed a bug report for you, you can click watch to be notified of any changes: https://jira.duraspace.org/browse/DS-2705 As it can take some time before someone takes it up to fix it in code, meanwhile you can try to find and remove the offending character from your metadata. You can try something like this: SELECT handle, text_valueFROM metadatavalue, handleWHERE metadatavalue.resource_id = handle.resource_idAND text_value LIKE E'%\u0017%'; Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] DSpace 5.1 - oai 500
Hi Kostas, On 17/08/15 23:52, Konstantinos Koumoutsos wrote: [root@nemertes html]# /data/dspacenew/bin/dspace oai import -c [...] Caused by: com.ctc.wstx.exc.WstxIOException: Invalid white space character (0x17) in text to output I'd guess that this means one of your items has this character in its metadata. I'm not sure how you'd go about finding the culprit. Is there any more information in the DSpace log file? cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] DSpace 5.1 - oai 500
Hello All. Any help on this? Thanks. Regards Kostas On Thu, Aug 6, 2015 at 10:48 AM, Konstantinos Koumoutsos koumout...@gmail.com wrote: Hello I am using dspace 5.1 and while requesting the oai page http://nemertes.lis.upatras.gr/oai/request/ i got 500 (logs attached). I tried the following with no luck. [root@nemertes html]# /data/dspacenew/bin/dspace oai clean-cache OAI 2.0 manager action started Purging cached OAI responses. [root@nemertes html]# /data/dspacenew/bin/dspace oai import -c OAI 2.0 manager action started Clearing index Index cleared Using full import. Full import 100 items imported so far... 200 items imported so far... 300 items imported so far... 400 items imported so far... 500 items imported so far... java.lang.IllegalStateException: Can't overwrite cause with java.io.IOException: Invalid white space character (0x17) in text to output at java.lang.Throwable.initCause(Throwable.java:456) at com.ctc.wstx.compat.Jdk14Impl.setInitCause(Jdk14Impl.java:70) at com.ctc.wstx.exc.WstxException.init(WstxException.java:46) at com.ctc.wstx.exc.WstxIOException.init(WstxIOException.java:16) at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:505) at com.lyncode.xoai.dataprovider.xml.xoai.Element$Field.write(Element.java:204) at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20) at com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:220) at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20) at com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223) at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20) at com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223) at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20) at com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223) at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20) at com.lyncode.xoai.dataprovider.xml.xoai.Metadata.write(Metadata.java:95) at org.dspace.xoai.app.XOAI.index(XOAI.java:276) at org.dspace.xoai.app.XOAI.index(XOAI.java:211) at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:198) at org.dspace.xoai.app.XOAI.index(XOAI.java:131) at org.dspace.xoai.app.XOAI.main(XOAI.java:405) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Caused by: com.ctc.wstx.exc.WstxIOException: Invalid white space character (0x17) in text to output ... 23 more Caused by: java.io.IOException: Invalid white space character (0x17) in text to output at com.ctc.wstx.sw.XmlWriter.throwInvalidChar(XmlWriter.java:525) at com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:501) at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:503) ... 22 more [root@nemertes html]# Do you know what that error means? Many thanks. Kostas -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] DSpace 5.1 oai
Thanks Andrea. I have forced weblogic to use dspace libraries via a weblogic.xml file and now I get a different error. Again, any ideas? org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DSpaceOAIDataProvider': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.dspace.xoai.services.api.cache.XOAICacheService org.dspace.xoai.controller.DSpaceOAIDataProvider.cacheService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xoaiCacheService' defined in class path resource [org/dspace/xoai/app/BasicConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.dspace.xoai.services.api.cache.XOAICacheService org.dspace.xoai.app.BasicConfiguration.xoaiCacheService()] threw exception; nested exception is java.lang.NoSuchMethodError: org.codehaus.stax2.XMLInputFactory2.newFactory()Ljavax/xml/stream/XMLInputFactory; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133) at javax.servlet.GenericServlet.init(GenericServlet.java:240) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:337) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:288) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:98) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:86) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74) at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:60) at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:34) at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:652) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:593) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:403) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:295) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:238) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3363) at
Re: [Dspace-tech] DSpace 5.1 oai
Hi On 30/04/15 00:17, Domingo Iglesias wrote: I have a test environment for dspace 5.1 running with solr and jspui, but I cannot get oai interface running. When calling: http://diposittest.ub.edu/oai/request?verb=Identify I get an Error 500--Internal Server Error with followed by: java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.write(Ljava/io/File;Ljava/lang/CharSequence;)V That looks like you're using an older version of Java. DSpace 5.1 needs at least Java 7: https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-OracleJavaJDK7orOpenJDK7 cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] DSpace 5.1 oai
Did you try clearing and re-building the oai cache? [dspace]/bin/dspace oai clean-cache [dspace]/bin/dspace oai import (This documentation is for version 3.x but the above commands still work for 5.x) https://wiki.duraspace.org/display/DSDOC3x/OAI+2.0+Server#OAI2.0Server-UsingSolr -- View this message in context: http://dspace.2283337.n4.nabble.com/DSpace-5-1-oai-tp4677628p4677644.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette