[JAVA-1283] java.lang.IllegalAccessError on redeployment using async driver Created: 17/Jun/14 Updated: 14/Oct/17 Resolved: 29/Sep/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Async |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Steve Hummingbird | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Java(TM) SE Runtime Environment (build 1.8.0_05-b13) |
||
| Attachments: |
|
| Description |
|
I have a groovy class, which runs in vert.x that makes use of the java driver:
In case vert.x redeploys the module containing this class I see the following exception:
I have not seen this error when using the synchronous driver. It only showed up when using the async driver. |
| Comments |
| Comment by Steve Hummingbird [ 14/Oct/17 ] | ||||||||||||||||||||||||||
|
I can confirm. Haven’t seen that issue for a while now. Thanks. | ||||||||||||||||||||||||||
| Comment by Ross Lawley [ 29/Sep/17 ] | ||||||||||||||||||||||||||
|
I was unable to replicate the error with the 3.0.0 driver, so this looks like it was fixed sometime before 3.0.0 was released. (I had to update the package locations etc when testing). I also tried using: https://github.com/vert-x3/vertx-gradle-starter and witnessed it redeploying as expected on Vert.x 3.0. | ||||||||||||||||||||||||||
| Comment by Steve Hummingbird [ 19/Jun/14 ] | ||||||||||||||||||||||||||
|
Thanks Ross for providing a workaround. This makes development fluent again | ||||||||||||||||||||||||||
| Comment by Ross Lawley [ 19/Jun/14 ] | ||||||||||||||||||||||||||
|
Thanks Steve Hummingbird I'm looking into this now. We are hitting an issue with NIO that I'm investigating. If you use netty - by adding netty to the compile in your example and then run:
it reloads without issue. | ||||||||||||||||||||||||||
| Comment by Steve Hummingbird [ 19/Jun/14 ] | ||||||||||||||||||||||||||
|
Also adding a minimal example in Java 8, which does nothing except loading the driver and connecting the a database. Steps to reproduce are similar, but needs a compile within the IDE first.
| ||||||||||||||||||||||||||
| Comment by Steve Hummingbird [ 17/Jun/14 ] | ||||||||||||||||||||||||||
|
I created a small example of how I am using the driver. To reproduce:
|