I have sent email with logs and screenshots.
Reply To: JRebel, IntelliJ and proxy problem
JRebel maven cargo Tomcat 8 remote debug
Hello,
When starting up tomcat 8 through the maven cargo plugin with the parameter:
-Dcargo.jvmargs=”-agentpath:/home/sknierim/Programme/jrebel/lib/libjrebel64.so”
Tomcat stops listening on the debug port, so I am not able to have jrebel running and do a remote debuging with intellij.
When running without jrebel i can see the line:
[INFO] [talledLocalContainer] Listening for transport dt_socket at address: 8050
showing up in my terminal and debuging works fine. This line is missing when starting up with jrebel.
I just updated to jrebel 7 but did have the same issues with version 6.4.1. I did not experience those problems with tomcat 6.
Simon
Reply To: JRebel maven cargo Tomcat 8 remote debug
Hi
Do you have the debugger arguments set in pom.xml for the cargo plugin?
Specifying the command line argument -Dcargo.jvmargs overrides anything set in pom.xml so it would explain why the debugger arguments get removed.
Either set both debugger and jrebel in pom.xml or via command line.
jrebel agent in dockerized alpine container
Hey,
Recently we’ve been playing around with docker in dev environment and have a problem with the native jrebel agent.
Most of our docker images are based on alpine openjdk base images and when i attach the jrebel agent to java in one of these it fails with an error like this:
Error occurred during initialization of VM
Could not find agent library /data/jrebel/lib/libjrebel64.so in absolute path, with error: Error relocating /data/jrebel/lib/libjrebel64.so: __vfprintf_chk: symbol not found
Same image without jrebel or even with the legacy agent works fine (at least on 6.x, haven’t tried the 7.0 legacy agent yet). Just the native agent fails.
Feedback JRebel 7 Intellij
Hi!
I saw that the update log mentioned a fix where JRebel should now handle the “no-proxy” field in the IntelliJ proxy settings correctly. It seems that it only does this if the no-proxy field contains exactly one entry, which does not really work for my use case as I need to have multiple hosts in there.
Also, I am not sure if wildcards work as they should.
Otherwise everything has been smooth so far.
Thanks!
Reply To: REST calls slow when using JRebel
Hi Mattias,
I’m Risto, one of the engineers here at ZeroTurnaround. How are you today?
Some overhead is to be expected when using JRebel. Can you specify how much time did the REST and SOAP calls took with and without JRebel?
Could you please send us your trace and performance level jrebel.log file to support@zeroturnaround.com? To generate it just add -Drebel.log=trace -Drebel.log.perf=true -Drebel.log.dump_stack_traces=10 to your VM arguments, restart your server and reproduce the issue. You can find the instructions on how to generate this file here http://manuals.zeroturnaround.com/jrebel/misc/sendinglogs.html
When we receive it we will be able to look into the problem you are having.
Regards,
Risto
Reply To: Feedback JRebel 7 Intellij
Hello,
It seems that we may have some issues with our current IntelliJ proxy integration. We are reviewing this use case to determine what exactly is going on. We will let you know when we know more.
Colton
Reply To: jrebel agent in dockerized alpine container
Hello Toomas!
Thank you a lot for reporting this issue, feedback on the new release is our priority now :) Could you please give us a bit more description on your environment (like, Docker version, Java etc) so we can reproduce this on our side and provide you with the fix?
Kind regards,
Valerie
Reloading a Spring Controller not working properly on 7.0
Consider I have this:
@Controller
@Scope("request")
class TicketRelationshipController {
@PostMapping("/ticket-relationship")
def ticketRelationShipSearch(@ModelAttribute("type") String type,
@ModelAttribute("openDate1") String openDate1,
@ModelAttribute("openDate2") String openDate2,
Model model) {
println("something")
(...irrelevant code...)
}
}
I get the expected output:
something
Now I changed the code to:
println(“something new!”)
JRebel reloads it:
2016-11-16 13:15:58 JRebel: Reloading class 'com.ultraip.intranet.thymeleaf.TicketRelationshipController'.
2016-11-16 13:15:58 JRebel: Reinitialized class 'com.ultraip.intranet.thymeleaf.TicketRelationshipController$$EnhancerBySpringCGLIB$$2e9ccb9a'.
But then I lose the controller completely and receive a 404 error…
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Nov 16 13:16:47 BRST 2016
There was an unexpected error (type=Not Found, status=404).
No message available
2016-11-16 13:16:46 JRebel: Reconfiguring bean 'ticketRelationshipController' [com.ultraip.intranet.thymeleaf.TicketRelationshipController$$EnhancerBySpringCGLIB$$2e9ccb9a]
2016-11-16 13:16:46 JRebel: Reconfiguring bean 'ticketRelationshipController' [com.ultraip.intranet.thymeleaf.TicketRelationshipController$$EnhancerBySpringCGLIB$$2e9ccb9a]
2016-11-16 13:16:46 JRebel: Reconfiguring bean 'ticketRelationshipController' [com.ultraip.intranet.thymeleaf.TicketRelationshipController$$EnhancerBySpringCGLIB$$2e9ccb9a]
2016-11-16 13:16:46 JRebel: Reconfiguring bean 'ticketRelationshipController' [com.ultraip.intranet.thymeleaf.TicketRelationshipController$$EnhancerBySpringCGLIB$$2e9ccb9a]
This started today as I upgraded to JRebel 7.
-
This topic was modified 16 hours, 46 minutes ago by
Marcelus Trojahn.
Reply To: Reloading a Spring Controller not working properly on 7.0
I just did the same test using the legacy agent and it works properly.
Reply To: Reloading a Spring Controller not working properly on 7.0
Well, not really… It fails randomly.
Reply To: Reloading a Spring Controller not working properly on 7.0
Hello Marcelus!
Thanks a lot for the issue description and tests made! Could you please send your trace level jrebel.log file after reproducing the issue to support@zeroturnaround.com with the link to this forum topic? To generate it just add -Drebel.log=trace
to your VM arguments, restart your server and reproduce the issue.
Please also specify what is your environment – what IDE, server (local or remote?), any additional software and its version do you use?
This information will allow us to repdroduce the fallback precisely and provide you with the fix!
Kind regards,
Valerie
jrebel 404 for index.yml
I am trying to build a java-buildpack with bundle exec rake PINNED=true OFFLINE=true
…but it throws:
WARN Unable to download https://dl.zeroturnaround.com/jrebel/index.yml into cache build/staging/resources/cache: 404 Not Found
The file does, in fact, not appear to be there. Was this moved? Do I need to grab a later version of the java buildpack from github.com, or is this something I was meant to ignore but jrebel will work?
Reply To: jrebel 404 for index.yml
Hi
Sorry for that. We had a small configuration issue on our end, causing the index.yml file to be unreachable for a short period of time.
It should be available again now.
/Michael
Reply To: REST calls slow when using JRebel
Tere Risto,
Did some measurements yesterday, we are seeing that the REST calls are at least 6 times slower with JRebel (from ~40 ms without, to 260+ ms with JRebel).
I have sent jrebel.log to the support inbox.
Thanks,
Mattias
Reply To: Reloading a Spring Controller not working properly on 7.0
Sent it. Thanks for the help.
For now, 6.5.2 still works as expected so I’m downgrading. If there’s anything else I can help, feel free to ask.
Reply To: jrebel agent in dockerized alpine container
Hi,
We have reproduced and fixed the error when running jrebel native library on alpine linux images. The fix is available in the nightly build that you can download from here: https://zeroturnaround.com/software/jrebel/download/nightly-build/
Reply To: IDEA Optimizer Feedback
I have exactly the same problem as Migash.
I click to optimoize the JVM options (memory and switch to server JVM)
Disable class verification
I click on restart
the Optimized dialog comes (as it should), but none of the changes chosen bedore were applied.
If at least I would tell me how and where to make the changes, perhaps I could apply them manually. There is no log either
Andorid Data Binding custom attribute problem
Hi. I have problem with building app that use Android Data Binding. Only full clean of project can help me. Problem isn’t stable, ant I can’t reproduce it. But it occures very offen.
The 2nd problem is that JRebel can’t build project that have binding adapter without xmlns prefix. Android Studio doesn’t require they and ignore they at all.
JRebel vaadin css files
Hi,
We have a trial licence to see if JRebel could help us in development of our application.
The main technologies we use are maven, Osgi, Vaadin, felix.
I have used the maven plugin to generate all the rebel.xml files and added the Jrebel dll to the agentpath of the felix startup command.
Class compiling and reloading works, which is great, but we have a problem with css files.
If the cache is cleared, the application does not load properly. I have looked in chrome network log to see what is wrong, and it looks like the main styles.css file is loaded with a wrong content-type header. Without JRebel it is Content-Type:text/css, with JRebel activated it is Content-Type:content/unknown.
The content is “@import url(“../csf/styles.css”);”
Does anyone have any idea how to fix this?