Hi Ben

We had similar issue a year or so ago. A solution which I've got from the list 
member was:

1. you need to export a fedora.pem certificate. I think I used Firefox 
certificate manager to export it. But I think that java command line keytool 
could do this as well from server/truststre 
2. once you got you certificate you need to import it to your java runtime 
environment in my case it was following command line 
        keytool -import -file fedora32.pem -keystore 
/opt/java/jre/lib/security/cacerts

I hope that this help
Sebastian

==
Sebastian PaƂucha
Assistant Librarian, Repository Developer
Durham University Library
T: 0191 3342941 
UK

------------------------------

Message: 2
Date: Thu, 11 Nov 2010 13:20:24 +0000
From: Benjamin Ryan <b.r...@leeds.ac.uk>
Subject: [fcrepo-user] Ingest causes error with SOLR update
To: "fedora-commons-users@lists.sourceforge.net"
        <fedora-commons-users@lists.sourceforge.net>
Message-ID:
        <d327f9d8fbef8449a9768c933870d93d017e66b9b...@hermes8.ds.leeds.ac.uk>
Content-Type: text/plain; charset="iso-8859-1"

Hi,
  Can anybody help with the following error. I am testing the update of SOLR 
indexes and get an error when I try to ingest an object. The purge works fine.

----------------------------------------------------------------------------------------------------------------
DEBUG 2010-11-11 13:14:43,632 (UpdateListener) Received Fedora Message: 
ActiveMQTextMessage {commandId = 7, responseRequired = true, messageId = 
ID:ben-49293-1289480930777-2:0:1:1:2, originalDestination = null, 
originalTransactionId = null, producerId = ID:ben-49293-1289480930777-2:0:1:1, 
destination = topic://fedora.apim.update, transactionId = null, expiration = 0, 
timestamp = 1289481283623, arrival = 0, brokerInTime = 1289481283624, 
brokerOutTime = 1289481283631, correlationId = null, replyTo = null, persistent 
= true, type = null, priority = 4, groupID = null, groupSequence = 0, 
targetConsumerId = null, compressed = false, userID = null, content = 
org.apache.activemq.util.byteseque...@1ed1815<mailto:org.apache.activemq.util.byteseque...@1ed1815>,
 marshalledProperties = 
org.apache.activemq.util.byteseque...@c81f2d<mailto:org.apache.activemq.util.byteseque...@c81f2d>,
 dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, 
readOnlyProperties = true, readO!
 nlyBody = true, droppable = false, text = null}
DEBUG 2010-11-11 13:14:43,632 (UpdateListener) Message Text: <?xml 
version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:fedora-types="http://www.fedora.info/definitions/1/0/types/";>
  <id>urn:uuid:230cd35d-e25c-4553-840c-7857b439d6b4</id>
  <updated>2010-11-11T13:14:43.569Z</updated>
  <author>
    <name>fedoraAdmin</name>
    <uri>http://localhost:8080/fedora</uri>
  </author>
  <title type="text">purgeObject</title>
  <category term="ts:SOLR_INDEX_UPDATE_TEST" scheme="fedora-types:pid" 
label="xsd:string"></category>
  <category term="unwanted" scheme="fedora-types:logMessage" 
label="xsd:string"></category>
  <summary type="text">ts:SOLR_INDEX_UPDATE_TEST</summary>
  <content type="text">2010-11-11T13:14:43.565Z</content>
  <category term="3.4" 
scheme="info:fedora/fedora-system:def/view#version"></category>
  <category term="info:fedora/fedora-system:ATOM-APIM-1.0" 
