java.io.IOException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • ACS: duplicate guid does not generate accurate error. Current UI Error (& see screenshot): {code} java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt {code} Studio Log Error: {code} !ENTRY com.appcelerator.titanium.core 1 0 2013-01-29 22:22:11.235 !MESSAGE (Build 3.0.2.201301281948) [INFO] com.appcelerator.titanium.core/debug/api ACS Register App API Request: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt, parameters description=not+specified&name=p2&ti_guid=8a582c80-a1b3-4816-a616-e3cf55ab2fe8&suffix=development%2Cproduction&ti=true !ENTRY com.appcelerator.titanium.ui.ide 4 0 2013-01-29 22:22:11.277 !MESSAGE (Build 3.0.2.201301281948) [ERROR] Failed to register app for ACS !STACK 0 java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at com.appcelerator.titanium.core.acs.ACSManager.registerApp(ACSManager.java:410) at com.appcelerator.titanium.core.acs.ACSManager.registerApp(ACSManager.java:362) at com.appcelerator.titanium.ui.ide.tiappEditor.TiAppCloudSection$2$1.run(TiAppCloudSection.java:243) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} Steps to Reproduce: 1. Create TiProject1 with ACS enabled. 2. Copy GUID from TiProject1 tiapp.xml. 3. Create TiProject2 w/o ACS enabled. 4. Paste GUID into TiProject2 tiapp.xml. 5. Enable TiProject2 ACS via TiApp Editor Overview. Actual Result: Meaningless error. Expected Result: Duplicate GUID error.
    via by Dustin Hyde,
  • ACS: duplicate guid does not generate accurate error. Current UI Error (& see screenshot): {code} java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt {code} Studio Log Error: {code} !ENTRY com.appcelerator.titanium.core 1 0 2013-01-29 22:22:11.235 !MESSAGE (Build 3.0.2.201301281948) [INFO] com.appcelerator.titanium.core/debug/api ACS Register App API Request: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt, parameters description=not+specified&name=p2&ti_guid=8a582c80-a1b3-4816-a616-e3cf55ab2fe8&suffix=development%2Cproduction&ti=true !ENTRY com.appcelerator.titanium.ui.ide 4 0 2013-01-29 22:22:11.277 !MESSAGE (Build 3.0.2.201301281948) [ERROR] Failed to register app for ACS !STACK 0 java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at com.appcelerator.titanium.core.acs.ACSManager.registerApp(ACSManager.java:410) at com.appcelerator.titanium.core.acs.ACSManager.registerApp(ACSManager.java:362) at com.appcelerator.titanium.ui.ide.tiappEditor.TiAppCloudSection$2$1.run(TiAppCloudSection.java:243) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} Steps to Reproduce: 1. Create TiProject1 with ACS enabled. 2. Copy GUID from TiProject1 tiapp.xml. 3. Create TiProject2 w/o ACS enabled. 4. Paste GUID into TiProject2 tiapp.xml. 5. Enable TiProject2 ACS via TiApp Editor Overview. Actual Result: Meaningless error. Expected Result: Duplicate GUID error.
    via by Dustin Hyde,
  • CAS Second level
    via by Lynch maniac,
  • C2DM java example of third-part app
    via Stack Overflow by goodm
    ,
  • Rest API 401 Error with JIRA
    via Stack Overflow by Stupid.Fat.Cat
    ,
    • java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at com.appcelerator.titanium.core.acs.ACSManager.registerApp(ACSManager.java:410) at com.appcelerator.titanium.core.acs.ACSManager.registerApp(ACSManager.java:362) at com.appcelerator.titanium.ui.ide.tiappEditor.TiAppCloudSection$2$1.run(TiAppCloudSection.java:243) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    tfrtfr
    35 times, last one,
    davidvanlaatumdavidvanlaatum
    1 times, last one,
    69 more bugmates