I have a problem with my eclipse browser.
If i call the url of my sonarqube server (https://sonar) everthing works fine and eclipse shows me the page. But if i try to call the api (https://sonar/api/system/status) it returns with an error window which says that the page could not be opened. The same url worked for me in normal browsers.
Question
Does eclipse browser has problems with calling rest apis in general? Or is there something i could do to make it work?
System:
Windows 10 Pro (10.0.15063 Build 15063)
Eclipse Oxygen.1a Release (4.7.1a)
Ok, the problem seems to be in IE (which is used by eclipse in default). If i call the url in IE it wants to download the json answer. I changed some values in registry so IE just show me the json in browser directly. After that also eclipse could show me hte result without error.
Here is my ie_json.reg file i executed to change values in registry:
Windows Registry Editor Version 5.00;
; Tell IE 7,8,9,10 to open JSON documents in the browser on Windows XP and later.
; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .
;
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00
I found this solution at http://developers.de/blogs/holger_vetter/archive/2013/12/13/view-json-in-internet-explorer-7-11.aspx
Related
There's a shed-load of similar questions and answers out there.
Almost all can be dismissed as referring to Xdebug v2. I am using Xdebug 3.0.0 Release date: 2020-11-25, and everyone else should probably be updating too.
I am trying to achieve in VSC, what I can do in PhpStorm, where I can breakpoint a line of a PHP file which will be invoked as an AJAX call from a JS app which I run in my browser and he IDE will stop on the breakpoint. The important detail here is that I do not run the PHP from the IDE, but from the browser, which builds a rather complex HTTP GET request.
If VSC cannot do that, please post an answer to that effect, and I will give up.
However, since PhpStorm can do it, why not VSC? I imagine that it is mainly a matter of configuration, if VSC or Xdebug has a listener.
This works for PhpStorm:
from PHP.ini:
[Xdebug]
; ---- new, for Xdebug v3, see https://stackoverflow.com/questions/65280429/how-to-configure-xdebug-for-jetbrains-phpstorm-2020-1
; ----- see https://xdebug.org/docs/upgrade_guide
zend_extension = "e:\coding\Web_development\php\php\ext\php_xdebug-3.0.1-7.3-vc15-x86_64.dll"
xdebug.mode=debug,develop
xdebug.client_host=127.0.0.1
xdebug.remote_port=9000
xdebug.start_with_request=yes
xdebug.idekey="xdebug"
xdebug.log=m:\xdebug.log
the URL passed in the AJAX request includes XDEBUG_SESSION_START=xdebug as a GET parameter.
Anything else that I need to post? Since it works for PhpStorm, I imagine that I just need to configure VSC - but, how?
With Intellij versions older than 2016 it was possible to open a certain file in intellij via a rest api call to intellij.
This feature was used in an amazing play framework plugin to link directly to the correct line in the code from a stacktrace that is displayed in the browser:
https://chrome.google.com/webstore/detail/play-framework-tools/dchhggpgbommpcjpogaploblnpldbmen
Read about it here:
http://manuel.bernhardt.io/2016/03/07/the-one-play-framework-productivity-tip-you-should-know-about/
With Intellij versions before 2016, using a URL like
http://localhost:63342/api/file/D:/John/Documents/GitHub/myapp/app/controllers/Application.scala:14 would work. Intellij would have opened and highlighted the correct line in the correct file.
The URL I used to configure the chrome plugin to generate the above link was: http://localhost:63342/api/file/$file:$line
Currently I am running IntelliJ 2016.1.3 and the setup doesn't work anymore.
Has the Intellij API changed? Should I use a new URL pattern instead of http://localhost:63342/api/file/$file:$line ?
I had the same problem with PHPStorm, maybe my solution also works for IntelliJ:
You need to go into Settings -> Build,Execution,Deployment -> Debugger.
There you should find a section called "Built-in server". The port number that's specified there is the one you should use (localhost:63342 is the default). Also you might have to check "Allow unsigned requests". They added this checkbox after their security update.
I have an Eclipse workspace with a Web App (lets call it MyApp), and Tomcat server. When I run MyApp, Tomcat finds default.jsp and the opening page displays
http://localhost:8080/MyApp/Default.jsp?ActionPage=dashboard
- all fine and dandy.
This web page shows a menu. I choose a menu option from this page which should render
http://localhost:8080/MyApp/config.jsp,
and I get a HTTP Status 404 - /config.jsp ... ie it is looking for the page at
http://localhost:8080/config.jsp
and can't find it. Why is it looking there? It seems to have lost its context.
Netbeans doesn't exhibit this behaviour - it works fine. I just don't know where to look for a solution. Is it the Tomcat configuration or the Web App configuration?
All suggestions welcome!
When you choose your menu option, how is the URL called : simple form submit, ajax request?
In any case, you should have a URL looking like /MyApp/... in your code.
You can also check which URLs are effectively called by using a debug tool in your browser (ie Firebug for Firefox)
Another test to do if you use a Tomcat embedded in Eclipse is to start your Tomcat outside from your IDE, just to check the potential behaviour differences.
I'm using APIs provided by Eclipse BIRT for generating BIRT reports in my application since a few days and I haven't any problem to preview the generated reports from eclipse up to now.
Since this morning it doesn't work. it doesn't show any exception. it shows a blank report without any element inside him.
Do anyone find any explanation for this?
NOTE1: I use BIRT in windows 7 OS. I hear that there are problems to preview report from eclipse on Windows 8 OS. But it isn't my case.
NOTE2: I haven't done any update in my computer recently.
birtprofi # http://developer.actuate.com/community/forum/index.php?/topic/30484-birt-report-not-running-in-eclipse-after-update-to-windows-81/page-2
Solution for workaround to use internal browser with IE 11:
Open eclipse.ini File (same path as eclipse.exe)
Insert those 2 lines at the end of the script:
-Dorg.eclipse.swt.browser.DefaultType=ie,mozilla
-Dorg.eclipse.swt.browser.IEVersion=7000
Restart Eclipse BIRT Designer. Then it should be possible to use the internal web browser with IE 11
You should set defaul browser app. If you dont have any default browser app birt will not open anything.
For Windows 10
Settings - > System - > Default Apps - Web Browser
Set default browser.
Also for windows 8 is the smilar.
I experience a problem with GWT 1.6 in IE8 (I have enabled native XMLHTTP support).
The scenario i this: The first time I enter a page, it renders fine with no problems. But in subsequent requests, the page fails with a JavaScript error:
Message: Exception thrown and not caught
Line: 5067
Char: 237
Code: 0
URI: http://someurl/somehashcode.cache.html
It happens in both standard mode and compatibility mode. The strange thing is that I do not experience the error when I run the application on localhost through the ASP.NET dev server. Only when I run it from a Windows 2003 server.
Does anyone have an idea, why this happens?
I would appreciate any kind of help - thanks in advance.
/Henrik
You always use the last version of stable release of GWT. This kind of error is from GWT compiler and you must report it to GWT team. Maybe this problem fixed in the last version of GWT.
I've seen the same issue, my feeling its coming from cached files. When the response is not from cached files I didn't see an exception.
I'm doing SSL to IE8. Microsoft have a fix you could try:
Internet Explorer file downloads over SSL do not work with the cache control headers
http://support.microsoft.com/kb/323308
Internet Explorer 7 and Internet Explorer 8
To resolve this issue in Internet Explorer 7 and in Internet Explorer 8, follow these steps:
1. Start Registry Editor.
2. For a per-user setting, locate the following registry key:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
For a per-computer setting, locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
3. On the Edit menu, click Add Value.
4. To override the directive for HTTPS connections, add the following registry value:
"BypassSSLNoCacheCheck"=Dword:00000001
To override the directive for HTTP connections, add the following registry value:
"BypassHTTPNoCacheCheck"=Dword:00000001
5. Quit Registry Editor.