Jrebel с режимом отладки не может обновить класс - PullRequest
0 голосов
/ 17 октября 2019

Я начал проект в режиме отладки jrebel. Когда я обновляю класс, jrebel выдает следующее исключение журнала. Несмотря на то, что я не внес никаких изменений в класс, я просто добавил пробел. Это нормально, чтобы начать в режиме запуска.

15:01:45,667 ERROR [STDERR] 2019-10-17 15:01:45 JRebel: ERROR Failed to transform class com/whir/rd/entryinvoice/actionsupport/InvoiceAction: java.lang.NoSuchMethodError: a
    at com.zeroturnaround.javarebel.flw.a(SourceFile:106)
    at com.zeroturnaround.javarebel.flw.doTransform(SourceFile:70)
    at com.zeroturnaround.javarebel.flw.transform(SourceFile:57)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.applyTransformation(SourceFile:78)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.transform(SourceFile:70)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClassesImpl(Native Method)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClasses(SourceFile:149)
    at com.zeroturnaround.javarebel.flv.a(SourceFile:106)
    at com.zeroturnaround.javarebel.fkr.a(SourceFile:704)
    at com.zeroturnaround.reload.al.d(SourceFile:588)
    at com.zeroturnaround.reload.al.b(SourceFile:532)
    at com.zeroturnaround.reload.al.a(SourceFile:74)
    at com.zeroturnaround.reload.ao.a(SourceFile:833)
    at com.zeroturnaround.reload.ao.a(SourceFile:749)
    at com.zeroturnaround.reload.al.a(SourceFile:475)
    at com.zeroturnaround.reload.b.m(SourceFile:513)
    at com.zeroturnaround.reload.b.l(SourceFile:286)
    at com.zeroturnaround.reload.b.k(SourceFile:57)
    at com.zeroturnaround.reload.c.run(SourceFile:124)
15:01:45,738 ERROR [STDERR] 2019-10-17 15:01:45 JRebel: ERROR com.whir.rd.entryinvoice.actionsupport.InvoiceAction: java.lang.UnsupportedOperationException: JVMTI_ERROR_UNSUPPORTED_REDEFINITION_HIERARCHY_CHANGED
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClassesImpl(Native Method)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClasses(SourceFile:149)
    at com.zeroturnaround.javarebel.flv.a(SourceFile:106)
    at com.zeroturnaround.javarebel.fkr.a(SourceFile:703)
    at com.zeroturnaround.reload.al.d(SourceFile:588)
    at com.zeroturnaround.reload.al.b(SourceFile:530)
    at com.zeroturnaround.reload.al.a(SourceFile:74)
    at com.zeroturnaround.reload.ao.a(SourceFile:833)
    at com.zeroturnaround.reload.ao.a(SourceFile:749)
    at com.zeroturnaround.reload.al.a(SourceFile:474)
    at com.zeroturnaround.reload.b.m(SourceFile:513)
    at com.zeroturnaround.reload.b.l(SourceFile:284)
    at com.zeroturnaround.reload.b.k(SourceFile:57)
    at com.zeroturnaround.reload.c.run(SourceFile:123)
15:01:45,740 ERROR [STDERR] 2019-10-17 15:01:45 JRebel: ERROR Failed to transform class com/opensymphony/xwork2/ActionSupport: java.lang.NoSuchMethodError: a
    at com.zeroturnaround.javarebel.flw.a(SourceFile:106)
    at com.zeroturnaround.javarebel.flw.doTransform(SourceFile:70)
    at com.zeroturnaround.javarebel.flw.transform(SourceFile:57)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.applyTransformation(SourceFile:78)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.transform(SourceFile:70)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClassesImpl(Native Method)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClasses(SourceFile:149)
    at com.zeroturnaround.javarebel.flv.a(SourceFile:106)
    at com.zeroturnaround.javarebel.fkr.a(SourceFile:704)
    at com.zeroturnaround.reload.al.d(SourceFile:588)
    at com.zeroturnaround.reload.al.b(SourceFile:532)
    at com.zeroturnaround.reload.al.a(SourceFile:74)
    at com.zeroturnaround.reload.ao.a(SourceFile:833)
    at com.zeroturnaround.reload.ao.a(SourceFile:749)
    at com.zeroturnaround.reload.al.a(SourceFile:475)
    at com.zeroturnaround.reload.b.m(SourceFile:513)
    at com.zeroturnaround.reload.b.l(SourceFile:286)
    at com.zeroturnaround.reload.b.k(SourceFile:57)
    at com.zeroturnaround.reload.c.run(SourceFile:124)
