Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-7144

Migrated repositories from Mortgage demo causes errors, BC fails to start.

    Details

    • Sprint:
      2018 Week 15-16
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Note that this demo works perfectly fine in BPMSuite 6.

      1) Clone the following repository: https://github.com/jbossdemocentral/bpms-mortgage-demo
      2) The .niogit directory content is in "bpms-mortgage-demo/support/bpm-suite-demo-niogit". Copy the content of that folder to a temp folder, for example "/tmp/niogit"
      3) Run the migration tool: "./migration-tool.sh -t /tmp/niogit. Only migrate the "Project" and "System Configuration" migration.
      4) Start Red Hat PAM 7 with the migrated repositories. Observe multiple errors from JGit about missing directory files and directories. Business Central does not start.

      It seems that my repositories miss some directories in the bare Git directory structure. BPM Suite 6 was quite forgiving, but PAM 7 blows up to the point that Business Central does not start.

      This the exception I get:

      5:59:23,008 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."business-central.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."business-central.war".WeldStartService: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:
      Exception 0 :
      org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke protected void org.jbpm.workbench.pr.backend.server.DataSetDefsBootstrap.registerDataSetDefinitions() on org.jbpm.workbench.pr.backend.server.DataSetDefsBootstrap@56271ced
      	at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:99)
      	at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:80)
      	at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:122)
      	at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:171)
      	at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)
      	at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
      	at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:140)
      	at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
      	at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
      	at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125)
      	at org.jbpm.workbench.pr.backend.server.DataSetDefsBootstrap$Proxy$_$$_WeldClientProxy.toString(Unknown Source)
      	at org.uberfire.backend.server.cdi.SystemConfigProducer.runPostConstruct(SystemConfigProducer.java:165)
      	at org.uberfire.backend.server.cdi.SystemConfigProducer.afterDeploymentValidation(SystemConfigProducer.java:150)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
      	at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:299)
      	at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:277)
      	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:255)
      	at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:269)
      	at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:258)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)
      	at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
      	at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
      	at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
      	at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:482)
      	at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
      	at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:96)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:97)
      	... 37 more
      Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.dashbuilder.dataset.DataSetDefRegistryCDI.init() on org.dashbuilder.dataset.DataSetDefRegistryCDI@4f1e3322
      	at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:99)
      	at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:80)
      	at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:122)
      	at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:162)
      	at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)
      	at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
      	at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:140)
      	at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
      	at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
      	at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125)
      	at org.dashbuilder.dataset.DataSetDefRegistryCDI$Proxy$_$$_WeldClientProxy.registerDataSetDef(Unknown Source)
      	at org.jbpm.workbench.pr.backend.server.DataSetDefsBootstrap.registerDataSetDefinitions(DataSetDefsBootstrap.java:137)
      	... 42 more
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:97)
      	... 53 more
      Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Garbage collection failed.
      	at org.eclipse.jgit.api.GarbageCollectCommand.call(GarbageCollectCommand.java:224)
      	at org.uberfire.java.nio.fs.jgit.util.commands.GarbageCollector.execute(GarbageCollector.java:34)
      	at org.uberfire.java.nio.fs.jgit.util.GitImpl.gc(GitImpl.java:173)
      	at org.uberfire.java.nio.fs.jgit.manager.JGitFileSystemsManager.newFileSystem(JGitFileSystemsManager.java:123)
      	at org.uberfire.java.nio.fs.jgit.manager.JGitFileSystemsManager.lambda$createFileSystemSupplier$0(JGitFileSystemsManager.java:104)
      	at org.uberfire.java.nio.fs.jgit.manager.MemoizedFileSystemsSupplier.lambda$get$0(MemoizedFileSystemsSupplier.java:36)
      	at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
      	at org.uberfire.java.nio.fs.jgit.manager.MemoizedFileSystemsSupplier.get(MemoizedFileSystemsSupplier.java:35)
      	at org.uberfire.java.nio.fs.jgit.JGitFileSystemProxy.newWatchService(JGitFileSystemProxy.java:231)
      	at org.uberfire.io.impl.AbstractIOService.registerFS(AbstractIOService.java:252)
      	at org.uberfire.io.impl.AbstractIOService.newFileSystem(AbstractIOService.java:233)
      	at org.uberfire.ext.metadata.io.IOServiceIndexedImpl.newFileSystem(IOServiceIndexedImpl.java:194)
      	at org.dashbuilder.dataset.DataSetDefRegistryCDI.initFileSystem(DataSetDefRegistryCDI.java:151)
      	at org.dashbuilder.dataset.DataSetDefRegistryCDI.init(DataSetDefRegistryCDI.java:118)
      	... 58 more
      Caused by: java.io.IOException: java.util.concurrent.ExecutionException: org.eclipse.jgit.api.errors.JGitInternalException: No such file or directory
      	at org.eclipse.jgit.internal.storage.file.GC.gc(GC.java:294)
      	at org.eclipse.jgit.api.GarbageCollectCommand.call(GarbageCollectCommand.java:207)
      	... 71 more
      Caused by: java.util.concurrent.ExecutionException: org.eclipse.jgit.api.errors.JGitInternalException: No such file or directory
      	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      	at org.eclipse.jgit.internal.storage.file.GC.gc(GC.java:292)
      	... 72 more
      Caused by: org.eclipse.jgit.api.errors.JGitInternalException: No such file or directory
      	at org.eclipse.jgit.internal.storage.file.GC.lambda$gc$0(GC.java:277)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      	... 3 more
      Caused by: java.io.IOException: No such file or directory
      	at java.io.UnixFileSystem.createFileExclusively(Native Method)
      	at java.io.File.createTempFile(File.java:2024)
      	at org.eclipse.jgit.internal.storage.file.GC.writePack(GC.java:1112)
      	at org.eclipse.jgit.internal.storage.file.GC.repack(GC.java:871)
      	at org.eclipse.jgit.internal.storage.file.GC.doGc(GC.java:309)
      	at org.eclipse.jgit.internal.storage.file.GC.lambda$gc$0(GC.java:253)
      	... 6 more
       
      	at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:37)
      	at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
      	at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:482)
      	at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
      	at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:96)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	... 3 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                paulovmr Paulo Rego
                Reporter:
                McCloud Duncan Doyle
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: