Could not synchronize with target

运行java应用程序

#bash LauncherJavaMainClass.sh
Could not synchronize with target

查看错误java命令启动时定向到的stderr日志:

Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: h003018.xxx.com: h003018.xxx.com

解决:

方法一、

#vim /etc/hosts

添加:192.168.1.202 h003018.xxx.com

192.168.1.202为启动java应用的主机IP

方法二、

查看LauncherJavaMainClass.sh,注释掉如下JMX启动参数

#JAVA_OPS="-Dsun.rmi.transport.tcp.readTimeout=5000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.server.exceptionTrace=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=22446 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

时间: 2024-07-30 10:19:20

Could not synchronize with target的相关文章

Hadoop0.21.0部署安装以及mapreduce测试

鉴于hadoop的需要...但是并不限于此...有时候闲输入密码麻烦,也可以用这种办法从一个节点通过ssh进入另一个节点... 设要使master进入slave是免密码的,则可以在master(ip为192.168.169.9)中如下操作: 命令:ssh-keygen -t rsa  然后一路回车(该命令不需要进入特定目录) cd进入/root/.ssh/可以看见如下(橙色是新生成的) id_rsa  id_rsa.pub  known_hosts 然后用scp命令将id_rsa远程传输到sla

JAVA多线程之Synchronize 关键字原理

image 众所周知 Synchronize 关键字是解决并发问题常用解决方案,有以下三种使用方式: 同步普通方法,锁的是当前对象. 同步静态方法,锁的是当前 Class 对象. 同步块,锁的是 {} 中的对象. 实现原理: JVM 是通过进入.退出对象监视器( Monitor )来实现对方法.同步块的同步的. 具体实现是在编译之后在同步方法调用前加入一个 monitor.enter 指令,在退出方法和异常处插入 monitor.exit 的指令. 其本质就是对一个对象监视器( Monitor

Synchronize关键字 - 原理

众所周知 Synchronize 关键字是解决并发问题常用解决方案,有以下三种使用方式: 同步普通方法,锁的是当前对象. 同步静态方法,锁的是当前 Class 对象. 同步块,锁的是 {} 中的对象. 实现原理: JVM 是通过进入.退出对象监视器( Monitor )来实现对方法.同步块的同步的. 具体实现是在编译之后在同步方法调用前加入一个 monitor.enter 指令,在退出方法和异常处插入 monitor.exit 的指令. 其本质就是对一个对象监视器( Monitor )进行获取,

使用 IDEA 创建 Maven Web 项目 (异常)- Disconnected from the target VM, address: '127.0.0.1:59770', transport: 'socket'

运行环境: JDK 版本:1.8 Maven 版本:apache-maven-3.3.3 IDEA 版本:14 maven-jetty-plugin 配置: <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <configuration> <webAppSourceDirectory>${pro

10.23 linux任务计划cron10.24chkconfig工具10.25 systemd管理服务10.26 unit介绍 10.27 target介绍

- 10.23 linux任务计划cron - 10.24 chkconfig工具 - 10.25 systemd管理服务 - 10.26 unit介绍 - 10.27 target介绍 - 扩展 1. anacron http://blog.csdn.net/strikers1982/article/details/4787226  2. xinetd服(默认机器没有安装这个服务,需要yum install xinetd安装) http://blog.sina.com.cn/s/blog_46

[lintcode 14] First Position of Target

For a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity. If the target number does not exist in the array, return -1. Example If the array is [1, 2, 3, 3, 4, 5, 10], for given ta

mv command:unable to remove target: Is a director

mv command:unable to remove target: Is a director This is somewhat simple as long as we understand the concept. mv or move does not actually move the file/folder to another location within the same device, it merely replaces the pointer in the first

targetcli搭建Fibre Channel(FC) target

硬件信息 获取WWN的方法可以执行以下命令来获取 cat /sys/class/fc_host/host*/port_name | sed -e s/0x// -e 's/../&:/g' -e s/:$// 作为target端的机器 系统 : Ubuntu 14.04 Server HBA : QLogic ISP2432 WWN1 : 21:01:00:1b:32:31:43:XX WWN2 : 21:00:00:1b:32:11:43:XX 作为initiator端的机器 系统: Ubun

AndroidStudio运行程序提示Error running app : No target device found

原因是adb没检测到设备(包括真机和虚拟机).在Terminal执行adb devices命令,查看有没有连接到的设备. 1. 如果没有设备,确认虚拟机是否正确打开,真机是否连接打开USB调试并安装驱动.可执行adb kill-server和adb start-server这两个命令重启adb.   2.如果有设备,选择run ->EditConfiguration->General,查看Deployment Target Options选项,查看设置的Taget是否有问题,以及是否选中了Us