[
https://issues.jboss.org/browse/SRAMP-213?page=com.atlassian.jira.plugin....
]
Kurt Stam resolved SRAMP-213.
-----------------------------
Resolution: Duplicate Issue
Deletion of POMs and other artifacts via CLI fails
--------------------------------------------------
Key: SRAMP-213
URL:
https://issues.jboss.org/browse/SRAMP-213
Project: S-RAMP
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Jess Sightler
Assignee: Kurt Stam
Fix For: 0.3.1 - jBPM - bugfix 1
To reproduce:
1. Setup a s-ramp repo (empty)
2. Deploy the multiapp demo
(s-ramp-distro/s-ramp-distro-assembly/s-ramp-demos/s-ramp-demos-switchyard-multiapp
3. Deploy the deploymentstatus ontology:
ontology:upload
/path/to/switchyard/dtgov/dtgov-installer/src/main/resources/data/deployment-status.owl
4. Deploy the dtworkflows project:
mvn -Psramp clean deploy
5. Attempt to delete, and receive an error:
s-ramp> s-ramp:query "/s-ramp/"
Querying the S-RAMP repository:
/s-ramp
Atom Feed (19 entries)
Idx Type Name
--- ---- ----
1 SwitchyardApplication
switchyard-quickstart-demo-multi-order-service-0.3.0-20130716.235000-1.jar
2 Document dtgov-workflows-1.0.0-20130716.235317-1-sources.jar
3 KieXmlDocument kmodule.xml
4 ArtifactGrouping org.overlord.sramp.demos.switchyard.multiapp
5 MavenPom
switchyard-quickstart-demo-multi-order-consumer-0.3.0-20130716.235008-1.pom
6 MavenPom
switchyard-quickstart-demo-multi-artifacts-0.3.0-20130716.234934-1.pom
7 MavenPom
switchyard-quickstart-demo-multi-web-0.3.0-20130716.235014-1.pom
8 Document dtgov-workflows-1.0.0-20130716.235317-1-tests.jar
9 XmlDocument overlord.demo.CheckDeployment-taskform.xml
10 Document
switchyard-quickstart-demo-multi-artifacts-0.3.0-20130716.234934-1-classes.jar
11 MavenPom
switchyard-quickstart-demo-multi-order-service-0.3.0-20130716.235000-1.pom
12 KieJarArchive dtgov-workflows-1.0.0-20130716.235317-1.jar
13 SwitchyardApplication
switchyard-quickstart-demo-multi-artifacts-0.3.0-20130716.234934-1.jar
14 SwitchyardApplication
switchyard-quickstart-demo-multi-order-consumer-0.3.0-20130716.235008-1.jar
15 Document overlord.demo.ProjectLifeCycle.bpmn2
16 Document overlord.demo.SimpleReleaseProcess.bpmn
17 MavenPom dtgov-workflows-1.0.0-20130716.235317-1.pom
18 SwitchyardApplication
switchyard-quickstart-demo-multi-web-0.3.0-20130716.235014-1.war
19 MavenPom
s-ramp-demos-switchyard-multiapp-0.3.0-20130716.234927-1.pom
s-ramp> s-ramp:delete feed:
feed:1 feed:2 feed:3 feed:4 feed:5 feed:6 feed:7 feed:8 feed:9
feed:10 feed:11 feed:12 feed:13 feed:14 feed:15 feed:16 feed:17 feed:18
feed:19
s-ramp> s-ramp:delete feed:17
FAILED to delete the artifact.
"sramp:extendedArtifactType" is not currently a mixin type for node
"/s-ramp/artifacts/e6/d1/b9/b2-d339-405e-bc1e-8b8d8539eb97"
Exception:
19:51:33,429 INFO [org.overlord.sramp.repository.jcr.JCRRepository]
(http-/127.0.0.1:8080-2) JCR Auditor installed successfully.
19:54:29,554 ERROR [org.overlord.sramp.server.atom.services.BatchResource]
(http-/127.0.0.1:8080-35) Error deleting artifact: e6d1b9b2-d339-405e-bc1e-8b8d8539eb97:
org.overlord.sramp.common.SrampServerException:
javax.jcr.nodetype.NoSuchNodeTypeException: "sramp:extendedArtifactType" is not
currently a mixin type for node
"/s-ramp/artifacts/e6/d1/b9/b2-d339-405e-bc1e-8b8d8539eb97"
at
org.overlord.sramp.repository.jcr.JCRPersistence.deleteArtifact(JCRPersistence.java:409)
[s-ramp-repository-jcr-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
at
org.overlord.sramp.server.atom.services.ArtifactResource.delete(ArtifactResource.java:443)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_25]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
[jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
Caused by: javax.jcr.nodetype.NoSuchNodeTypeException:
"sramp:extendedArtifactType" is not currently a mixin type for node
"/s-ramp/artifacts/e6/d1/b9/b2-d339-405e-bc1e-8b8d8539eb97"
at org.modeshape.jcr.AbstractJcrNode.removeMixin(AbstractJcrNode.java:2479)
at
org.overlord.sramp.repository.jcr.JCRPersistence.deleteArtifact(JCRPersistence.java:388)
[s-ramp-repository-jcr-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
... 30 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira