简体   繁体   English

JRebel 6.4.6插件在IDEA 16和Tomcat 9中不起作用

[英]JRebel 6.4.6 plugin didn't work in IDEA 16 and Tomcat 9

I downloaded jrebel plugin in IDEA 16 and got a license. 我在IDEA 16中下载了jrebel插件并获得了许可证。 When I run my application with "jrebel run" button, I got the following output: 当我使用“ jrebel run”按钮运行应用程序时,得到以下输出:

2016-07-07 13:40:18 JRebel:  
2016-07-07 13:40:18 JRebel:  #############################################################
2016-07-07 13:40:18 JRebel:  
2016-07-07 13:40:18 JRebel:  JRebel Agent 6.4.6 (201606221135)
2016-07-07 13:40:18 JRebel:  (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
2016-07-07 13:40:18 JRebel:  
2016-07-07 13:40:18 JRebel:  Over the last 1 days JRebel prevented
2016-07-07 13:40:18 JRebel:  at least 0 redeploys/restarts saving you about 0 hours.
2016-07-07 13:40:18 JRebel:  
2016-07-07 13:40:18 JRebel:  License acquired from License Server: http://xxxxx.xxx.xxx
2016-07-07 13:40:18 JRebel:  
2016-07-07 13:40:18 JRebel:  Licensed to xxx.
2016-07-07 13:40:18 JRebel:  
2016-07-07 13:40:18 JRebel:  
2016-07-07 13:40:18 JRebel:  #############################################################
2016-07-07 13:40:18 JRebel:  

and this 和这个

2016-07-07 13:40:20 JRebel: Directory 'E:\IdeaProjects\baobiao\target\classes' will be monitored for changes.
2016-07-07 13:40:20 JRebel: Directory 'E:\IdeaProjects\baobiao\src\main\webapp' will be monitored for changes.

but when I test modify a spring requestmapping annotation, it didn't work. 但是当我测试修改spring requestmapping注释时,它不起作用。 The server output didn't show "JRebel: reloading class ..." word. 服务器输出未显示“ JRebel:正在重新加载类...”字样。 So I opened the jrebel.log and there was an error in it: 所以我打开了jrebel.log,里面有一个错误:

2016-07-07 13:40:34.737 INFO  [13] [Licensing] Trying licenseServer licensing ..
2016-07-07 13:40:34.737 DEBUG [13] [Licensing] greedy: true, forStatusCheck: false
2016-07-07 13:40:34.737 DEBUG [13] [Licensing-LS] No offline lease found from local storage
2016-07-07 13:40:34.737 INFO  [13] [Licensing-LS] Contacting license server
2016-07-07 13:40:34.737 INFO  [13] [Licensing-LS] doAcquireLease to http://xxx.xxxxx.xxx ..
2016-07-07 13:40:34.809 DEBUG [13] [Licensing-LS] License server protocol 1.0+.
2016-07-07 13:40:34.809 INFO  [13] [Licensing-LS] License registered to xxx. License type: LS_MANAGED, LS version: 3.1.3, LS guid: null
2016-07-07 13:40:34.811 DEBUG [13] [Licensing-LS] License orderId , zero-ids: []
2016-07-07 13:40:34.813 INFO  [13] [Licensing-LS] Lease successfully acquired. Lease: com.zeroturnaround.javarebel.gv@2b2b7dd7[leaseId=1,offline=false,clientRandomness=dFyq4vacuNQ=,serverRandomness=H2ulzLlh7E0=,validFrom=Thu Jul 07 13:40:34 CST 2016,validUntil=Thu Jul 07 14:40:34 CST 2016]
2016-07-07 13:40:34.813 INFO  [13] [Licensing-LS] Trying to acquire the failover URL ..
2016-07-07 13:40:34.878 DEBUG [13] [Licensing-LS] License Server failover not configured.
2016-07-07 13:40:34.880 ERROR [13] [Licensing] Exception occurred while initializing license server licensing: java.lang.IllegalThreadStateException
    at java.lang.Thread.start(Thread.java:705)
    at com.zeroturnaround.javarebel.gw.d(SourceFile:420)
    at com.zeroturnaround.javarebel.gw.a(SourceFile:92)
    at com.zeroturnaround.javarebel.iq.a(SourceFile:95)
    at com.zeroturnaround.javarebel.iq.a(SourceFile:57)
    at com.zeroturnaround.javarebel.in.a(SourceFile:79)
    at com.zeroturnaround.javarebel.SDKLicensingImpl.findAndValidateLicenseFromSource(SourceFile:543)
    at com.zeroturnaround.javarebel.SDKLicensingImpl.getLicenseInfo(SourceFile:73)
    at com.zeroturnaround.javarebel.or.getLicenceInfo(SourceFile:46)
    at org.zeroturnaround.javarebel.reporting.MixpanelMetrics$3.build(SourceFile:133)
    at org.zeroturnaround.javarebel.reporting.MixpanelMetrics$12.run(SourceFile:256)
    at org.zeroturnaround.javarebel.reporting.MetricsExecutor.run(SourceFile:58)
    at java.lang.Thread.run(Thread.java:745)

I have googled this question for a long time and still have no idea about it, is there anyone can help? 我已经在这个问题上搜索了很长时间,但仍然对此一无所知,有没有人可以帮助您? Thanks very much! 非常感谢!

Temporary workaround would be to take offline lease , but to troubleshoot why did the exception occur, send trace-level jrebel.log (add -Drebel.log=trace to server JVM arguments) to support@zeroturnaround.com along with link to this thread. 临时解决方法是采用脱机租赁 ,但是要解决异常发生的原因,请将跟踪级jrebel.log (将-Drebel.log=trace添加到服务器JVM参数)发送到support@zeroturnaround.com并附带此线程的链接。 See manual if you have any questions about logs. 如果您对日志有任何疑问,请参见手册

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM