org.apache.http.client.HttpResponseException: Not Found

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This is not a regression as it can be reproduced with titanium sdk 3.4.1 When an android pushnotification app is run with live view, errors indicating that cloudpush module information cannot be found are thrown on the console when the app tries to re-launch with the changes made.However, when the app is run again on the device, it installs and launches successfully with the new changes made. Steps to reproduce: 1. Run the attached app.js (include cloudpush module in tiapp.xml)with Liveview enabled on to a device 2. Make changes in app.js eg: remove one of the commented lines on line 49 or 54 and save 3. Run the app again by clicking 'Run As' and select the device again Actual results: 1. App is launched on device with a button "Register for push notification" o`n the center. 2. the following error is produced in the console and device displays the splashscreen {code} [ERROR] : Error: APSCloudPush has not been enabled. Call APSCloud.enable(context, key) to enable. [ERROR] : File: app.js [ERROR] : Line: undefined [ERROR] : SourceId: undefined [ERROR] : Backtrace: [ERROR] : undefined [ERROR] : TiHttpClient: (TiHttpClient-7) [5,125] HTTP Error (org.apache.http.client.HttpResponseException): Not Found [ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Not Found [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:275) [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:219) [ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:669) [ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:649) [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1334) [ERROR] : TiHttpClient: at java.lang.Thread.run(Thread.java:841) {code} 3. The app launches successfully. Expected Results: 2. The app should be re-launched with the new changes.
    via by Visalakshi Chidambaram,
  • This is not a regression as it can be reproduced with titanium sdk 3.4.1 When an android pushnotification app is run with live view, errors indicating that cloudpush module information cannot be found are thrown on the console when the app tries to re-launch with the changes made.However, when the app is run again on the device, it installs and launches successfully with the new changes made. Steps to reproduce: 1. Run the attached app.js (include cloudpush module in tiapp.xml)with Liveview enabled on to a device 2. Make changes in app.js eg: remove one of the commented lines on line 49 or 54 and save 3. Run the app again by clicking 'Run As' and select the device again Actual results: 1. App is launched on device with a button "Register for push notification" o`n the center. 2. the following error is produced in the console and device displays the splashscreen {code} [ERROR] : Error: APSCloudPush has not been enabled. Call APSCloud.enable(context, key) to enable. [ERROR] : File: app.js [ERROR] : Line: undefined [ERROR] : SourceId: undefined [ERROR] : Backtrace: [ERROR] : undefined [ERROR] : TiHttpClient: (TiHttpClient-7) [5,125] HTTP Error (org.apache.http.client.HttpResponseException): Not Found [ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Not Found [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:275) [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:219) [ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:669) [ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:649) [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1334) [ERROR] : TiHttpClient: at java.lang.Thread.run(Thread.java:841) {code} 3. The app launches successfully. Expected Results: 2. The app should be re-launched with the new changes.
    via by Visalakshi Chidambaram,
  • Parse.com error callback not being called
    via Stack Overflow by paul h
    ,
  • TiHttpClient on titanium don't even send
    via by Unknown author,
  • GitHub comment 5#78471522
    via GitHub by SPorwal
    ,
  • h5. Problem description If enabling LiveView, the Alloy runtime tests implemented for most of the samples available (https://github.com/appcelerator/alloy/tree/master/test/apps) are not being triggered correctly and in most cases nothing is displayed when the app is started. In the case of Alloy advanced themes sample https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/themes an Application Error is also displayed when the runtime specs are required if the user click on a button. See screenshot and error log. h6. iOS log {code} [WARN] : New layout set while view [object progressFront] animating: Will relayout after animation. [ERROR] : Script Error { [WARN] : New layout set while view [object progressFront] animating: Will relayout after animation. [WARN] : New layout set while view [object progressFront] animating: Will relayout after animation. [ERROR] : backtrace = "#0 () at file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js:638\n#1 () at file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js:502\n#2 () at :93\n#3 testPatience() at :6"; [ERROR] : line = 608; [ERROR] : message = "'undefined' is not a function (evaluating '_src.replace(/\\/\\/(.*)$/gm, '')')"; [ERROR] : name = TypeError; [ERROR] : sourceId = 309385824; [ERROR] : sourceURL = "file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js"; [ERROR] : } [WARN] : New layout set while view [object progressFront] animating: Will relayout after animation. {code} h6. Android log {code} [ERROR] : TiExceptionHandler: (main) [3430,3430] ----- Titanium Javascript Runtime Error ----- [ERROR] : TiExceptionHandler: (main) [0,3430] - In app.js:608,16 [ERROR] : TiExceptionHandler: (main) [2,3432] - Message: Uncaught TypeError: Object false has no method 'replace' [ERROR] : TiExceptionHandler: (main) [0,3432] - Source: _src.replace(/\/\/(.*)$/gm, '').replace(/\n/g, '') + [WARN] : IdleConnectionHandler: Removing a connection that never existed! [ERROR] : TiHttpClient: (TiHttpClient-12) [2,3434] HTTP Error (org.apache.http.client.HttpResponseException): Not Found [ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Not Found [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:258) [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:217) [ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657) [ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637) [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1287) [ERROR] : TiHttpClient: at java.lang.Thread.run(Thread.java:841) [ERROR] : V8Exception: Exception occurred at app.js:608: Uncaught TypeError: Object false has no method 'replace' {code}
    via by Federico Casali,
  • h5. Problem description If enabling LiveView, the Alloy runtime tests implemented for most of the samples available (https://github.com/appcelerator/alloy/tree/master/test/apps) are not being triggered correctly and in most cases nothing is displayed when the app is started. In the case of Alloy advanced themes sample https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/themes an Application Error is also displayed when the runtime specs are required if the user click on a button. See screenshot and error log. h6. iOS log {code} [WARN] : New layout set while view [object progressFront] animating: Will relayout after animation. [ERROR] : Script Error { [WARN] : New layout set while view [object progressFront] animating: Will relayout after animation. [WARN] : New layout set while view [object progressFront] animating: Will relayout after animation. [ERROR] : backtrace = "#0 () at file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js:638\n#1 () at file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js:502\n#2 () at :93\n#3 testPatience() at :6"; [ERROR] : line = 608; [ERROR] : message = "'undefined' is not a function (evaluating '_src.replace(/\\/\\/(.*)$/gm, '')')"; [ERROR] : name = TypeError; [ERROR] : sourceId = 309385824; [ERROR] : sourceURL = "file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js"; [ERROR] : } [WARN] : New layout set while view [object progressFront] animating: Will relayout after animation. {code} h6. Android log {code} [ERROR] : TiExceptionHandler: (main) [3430,3430] ----- Titanium Javascript Runtime Error ----- [ERROR] : TiExceptionHandler: (main) [0,3430] - In app.js:608,16 [ERROR] : TiExceptionHandler: (main) [2,3432] - Message: Uncaught TypeError: Object false has no method 'replace' [ERROR] : TiExceptionHandler: (main) [0,3432] - Source: _src.replace(/\/\/(.*)$/gm, '').replace(/\n/g, '') + [WARN] : IdleConnectionHandler: Removing a connection that never existed! [ERROR] : TiHttpClient: (TiHttpClient-12) [2,3434] HTTP Error (org.apache.http.client.HttpResponseException): Not Found [ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Not Found [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:258) [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:217) [ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657) [ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637) [ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1287) [ERROR] : TiHttpClient: at java.lang.Thread.run(Thread.java:841) [ERROR] : V8Exception: Exception occurred at app.js:608: Uncaught TypeError: Object false has no method 'replace' {code}
    via by Federico Casali,
    • org.apache.http.client.HttpResponseException: Not Found at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:275) at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:219) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:669) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:649) at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1334) at java.lang.Thread.run(Thread.java:841)

    Users with the same issue

    jk
    jk2 times, last one,