scheme="http://www.fedora.info/definitions/1/0/types/formatURI";></category>
</entry>
DEBUG 2010-11-11 13:14:43,635 (GenericOperationsImpl) updateIndex 
action=deletePid value=ts:SOLR_INDEX_UPDATE_TEST repositoryName=DemoAtDtu 
indexNames= indexDocXslt= resultPageXslt=
DEBUG 2010-11-11 13:14:43,635 (Config) indexName=DemoOnSolr 
operationsImpl=dk.defxws.fgssolr.OperationsImpl
DEBUG 2010-11-11 13:14:43,635 (Config) operationsImplClass=class 
dk.defxws.fgssolr.OperationsImpl
DEBUG 2010-11-11 13:14:43,635 (Config) 
ops=dk.defxws.fgssolr.operationsi...@76e38e<mailto:ops=dk.defxws.fgssolr.operationsi...@76e38e>
DEBUG 2010-11-11 13:14:43,641 (OperationsImpl) getIndexReader 
indexName=DemoOnSolr docCount=0
DEBUG 2010-11-11 13:14:43,642 (OperationsImpl) indexDoc=
<delete><id>ts:SOLR_INDEX_UPDATE_TEST</id></delete>
DEBUG 2010-11-11 13:14:43,650 (OperationsImpl) getIndexReader 
indexName=DemoOnSolr docCount=0
DEBUG 2010-11-11 13:14:43,650 (OperationsImpl) closeIndexReader 
indexName=DemoOnSolr docCount=0
DEBUG 2010-11-11 13:14:43,650 (OperationsImpl) initDocCount=0 docCount=0 
updateTotal=0
INFO 2010-11-11 13:14:43,653 (OperationsImpl) updateIndex deletePid 
indexName=DemoOnSolr indexDirSpace=499 docCount=-1
DEBUG 2010-11-11 13:14:43,653 (OperationsImpl) resultXml =
<solrUpdateIndex indexName="DemoOnSolr">
<deletePid pid="ts:SOLR_INDEX_UPDATE_TEST"/>
<counts insertTotal="0" updateTotal="0" deleteTotal="1" docCount="-1" 
warnCount="0"/>
</solrUpdateIndex>
DEBUG 2010-11-11 13:14:43,653 (GTransformer) 
xsltName=config/index/DemoOnSolr/updateIndexToResultPage
DEBUG 2010-11-11 13:14:43,660 (GenericOperationsImpl) resultXml=<?xml 
version="1.0" encoding="UTF-8"?>
<resultPage operation="updateIndex" action="deletePid" 
value="ts:SOLR_INDEX_UPDATE_TEST" repositoryName="DemoAtDtu" indexNames="" 
resultPageXslt="" dateTime="Thu Nov 11 13:14:43 GMT 2010">
<updateIndex xmlns:dc="http://purl.org/dc/elements/1.1/"; 
xmlns:foxml="info:fedora/fedora-system:def/foxml#" 
xmlns:zs="http://www.loc.gov/zing/srw/"; warnCount="0" docCount="-1" 
deleteTotal="1" updateTotal="0" insertTotal="0" indexName="DemoOnSolr"/>
</resultPage>
INFO 2010-11-11 13:14:43,660 (UpdateListener) Index updated by notification 
message, returning:
<?xml version="1.0" encoding="UTF-8"?>
<resultPage operation="updateIndex" action="deletePid" 
value="ts:SOLR_INDEX_UPDATE_TEST" repositoryName="DemoAtDtu" indexNames="" 
resultPageXslt="" dateTime="Thu Nov 11 13:14:43 GMT 2010">
<updateIndex xmlns:dc="http://purl.org/dc/elements/1.1/"; 
xmlns:foxml="info:fedora/fedora-system:def/foxml#" 
xmlns:zs="http://www.loc.gov/zing/srw/"; warnCount="0" docCount="-1" 
deleteTotal="1" updateTotal="0" insertTotal="0" indexName="DemoOnSolr"/>
</resultPage>
DEBUG 2010-11-11 13:15:04,953 (UpdateListener) Received Fedora Message: 
ActiveMQTextMessage {commandId = 8, responseRequired = true, messageId = 
ID:ben-49293-1289480930777-2:0:1:1:3, originalDestination = null, 
originalTransactionId = null, producerId = ID:ben-49293-1289480930777-2:0:1:1, 
destination = topic://fedora.apim.update, transactionId = null, expiration = 0, 
timestamp = 1289481304948, arrival = 0, brokerInTime = 1289481304949, 
brokerOutTime = 1289481304952, correlationId = null, replyTo = null, persistent 
= true, type = null, priority = 4, groupID = null, groupSequence = 0, 
targetConsumerId = null, compressed = false, userID = null, content = 
org.apache.activemq.util.byteseque...@66cb40<mailto:org.apache.activemq.util.byteseque...@66cb40>,
 marshalledProperties = 
org.apache.activemq.util.byteseque...@aa0831<mailto:org.apache.activemq.util.byteseque...@aa0831>,
 dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, 
readOnlyProperties = true, readOnl!
 yBody = true, droppable = false, text = null}
DEBUG 2010-11-11 13:15:04,954 (UpdateListener) Message Text: <?xml 
version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:fedora-types="http://www.fedora.info/definitions/1/0/types/";>
  <id>urn:uuid:b301b972-8f2b-4fc5-ba67-cca81f83113c</id>
  <updated>2010-11-11T13:15:04.584Z</updated>
  <author>
    <name>fedoraAdmin</name>
    <uri>http://localhost:8080/fedora</uri>
  </author>
  <title type="text">ingest</title>
  <category term="Ingested from local file 
C:\development\search\test_data\solr_ts_index_test.xml" 
scheme="fedora-types:logMessage" label="xsd:string"></category>
  <category term="info:fedora/fedora-system:METSFedoraExt-1.1" 
scheme="fedora-types:format" label="xsd:string"></category>
  <summary type="text">ts:SOLR_INDEX_UPDATE_TEST</summary>
  <content type="text">ts:SOLR_INDEX_UPDATE_TEST</content>
  <category term="3.4" 
scheme="info:fedora/fedora-system:def/view#version"></category>
  <category term="info:fedora/fedora-system:ATOM-APIM-1.0" 
