[overlord-issues] [JBoss JIRA] (ARTIF-552) Support relationships with no target
Brett Meyer (JIRA)
issues at jboss.org
Fri Jan 9 22:42:29 EST 2015
[ https://issues.jboss.org/browse/ARTIF-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Meyer updated ARTIF-552:
------------------------------
Comment: was deleted
(was: SrampToJcrSql2QueryVisitor now assumes that all relationships have a target -- see the use of targetPredicateContext. Should definitely push back on this.)
> Support relationships with no target
> ------------------------------------
>
> Key: ARTIF-552
> URL: https://issues.jboss.org/browse/ARTIF-552
> Project: Artificer
> Issue Type: Feature Request
> Reporter: Brett Meyer
> Assignee: Brett Meyer
>
> 2.1.2
> "It is possible for a relationship of a given Relationship Type not to have a target, which is termed a "relationship with no targets". In this case there is only one relationship instance with that Relationship Type for a given Source. Such relationships have a target cardinality of "0". If there is a relationship instance with a given Relationship Type that does have a target, then there CANNOT also be a relationship instance with that Relationship Type which has no target."
> Currently, this causes:
> {code}
> Caused by: javax.jcr.PathNotFoundException: No item exists at path sramp:relationshipType relative to /s-ramp/artifacts/4a/97/7b/bd-ab9b-4f00-b7b5-25f62f04eb45/sramp-relationships:null in workspace "default"
> at org.modeshape.jcr.AbstractJcrNode.getProperty(AbstractJcrNode.java:346)
> at org.modeshape.jcr.AbstractJcrNode.getProperty(AbstractJcrNode.java:108)
> at org.overlord.sramp.repository.jcr.mapper.ArtifactToJCRNodeVisitor.updateGenericRelationships(ArtifactToJCRNodeVisitor.java:267)
> at org.overlord.sramp.repository.jcr.mapper.ArtifactToJCRNodeVisitor.visitBase(ArtifactToJCRNodeVisitor.java:128)
> at org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter.visit(HierarchicalArtifactVisitorAdapter.java:209)
> at org.overlord.sramp.repository.jcr.mapper.ArtifactToJCRNodeVisitor.visit(ArtifactToJCRNodeVisitor.java:310)
> at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.overlord.sramp.common.visitors.ArtifactVisitorHelper.visitArtifact(ArtifactVisitorHelper.java:41)
> at org.overlord.sramp.repository.jcr.JCRArtifactPersister.persistArtifactPhase1(JCRArtifactPersister.java:138)
> at org.overlord.sramp.repository.jcr.JCRPersistence.persistArtifact(JCRPersistence.java:177)
> ... 47 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the overlord-issues
mailing list