[jbosstools-issues] [JBoss JIRA] (JBIDE-19187) CordovaSim + localhost:8080 fail

Ilya Buziuk (JIRA) issues at jboss.org
Mon Feb 9 04:50:50 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-19187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038689#comment-13038689 ] 

Ilya Buziuk commented on JBIDE-19187:
-------------------------------------

[~burrsutter], could you please attach the project?
(1) Frankly, can't get the livereload problem. IMHO 404 is not coupled with livereload. Does it stop working?
(2) in terms of XHR and 500 server error - there is no silver bullet to handle all cross domain ajax due to the fact that it depends dramatically on the remote server setup - http://stackoverflow.com/questions/18402422/phonegap-application-not-working-on-google-ripple . We do have 3 proxy setting (local / remote / disabled) - at least one of them should work for this particular case.
< With that said, CordovaSim was handling localhost:8080 well…at the time the video was made. Any ideas?
hmm.. that's weird that it started to failing cause we do not have any relevant changes that could have broken everything that way. I do believe changing the proxy might tackle the issue.
(3) [~akazakov], [~vrubezhny] seems to be coupled with js validation - could you take a look?  

> CordovaSim + localhost:8080 fail
> --------------------------------
>
>                 Key: JBIDE-19187
>                 URL: https://issues.jboss.org/browse/JBIDE-19187
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cordovasim
>         Environment: JBDS 8
>            Reporter: Burr Sutter
>            Assignee: Ilya Buziuk
>            Priority: Critical
>             Fix For: 4.2.3.Beta1, 4.3.0.Alpha1
>
>         Attachments: localhost_error.png
>
>
> The following logic used to work and now fails:
>     	$.getJSON("http://localhost:8080/jboss-as-kitchensink-html5-mobile/rest/members", function(data) {
>     	    $("#contacts").empty();
>     	    var items = [];
>     	    $.each(data, function(key, val) {
>     	       console.log("item: " + key + " " + val.name);
>     	       items.push("<li><a href='#"+ key + "'>" + val.name +"</a></li>");
>     	    });
>     	    $("#contacts").append(items);
>     	    $("#contacts").listview("refresh");	
>     	});
> -------
> as seen in this youtube video and comments
> https://www.youtube.com/watch?v=FstGLMr3W8s&feature=gp-n-y&google_comment_id=z12aft3owojdsrmgl04cengwwrjzznmb5t00k&noredirect=1
> ---- Using the Chrome Debugger (via CordovaSim, right-click, Dev Tools)
> has the following error message:
>  https://rippleapi.herokuapp.com/xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_…l=http%3A//localhost%3A8080/jboss-as-kitchensink-html5-mobile/rest/members 500 () rippleapi.herokuapp.com/xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rurl=http%3A//localhost%3A8080/jboss-as-kitchensink-html5-mobile/rest/members:1



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)



More information about the jbosstools-issues mailing list