scheme="http://www.fedora.info/definitions/1/0/types/formatURI";></category>
</entry>
DEBUG 2010-11-11 13:15:04,958 (GenericOperationsImpl) updateIndex 
action=fromPid value=ts:SOLR_INDEX_UPDATE_TEST repositoryName=DemoAtDtu 
indexNames= indexDocXslt= resultPageXslt=
DEBUG 2010-11-11 13:15:04,958 (Config) indexName=DemoOnSolr 
operationsImpl=dk.defxws.fgssolr.OperationsImpl
DEBUG 2010-11-11 13:15:04,958 (Config) operationsImplClass=class 
dk.defxws.fgssolr.OperationsImpl
DEBUG 2010-11-11 13:15:04,958 (Config) 
ops=dk.defxws.fgssolr.operationsi...@130ab08<mailto:ops=dk.defxws.fgssolr.operationsi...@130ab08>
DEBUG 2010-11-11 13:15:04,965 (OperationsImpl) getIndexReader 
indexName=DemoOnSolr docCount=0
INFO 2010-11-11 13:15:04,965 (GenericOperationsImpl) getFoxmlFromPid 
pid=ts:SOLR_INDEX_UPDATE_TEST repositoryName=DemoAtDtu
DEBUG 2010-11-11 13:15:05,744 (OperationsImpl) getIndexReader 
indexName=DemoOnSolr docCount=0
DEBUG 2010-11-11 13:15:05,747 (OperationsImpl) closeIndexReader 
indexName=DemoOnSolr docCount=0
DEBUG 2010-11-11 13:15:05,747 (OperationsImpl) initDocCount=0 docCount=0 
updateTotal=0
ERROR 2010-11-11 13:15:05,752 (UpdateListener) Unable to perform index update 
due to Exception: Fedora Object ts:SOLR_INDEX_UPDATE_TEST not found at 
DemoAtDtu; nested exception is:
 javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: 
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter 
must be non-empty
dk.defxws.fedoragsearch.server.errors.FedoraObjectNotFoundException: Fedora 
Object ts:SOLR_INDEX_UPDATE_TEST not found at DemoAtDtu; nested exception is:
 javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: 
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter 
must be non-empty
 at 
dk.defxws.fedoragsearch.server.GenericOperationsImpl.getFoxmlFromPid(GenericOperationsImpl.java:340)
 at dk.defxws.fgssolr.OperationsImpl.fromPid(OperationsImpl.java:389)
 at dk.defxws.fgssolr.OperationsImpl.updateIndex(OperationsImpl.java:241)
 at 
dk.defxws.fedoragsearch.server.GenericOperationsImpl.updateIndex(GenericOperationsImpl.java:308)
 at 
dk.defxws.fedoragsearch.server.UpdateListener.onMessage(UpdateListener.java:198)
 at 
fedora.client.messaging.JmsMessagingClient.onMessage(JmsMessagingClient.java:330)
 at 
org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:967)
 at 
org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:122)
 at 
org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:192)
 at 
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
 at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected 
error: java.security.InvalidAlgorithmParameterException: the trustAnchors 
parameter must be non-empty
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
 at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
 at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
 at org.apache.axis.client.Call.invoke(Call.java:2767)
 at org.apache.axis.client.Call.invoke(Call.java:2443)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
 at org.apache.axis.client.Call.invoke(Call.java:1812)
 at 
fedora.server.management.FedoraAPIMBindingSOAPHTTPStub.export(FedoraAPIMBindingSOAPHTTPStub.java:639)
 at 
dk.defxws.fedoragsearch.server.GenericOperationsImpl.getFoxmlFromPid(GenericOperationsImpl.java:338)
 ... 13 more
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected 
error: java.security.InvalidAlgorithmParameterException: the trustAnchors 
parameter must be non-empty
 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1623)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1586)
 at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1569)
 at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1154)
 at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1131)
 at 
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
 at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
 at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
 at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
 ... 24 more
Caused by: java.lang.RuntimeException: Unexpected error: 
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter 
must be non-empty
 at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:59)
 at sun.security.validator.Validator.getInstance(Validator.java:161)
 at 
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:108)
 at 
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:204)
 at 
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
 at 
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1053)
 at 
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:128)
 at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:529)
 at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:465)
 at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
 at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1120)
 at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1147)
 ... 29 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors 
parameter must be non-empty
 at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183)
 at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103)
 at 
java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87)

Regards,
  Ben
---------------------------------------------------------------------
Dr Ben Ryan
Timescapes Archive Technical Officer
School of Sociology and Social Policy
Faculty of Education, Social Sciences and Law Social Science Building The 
University of Leeds Leeds LS2 9JT
Email: b.r...@leeds.ac.uk<mailto:b.r...@leeds.ac.uk>
Tel: 0113 343 7319
Website: http://www.timescapes.leeds.ac.uk<http://www.timescapes.leeds.ac.uk/>
---------------------------------------------------------------------



------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to