运行spark demo时出现java.lang.NoSuchMethodError: scala.Predef$.refArrayOps([Ljava/lang/Object;)。
比如说我们经常看到这样的日志: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String; 先来简单的说一下, "["表示数组,后面跟着的是具体的类型...这里我们再给出一个典型的例子来看看: (IDLjava/lang/Thread;)Ljava/lang/Object; 这就是表示一个方法,方法有三个参数,类型分别为I,D,L。返回值类型为L。...然后L类型要跟具体的类型,然后以"/"替换包名的".",L类型的要以“;”分号结尾。.../Thread;)Ljava/lang/Object; #10 = Utf8 SourceFile #11 = Utf8 S.java..., double, long, java.lang.Thread); descriptor: (IDJLjava/lang/Thread;)Ljava/lang/Object; flags:
documentationPluginsBootstrapper'; nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoSuchMethodError...: com.google.common.collect.FluentIterable.concat(Ljava/lang/Iterable;Ljava/lang/Iterable;)Lcom/google...Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java...documentationPluginsBootstrapper' nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoSuchMethodError...: com.google.common.collect.FluentIterable.concat(Ljava/lang/Iterable;Ljava/lang/Iterable;)Lcom/google
问题1 java.lang.NoSuchMethodError: scala.Predef$....MB 17/10/03 22:35:18 INFO SparkEnv: Registering OutputCommitCoordinator Exception in thread "main" java.lang.NoSuchMethodError...: scala.Predef$....问题2 not found: type Application Error:(7, 20) not found: type Application object App extends Application
254) at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:67) Caused by: java.lang.NoSuchMethodError...: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V at org.apache.hadoop.conf.Configuration.set...解决方案(过程): 第一个问题解决无果后,我联想会不会是第二个问题导致的第一个发生错误,是他的前置条件,于是查看第二个报错的问题 Caused by: java.lang.NoSuchMethodError...: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V 哈哈,发现是hive
: org.apache.commons.beanutils.MethodUtils.getAccessibleMethod(Ljava/lang/Class;Ljava/lang/reflect/Method...is java.lang.NoSuchMethodError: org.apache.commons.beanutils.MethodUtils.getAccessibleMethod(Ljava/lang.../Class;Ljava/lang/reflect/Method;)Ljava/lang/reflect/Method; description The server encountered an internal...: org.apache.commons.beanutils.MethodUtils.getAccessibleMethod(Ljava/lang/Class;Ljava/lang/reflect/Method...: org.apache.commons.beanutils.MethodUtils.getAccessibleMethod(Ljava/lang/Class;Ljava/lang/reflect/Method
;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) at java.lang.reflect.Method.invoke(Ljava.lang.Object...;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod...ContextFactory.createContext(ContextFactory.java:55) at jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object...;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) at java.lang.reflect.Method.invoke(Ljava.lang.Object...;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source) at javax.xml.bind.ContextFinder.newInstance
exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoSuchMethodError...: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;) Lorg/springframework
问题描述: 初始化Hive仓库报错Exception in thread “main” java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument...(ZLjava/lang/String;Ljava/lang/Object;)V 解决方案(过程): com.google.common.base.Preconditions.checkArgument
问题日志 Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.core.ResolvableType.forInstance...(Ljava/lang/Object;)Lorg/springframework/core/ResolvableType; at org.springframework.context.event.SimpleApplicationEventMulticaster.resolveDefaultEventType
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState...(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V at org.openqa.selenium.remote.service.DriverService.findExecutable
Myabatis-Plus集成异常 下面贴出错误信息 : java.lang.NoSuchMethodError: com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotBlank...(Ljava/lang/CharSequence;)Z 11:29:34.886 [main] DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener...factory. 11:29:37.476 [main] ERROR org.springframework.boot.SpringApplication - Application run failed java.lang.NoSuchMethodError...: com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotBlank(Ljava/lang/CharSequence;)Z at com.baomidou.mybatisplus.autoconfigure.SafetyEncryptProcessor.postProcessEnvironment...* 处理加密内容 */ if (StringUtils.isNotBlank(mpwKey)) { HashMap<String, Object
21:03:46.843 [main] ERROR org.springframework.boot.SpringApplication - Application run failed java.lang.NoSuchMethodError...([Ljava/lang/Object;)V at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext
26:03.003] [org.springframework.boot.SpringApplication] [main] [858] [ERROR] Application run failed java.lang.NoSuchMethodError...([Ljava/lang/Object;)V at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext
(Ljava/lang/Object;Ljava/lang/Object;)Z IFEQ L6 ACONST_NULL CHECKCAST java/lang/Integer.../Intrinsics.areEqual (Ljava/lang/Object;Ljava/lang/Object;)Z IFEQ L9 ACONST_NULL CHECKCAST.../internal/Intrinsics.areEqual (Ljava/lang/Object;Ljava/lang/Object;)Z IFEQ L15 ACONST_NULL...(Ljava/lang/Object;Ljava/lang/Object;)Z IFEQ L21 ICONST_M1 GOTO L22 L21 ALOAD 3...(Ljava/lang/Object;Ljava/lang/Object;)Z IFEQ L7 ACONST_NULL CHECKCAST java/lang/Integer
36:17.646 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application run failed java.lang.NoSuchMethodError...([Ljava/lang/Object;)V 我的pom文件是如下写的: <?xml version="1.0" encoding="UTF-8"?
;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; // arguments: "a = \u0001" ] INVOKEVIRTUAL...;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke...;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; // arguments: "a = \u0001" ] INVOKEVIRTUAL...;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; // arguments: "a = \u0001" ] INVOKEVIRTUAL...$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang
()Ljava/lang/String; INVOKESTATIC kotlin/io/ConsoleKt.println (Ljava/lang/Object;)V RETURN...;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String; ARETURN L1 L2 LOCALVARIABLE...(Ljava/lang/Object;Ljava/lang/String;)V L1 LINENUMBER 6 L1 ALOAD 0 ILOAD 1 INVOKEINTERFACE java...(I)Ljava/lang/Object; INVOKEINTERFACE java/util/List.set (ILjava/lang/Object;)Ljava/lang/Object; POP.../Integer; INVOKEINTERFACE java/util/List.set (ILjava/lang/Object;)Ljava/lang/Object; POP L4 LINENUMBER
L2 INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/Object;)V L3 LINENUMBER 12 L3.../util/Observable;Ljava/lang/Object;)V L0 LINENUMBER 10 L0 GETSTATIC java/lang/System.out :... ()V ALOAD 1 INVOKEVIRTUAL java/lang/StringBuilder.append (Ljava/lang/Object;)Ljava/lang.../lang/StringBuilder; ALOAD 2 INVOKEVIRTUAL java/lang/StringBuilder.append (Ljava/lang/Object;...; L0 L2 1 LOCALVARIABLE arg Ljava/lang/Object; L0 L2 2 MAXSTACK = 3 MAXLOCALS = 3 // access
领取专属 10元无门槛券
手把手带您无忧上云