JRebel not working at JBoss EAP 6.4.11

ZeroTurnaround Homepage Forums JRebel Support JRebel not working at JBoss EAP 6.4.11

This topic contains 1 reply, has 3 voices, and was last updated by  rfrank 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #60262

    folesen
    Member

    We have been using JRebel at JBoss EAP 6.4.6 for a while, which has been working fine. No we have upgraded to JBoss EAP 6.4.11 and JRebel stopped working. We are using JRebel version 6.3.2 at a Eclipse Neon.1 platform. BTW, we are using jdk 1.8.

    The problem is as follows. I have two EJBs inside a single EJB module (inside an EAR). The first EJB (named First) uses @EJB for getting a reference to the other EJB (named Second). After the application is deployed everything works – the first EJB can invoke methods at the second EJB. If I modify the first EJB (and JRebel redeploys), it is no longer able to invoke the second EJB. Actually, it fails when injecting the second EJB at the first EJB (I believe):

    25-10-2016 14:32:49,876 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (http-127.0.0.1:8080-1) JNDI bindings for session bean named First in deployment unit subdeployment “jb0278-simple-ear.ejb.jar” of deployment “jb0278-simple-ear.ear” are as follows:
    java:global/jb0278-simple-ear/jb0278-simple-ear.ejb/First!dk.jyskebank.jb0278.simple.First
    java:app/jb0278-simple-ear.ejb/First!dk.jyskebank.jb0278.simple.First
    java:module/First!dk.jyskebank.jb0278.simple.First
    java:global/jb0278-simple-ear/jb0278-simple-ear.ejb/First
    java:app/jb0278-simple-ear.ejb/First
    java:module/First
    b85f7ce9-2b53-4e8b-9dc6-e554f11c16b9
    25-10-2016 14:32:50,004 ERROR [dk.jyskebank.jb0278.simple.Tester] (http-127.0.0.1:8080-1) Failure during test: java.lang.IllegalStateException
    at org.jboss.msc.value.InjectedValue.getValue(InjectedValue.java:47) [jboss-msc-1.1.6.Final-redhat-1.jar:1.1.6.Final-redhat-1]
    at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory.create(ManagedReferenceFieldInjectionInterceptorFactory.java:59) [jboss-as-ee-7.5.11.Final-redhat-1.jar:7.5.11.Final-redhat-1]
    at org.jboss.as.ee.component.AbstractComponentConfigurator$1.create(AbstractComponentConfigurator.java:39) [jboss-as-ee-7.5.11.Final-redhat-1.jar:7.5.11.Final-redhat-1]
    at org.jboss.invocation.ChainedInterceptorFactory.create(ChainedInterceptorFactory.java:52) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]
    at org.jboss.as.ee.component.BasicComponent.createInterceptors(BasicComponent.java:235) [jboss-as-ee-7.5.11.Final-redhat-1.jar:7.5.11.Final-redhat-1]
    at org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java) [jboss-as-ee-7.5.11.Final-redhat-1.jar:7.5.11.Final-redhat-1]
    at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:184) [jboss-as-ee-7.5.11.Final-redhat-1.jar:7.5.11.Final-redhat-1]
    at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185) [jboss-as-ee-7.5.11.Final-redhat-1.jar:7.5.11.Final-redhat-1]
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]
    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.3.Final-redhat-1.jar:1.1.3.Final-redhat-1]
    at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73) [jboss-as-ee-7.5.11.Final-redhat-1.jar:7.5.11.Final-redhat-1]
    at dk.jyskebank.jb0278.simple.First$$$view2.test(Unknown Source) [:]
    at dk.jyskebank.jb0278.simple.Tester.doGet(Tester.java:29) [classes:]

    Furthermore, the jrebel log contains an error which is generated when JRebel is redeploying:

    2016-10-25 14:32:49.937 ERROR [71] [JBoss7-EJB] can’t re-run org.jboss.as.ejb3.deployment.processors.DeploymentRepositoryProcessor@7b9b7f9a: java.lang.UnsupportedOperationException
    at java.util.Collections$UnmodifiableMap.put(Unknown Source)
    at org.jboss.as.ejb3.deployment.processors.DeploymentRepositoryProcessor.deploy(DeploymentRepositoryProcessor.java:122)
    at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.invokeDeploy(ComponentInstallProcessor.java)
    at org.zeroturnaround.javarebel.jboss7.ejb.helpers.ejb.Jboss7EjbReloader.runDeployProcessors(Jboss7EjbReloader.java:198)
    at org.zeroturnaround.javarebel.jboss7.ejb.helpers.ejb.Jboss7EjbReloader.doReload(Jboss7EjbReloader.java:170)
    at org.zeroturnaround.javarebel.jboss7.ejb.helpers.ejb.Jboss7EjbReloader.reloadEJB(Jboss7EjbReloader.java:139)
    at org.zeroturnaround.javarebel.jboss7.ejb.helpers.ejb.Jboss7EjbReloader.reload(Jboss7EjbReloader.java:112)
    at org.zeroturnaround.javarebel.jboss7.ejb.helpers.ejb.EjbRequesListener.rawRequest(EjbRequesListener.java:11)
    at com.zeroturnaround.javarebel.M.a(JRebel:67)
    at com.zeroturnaround.javarebel.M.fireRawRequest(JRebel:48)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:656)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
    at java.lang.Thread.run(Unknown Source)

    Since JBoss EAP 6.4.11 is quite new, I would like to know, if anyone has tried JRebel together with this JBoss version?

    Looking forward to hear from you.
    Regards, Fin Steenbjerg

    #61752

    rfrank
    Member

    We have the folowing problem with JBoss EAP 6.4.13
    09:56:10,295 ERROR [stderr] (MSC service thread 1-8) 2017-02-20 09:56:10 JRebel: ERROR Class ‘org.jboss.as.ee.component.BasicComponentCreateService’ could not be processed by org.zeroturnaround.javarebel.jboss7.base.cbp.BasicComponentCreateServiceCBP@sun.misc.Launcher$AppClassLoader@18b4aac2: org.zeroturnaround.bundled.javassist.CannotCompileException: [source error] cannot find constructor org.jboss.as.ee.component.ComponentConfiguration(org.jboss.as.ee.component.ComponentDescription,org.jboss.as.server.deployment.reflect.ClassIndex,java.lang.ClassLoader)

    • This reply was modified 4 months ago by  rfrank.
    #61756

    Tiit Oja
    Rebel Staff

    Hello Frank,

    The CannotCompileException with JBoss EAP 6.4.13 has been fixed in the latest nightly build.
    Please find the download for this build at the following link:
    https://zeroturnaround.com/software/jrebel/download/nightly-build/

    Please let us know whether this issue has been resolved for you in the latest nightly build.

    All the best,
    Tiit

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.