History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-5390
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Nikolay Chashnikov
Reporter: Jean-François Lozevis
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Provide an option to disable URL checking before opening browser

Created: 05 Jun 07 13:11   Updated: 15 Apr 08 10:39
Component/s: J2EE. Deployment and Run
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: WIndows XP IntelliJ Idea 6.0.2

Build: 6,107


 Description  « Hide
Now "open browser" launches Java JDK 1.5.0_08 as user agent.

The jsp is:
<%@ page import="java.util.Enumeration" %>
<!DOCTYPE html PUBLIC >
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%!
private int number = 0;
%>
<%
number++;
Enumeration en = request.getHeaderNames();
while (en.hasMoreElements()) { String headerName = (String) en.nextElement(); System.out.println("Header [" + headerName + "] = [" + request.getHeader(headerName) + ']'); }
System.out.println("method=" + request.getMethod());
System.out.println("number=" + number);
%>

In the run configuration we have in start browser:
http://localhost:8080/systran/essai.jsp
We use JBoss 4.0.2.

When I run the configuration the output is:
....
[2007-06-05 11:00:03,117] Module enterprise: Module is deployed successfully
11:00:05,129 INFO [STDOUT] Header [user-agent] = [Java/1.5.0_08]
11:00:05,129 INFO [STDOUT] Header [host] = [localhost:8080]
11:00:05,129 INFO [STDOUT] Header [accept] = [text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2]
11:00:05,129 INFO [STDOUT] Header [connection] = [keep-alive]
11:00:05,129 INFO [STDOUT] Header [content-type] = [application/x-www-form-urlencoded]
11:00:05,129 INFO [STDOUT] method=GET
11:00:05,129 INFO [STDOUT] number=1
11:00:06,065 INFO [STDOUT] Header [accept] = [*/*]
11:00:06,065 INFO [STDOUT] Header [accept-language] = [fr]
11:00:06,065 INFO [STDOUT] Header [ua-cpu] = [x86]
11:00:06,065 INFO [STDOUT] Header [accept-encoding] = [gzip, deflate]
11:00:06,065 INFO [STDOUT] Header [user-agent] = [Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)]
11:00:06,065 INFO [STDOUT] Header [host] = [localhost:8080]
11:00:06,065 INFO [STDOUT] Header [connection] = [Keep-Alive]
11:00:06,065 INFO [STDOUT] Header [cookie] = [systran_options=YnJ3c2lkPWQwMDdjN2FlMGE3ZmQ5N2ItNzk3NzBjNzEtMTEyODlmMzE1YjQtLTdmNjEKdXNlcmlkP...]
11:00:06,065 INFO [STDOUT] method=GET
11:00:06,065 INFO [STDOUT] number=2

It seems that IntelliJ runs a GET method before the good browser itself.

Regards, Jean-François Lozevis.



 All   Comments   Work Log   Change History      Sort Order:
Martin Fuhrer - 05 Jun 07 13:23
Is this with a local or a remote run configuration?

Jean-François Lozevis - 05 Jun 07 13:35
This is with a local configuration of JBoss.

Martin Fuhrer - 05 Jun 07 13:37
And how did you enable this detailed level of log output?

Jean-François Lozevis - 05 Jun 07 13:40
This is the JSP page that displays all these logs.
In fact, the problem is "open browser" launches two processes: one is Java and the other the expected one (here
Internet Explorer).

Martin Fuhrer - 05 Jun 07 18:14
This behavior is not related to the JBoss plugin, but is a feature of core IDEA. Before the specified URL is launched in the browser, IDEA first tries to connect to this same URL itself. If it can't connect, then a message box is displayed where the specified URL may be changed. This could be handy if you typed in a wrong URL in the first place, but I doubt that it is worth the effort. It would be ways simpler to just launch the browser with the specified URL and let the browser display an appropriate error message if the URL was wrong. I'll move this issue into the IDEA:Feedback project to let someone decide if the feature should be removed or not.

Jean-François Lozevis - 05 Jun 07 18:52
Thank you for your quick response. Is there a mean to disable this feature ?

Regards, Jean-François.


Nikolay Chashnikov - 11 Apr 08 12:39
IDEA trying to connect to URL in order to determine that deployment is finished. If IDEA openlingvo URL in the browser immediately most likely you will get 404 error because the application isn't deployed yet.

Nikolay Chashnikov - 11 Apr 08 12:42
BTW why checking URL from IDEA is inconvenient for you?

Jean-François Lozevis - 11 Apr 08 12:58
Checking URL from IDEA makes the page to be run twice and my pages are not supposed to be run twice: it can provoke odd bugs and for instance makes logs to be run twice for one instance so that the output is less readable.

Moreover, my pages are supposed to be run by IE6, IE7 and Firefox 2 and java is not in this list.

For now, I do not use the feature of auto-launching the browser: I open the browser outside IntelliJ and uses it.