1 Exception in thread "main" com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='user', source='userdb', password=<hidden>, mechanismProperties={}} 2 Caused by: com.mongodb.MongoCom…
在VMware虚拟机下搭建了hadoop集群,ubuntu-12.04,一台master,三台slave.hadoop-0.20.2版本.在 master机器上利用eclipse-3.3连接hadoop并运行mapreduce实例可以成功.但是当在windows下eclipse-3.3 远程连接hadoop,DFS locations可以连接上,但运行mapreduce实例时报错,如下: 13/07/02 13:37:04 WARN conf.Configuration: DEPRECATED:…
错误信息如下: Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes 网上查到,说是需要重新打一下sqljdbc    http://blog.chinaunix.net/uid-26706281-id-3210704.html 把该博客的内容copy下来: 插件打成的jar包运行出现这个异常,异常处理办法 1.…
在运行Hibernate Hello World程序的时候,抛如下错误: Exception in thread "main" org.hibernate.exception.LockAcquisitionException : Could not open connection at org.hibernate.exception.internal.SQLStateConversionDelegate.convert( SQLStateConversionDelegate.java:…
ReactNative问题随记 想运行在真机上,在运行命令react-native run-android遇到错误如下: Scanning 559 folders for symlinks in D:\AppData\Project\android\AwesomeProject\node_modules (46ms)JS server already running. Building and installing the app on the device (cd android &&…
这几天在学习springboot的微服务项目,在配置文件方面也想尝试下新的yml配置,就想把原来项目properties写的文件转换成yml试一下(老项目是之前检出在了eclipse里面),结果写好了yml配置文件,项目启动时候报了如下错误: Exception in thread "main" while scanning for the next token found character '\t(TAB)' that cannot start any token. (Do not…
新建好springboot项目后,打开application运行main方法报如下错. 1.问题:Exception in thread "main" java.lang.UnsupportedClassVersionError :  unsupported major.minor version 52.0 我的电脑上安装了jdk1.7 和 jdk1.8,虽然创建项目的时候选择了当前使用的jdk版本1.7,但是创建后的发现使用的是jdk1.8,将pom.xml文件中修改为jdk1.7,…
今天做了一个Jsoup解析网站的项目,使用Jsoup.connect(url).get()连接某网站时偶尔会出现java.net.SocketTimeoutException:Read timed out异常.原因是默认的Socket的延时比较短,而有些网站的响应速度比较慢,所以会发生超时的情况. 解决方法: 链接的时候设定超时时间即可.doc = Jsoup.connect(url).timeout(5000).get();5000表示延时时间设置为5s. 测试代码如下:1,不设定timeou…
import java.nio.channels.AsynchronousServerSocketChannel; import java.nio.channels.AsynchronousSocketChannel; import java.net.InetSocketAddress; import java.util.concurrent.Future; import java.nio.ByteBuffer; public class SimpleAIOServer{ static fina…
一.linux中配置redis,使用java连接测试时报错: Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused) 原因: linux中的防火墙没有关闭,在终端中输入以下命令关闭防火墙即可: 1) Linux操作系统中永久性生效,重启后不会复…