org.json.JSONException

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.

  • * Open Ti Studio (no emulator should be open already) * Open a mobile project * Set a breakpoint somewhere in app.js * Debug-launch the app Because the emulator isn't already running, it is -- of course -- launched. The app gets installed successfully, but the breakpoint is not hit. The problem is _not_ a timeout for the debugger, rather: {code} D/KrollProxy( 250): (main) [7,230] New: AndroidModule D/KrollProxy( 250): (main) [37,267] New: DebugModule D/DebugModule( 250): (main) [13,280] Read debug config: {"enabled":false} E/DebugModule( 250): (main) [3,283] JSONObject["port"] not found. E/DebugModule( 250): org.json.JSONException: JSONObject["port"] not found. E/DebugModule( 250): at org.json.JSONObject.get(JSONObject.java:287) E/DebugModule( 250): at org.json.JSONObject.getInt(JSONObject.java:347) E/DebugModule( 250): at ti.modules.titanium.debug.DebugModule.readDebugConfig(DebugModule.java:75) E/DebugModule( 250): at ti.modules.titanium.debug.DebugModule.<init>(DebugModule.java:39) E/DebugModule( 250): at com.billdawson.membust.MembustApplication.bootModules(MembustApplication.java:53) E/DebugModule( 250): at org.appcelerator.titanium.TiApplication.bindModules(TiApplication.java:99) E/DebugModule( 250): at org.appcelerator.titanium.kroll.KrollBridge.<init>(KrollBridge.java:39) E/DebugModule( 250): at org.appcelerator.titanium.TiContext.createTiContext(TiContext.java:318) E/DebugModule( 250): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:89) E/DebugModule( 250): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:40) E/DebugModule( 250): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) E/DebugModule( 250): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459) E/DebugModule( 250): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) E/DebugModule( 250): at android.app.ActivityThread.access$2200(ActivityThread.java:119) E/DebugModule( 250): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) E/DebugModule( 250): at android.os.Handler.dispatchMessage(Handler.java:99) E/DebugModule( 250): at android.os.Looper.loop(Looper.java:123) E/DebugModule( 250): at android.app.ActivityThread.main(ActivityThread.java:4363) E/DebugModule( 250): at java.lang.reflect.Method.invokeNative(Native Method) E/DebugModule( 250): at java.lang.reflect.Method.invoke(Method.java:521) E/DebugModule( 250): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) E/DebugModule( 250): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/DebugModule( 250): at dalvik.system.NativeStart.main(Native Method) {code}
    via by Bill Dawson,
  • * Open Ti Studio (no emulator should be open already) * Open a mobile project * Set a breakpoint somewhere in app.js * Debug-launch the app Because the emulator isn't already running, it is -- of course -- launched. The app gets installed successfully, but the breakpoint is not hit. The problem is _not_ a timeout for the debugger, rather: {code} D/KrollProxy( 250): (main) [7,230] New: AndroidModule D/KrollProxy( 250): (main) [37,267] New: DebugModule D/DebugModule( 250): (main) [13,280] Read debug config: {"enabled":false} E/DebugModule( 250): (main) [3,283] JSONObject["port"] not found. E/DebugModule( 250): org.json.JSONException: JSONObject["port"] not found. E/DebugModule( 250): at org.json.JSONObject.get(JSONObject.java:287) E/DebugModule( 250): at org.json.JSONObject.getInt(JSONObject.java:347) E/DebugModule( 250): at ti.modules.titanium.debug.DebugModule.readDebugConfig(DebugModule.java:75) E/DebugModule( 250): at ti.modules.titanium.debug.DebugModule.<init>(DebugModule.java:39) E/DebugModule( 250): at com.billdawson.membust.MembustApplication.bootModules(MembustApplication.java:53) E/DebugModule( 250): at org.appcelerator.titanium.TiApplication.bindModules(TiApplication.java:99) E/DebugModule( 250): at org.appcelerator.titanium.kroll.KrollBridge.<init>(KrollBridge.java:39) E/DebugModule( 250): at org.appcelerator.titanium.TiContext.createTiContext(TiContext.java:318) E/DebugModule( 250): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:89) E/DebugModule( 250): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:40) E/DebugModule( 250): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) E/DebugModule( 250): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459) E/DebugModule( 250): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) E/DebugModule( 250): at android.app.ActivityThread.access$2200(ActivityThread.java:119) E/DebugModule( 250): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) E/DebugModule( 250): at android.os.Handler.dispatchMessage(Handler.java:99) E/DebugModule( 250): at android.os.Looper.loop(Looper.java:123) E/DebugModule( 250): at android.app.ActivityThread.main(ActivityThread.java:4363) E/DebugModule( 250): at java.lang.reflect.Method.invokeNative(Native Method) E/DebugModule( 250): at java.lang.reflect.Method.invoke(Method.java:521) E/DebugModule( 250): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) E/DebugModule( 250): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/DebugModule( 250): at dalvik.system.NativeStart.main(Native Method) {code}
    via by Bill Dawson,
  • Server Absturz [Archiv] - Minecraft.de
    via by Unknown author,
  • GitHub comment 32#141872385
    via GitHub by levj220
    ,
    • org.json.JSONException: JSONObject["port"] not found. at org.json.JSONObject.get(JSONObject.java:287) at org.json.JSONObject.getInt(JSONObject.java:347) at ti.modules.titanium.debug.DebugModule.readDebugConfig(DebugModule.java:75) at ti.modules.titanium.debug.DebugModule.<init>(DebugModule.java:39) at com.billdawson.membust.MembustApplication.bootModules(MembustApplication.java:53) at org.appcelerator.titanium.TiApplication.bindModules(TiApplication.java:99) at org.appcelerator.titanium.kroll.KrollBridge.<init>(KrollBridge.java:39) at org.appcelerator.titanium.TiContext.createTiContext(TiContext.java:318) at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:89) at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:40) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) at android.app.ActivityThread.access$2200(ActivityThread.java:119) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4363) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) at dalvik.system.NativeStart.main(Native Method)

    Users with the same issue

    Sacchi
    2 times, last one,
    Unknown User
    10 times, last one,
    Hiren Amaliyar
    51 times, last one,
    Adrien
    6 times, last one,
    johnxfly
    1 times, last one,
    68 more bugmates