15:01:45,777 ERROR [STDERR] 2019-10-17 15:01:45 JRebel: ERROR com.opensymphony.xwork2.ActionSupport: java.lang.UnsupportedOperationException: JVMTI_ERROR_UNSUPPORTED_REDEFINITION_HIERARCHY_CHANGED
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClassesImpl(Native Method)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClasses(SourceFile:149)
    at com.zeroturnaround.javarebel.flv.a(SourceFile:106)
    at com.zeroturnaround.javarebel.fkr.a(SourceFile:703)
    at com.zeroturnaround.reload.al.d(SourceFile:588)
    at com.zeroturnaround.reload.al.b(SourceFile:530)
    at com.zeroturnaround.reload.al.a(SourceFile:74)
    at com.zeroturnaround.reload.ao.a(SourceFile:833)
    at com.zeroturnaround.reload.ao.a(SourceFile:749)
    at com.zeroturnaround.reload.al.a(SourceFile:474)
    at com.zeroturnaround.reload.b.m(SourceFile:513)
    at com.zeroturnaround.reload.b.l(SourceFile:284)
    at com.zeroturnaround.reload.b.k(SourceFile:57)
    at com.zeroturnaround.reload.c.run(SourceFile:123)
15:01:45,779 ERROR [STDERR] 2019-10-17 15:01:45 JRebel: ERROR Failed to transform class com/whir/component/actionsupport/BaseActionSupport: java.lang.NoSuchMethodError: a
    at com.zeroturnaround.javarebel.flw.a(SourceFile:106)
    at com.zeroturnaround.javarebel.flw.doTransform(SourceFile:70)
    at com.zeroturnaround.javarebel.flw.transform(SourceFile:57)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.applyTransformation(SourceFile:78)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.transform(SourceFile:70)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClassesImpl(Native Method)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClasses(SourceFile:149)
    at com.zeroturnaround.javarebel.flv.a(SourceFile:106)
    at com.zeroturnaround.javarebel.fkr.a(SourceFile:704)
    at com.zeroturnaround.reload.al.d(SourceFile:588)
    at com.zeroturnaround.reload.al.b(SourceFile:532)
    at com.zeroturnaround.reload.al.a(SourceFile:74)
    at com.zeroturnaround.reload.ao.a(SourceFile:833)
    at com.zeroturnaround.reload.ao.a(SourceFile:749)
    at com.zeroturnaround.reload.al.a(SourceFile:475)
    at com.zeroturnaround.reload.b.m(SourceFile:513)
    at com.zeroturnaround.reload.b.l(SourceFile:286)
    at com.zeroturnaround.reload.b.k(SourceFile:57)
    at com.zeroturnaround.reload.c.run(SourceFile:124)
15:01:45,788 ERROR [STDERR] 2019-10-17 15:01:45 JRebel: ERROR com.whir.component.actionsupport.BaseActionSupport: java.lang.UnsupportedOperationException: JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_DELETED
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClassesImpl(Native Method)
    at com.zeroturnaround.reload.jvmti.MinimalInstrumentation.retransformClasses(SourceFile:149)
    at com.zeroturnaround.javarebel.flv.a(SourceFile:106)
    at com.zeroturnaround.javarebel.fkr.a(SourceFile:703)
    at com.zeroturnaround.reload.al.d(SourceFile:588)
    at com.zeroturnaround.reload.al.b(SourceFile:530)
    at com.zeroturnaround.reload.al.a(SourceFile:74)
    at com.zeroturnaround.reload.ao.a(SourceFile:833)
    at com.zeroturnaround.reload.ao.a(SourceFile:749)
    at com.zeroturnaround.reload.al.a(SourceFile:474)
    at com.zeroturnaround.reload.b.m(SourceFile:513)
    at com.zeroturnaround.reload.b.l(SourceFile:284)
    at com.zeroturnaround.reload.b.k(SourceFile:57)
    at com.zeroturnaround.reload.c.run(SourceFile:123)
15:01:45,847 INFO  [STDOUT] 2019-10-17 15:01:45 JRebel: Reloading class 'com.whir.rd.entryinvoice.actionsupport.InvoiceAction'.

Это меня очень смущает. Есть ли конфликт между jrebel и режимом отладки? Я использую последнюю версию jrebel, виртуальная машина oracle jrockit 1.6

Ответы [ 2 ]

0 голосов
/ 22 октября 2019

Да, JRebel должен работать с этими параметрами отладки. Я не уверен, почему вы получаете эти ошибки. Мне нужно было бы увидеть эти журналы, чтобы понять, что происходит.

Если вы хотите решить эту проблему, пришлите мне свои логи на support@jrebel.com, и я буду более чем рад помочь.

0 голосов
/ 17 октября 2019

Меня зовут Кертис Джонсон, и я инженер из команды JRebel в Perforce. Похоже, это какая-то ошибка в вашем приложении, которая может иметь или не иметь непосредственного отношения к JRebel. Вам лучше всего поработать с нашей службой поддержки для решения этой проблемы. Если вы можете отправить журнал JRebel ( инструкции здесь ) на support@jrebel.com, мы можем помочь вам с этой проблемой.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...