org.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method <init>() to invoke from this list: private java.util.Base64$Encoder#<init>(boolean, [B, int, boolean) java.util.Base64$Encoder#<init>(boolean, [B, int, boolean, java.util.Base64$1)

Stack Overflow | Ethyl Casin | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.Exception: No signature of method: static java.util.Base64$Encoder.encodeToString() is applicable for argument types: ([B)

    Stack Overflow | 8 months ago | Ethyl Casin
    org.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method <init>() to invoke from this list: private java.util.Base64$Encoder#<init>(boolean, [B, int, boolean) java.util.Base64$Encoder#<init>(boolean, [B, int, boolean, java.util.Base64$1)

    Root Cause Analysis

    1. org.codehaus.groovy.runtime.metaclass.MethodSelectionException

      Could not find which method <init>() to invoke from this list: private java.util.Base64$Encoder#<init>(boolean, [B, int, boolean) java.util.Base64$Encoder#<init>(boolean, [B, int, boolean, java.util.Base64$1)

      at groovy.lang.MetaClassImpl.chooseMethod()
    2. Groovy
      ScriptBytecodeAdapter.invokeNew0
      1. groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:2419)
      2. groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1250)
      3. groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1182)
      4. org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:805)
      5. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:227)
      6. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNew0(ScriptBytecodeAdapter.java:234)
      6 frames
    3. Unknown
      JobSearchService.getPhoto
      1. JobSearchService.getPhoto(script1000034.groovy:113)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    5. Groovy
      ScriptBytecodeAdapter.invokeMethodOnCurrentN
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
      3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:333)
      4. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:77)
      4 frames
    6. Unknown
      JobSearchService$_search_closure2.doCall
      1. JobSearchService$_search_closure2.doCall(script1000034.groovy:59)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    8. Groovy
      DefaultGroovyMethods.each
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
      3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:754)
      5. groovy.lang.Closure.call(Closure.java:292)
      6. groovy.lang.Closure.call(Closure.java:305)
      7. org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1078)
      8. org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1055)
      8 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    10. Groovy
      ScriptBytecodeAdapter.invokeMethodN
      1. org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51)
      2. org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:54)
      3. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910)
      5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:754)
      6. org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:765)
      7. org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:753)
      8. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167)
      8 frames
    11. Unknown
      JobSearchService.search
      1. JobSearchService.search(script1000034.groovy:57)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    13. Groovy
      MetaClassImpl.invokeMethod
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910)
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:754)
      4 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    15. Groovy
      ScriptBytecodeAdapter.invokeMethodN
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910)
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:754)
      5. org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:765)
      6. org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:753)
      7. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167)
      7 frames
    16. Unknown
      JobSearchService.invokeMethod
      1. JobSearchService.invokeMethod(script1000034.groovy)
      1 frame
    17. com.rameses.osiris3
      ScriptRunnable.run
      1. com.rameses.osiris3.script.ScriptExecutor.invokeMethod(ScriptExecutor.java:41)
      2. com.rameses.osiris3.script.ManagedScriptExecutor$1.call(ManagedScriptExecutor.java:142)
      3. com.rameses.osiris3.script.InterceptorChain.fireChain(InterceptorChain.java:79)
      4. com.rameses.osiris3.script.ManagedScriptExecutor.execute(ManagedScriptExecutor.java:140)
      5. com.rameses.osiris3.script.ScriptRunnable.run(ScriptRunnable.java:62)
      5 frames
    18. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames