Trying out Expo for React Native, just did an "init", getting socketException error? - java

Last week I started learning about React Native and using Expo. I created some small apps using "expo init (name)" etc, followed some tutorials, tried some stuff you know the drill.
Today I wanted to start working on a small app idea I have and wanted to do it using Expo CLI instead of React Native CLI first, since building, testing etc is supposed to be easier using Expo.
I just made a new project using "expo init (name)", selecting blank template (so nothing fancy) and running "npm start", then scanning the code with my smartphone app and the app crashes instantly. The error is as follows:
"Uncaught Error: java.net.SocketException: Connection reset"
What does this mean? How can I fix it? I really want to start today using Expo...

This happens when you mobile and system using different internet connection or port.
so try following
Make sure you have stable internet connection and your device and system connected with same internet connection
remove node_modules folder
run npm install
npm start --reset-cache
scan bar code to run it on your device

Related

Java windows Service starts a new process but I'm unable to see it (although it's present on Task Manager)

I have a java app (which I made windows service using nnsm) that sets up sockets on localhost. When a message is received by that app it opens internet explorer.
When I run the app using cmd (e.g java -jar myServer.jar) it works as expected. An internet explorer instance starts.
When the app is being set up as a windows service and receives a message, it opens internet explorer but I'm unable to see it (although it is visible in Task Manager).
I want the process to start on the local system and be able to see it and interact with it
Any help or idea would be much appreciated.
Thanks

App (Android) can not connect to the server

I have a problem with my android application. In Android Studio, everything looks normal since no error appears. The application is supposed to connect to the web server for data recovery. But every time I test the app on my android device or on an emulator, I still have the same message: "Appname can not connect to the server"
So, since I do not see any error on Android studio, I do not know where to look. I tried with the coordinates of two different servers, but still the same message. I have concluded that the problem is not at the level of the connection to the server, but in my code, but where?
If anyone has any suggestion, I'm a taker. If you need to see any file, let me know.

Android AWS Cognito: unable to resolve host

I am having difficulty getting Cognito registration and login to work for my app in Android Studio using this sample. When I attempt to log in via the simulator, the app works for a few seconds, then displays an error message: "Unable to execute HTTP request: Unable to resolve host 'cognito-idp.us-east-1.amazonaws.com': No address associated with hostname". This same error is the only error that appears in the console. I have seen similar questions and tried solutions such as checking to ensure my app has the permissions android.permission.INTERNET and android.permission.ACCESS_NETWORK_STATE, but the error persists. It also doesn't seem to be a network issue. I have updated to the latest version of the Android SDK as well as the AWS SDK, and the problem persists.
I currently I have a Cognito user pool set up which works properly for login on the iOS version of my app. Following the instructions in the readme for the sample code, I added an app to my existing user pool, and then copied and pasted the newly generated app client ID and app client secret into AppHelper.java for clientId and clientSecret respectively. I also set userPoolId to the ID listed for my user pool under "pool details" in the Cognito conosle, and cognitoRegion to US East, since this is the region of my user pool. I noticed that there was no need for me to set the pool name, as there was in the iOS version, so I'm wondering if that's something I need to do.
Sorry if this counts as a duplicate, but I wanted to post a question with the exact error message I encountered and the steps I took, and I'm wondering if someone has managed to get this specific sample working and what I should do.
The problem has been resolved, but unfortunately I'm not quite sure what fixed it since I didn't change anything in the code. All I did was install an update, so anyone with a similar problem should probably ensure that all SDKs used in the sample are properly updated, along with the simulator. It's also worth noting that I was using a different network than in my previous tests, so it's possible that it was a network issue after all.
I had the same issue.
The issue occurred when I used a VPN with emulator to test my program. The reason was that the internet connection in the emulator was too slow when connecting through a VPN.
This could also happen if your internet connection is not strong enough.
The solution is, use a real android device to test your code, if your internet connection is not good enough.
More info: https://github.com/aws-amplify/aws-sdk-android/issues/567

Implementing Desktop Screenshare using red5 server

I'm trying to setup a local red5 streaming server to stream my desktop screen to multiple devices with no luck. the setup will eventually look like this.
mylaptop screen (live stream)=> red5 server <= client devices pulling the live stream
note: red5 server is ubuntu based, client devices will eventually be android tablets but any device will do just fine for now
This is what I have so far:
1) Installed red5-server and all of its dependencies using apt-get install red5-server
2) Downloaded red5-screenshare applet from http://code.google.com/p/red5-screenshare/
and followed all the steps there
3) After I start my screensharing, visiting the client link http://[my_red5_server:5080]/screenshare/screenviewer.html produces error #2032
chrome developer tools says
GET http://my_red5_server:5080/screenshare/textLayout_1.1.0.604.swz 404 Not Found
4) so I downloaded the textLayout file from adobe, placed it into the screenshare folder but I still get the same 404 not found error
Is my setup wrong? I'm not sure how to debug this since there's very few documentation on the matter and I reeeeally dont want to write my own java app and reinvent the wheel
Also if any of you happy hackers have found a different solution to locally screenshare I'm all ears
Thank you for taking the time to help.
The error your getting is because the flex "swz" files cannot be downloaded from Adobe. This was happening to us at work this week and we solved it by finding the offending files via google and placing them on our server. Download the swz files and place them in the same directory as your swf file.

Android with google app engine (java)

I'm trying to connect my android application to the Google App Engine. I followed this google tutorial for a standard example.
My problem is that when I follow the tutorial correctly and I try to execute it, my server doesn't give me back a hello message. In debug mode I discovered that my Async thread that contacts the server just doesn't execute. Any thoughts?
I get a Threadpoolexecutor.runworker popup with source not found.
I'm not sure if this helps, but I noticed I get the same problem only when I have many of the same thread running concurrently.

Categories