Created
September 14, 2016 04:16
-
-
Save grosscol/48d0aba4dd273b9f2d16a74a7e548950 to your computer and use it in GitHub Desktop.
Sufia 7.pre -> Sufia 7.1 Migration Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):002:0> fs = FileSet.find('gb19f580q') | |
=> #<FileSet id: "gb19f580q", label: "it150815_074300_000.idl", relative_path: "Data/Simulation Output/Ionosphere Output/it150815_...", import_url: nil, part_of: [], resource_type: [], creator: [], contributor: [], description: [], keyword: [], rights: [], publisher: [], date_created: [], subject: [], language: [], identifier: [], based_near: [], related_url: [], bibliographic_citation: [], source: [], head: [], tail: [], depositor: "[email protected]", title: ["it150815_074300_000.idl"], date_uploaded: "2016-04-21 18:49:04", date_modified: "2016-04-21 18:49:04", access_control_id: "10d89226-68ee-4661-afff-9e3056f45e1a", embargo_id: nil, lease_id: nil> | |
irb(main):003:0> fs.original_file | |
=> #<Hydra::PCDM::File uri="http://localhost:8301/fedora/rest/umrdr/gb/19/f5/80/gb19f580q/files/90e50337-8c1a-4482-9842-3eaa9641fc58" > | |
irb(main):004:0> fs.characterization_proxy | |
=> #<Hydra::PCDM::File uri="http://localhost:8301/fedora/rest/umrdr/gb/19/f5/80/gb19f580q/files/90e50337-8c1a-4482-9842-3eaa9641fc58" > | |
irb(main):005:0> fs.characterization_proxy.save | |
=> true | |
irb(main):006:0> fs.characterization_proxy.save | |
Ldp::HttpError: STATUS: 500 java.util.NoSuchElementException | |
at com.google.common.collect.Iterators$1.next(Iterators.java:80) | |
at org.fcrepo.kernel.modeshape.rdf.impl.mappings.PropertyValueIterator.computeNext(PropertyValueIterator.java:68) | |
at org.fcrepo.kernel.modeshape.rdf.impl.mappings.PropertyValueIterator.computeNext(PropertyValueIterator.java:35) | |
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) | |
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) | |
at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:43) | |
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:650) | |
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) | |
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) | |
at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:43) | |
at com.google.common.collect.Iterators$5.hasNext(Iterators.java:547) | |
at com... | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/ldp-0.5.0/lib/ldp/client/methods.rb:119:in `block in check_for_errors' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/ldp-0.5.0/lib/ldp/client/methods.rb:117:in `tap' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/ldp-0.5.0/lib/ldp/client/methods.rb:117:in `check_for_errors' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/ldp-0.5.0/lib/ldp/client/methods.rb:110:in `block in patch' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/ldp-0.5.0/lib/ldp/client/methods.rb:102:in `patch' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/caching_connection.rb:29:in `patch' | |
from /l/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/delegate.rb:83:in `method_missing' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/initializing_connection.rb:47:in `patch' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/sparql_insert.rb:11:in `execute' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/with_metadata/metadata_node.rb:47:in `save' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/file.rb:167:in `block in create_or_update' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/file.rb:166:in `tap' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/file.rb:166:in `create_or_update' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/with_metadata.rb:22:in `create_or_update' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/active-fedora-10.2.0/lib/active_fedora/persistence.rb:29:in `save' | |
from (irb):6 | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/console.rb:110:in `start' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/console.rb:9:in `start' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:68:in `console' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!' | |
from /hydra/umrdr-production/shared/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>' | |
from bin/rails:4:in `require' |
seems like file_set.original_file.described_by ends up with a value, but fedora doesn't believe that element exists?
Looking at the tomcat logs:
INFO 15:28:21.570 (FedoraLdp) PATCH for 'umrdr/4q/77/fr/35/4q77fr355/files/ff16c2eb-d94e-491e-8133-2e708f9ed811/fcr:metadata'
WARN 15:28:21.573 (PropertyConverter) The namespace of predicate: http://www.w3.org/ns/ldp#NonRDFSource was possibly misinterpreted as: http://www.w3.org/ns/ldp#.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://fedora.info/definitions/v4/repository#Binary was possibly misinterpreted as: http://fedora.info/definitions/v4/repository#.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://www.jcp.org/jcr/mix/1.0mimeType was possibly misinterpreted as: http://www.jcp.org/jcr/mix/1.0.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://pcdm.org/use#OriginalFile was possibly misinterpreted as: http://pcdm.org/use#.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://www.jcp.org/jcr/mix/1.0versionable was possibly misinterpreted as: http://www.jcp.org/jcr/mix/1.0.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://fedora.info/definitions/v4/repository#Resource was possibly misinterpreted as: http://fedora.info/definitions/v4/repository#.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://www.jcp.org/jcr/nt/1.0resource was possibly misinterpreted as: http://www.jcp.org/jcr/nt/1.0.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://pcdm.org/models#File was possibly misinterpreted as: http://pcdm.org/models#.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://www.loc.gov/premis/rdf/v1#hasCreatingApplicationVersion was possibly misinterpreted as: http://www.loc.gov/premis/rdf/v1#.
WARN 15:28:21.574 (PropertyConverter) The namespace of predicate: http://www.loc.gov/premis/rdf/v1#hasFormatName was possibly misinterpreted as: http://www.loc.gov/premis/rdf/v1#.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#fileSize was possibly misinterpreted as: http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#hashValue was possibly misinterpreted as: http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://www.w3.org/ns/ldp#NonRDFSource was possibly misinterpreted as: http://www.w3.org/ns/ldp#.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://www.jcp.org/jcr/nt/1.0resource was possibly misinterpreted as: http://www.jcp.org/jcr/nt/1.0.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://www.jcp.org/jcr/mix/1.0mimeType was possibly misinterpreted as: http://www.jcp.org/jcr/mix/1.0.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://pcdm.org/models#File was possibly misinterpreted as: http://pcdm.org/models#.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://pcdm.org/use#OriginalFile was possibly misinterpreted as: http://pcdm.org/use#.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://fedora.info/definitions/v4/repository#Binary was possibly misinterpreted as: http://fedora.info/definitions/v4/repository#.
WARN 15:28:21.575 (PropertyConverter) The namespace of predicate: http://fedora.info/definitions/v4/repository#Resource was possibly misinterpreted as: http://fedora.info/definitions/v4/repository#.
WARN 15:28:21.576 (PropertyConverter) The namespace of predicate: http://www.jcp.org/jcr/mix/1.0versionable was possibly misinterpreted as: http://www.jcp.org/jcr/mix/1.0.
INFO 15:28:21.603 (FedoraLdp) HEAD for: umrdr/4q/77/fr/35/4q77fr355/files/ff16c2eb-d94e-491e-8133-2e708f9ed811
INFO 15:28:21.618 (FedoraLdp) HEAD for: umrdr/4q/77/fr/35/4q77fr355/files/ff16c2eb-d94e-491e-8133-2e708f9ed811/fcr:metadata
INFO 15:28:21.632 (FedoraLdp) GET resource 'umrdr/4q/77/fr/35/4q77fr355/files/ff16c2eb-d94e-491e-8133-2e708f9ed811/fcr:metadata'
INFO 15:28:21.635 (WildcardExceptionMapper) Exception intercepted by WildcardExceptionMapper:
java.util.NoSuchElementException: null
... stack trace follows here ....
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same behavior with any FileSet doing
file_set.original_file.save
twice in a row. Does not happen with a FileSet doingfile_set.save
twice if that's the first thing done with the file set. So I'm thinking it's the PCDM::File.After a file_set is screwed up, anything with save gets the same error.
curling the url gives me the NoSuchElement exception
curl http://localhost:8301/fedora/rest/umrdr/gb/19/f5/80/gb19f580q/files/90e50337-8c1a-4482-9842-3eaa9641fc58/fcr:metadata