[
https://issues.jboss.org/browse/JBIDE-18900?page=com.atlassian.jira.plugi...
]
Vlado Pakan commented on JBIDE-18900:
-------------------------------------
With Oracle Java 1.8 and remote server:
* when starting CordovaSim this error is displayed to console:
{noformat}
WARNING: Unexpected error
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:49226/ripple/xhr_proxy?tinyhippos_apikey=ABC&tinyhip...
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1888)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1883)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1882)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1455)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
at com.sun.webkit.network.URLLoader.receiveResponse(URLLoader.java:472)
at com.sun.webkit.network.URLLoader.doRun(URLLoader.java:143)
at com.sun.webkit.network.URLLoader.access$000(URLLoader.java:43)
at com.sun.webkit.network.URLLoader$1.run(URLLoader.java:107)
at com.sun.webkit.network.URLLoader$1.run(URLLoader.java:104)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.webkit.network.URLLoader.run(URLLoader.java:104)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:49226/ripple/xhr_proxy?tinyhippos_apikey=ABC&tinyhip...
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1838)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at com.sun.webkit.network.URLLoader.receiveResponse(URLLoader.java:387)
... 11 more
!JavaScript INFO: fh cloud is ready
{noformat}
* when clicking on button "Say Hello From The Cloud" button this error is
displayed to console:
{noformat}
Feb 04, 2015 1:23:35 PM com.sun.webkit.network.URLLoader doRun
WARNING: Unexpected error
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:49226/ripple/xhr_proxy?tinyhippos_apikey=ABC&tinyhip...
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1888)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1883)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1882)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1455)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
at com.sun.webkit.network.URLLoader.receiveResponse(URLLoader.java:472)
at com.sun.webkit.network.URLLoader.doRun(URLLoader.java:143)
at com.sun.webkit.network.URLLoader.access$000(URLLoader.java:43)
at com.sun.webkit.network.URLLoader$1.run(URLLoader.java:107)
at com.sun.webkit.network.URLLoader$1.run(URLLoader.java:104)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.webkit.network.URLLoader.run(URLLoader.java:104)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:49226/ripple/xhr_proxy?tinyhippos_apikey=ABC&tinyhip...
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1838)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at com.sun.webkit.network.URLLoader.receiveResponse(URLLoader.java:387)
... 11 more
{noformat}
CordovaSim: Can't run default FeedHenry app locally
---------------------------------------------------
Key: JBIDE-18900
URL:
https://issues.jboss.org/browse/JBIDE-18900
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cordovasim
Affects Versions: 4.2.1.Final
Reporter: Ilya Buziuk
Assignee: Ilya Buziuk
Fix For: 4.3.0.Alpha1
Attachments: configuration.png, cordovasimFH.png, FHshortcuts.png, hello_tom.png,
newLaunch.png, preferences.png, ToolsProject-Cloud-App.zip, ToolsProject-Cordova-App.zip
Basically, the situation is the following:
1. *ToolsProject-Cordova-App.zip* - is a basic FH hybrid app (all the app does is saying
Hello + 'username' from the input field )
2. To run this app one simply needs to unpack the archive and import it as a cordova
project to the studio
3. The application will work with a *remote* server like a charm
!hello_tom.png|thumbnail!
4. However, there is an option to use *local* server instead of *remote* one
5. *ToolsProject-Cloud-App.zip* - is a app for running local server via grunt task
runner
6. In order to run local server one needs:
- unpack the app
- run *npm install .*
- run *grunt serve*
Need to find the way to made CordovaSim use this *local* server
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)