Hi all,

I'm testing batch CSV editing with ORCID header on DSpace 5.1 and I 
found 2 problems. The first I think I've solved, and is the use of proxy 
to connect outside. By default it's not set, but I've modified java code 
to use it, and seems works well connecting with ORCID. Now I have the 
second problem, and is the response seems not be a well-formatted XML, 
and I've received this error message in logs:

2015-03-26 14:50:20,288 ERROR org.dspace.authority.util.XMLUtils @ Error
org.xml.sax.SAXParseExceptionpublicId: -//W3C//DTD HTML 4.01//EN; 
systemId: http://www.w3.org/TR/html4/strict.dtd; lineNumber: 81; 
columnNumber: 5; The declaration for the entity "ContentType" must end 
with '>'.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
at org.dspace.authority.util.XMLUtils.convertStreamToXML(XMLUtils.java:141)
at org.dspace.authority.rest.RESTConnector.get(RESTConnector.java:56)
at org.dspace.authority.orcid.Orcid.getBio(Orcid.java:52)
at org.dspace.authority.orcid.Orcid.queryAuthorityID(Orcid.java:83)
at 
org.dspace.authority.orcid.OrcidAuthorityValue.newInstance(OrcidAuthorityValue.java:246)
at 
org.dspace.app.bulkedit.MetadataImport.getDcValueFromCSV(MetadataImport.java:868)
at org.dspace.app.bulkedit.MetadataImport.compare(MetadataImport.java:501)
at org.dspace.app.bulkedit.MetadataImport.runImport(MetadataImport.java:169)
at 
org.dspace.app.xmlui.aspect.administrative.FlowMetadataImportUtils.processUploadCSV(FlowMetadataImportUtils.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
at 
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at 
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
at org.mozilla.javascript.Context.call(Context.java:538)
at 
org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1833)
at 
org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1803)

The line in which this error is produced is:

HttpHost proxy = new HttpHost("proxy_id, proxy_port,"http");
HttpClient httpClient = HttpClientBuilder.create().build();
HttpResponse getResponse = httpClient.execute(proxy,httpGet);
result = getResponse.getEntity().getContent();
-> document = XMLUtils.convertStreamToXML(result);

Someone is receiving the same message?

Thanks in advance

-- 
........................................................................

Rubén Boada
Tècnic de Càlcul i Aplicacions
Consorci de Serveis Universitaris de Catalunya (CSUC)

Gran Capità, 2 (Edifici Nexus)•08034 Barcelona
T.93 551 62 13•ruben.bo...@csuc.cat
www.csuc.cat •Twitter @CSUC_info•Facebook•Linkedin
Subscriu-te al butlletí; (www.csuc.cat/butlleti)
........................................................................


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Reply via email to