Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-2933

Business Cental fails to start with error "no marshaller for type: org.guvnor.structure.contributors.Contributor" after migrating to 7.12.0

XMLWordPrintable

    • 2022 Week 05-07 (from Jan 31), 2022 Week 08-10 (from Feb 21), 2022 Week 11-13 (from Mar 14)
    • Hide

      run 7.12.0 business central with attached .niogit which was created with version 7.11.1 business-central

      Show
      run 7.12.0 business central with attached .niogit which was created with version 7.11.1 business-central
    • Documentation (Ref Guide, User Guide, etc.), Migration
    • Workaround Exists
    • Hide

      1. You need to clone ".niogit/MySpace/.config/config.git".
      2. Now inside cloned "config/config", There's SpaceInfo.json file.
      3. You will need to change all "org.guvnor.structure.contributors.Contributor" & "org.guvnor.structure.contributors.ContributorType" to "org.uberfire.security.Contributor" & "org.uberfire.security.ContributorType" respectively.
      4. Now add, commit & push to `config.git`
      5. repeat above steps for all of spaces in your .niogit

      Show
      1. You need to clone ".niogit/MySpace/.config/config.git". 2. Now inside cloned "config/config", There's SpaceInfo.json file. 3. You will need to change all "org.guvnor.structure.contributors.Contributor" & "org.guvnor.structure.contributors.ContributorType" to "org.uberfire.security.Contributor" & "org.uberfire.security.ContributorType" respectively. 4. Now add, commit & push to `config.git` 5. repeat above steps for all of spaces in your .niogit
    • NEW
    • NEW

      After migrating to 7.12.0 from previous version, business central fails to start with the following exception.

      13:40:37,869 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) 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.execute(ServiceControllerImpl.java:1731)
      	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000049: Unable to invoke void org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl.postConstruct() on org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl@1ee56633
      	at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:38)
      	at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
      	at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:505)
      	at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:93)
      	at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:98)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
      	... 6 more
      Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke void org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl.postConstruct() on org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl@1ee56633
      	at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:85)
      	at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:66)
      	at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:122)
      	at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:174)
      	at org.jboss.weld.contexts.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:102)
      	at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:131)
      	at org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl$Proxy$_$$_WeldClientProxy.toString(Unknown Source)
      	at org.uberfire.backend.server.cdi.SystemConfigProducer.runPostConstruct(SystemConfigProducer.java:196)
      	at org.uberfire.backend.server.cdi.SystemConfigProducer.afterDeploymentValidation(SystemConfigProducer.java:181)
      	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:95)
      	at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:187)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:330)
      	at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:123)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:308)
      	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:286)
      	at javax.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:124)
      	at org.jboss.weld.util.Observers.notify(Observers.java:166)
      	at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:285)
      	at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:273)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:177)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:171)
      	at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
      	at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
      	... 12 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:83)
      	... 42 more
      Caused by: java.lang.RuntimeException: org.jboss.errai.marshalling.client.api.exceptions.MarshallingException: Failed to demarshall an instance of org.guvnor.structure.organizationalunit.config.SpaceInfo
      	at org.uberfire.backend.server.io.object.ObjectStorageImpl.read(ObjectStorageImpl.java:68)
      	at org.guvnor.structure.backend.organizationalunit.config.SpaceConfigStorageImpl.loadSpaceInfo(SpaceConfigStorageImpl.java:295)
      	at org.guvnor.structure.backend.organizationalunit.config.SpaceConfigStorageImpl.isInitialized(SpaceConfigStorageImpl.java:322)
      	at org.guvnor.structure.backend.organizationalunit.OrganizationalUnitServiceImpl.getAllOrganizationalUnits(OrganizationalUnitServiceImpl.java:204)
      	at org.guvnor.structure.backend.organizationalunit.OrganizationalUnitServiceImpl$Proxy$_$$_WeldClientProxy.getAllOrganizationalUnits(Unknown Source)
      	at org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl.isArchetypesOUAvailable(ArchetypeServiceImpl.java:726)
      	at org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl.maybeCreateArchetypesOU(ArchetypeServiceImpl.java:693)
      	at org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl.postConstruct(ArchetypeServiceImpl.java:165)
      	... 47 more
      Caused by: org.jboss.errai.marshalling.client.api.exceptions.MarshallingException: Failed to demarshall an instance of org.guvnor.structure.organizationalunit.config.SpaceInfo
      	at org.jboss.errai.marshalling.server.marshallers.DefaultDefinitionMarshaller.demarshall(DefaultDefinitionMarshaller.java:180)
      	at org.jboss.errai.marshalling.client.marshallers.ObjectMarshaller.demarshall(ObjectMarshaller.java:88)
      	at org.jboss.errai.marshalling.client.marshallers.ObjectMarshaller.doNotNullDemarshall(ObjectMarshaller.java:112)
      	at org.jboss.errai.marshalling.client.marshallers.AbstractNullableMarshaller.demarshall(AbstractNullableMarshaller.java:35)
      	at org.jboss.errai.marshalling.client.Marshalling.fromJSON(Marshalling.java:277)
      	at org.jboss.errai.marshalling.client.Marshalling.fromJSON(Marshalling.java:249)
      	at org.jboss.errai.marshalling.client.Marshalling.fromJSON(Marshalling.java:200)
      	at org.jboss.errai.marshalling.client.Marshalling.fromJSON(Marshalling.java:319)
      	at org.uberfire.backend.server.io.object.ObjectStorageImpl.read(ObjectStorageImpl.java:65)
      	... 54 more
      Caused by: java.lang.RuntimeException: no marshaller for type: org.guvnor.structure.contributors.Contributor
      	at org.jboss.errai.marshalling.client.marshallers.AbstractCollectionMarshaller.marshallToCollection(AbstractCollectionMarshaller.java:87)
      	at org.jboss.errai.marshalling.client.marshallers.ListMarshaller.doDemarshall(ListMarshaller.java:47)
      	at org.jboss.errai.marshalling.client.marshallers.ListMarshaller.doDemarshall(ListMarshaller.java:34)
      	at org.jboss.errai.marshalling.client.marshallers.AbstractCollectionMarshaller.doDemarshall(AbstractCollectionMarshaller.java:48)
      	at org.jboss.errai.marshalling.client.marshallers.AbstractCollectionMarshaller.doDemarshall(AbstractCollectionMarshaller.java:33)
      	at org.jboss.errai.marshalling.client.marshallers.AbstractBackReferencingMarshaller.demarshall(AbstractBackReferencingMarshaller.java:76)
      	at org.jboss.errai.marshalling.client.marshallers.ObjectMarshaller.demarshall(ObjectMarshaller.java:88)
      	at org.jboss.errai.marshalling.client.marshallers.ObjectMarshaller.doNotNullDemarshall(ObjectMarshaller.java:112)
      	at org.jboss.errai.marshalling.client.marshallers.AbstractNullableMarshaller.demarshall(AbstractNullableMarshaller.java:35)
      	at org.jboss.errai.marshalling.server.marshallers.DefaultDefinitionMarshaller.demarshall(DefaultDefinitionMarshaller.java:127)
      	... 62 more
      

      migration-tool.sh also fails with the same exception.

              abkuma abhishek kumar
              abkuma abhishek kumar
              Savitha T Jose Savitha T Jose
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: