GWT Development Mode in Eclipse leaving opening too many sessions - java

I've had this problem for a couple days now. After about an hour or two of running my GWT dev server without restarting it, my "Development Mode" tab is showing many sessions remaining open. Open or at least it's showing them as active. I've seen as much as 8. When this is happening Eclipse runs very sluggish, and my application runs extremely slow (mostly the front end). I'm doing lots of browser refreshes and server reloads but nothing like opening 2nd browsers or running multiple tabs. The only way to close these sessions is to do stop my server and start it again. Before a few days ago, it seemed to only keep one open or maybe two sometimes. I'd never seen three unless I had multiple tabs or browsers running dev mode.
After talking to my two co-workers, who use pretty much the same environment as me. One of them has always has this issue, and for years has just been periodically restarting his server every couple hours to fix it. The other's works fine.
I'm running FF.
Our GWT application only has one module.
Does anybody know how to remedy this or how to limit the # of sessions? I haven't made any config changes to eclipse or changed any preferences that I'm aware recently that would have caused this. Thanks.

This is unfortunately a known issue with Firefox:
https://code.google.com/p/google-web-toolkit/issues/detail?id=7648

Related

Java Applets broken on different IE versions 8+ but was working a while ago?

We have a signed applet that was working for a long period of time, but last week some of our clients using IE 8 + 9 started to complain that the functions exposed by our applet aren't working anymore which we verified on-spot and on our testing machines. We are a bit confused as each time we come up with a possible root-cause, we go and test it on the client machine and it it turns to be not the one.
Has anyone observed that Applets stopped to work lately on IE8+ in the last couple of weeks due to one of the following reasons:
A Microsoft update.
A Java update. (The current one we are using is
Java8u45)
Many thanks in advance :)
*** Update: Some users reported the issue on Chrome now too and there are no signs that the page is loading the applet at all.
Its Mainly the security issue by Java 8, Which is not allowing now to display or load the self signed Applets on browser. Please open configure java in settings and in security TAB put the URL of the html page which is using applet in Exception Site List
This should work for for. :)
We ended-up creating a stand-alone Java application that the browser talks to using XHR calls with CORS enabled. This way we came to a state where the printing logic is always loaded and ready to respond to requests coming from pages. Also, bringing out the applet from running as a browser extension/plugin to a stand-alone application means there no need to initialise the applet on each reload which yields better performance and user experience.
Thanks everyone for your replies.

View remote Tomcat logs in Eclipse Console

I am experimenting with a combination of Vagrant+VirtualBox+JRebel+Eclipse+Tomcat to develop a Java Servlet application. My Tomcat instance runs in a VirtualBox VM, which for Eclipse purposes means it is a remote server. I was able to get hot deploying (JRebel) and debug mode working.
I haven't yet found a good way to get the logs to show up in Eclipse, though. Ideally, I'd like something very similar to the Console view that Eclipse/WTP gives for local Tomcat instances. Some features I like:
Lines in stack traces are clickable, taking me right to the source file
Easily searchable
Highlighting (errors show up in red)
Shows up right in my IDE
Can be cleared when I'm sick of seeing too much
The first two features (clickable and searchable) are the most important to me. Does anyone know of a plugin or separate app that can accomplish this?
LogViewer appears to be abandoned (and possibly non-functional in current Eclipse versions), and JLV doesn't appear to have clickable source lines.
NTail might do the job. It hasn't been updated since 2010, but it seems to work on Eclipse Luna.

Oracle Forms running on java 6 Update 45

I have one program, I maintain, that was originally written in Oracle Forms 6i. A while ago I migrated it to 11g. Our users access this Oracle Forms program through their Internet Explorer browser on their Windows 7 machines.
The problem has been that the program only seems to run well for our users, when they have Java 6 Update 45, installed on their machines. Going to a newer version causes problems.
Today, I wanted to get this resolved, so I updated my PC to Java 8.31, and attempted to access my Oracle forms program using IE. (Thanks to Viewing oracle app and getting: java.lang.ClassNotFoundException: oracle.forms.engine.Main I was able to get the form running again in my web browser.)
When my form ran, I found the tab key wouldn't advance to the next field on the login dialogue box. But after I logged in the tab key worked. (The tab key initially not working is a small thing, but it has really annoyed some of our users.)
I then used several different forms. Some worked just fine, no problems. But then when I clicked a button, on one form, it would endlessly try to complete a request; to the point that I couldn't even close the web browser to stop it. (Finally I just used task manager to end my web browser’s process.) This seemed to go in line with what some of our users have reported: (when attempting to use the latest Java) that the Oracle forms application just stops working completely after a while.
Because of these issues our users want to keep Java 6 Update 45 on their machines. I know this is a major security hole, but I haven’t quite nailed down what the solution to it is.
Has anyone else had a similar issue? We're running Oracle Fusion Middleware 11; specifically Forms Services version 11.1.2.0.0
Thanks.
Well this may not be a question that needs answering after all.
I've done some more testing since asking this. Besides the login dialogue box (not responding, as it should, to the tab key) everything else works just as it should.
I still have one form that hangs; but that’s all (and it may be caused by something else). All my other forms seem to work just fine.
I talked with one of my co-workers, and I realized we really need to investigate and determine what version of Java our users really are using. They may not have used the most recent version of Java; which I used with success, today. Or some may be already on it; and that's why they aren't complaining.
At any rate more research, is needed on my part. Thanks to all who read this. If any of you have had similar experience in something like this, still feel welcome to answer/comment.

IntelliJ productivity tips running tomcat

I'm developing using IntelliJ 11u on a spring mvc application using tomcat.
I tried the maven jetty plugin, but after a few builds I keep getting java permGen issues and then it just hangs. I was told this was because spring uses log4j and it has some sort of leaks?
Anyhow, I'm asking for tips to help fire up a server, tomcat, with my updated code so I can make quick updates and have tomcat reloaded.
Here are my current annoyances with tomcat:
Only code changes seem to get auto-reloaded, if I make changes to my view pages things don't get updated unless I redeploy. The maven jetty plugin seems to map to my view pages directly and I saw updates to my view pages instantly w/o it even redeploying.
if I have more than 1 thing running in intelliJ, like say I have a main program that I run, or a unit test, IntelliJ seems to re-order what gets run in the run drop down menu and also the shortcut keys get changed to the last thing I ran.
I use google chrome, for some reason when I start tomcat it brings firefox to the forefront and opens a new tab each and every time.
If someone can address any or all of the above issues that would be great as I hate this dance I have to go through just to update/redeploy my application. I wish it could just be a consitant method, using shortcuts or automatically without me having to close the tab created in firefox, and then minimizie it, or redploy for a simple view change etc.
You should configure IDEA to update classes and resources and enable a checkbox in the Run configuration to do it automatically on frame deactivation.
Browser can be changed in IDEA settings and you can disable opening browser at all in Tomcat Run/Debug configuration.
As for the Run panel tabs order, you can pin tabs using the tab right click menu, in this case they will remain in the Run or Debug panel in the order they were created.
Look at JRebel if you want an even more productive environment (It costs, but I find it is worth it). As you can see here, http://zeroturnaround.com/jrebel/features/, it increases the types of changes you can hot-swap (no waiting for a build). I am currently evaluating it myself and will probably pick up a full license.
BTW, if you develop in scala (it looks like you're not, but just in case) the plugin is free.

How can IE lose contact with its Java plugin?

I have a number of users who complain of a problem with an applet what I wrote. Mostly it works fine then one day it stops working. Checking the settings shows that no Java plugin is available. Once the plugin is reenabled and the browser restarted then the applet works again. I have also observed that the settings show that no plugin is enabled but following a browser restart the plugin is reenabled (without intervention of any kind) and the applet works.
Anyone have ideas how the plugin might get disabled? This has also happened to me so I can be fairly sure that the users aren't fiddling with their settings.
The installations are a mix of IE7/8 and Java 1.5/1.6.
UPDATE
I'm not 100% sure about this but it seems to me that the problem occurs when another applet is running. Many users have IBM HOD and I'm wondering if there could be some kind of clash

Categories

Resources