想用程序发起一个流程,但是单点登录老报500的错误。
想用程序发起一个流程,但是单点登录老报500的错误。请帮忙给看看。错误信息贴出来看看 论坛管理员 发表于 2023-3-15 16:24
错误信息贴出来看看
错误信息如下:
"C:\Program Files\Java\jdk-19\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.3\lib\idea_rt.jar=7111:C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.3\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\Java\O2OAJavaService\out\production\O2OAJavaService;D:\Java\O2OAJavaService\Jar\httpcore-4.4.11.jar;D:\Java\O2OAJavaService\Jar\httpclient-4.5.9.jar;D:\Java\O2OAJavaService\Jar\httpmime-4.5.9.jar;D:\Java\O2OAJavaService\Jar\gson-2.8.5.jar;D:\Java\O2OAJavaService\Jar\commons-io-2.7.jar;D:\Java\O2OAJavaService\Jar\commons-codec-1.13.jar;D:\Java\O2OAJavaService\Jar\commons-lang3-3.9.jar;D:\Java\O2OAJavaService\Jar\commons-text-1.8.jar HttpClientUtil
-phzKxJL4GoIGDaMlkA_QQ
POSTjava.io.IOException: Server returned HTTP response code: 500 for URL: http://192.168.80.95/x_organization_assemble_authentication/jaxrs/sso
java.io.IOException: Server returned HTTP response code: 500 for URL: http://192.168.80.95/x_organization_assemble_authentication/jaxrs/sso
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1993)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1585)
at HttpClientUtil.sendPost(HttpClientUtil.java:372)
at HttpClientUtil.main(HttpClientUtil.java:414)
Exception in thread "main" java.lang.ClassCastException: class com.google.gson.JsonNull cannot be cast to class com.google.gson.JsonObject (com.google.gson.JsonNull and com.google.gson.JsonObject are in unnamed module of loader 'app')
at HttpClientUtil.main(HttpClientUtil.java:420)
Process finished with exit code 1
请用api验证下能否正确返回,api地址:http://****/x_organization_assemble_authentication/jest/index.html
通过getEncrypt和postLogin进行单点:
启蒙星 发表于 2023-3-16 10:30
请用api验证下能否正确返回,api地址:http://****/x_organization_assemble_authentication/jest/index.ht ...
我看了一下表CTE_PROMPTERRORLOG中的日志,提示“无效token, client:erp, token:TYqHOZc_cboEcSFa4PeCmA.”
token怎么会无效呢?怎么才能得到正确的token呢? 我又试了一下,居然成功了,非常感谢。 :handshake
页:
[1]