当前位置:网站首页>error unable to access jarfile 解决方案
error unable to access jarfile 解决方案
2022-04-22 14:21:00 【rookiesx】
在jenkins shell 排查一个错误时,花了很久。
表象是因为 执行shell 脚本 中的 java -jar xxx.jar 没有成功启动jar 程序。
因为使用了 nohup & 来后台启动jar 包,所以jenkins 没有打印出错误 日志。
在去除 nohup & 之后,发现是报了error unable to access jarfile 错误导致的。
解决方案:发现是 调用shell脚本 时访问不到该jar,通过修改jar 绝对路径解决了
/home/user01/tool/traffic_broker_monitor
echo "launch monitor tool"
echo "bash /home/user01/tool/test_monitor.sh $monitor_connectors $project $region"
sshpass -p ${PWD} ssh ${USERNAME}@${IP} "bash /home/ser01/tool/test_monitor.sh $monitor_connectors $project $region"
java -jar broker_monitor.jar
--num=$1
--target_server=k8s.mypna.com
--data_source=HERE-HERE-SEA --receiver=\{\"redis_cluster_address\":\"mypna.com\",\"redis_port\":6379\}
版权声明
本文为[rookiesx]所创,转载请带上原文链接,感谢
https://blog.csdn.net/rookiesx/article/details/123767013
边栏推荐
- Ibeacon development summary of Internet of things solution based on tailing micro tlsr825x
- 字节跳动的面试分享,为了拿下这个offer鬼知道我经历了什么
- Qt创建窗口闪退的问题
- Blocking queue-
- Openmldb pulsar connector: efficiently connect real-time data to feature Engineering
- 图的遍历 深度优先DFS 广度优先BFS
- Binarytree practice binary tree sequence traversal 𞓜 sequence traversal with queue
- PIP command and online and offline installation method
- Binarytree练习二叉树层序遍历 || 用队列实现层序遍历
- What does log desensitization mean? Why do you do log desensitization?
猜你喜欢

线程池--

BitMap BloomFilter BitSet详解

Wonderful linkage! Principle and practice of openmldb pulsar connector

Tools applicable to any database - Shanghai daoning brings a powerful general database management tool dbeaver to developers and database administrators

深入剖析volatile原理

Why do I like to use flying items for task management

数据库基础(二)

二月份,我靠这一份PDF文档面试BAT,没想到竟然收到了5个offer

北斗gps卫星时间同步装置(卫星时钟)在广电系统的应用

Understand C language -- string, escape character, comment
随机推荐
Markdown Icon
字节跳动的面试分享,为了拿下这个offer鬼知道我经历了什么
BinaryTree练习 从前序与中序、中序与后序遍历序列构造二叉树||重构二叉树654、105、106
北斗gps卫星时间同步装置(卫星时钟)在广电系统的应用
我为什么那么爱用飞项做任务管理
有了飞项这款任务管理神器,工作更便捷高效
What is adapter mode?
Apache IoTDB’s UDF源码分析(1)
软件架构设计师-创建型模式-单例模式-原型模式-工厂方法模式-抽象工厂模式-建造者模式
CRM系统改善客户体验的方法
Shiro之缓存管理
数据库基础(二)
Dynamic gauge initial solution 𞓜 maximum subsequence and longest ascending subsequence 53 and 128
MariaDB is configured as master-slave (dual master mode) to each other
Redis 批量删除数据(通配符)
Binarytree练习二叉树序列化反序列化606、331、652、297
Development environment of expert system
MapReduce advanced application - full sorting and secondary sorting
Double pointer in the same direction, double pointer, sliding window 3, 594, |27, 26, 80, 83, 82, 611, 187, 643, 674, 209, 438, 567, 424, 76, 30
Thread pool--