Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.6.3, 6.6.4
    • Fix Version/s: 6.7.0
    • Component/s: None
    • Labels:
      None

      Description

      When ruby helper is being initalized an exception is thrown:

      2019-01-06 10:19:02,788 [http-nio-8081-exec-1] [INFO ] (o.a.c.CentralConfigServiceImpl:625) - Configuration reloaded.
      2019-01-06 10:19:06,913 [art-exec-1] [ERROR] (o.a.a.g.m.GemsLocalPackageMetadataHandler:105) - Could not update package metadata gem-local2/gems/rubygems-update-2.0.6.gem: Could not initialize gems helper
      2019-01-06 10:19:06,913 [art-exec-1] [ERROR] (o.a.r.d.DbStoringRepoMixin:290) - Couldn't save resource gem-local2:gems/rubygems-update-2.0.6.gem, reason:
      java.lang.RuntimeException: Could not update package metadata gem-local2/gems/rubygems-update-2.0.6.gem
      at org.artifactory.addon.gems.metadata.GemsLocalPackageMetadataHandler.addMetadata(GemsLocalPackageMetadataHandler.java:106)
      at org.artifactory.addon.gems.repo.GemsLocalMetadataHandler.addMetadata(GemsLocalMetadataHandler.java:34)
      at org.artifactory.addon.gems.repo.GemsLocalMetadataHandler$$FastClassBySpringCGLIB$$47d11308.invoke(<generated>)
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:649)
      at org.artifactory.addon.gems.repo.GemsLocalMetadataHandler$$EnhancerBySpringCGLIB$$deef8fd8.addMetadata(<generated>)
      at org.artifactory.addon.gems.repo.GemsMetadataInterceptor.afterCreate(GemsMetadataInterceptor.java:49)
      at org.artifactory.repo.interceptor.storage.StorageInterceptorsImpl.afterCreate(StorageInterceptorsImpl.java:69)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
      at com.sun.proxy.$Proxy172.afterCreate(Unknown Source)
      at org.artifactory.repo.db.DbStoringRepoMixin.invokeAfterCreateInterceptors(DbStoringRepoMixin.java:405)
      at org.artifactory.repo.db.DbStoringRepoMixin.saveResource(DbStoringRepoMixin.java:244)
      at org.artifactory.repo.db.DbLocalRepo.saveResource(DbLocalRepo.java:154)
      at org.artifactory.repo.service.RepositoryServiceImpl.saveResourceInTransaction(RepositoryServiceImpl.java:1814)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      at com.sun.proxy.$Proxy154.saveResourceInTransaction(Unknown Source)
      at org.artifactory.repo.service.RepositoryServiceImpl.saveResource(RepositoryServiceImpl.java:1802)
      at org.artifactory.repo.service.RepositoryServiceImpl.saveFileInternal(RepositoryServiceImpl.java:631)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
      at com.sun.proxy.$Proxy154.saveFileInternal(Unknown Source)
      at org.artifactory.addon.gems.helpers.RepoHelper.saveResourceStream(RepoHelper.java:99)
      at org.artifactory.addon.gems.GemsAddonImpl.afterRepoInit(GemsAddonImpl.java:82)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at org.artifactory.schedule.aop.TraceableMethodInvocation.proceed(TraceableMethodInvocation.java:72)
      at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:333)
      at org.artifactory.schedule.aop.AsyncAdvice.lambda$submit$2(AsyncAdvice.java:285)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at org.artifactory.concurrent.ArtifactoryRunnable.run(ArtifactoryRunnable.java:50)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.IllegalStateException: Could not initialize gems helper
      at org.artifactory.addon.gems.helpers.RubyHelper.init(RubyHelper.java:155)
      at org.artifactory.addon.gems.helpers.RubyHelper.initIfNeeded(RubyHelper.java:140)
      at org.artifactory.addon.gems.helpers.RubyHelper.getScriptingContainer(RubyHelper.java:134)
      at org.artifactory.addon.gems.helpers.RubyHelper.call(RubyHelper.java:181)
      at org.artifactory.addon.gems.helpers.RubyHelper.getGemNameVersionPlatform(RubyHelper.java:70)
      at org.artifactory.addon.gems.metadata.GemsLocalPackageMetadataHandler.addMetadata(GemsLocalPackageMetadataHandler.java:69)
      ... 57 common frames omitted
      Caused by: org.jruby.exceptions.MainExitException: unknown encoding name - UTF8
      2019-01-06 10:19:06,944 [art-exec-1] [ERROR] (o.a.a.g.GemsAddonImpl:94) - Could not initialize local Gems supported repository gem-local2
      java.lang.RuntimeException: Could not update package metadata gem-local2/gems/rubygems-update-2.0.6.gem
      at org.artifactory.addon.gems.metadata.GemsLocalPackageMetadataHandler.addMetadata(GemsLocalPackageMetadataHandler.java:106)
      at org.artifactory.addon.gems.repo.GemsLocalMetadataHandler.addMetadata(GemsLocalMetadataHandler.java:34)
      at org.artifactory.addon.gems.repo.GemsLocalMetadataHandler$$FastClassBySpringCGLIB$$47d11308.invoke(<generated>)
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:649)
      at org.artifactory.addon.gems.repo.GemsLocalMetadataHandler$$EnhancerBySpringCGLIB$$deef8fd8.addMetadata(<generated>)
      at org.artifactory.addon.gems.repo.GemsMetadataInterceptor.afterCreate(GemsMetadataInterceptor.java:49)
      at org.artifactory.repo.interceptor.storage.StorageInterceptorsImpl.afterCreate(StorageInterceptorsImpl.java:69)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
      at com.sun.proxy.$Proxy172.afterCreate(Unknown Source)
      at org.artifactory.repo.db.DbStoringRepoMixin.invokeAfterCreateInterceptors(DbStoringRepoMixin.java:405)
      at org.artifactory.repo.db.DbStoringRepoMixin.saveResource(DbStoringRepoMixin.java:244)
      at org.artifactory.repo.db.DbLocalRepo.saveResource(DbLocalRepo.java:154)
      at org.artifactory.repo.service.RepositoryServiceImpl.saveResourceInTransaction(RepositoryServiceImpl.java:1814)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      at com.sun.proxy.$Proxy154.saveResourceInTransaction(Unknown Source)
      at org.artifactory.repo.service.RepositoryServiceImpl.saveResource(RepositoryServiceImpl.java:1802)
      at org.artifactory.repo.service.RepositoryServiceImpl.saveFileInternal(RepositoryServiceImpl.java:631)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
      at com.sun.proxy.$Proxy154.saveFileInternal(Unknown Source)
      at org.artifactory.addon.gems.helpers.RepoHelper.saveResourceStream(RepoHelper.java:99)
      at org.artifactory.addon.gems.GemsAddonImpl.afterRepoInit(GemsAddonImpl.java:82)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at org.artifactory.schedule.aop.TraceableMethodInvocation.proceed(TraceableMethodInvocation.java:72)
      at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:333)
      at org.artifactory.schedule.aop.AsyncAdvice.lambda$submit$2(AsyncAdvice.java:285)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at org.artifactory.concurrent.ArtifactoryRunnable.run(ArtifactoryRunnable.java:50)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.IllegalStateException: Could not initialize gems helper
      at org.artifactory.addon.gems.helpers.RubyHelper.init(RubyHelper.java:155)
      at org.artifactory.addon.gems.helpers.RubyHelper.initIfNeeded(RubyHelper.java:140)
      at org.artifactory.addon.gems.helpers.RubyHelper.getScriptingContainer(RubyHelper.java:134)
      at org.artifactory.addon.gems.helpers.RubyHelper.call(RubyHelper.java:181)
      at org.artifactory.addon.gems.helpers.RubyHelper.getGemNameVersionPlatform(RubyHelper.java:70)
      at org.artifactory.addon.gems.metadata.GemsLocalPackageMetadataHandler.addMetadata(GemsLocalPackageMetadataHandler.java:69)
      ... 57 common frames omitted
      Caused by: org.jruby.exceptions.MainExitException: unknown encoding name - UTF8

       

      Currently, as a workaround, you can change the artifactory.bat file to -Dfile.encoding=UTF8 

        Attachments

          Activity

            People

            • Assignee:
              yoazm Yoaz Menda (Inactive)
              Reporter:
              yoazm Yoaz Menda (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: