腾讯云IM集成问题汇总

1.tls生成问题

1.1 tls_sigcheck.java必须在com.tls.sigcheck包下否则抛出如下异常:

Caused by: java.lang.UnsatisfiedLinkError: com.tls.sigchec.tls_sigcheck.tls_gen_signature_ex2(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
	at com.tls.sigchec.tls_sigcheck.tls_gen_signature_ex2(Native Method)
	at com.yimew.config.im.IMUtil.getTls(IMUtil.java:47)
	at com.yimew.controller.sys.SysController.getImTsl(SysController.java:205)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:870)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:776)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)
	... 77 more

1.2 生成的默认的时长为15552000秒 = 180天 

   官方建议:超时时长,以秒为单位,建议使用不超过一个月

1.3

window环境下使用

demo.loadJniLib("/home/tls/jnisigcheck_mt_x64.dll");

linux环境下使用 

demo.loadJniLib("/home/tls/jnisigcheck_mt_x64.so");

 

你可能感兴趣的:(系统集成)