0 Replies Latest reply on Feb 6, 2014 4:21 AM by Tomasz U

    Can't create repository

    Tomasz U Newbie

      Hi,

       

      I'm still trying to use jbpm-console as remote server. Now I was trying to create repository using REST but it seems to not work.

      I did POST:

       

      localhost:8080/jbpm-console/rest/repositories/

       

      body:

       

      {

        "name":"abc",

        "gitURL": "git://abc"

      }

       

      and got response:

       

      {

          "jobId": "1391675104437-6",

          "status": "ACCEPTED",

          "repository": {

              "name": "abc",

              "description": null,

              "userName": null,

              "password": null,

              "requestType": null,

              "gitURL": "git://abc"

          }

      }

       

      Happy with result I went back to jbpm-console -> Administration and there was no such repository. Reply from git when trying to clone this one is:

       

      git://localhost/abc: not found.

       

      I checked server logs and found:

       

      09:25:04,432 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) -----createOrCloneRepository--- , repository name:abc

      09:25:04,437 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) ********************************************************************

      09:25:04,444 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) **************kjar is******************* java.util.zip.ZipFile$1@2bbd1feb

      09:25:04,449 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) ********************************************************************

      09:25:04,455 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-localhost-127.0.0.1-8080-1) Adding KieModule from resource :[ByteArrayResource resource=[B@d7a93bc]

      09:25:04,466 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-localhost-127.0.0.1-8080-1) KieModule was added:MemoryKieModule[ ReleaseId=org.kie.workbench.services:kie-wb-common-defaultapprover:0.9]

      09:25:04,583 WARN  [org.drools.compiler.kproject.xml.PomModel] (http-localhost-127.0.0.1-8080-1) Error generated by the maven pom parser, falling back to the internal one: java.lang.RuntimeException: org.apache.maven.project.ProjectBuildingException: 1 problem was encountered while building the effective model for org.kie.workbench.services:kie-wb-common-defaultapprover:0.9

      [FATAL] Non-resolvable parent POM: Could not find artifact org.kie.workbench.services:kie-wb-common-services:pom:6.0.0-SNAPSHOT @ line 5, column 11

      for project org.kie.workbench.services:kie-wb-common-defaultapprover:0.9

        at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:38) [kie-ci-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.scanner.MavenPomModelGenerator.parse(MavenPomModelGenerator.java:18) [kie-ci-6.0.0.Final.jar:6.0.0.Final]

        at org.drools.compiler.kproject.xml.PomModel$Parser.parse(PomModel.java:61) [drools-compiler-6.0.0.Final.jar:6.0.0.Final]

        at org.drools.compiler.kie.builder.impl.AbstractKieModule.getPomModel(AbstractKieModule.java:332) [drools-compiler-6.0.0.Final.jar:6.0.0.Final]

        at org.drools.compiler.kie.builder.impl.AbstractKieModule.getJarDependencies(AbstractKieModule.java:98) [drools-compiler-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.scanner.MavenClassLoaderResolver.getClassLoader(MavenClassLoaderResolver.java:47) [kie-ci-6.0.0.Final.jar:6.0.0.Final]

        at org.drools.compiler.kie.builder.impl.KieModuleKieProject.<init>(KieModuleKieProject.java:50) [drools-compiler-6.0.0.Final.jar:6.0.0.Final]

        at org.drools.compiler.kie.builder.impl.KieModuleKieProject.<init>(KieModuleKieProject.java:38) [drools-compiler-6.0.0.Final.jar:6.0.0.Final]

        at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:88) [drools-compiler-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.workbench.common.services.rest.DefaultGuvnorApprover.requestApproval(DefaultGuvnorApprover.java:29) [drools-wb-rest-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.workbench.common.services.rest.DefaultGuvnorApprover$Proxy$_$$_WeldClientProxy.requestApproval(DefaultGuvnorApprover$Proxy$_$$_WeldClientProxy.java) [drools-wb-rest-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.workbench.common.services.rest.KieSessionAsyncJobRequestObserver.approveRequest(KieSessionAsyncJobRequestObserver.java:103) [drools-wb-rest-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.workbench.common.services.rest.KieSessionAsyncJobRequestObserver.onCreateOrCloneRepositoryRequest(KieSessionAsyncJobRequestObserver.java:32) [drools-wb-rest-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.workbench.common.services.rest.KieSessionAsyncJobRequestObserver$Proxy$_$$_WeldClientProxy.onCreateOrCloneRepositoryRequest(KieSessionAsyncJobRequestObserver$Proxy$_$$_WeldClientProxy.java) [drools-wb-rest-6.0.0.Final.jar:6.0.0.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_45]

        at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_45]

        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:569) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:564) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.event.EventImpl.fire(EventImpl.java:68) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.kie.workbench.common.services.rest.ProjectResource.createOrCloneRepository(ProjectResource.java:230) [drools-wb-rest-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.workbench.common.services.rest.ProjectResource$Proxy$_$$_WeldClientProxy.createOrCloneRepository(ProjectResource$Proxy$_$$_WeldClientProxy.java) [drools-wb-rest-6.0.0.Final.jar:6.0.0.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_45]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_45]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_45]

        at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_45]

        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.2.Final.jar:]

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.2.Final.jar:]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

        at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

        at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) [solder-impl-3.2.1.Final.jar:3.2.1.Final]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

        at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) [solder-impl-3.2.1.Final.jar:3.2.1.Final]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

        at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [jbpm-designer-backend-6.0.0.Final.jar:6.0.0.Final]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

        at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266) [uberfire-security-server-0.3.0.Final.jar:0.3.0.Final]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.13.Final.jar:]

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:416) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]

      Caused by: org.apache.maven.project.ProjectBuildingException: 1 problem was encountered while building the effective model for org.kie.workbench.services:kie-wb-common-defaultapprover:0.9

      [FATAL] Non-resolvable parent POM: Could not find artifact org.kie.workbench.services:kie-wb-common-services:pom:6.0.0-SNAPSHOT @ line 5, column 11

      for project org.kie.workbench.services:kie-wb-common-defaultapprover:0.9

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:149) [maven-core-3.0.5.jar:3.0.5]

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:108) [maven-core-3.0.5.jar:3.0.5]

        at org.kie.scanner.embedder.MavenEmbedder.readProject(MavenEmbedder.java:329) [kie-ci-6.0.0.Final.jar:6.0.0.Final]

        at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:36) [kie-ci-6.0.0.Final.jar:6.0.0.Final]

        ... 78 more

      Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for org.kie.workbench.services:kie-wb-common-defaultapprover:0.9

      [FATAL] Non-resolvable parent POM: Could not find artifact org.kie.workbench.services:kie-wb-common-services:pom:6.0.0-SNAPSHOT @ line 5, column 11

       

       

        at org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:195) [maven-model-builder-3.0.5.jar:3.0.5]

        at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:841) [maven-model-builder-3.0.5.jar:3.0.5]

        at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664) [maven-model-builder-3.0.5.jar:3.0.5]

        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310) [maven-model-builder-3.0.5.jar:3.0.5]

        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232) [maven-model-builder-3.0.5.jar:3.0.5]

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:142) [maven-core-3.0.5.jar:3.0.5]

        ... 81 more

       

       

      09:25:05,119 INFO  [com.ning.http.client.providers.netty.NettyAsyncHttpProvider] (pool-36-thread-1) Number of application's worked threads is 16

      09:25:05,753 WARN  [org.drools.compiler.kie.builder.impl.AbstractKieModule] (http-localhost-127.0.0.1-8080-1) No files found for KieBase defaultKieBase

      09:25:05,769 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) approval request result: true

       

       

      09:25:05,773 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) -----ProjectResourceDispatcher:createOrCloneRepository--- , repository name:abc

       

      How to resolve this?

      There is no problem to create repository using jbpm-console and clone it over git(JGit). Anyway pushing files back to origin fails.