org.json.JSONException

A JSONArray text must start with '[' at character 1

Samebug tips1

The json is invalid or you try to map to a different model.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web849

  • A JSONArray text must start with '[' at character 1
  • A JSONArray text must start with '[' at character 1
  • via GitHub by agautam-hs
    , 5 months ago
    A JSONArray text must start with '[' at 1 [character 2 line 1]
  • Stack trace

    • org.json.JSONException: A JSONArray text must start with '[' at character 1 at org.json.JSONTokener.syntaxError(JSONTokener.java:410)[json-20090211.jar:?] at org.json.JSONArray.<init>(JSONArray.java:113)[json-20090211.jar:?] at org.json.JSONArray.<init>(JSONArray.java:157)[json-20090211.jar:?] at io.toast.tk.core.rest.RestUtils.downloadRepository(RestUtils.java:61)[toast-tk-rest-utils-0.1.4-SNAPSHOT.jar:?] at io.toast.tk.maven.plugin.DownloadScriptsMojo.execute(DownloadScriptsMojo.java:70)[toast-tk-maven-plugin-0.1.4-SNAPSHOT.jar:?] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)[maven-core-3.3.9.jar:3.3.9] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)[maven-embedder-3.3.9.jar:3.3.9] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)[maven-embedder-3.3.9.jar:3.3.9] at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)[maven-embedder-3.3.9.jar:3.3.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_60] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)[plexus-classworlds-2.5.2.jar:?] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)[plexus-classworlds-2.5.2.jar:?] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)[plexus-classworlds-2.5.2.jar:?] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)[plexus-classworlds-2.5.2.jar:?]

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 1 year ago
    5 times, 1 month ago
    5 times, 9 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    77 more bugmates