萝卜白菜。 2021-06-01 08:36 采纳率: 100%
浏览 167
已结题

TongWeb报错java.lang.SecurityException

查看TongWeb的端口状态close_wait过多,且日志中有如下异常。

Exception in thread "InnocuousThread-25" java.lang.SecurityException: setContextClassLoader]
    at sun.misc.InnocuousThread.setContextClassLoader(InnocuousThread.java:96)]
    at com.tongweb.web.util.security.PrivilegedSetTccl.run(PrivilegedSetTccl.java:31)]
    at com.tongweb.web.util.security.PrivilegedSetTccl.run(PrivilegedSetTccl.java:21)]
    at java.security.AccessController.doPrivileged(Native Method)]
    at com.tongweb.web.util.threads.TaskThreadFactory.newThread(TaskThreadFactory.java:66)]
    at com.tongweb.web.util.threads.TWThreadPoolExecutor$Worker.<init>(TWThreadPoolExecutor.java:622)]
    at com.tongweb.web.util.threads.TWThreadPoolExecutor.addWorker(TWThreadPoolExecutor.java:950)]
    at com.tongweb.web.util.threads.TWThreadPoolExecutor.execute(TWThreadPoolExecutor.java:1406)]
    at com.tongweb.web.util.threads.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:163)]
    at com.tongweb.web.util.threads.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:141)]
    at sun.nio.ch.AsynchronousChannelGroupImpl.executeOnPooledThread(AsynchronousChannelGroupImpl.java:188)]
    at sun.nio.ch.Invoker.invokeIndirectly(Invoker.java:212)]
    at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:434)]
    at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191)]
    at sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)]
    at sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:293)]
    at java.lang.Thread.run(Thread.java:748)]

  • 写回答

1条回答 默认 最新

  • 萝卜白菜。 2021-06-01 08:39
    关注

    当TongWeb7.0.4.3及之前版本  http通道为NIO2方式,且TongWeb增加了 -Djava.security.manager=com.tongweb.checkcode.CheckSystemExitSecurityManager参数,就会引发此问题。解决办法选其一:

    方式一. 将NIO2改为BIO模式。

    方式二:若确保没有System,exit代码,则去掉 -Djava.security.manager=com.tongweb.checkcode.CheckSystemExitSecurityManager参数

    方式三:升级到TongWeb7.0.4.3之后的版本。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 1月16日

悬赏问题

  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私