I'm working on the Blackberry Eclipse plugin but can't get this sample to work :
Code sample: Parsing a JSON data structure
It doesn't go anywhere after response = bsd.sendReceive();
The Simulator has internet access in the browser, and I also checked the "Launch Mobile Data System Connection Service (MDS-CS) with simulator." (odd that nothing shows up in fiddler, but hey)
The URI does seem to timeout quite often so I changed it to point to a file in my dropbox, but that didn't change anything.
Anyone have any success running this sample ?
added ";deviceside=true" to uri
Related
Error & Codes
My codes and error are in that link of picture "Error & Codes"
Hi everyone, you all doing well,
Im having a problem about WebView, i have tried many ways but I'm still getting this err_connection_refuse error and i cant solve it. Can anyone see what my problem is ?
I'm trying to use this way to show the world map in that web address on my phone but if there are any suggestion, I'm open to it.
(Android Studio 4.0 + Java + API 28 + Blacked URL address due to company policy )
Thank you :)
IMPORTANT NOTE :
That site can only be reached with VPN (i can reach it from web browser on computer) but i have installed cisco anyconnect VPN to emulator and secured connection too.
I've been following the Androidhive tutorial for login and registration with php mysql and sqlite- https://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ but there seems to be some issue with connecting to the server.
The logcat shows the error Unexpected response code 403 for http://192.168.x.x/android_login_api/register.php/ and also registration error:null
logcat screen
It shows 404 not found when I search the url - http://192.168.x.x/android_login_api/login.php on my browser. I'm sure this is my correct ip address.The android device connected and the laptop are both on the same wifi. And I've tried several things to solve the network issues by reading similar questions and answers but still no luck.
I've done everything in the tutorial but when I try to register it doesn't work and an empty toast shows and then disappears.
I've checked and rechecked the code but can't seem to get to a solution. Please help.
Go to - C:\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhosts.conf
Check if
'require local' is there if yes then change to
'Require all granted'
The 403 Forbidden error is an HTTP status code which means that accessing the page or resource you were trying to reach is absolutely forbidden for some reason.
Also make sure you're accessing the correct url..
I created a minecraft launcher with SKCraft and everything was hosted on 000webhost.com. Then I transferred my site to hostinger.com and changed all the links to point to my new host.
Except that since, I get this error:
java.io.IOException: Did not get expected response code, got 503 for https://ragnaguys.hostingerapp.com/latest.json
at com.skcraft.launcher.bootstrap.HttpRequest.expectResponseCode(HttpRequest.java:154)
at com.skcraft.launcher.bootstrap.Downloader.execute(Downloader.java:74)
at com.skcraft.launcher.bootstrap.Downloader.run(Downloader.java:42)
at java.lang.Thread.run(Unknown Source)
Only the URL of the file has changed in my code and the link is functional from a browser.
Is there anything I need to change in the server configuration? Since on the program side nothing changed except the link.
Everything works fine if I put the links back to 000wewhost.com
Thanks!
In android client consuming my LoginService remote service, in order to connect user to the application.
I use gwt-syncproxy librairie to acces to my remote interface. And the following warning occured:
RpcPolicyFinder:No RemoteService in the classpath
followed by :
java.io.FileNotFoundException:
http:// localhost: . . . /. . ./application/application.nocache.js
Is there someone who had experienced this type of trouble ?
Please review the Android and CommonIssues wiki pages for the project as these clarify some common issues with the library.
In the meantime, more specifically, I often see this type of issue (though not this exactly) when the library has not been GWT-compiled or if the local server is not running where the Android app is expecting to find it. If you're not using App-Engine and are testing locally, make sure you are using Android's host Loopback interface with the #setLoginUrl method (GAELogin, Android Emulator networking).
Try posting the full error with details so we can see where it might be pointing wrong.
I think this issue is caused by a few reason:
1. You site is required login. And I checked the code of SyncProxy(0.5), it doesn't support if a site is secure.
2. SyncProxy will download some files from server side, for example:
compilation-mappings.txt
*.nocache.js
*.cache.html
*.gwt.rpc
If SyncProxy cannot download them, this error may occur, please check it these files can be download and the uri and name format of them is as default.
I was contacting with the owner of SyncProxy to improve this feature to support basic cookie/sessionid checking of auth.
https://github.com/jcricket/gwt-syncproxy/issues/46#issuecomment-89271311
I'm following Scott Davis' tutorials on developing grails apps, but whenever i try to run my app (or indeed his source code) i get "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." Safari gives a similar error message as does Opera.
As i've tested the original authors source code which gives the same error i'm fairly confident it's nothing to do with the code.
Is this a problem with the web server on my machine? I use Mac OS Snow Leopard so i'm assuming it's apache that's generating this error.
Edit: Seems Grails as standard uses Jetty, so probably not Apache that is causing the problem. However also tested the app on Glassfish and i get the same error.
Anyone know what i can do to fix this?
Cheers
It depends on the code and Apache configuration you are using. I assume that the web server sends cyclic HTTP redirections, eg. from /root/ to /root (without the slash) and vice versa. This causes a redirection infinite loop.
Check your configuration on conditions that cause a HTTP redirect. For example, Apache automatically adds slashes to directory URLs in standard configuration (like the /root/ example above). I don't know Grails, so I cannot give you a hint on how URLs are processed within the app.
You can also use manual HTTP requests for debugging to see whats going on behind the scenes, using telnet on a terminal:
$ telnet localhost 80
GET / HTTP/1.0
I guess the response will be something like that:
HTTP/1.0 302 Found
Location: XXX
...
Now do a second request on the URL passed in the Location header and so on.
I was getting the same error a little while ago, heres how I fixed:
Try the same page on a different internet setup (it could be your ISP)
Open up Safari, Firefox or whatever your using and empty the cache and delete ALL your cookies
Reboot your computer and try again
It may work now, but if it doesn't:
open up Firefox and type 'about:config' (without the quotes) into the URL bar
You will get some little warning, just press OK
Type 'redirect' into the Filter box
You should see a listing for 'network.http.redirection-limit'
Double click the listing and type a large number (anything above 50 and lower than 200)
Press OK, quit and re-open FireFox
Basically all that does is make FireFox's tolerance for redirect loops higher which should fix your problem - but usually, just borrowing someone else's internet connection fixes it
Hope that all helps =)
Just carefully check your URLMappings configuration:
YOUR_APP/grails-app/conf/UrlMappings.groovy
Common case:
You configured request to be handled like this:
"/anything" (controller:"someController")
So without action, request will be handled by default one, "index". "index" action usually redirects to "list", and "list", in some cases redirect back to "index"
There is your loop.
Good luck