New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Java 8 #96
Comments
Isn't the update of EPPIC to Java 8 independent of the libraries? I mean EPPIC can be in 8 whilst the libraries can still be 7. |
We can try it, but I think that all the reflection that happens in GWT might mean that eppic-wui would actually not work with GWT<2.8. That's certainly easy enough to test. |
Alright I've tried it out and all works! So I've pushed the commit and a build on dev server. I've also upgraded the java jdk to 8 in both dev and production servers. We should check if some of the libraries can be updated to newer versions now that we are on 8. |
So there seems to be an issue with current hibernate version and java 8. The entity manager is currently broken. We need to upgrade hibernate-entitymanager and perhaps other dependencies. The issue while running a script in dbtools:
A related SO thread: |
Now fixed by upgrading hibernate to latest 4 version. I'm still playing with upgrading to 5. |
I've finally managed to upgrade to hibernate 5 (just merged the branch into master), so now we are in latest and greatest hibernate version. |
Awesome, @josemduarte. Do I need to do anything to migrate my local database, or does this happen automatically? |
The migration should be automatic. It is controlled by a setting in the persistence.xml file. At the moment it is set to Hibernate 5 has some more foreign key constraints in the tables so it does need to update those. In the full database in dev server, that took quite a while but in a smaller db it should be pretty fast. |
I'm going to reopen this issue since we can't actually use Java 8 methods in the WUI currently. For this, we need to move to GWT 2.8 and GXT 4.0. I've started a gwt2.8 branch to work on this. Getting the java to compile was fairly straightforward, but I can't get the java to js working yet. It's possible there are still bugs due to the beta. |
Is GXT 4.0 available in maven central? I couldn't find it |
@josemduarte It's not on maven central, but Sencha host a repo for it. I seem to have forgotten to check in that file originally. The branch should compile now. |
Cool thanks! Actually I've just checked out branch gwt2.8 and it compiled without problems. I haven't tried running it though. |
I had it running on dev for a while today. It compiles fully, but the pages fail to load. I see one additional javascript error relative to the master branch (some variable is null/undefined), but I haven't been able to debug it. GWT 2.8 is supposed to be much easier to debug, so I'll have to try setting up the embedded mode. If you try to debug it yourself, I recommend the following modifications. It would be good to set up a dev maven profile for these options:
|
That is supposedly the theory, if I understand they introduced the SuperDev mode that makes things easier. A year ago or so we tried to set it up (with 2.7) but we never managed. Perhaps it got easier now. In any case it would be fantastic to have some debugging capabilities for the client code, for the last year we've had to live without a debug mode. |
How important is it to use BioJava 5? Can we postpone upgrading until 3.1, given these problems? |
I don't think using BioJava 5 is urgent. Plus it would require a lot of refactoring due to the new protein structure data model. Definitely let's leave BioJava 5 for 3.1. |
It would be nice to switch EPPIC to Java 8. This can't happen quite yet, but I wanted to start an issue to track progress.
Dependency support:
The text was updated successfully, but these errors were encountered: