| Summary: | Default system web browser: Error opening browser | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Missing name <manuel.sales> | ||||
| Component: | jst.server | Assignee: | Angel Vera <arvera> | ||||
| Status: | NEW --- | QA Contact: | Angel Vera <arvera> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | boolment, cgold, pwebster, remy.suen | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | Future | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Missing name
Chris, does this type of error mean there's no browser configured on the path? PW It does look as though the browser is not being found in the expected location - what version of Linux does the problem occur on and what is the hardware? (In reply to comment #1) > Chris, does this type of error mean there's no browser configured on the path? > > PW I dont know how to debug, but before I reported the bug I inspected the source code and it seems to me that the problem is that the java method gets an empty browser path. On the other hand, at system level, I have to say that the browser is well defined, it appears in the Ubuntu preferences and it works when is requested to be open. (In reply to comment #2) > It does look as though the browser is not being found in the expected location > - what version of Linux does the problem occur on and what is the hardware? I have Ubuntu 10.4 My computer is a Acer TravelMate 5720 The java installed is Sun Java 1.6.0_20 (In reply to comment #2) > It does look as though the browser is not being found in the expected location > - what version of Linux does the problem occur on and what is the hardware? The problem is that a 'null' is being passed to Program's execute(String) method. The javadoc itself states that an IllegalArgumentException will be thrown if 'null' is passed in so SWT is correct here. UA should either a) safe up the code here or b) make it explicit in IWebBrowser's openURL(URL) method that 'null' is not a valid parameter. WST should also change their code so that they don't pass in a 'null' in their OpenBrowserWorkbenchAction class. Looking at the stack trace it seems that it is WTP and not the UA component that is handling the opening of the browser. Transferring to WTP. It sounds like we are trying to calculate the URL for the object that you have selected to RunOnServer and for some reason we are getting 'null'. I suspect this is not a problem with our code but rather an adopter. Where you did downloaded the PHP plugins from? (In reply to comment #7) > It sounds like we are trying to calculate the URL for the object that you have > selected to RunOnServer and for some reason we are getting 'null'. I suspect > this is not a problem with our code but rather an adopter. I disagree. (In reply to comment #0) > java.lang.IllegalArgumentException: Argument cannot be null > at org.eclipse.swt.SWT.error(SWT.java:4064) > at org.eclipse.swt.SWT.error(SWT.java:3998) > at org.eclipse.swt.SWT.error(SWT.java:3969) > at org.eclipse.swt.program.Program.execute(Program.java:1128) > at > org.eclipse.ui.internal.browser.SystemBrowserInstance.openURL(SystemBrowserInstance.java:46) > at > org.eclipse.wst.server.ui.internal.webbrowser.OpenBrowserWorkbenchAction.run(OpenBrowserWorkbenchAction.java:62) Please see line 62... http://dev.eclipse.org/viewcvs/viewvc.cgi/servertools/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/webbrowser/OpenBrowserWorkbenchAction.java?view=markup&revision=1.3&root=WebTools_Project > browser.openURL(null); The 'null' that is passed into the IWebBroser instance is explicitly set as 'null' in the source code. Remy, good point. I do wonder how that code ever worked if null is not a valid argument. Will need to look into it, we haven't changed that code in a while. Now there is still some a question as to why during the 'running/debugging a PHP file' there is a problem. I am assumming that Manuel is doing a RunOnServer action on the PHP file from some view? Created attachment 272444 [details]
Eclipse Error while deploying java ee web application to google app engine
Hi, I am getting an error message like below while deploying Java web application through Eclipse.
|