xatkit-bot-platform / xatkit

The simplest way to build all types of smart chatbots and digital assistants
https://xatkit.com
Eclipse Public License 2.0
174 stars 23 forks source link

ISSUE GSON is panicking for <<some>>reasons. #46

Open crosemontinit opened 6 months ago

crosemontinit commented 6 months ago

full stack trace java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.xatkit.core.recognition.IntentRecognitionProviderFactory.getIntentRecognitionProvider (IntentRecognitionProviderFactory.java:128) at com.xatkit.core.XatkitBot.run (XatkitBot.java:160) at com.xatkit.example.GreetingsBot.main (GreetingsBot.java:514) at org.codehaus.mojo.exec.ExecJavaMojo.doMain (ExecJavaMojo.java:385) at org.codehaus.mojo.exec.ExecJavaMojo.doExec (ExecJavaMojo.java:374) at org.codehaus.mojo.exec.ExecJavaMojo.lambda$execute$0 (ExecJavaMojo.java:296) at java.lang.Thread.run (Thread.java:750) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance (Constructor.java:423) at com.xatkit.core.recognition.IntentRecognitionProviderFactory.getIntentRecognitionProvider (IntentRecognitionProviderFactory.java:124) at com.xatkit.core.XatkitBot.run (XatkitBot.java:160) at com.xatkit.example.GreetingsBot.main (GreetingsBot.java:514) at org.codehaus.mojo.exec.ExecJavaMojo.doMain (ExecJavaMojo.java:385) at org.codehaus.mojo.exec.ExecJavaMojo.doExec (ExecJavaMojo.java:374) at org.codehaus.mojo.exec.ExecJavaMojo.lambda$execute$0 (ExecJavaMojo.java:296) at java.lang.Thread.run (Thread.java:750) Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read (ReflectiveTypeAdapterFactory.java:226) at com.google.gson.Gson.fromJson (Gson.java:927) at com.google.gson.Gson.fromJson (Gson.java:892) at com.google.gson.Gson.fromJson (Gson.java:841) at com.google.gson.Gson.fromJson (Gson.java:813) at com.xatkit.core.recognition.nlpjs.NlpjsClient.executeCall (NlpjsClient.java:227) at com.xatkit.core.recognition.nlpjs.NlpjsClient.isShutdown (NlpjsClient.java:198) at com.xatkit.core.recognition.nlpjs.NlpjsIntentRecognitionProvider. (NlpjsIntentRecognitionProvider.java:206) at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance (Constructor.java:423) at com.xatkit.core.recognition.IntentRecognitionProviderFactory.getIntentRecognitionProvider (IntentRecognitionProviderFactory.java:124) at com.xatkit.core.XatkitBot.run (XatkitBot.java:160) at com.xatkit.example.GreetingsBot.main (GreetingsBot.java:514) at org.codehaus.mojo.exec.ExecJavaMojo.doMain (ExecJavaMojo.java:385) at org.codehaus.mojo.exec.ExecJavaMojo.doExec (ExecJavaMojo.java:374) at org.codehaus.mojo.exec.ExecJavaMojo.lambda$execute$0 (ExecJavaMojo.java:296) at java.lang.Thread.run (Thread.java:750) Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ at com.google.gson.stream.JsonReader.beginObject (JsonReader.java:385) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read (ReflectiveTypeAdapterFactory.java:215) at com.google.gson.Gson.fromJson (Gson.java:927) at com.google.gson.Gson.fromJson (Gson.java:892) at com.google.gson.Gson.fromJson (Gson.java:841) at com.google.gson.Gson.fromJson (Gson.java:813) at com.xatkit.core.recognition.nlpjs.NlpjsClient.executeCall (NlpjsClient.java:227) at com.xatkit.core.recognition.nlpjs.NlpjsClient.isShutdown (NlpjsClient.java:198) at com.xatkit.core.recognition.nlpjs.NlpjsIntentRecognitionProvider. (NlpjsIntentRecognitionProvider.java:206) at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance (Constructor.java:423) at com.xatkit.core.recognition.IntentRecognitionProviderFactory.getIntentRecognitionProvider (IntentRecognitionProviderFactory.java:124) at com.xatkit.core.XatkitBot.run (XatkitBot.java:160) at com.xatkit.example.GreetingsBot.main (GreetingsBot.java:514) at org.codehaus.mojo.exec.ExecJavaMojo.doMain (ExecJavaMojo.java:385) at org.codehaus.mojo.exec.ExecJavaMojo.doExec (ExecJavaMojo.java:374) at org.codehaus.mojo.exec.ExecJavaMojo.lambda$execute$0 (ExecJavaMojo.java:296) at java.lang.Thread.run (Thread.java:750) java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165) at org.eclipse.emf.common.util.CommonUtil$1ReferenceClearingQueuePollingThread.run(CommonUtil.java:80) [WARNING] thread Thread[pool-3-thread-1,5,com.xatkit.example.GreetingsBot] was interrupted but is still alive after waiting at least 14986msecs [WARNING] thread Thread[pool-3-thread-1,5,com.xatkit.example.GreetingsBot] will linger despite being asked to die via interruption [WARNING] thread Thread[OkHttp ConnectionPool,5,com.xatkit.example.GreetingsBot] will linger despite being asked to die via interruption [WARNING] thread Thread[Okio Watchdog,5,com.xatkit.example.GreetingsBot] will linger despite being asked to die via interruption [WARNING] NOTE: 3 thread(s) did not finish despite being asked to via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied. [WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=com.xatkit.example.GreetingsBot,maxpri=10] java.lang.IllegalThreadStateException at java.lang.ThreadGroup.destroy (ThreadGroup.java:778) at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:340) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)