关于短信org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException
来源:互联网 发布:数据库实训 编辑:程序博客网 时间:2024/05/21 06:30
新买了个短信猫,对着说明书直接配,配置好了之后运行代码 发现的报org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException的错误,检查了好几遍发现都没问题,上网找了老半天 总算把问题解决了,一下是几点注意事项
1、javax.comm.properties,win32com.dll是配置在 jdk目录下jre里,而非jre
2、SerialModemGateway gateway = new SerialModemGateway("modem.com3", "COM3", 9600, "wavecom", "17254"); 这里的端口配置至关重要,可以再设备管理器的端口中查看
3、配置环境后重启机器!!!我就栽在这上面,估计是jdk没有加载dll包所致,希望读者引以为戒
0 0
- 关于短信org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException
- org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException
- Axis2 Plugin Exception: -java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- Java.lang.reflect.InvocationTargetException
- 慢慢来,静下心!
- ajax版的 精简的三级联动
- 【自动语音识别课程】第二课 语音信号分析
- MyEclipse8.5安装svn(非link方式)
- webstorm 的一些使用技巧
- 关于短信org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException
- ViewStub的使用
- request.getParameter获取中文是乱码
- 字节数组与浮点数之间的互相转换(IEEE)
- 获取table中tr的索引号——sectionRowIndex
- 使用Spring Security3的四种方法概述
- android bitmap 压缩 方法
- 那些开发者应该知道但又略显模糊的iOS 8 API
- 备注型字段显示内容