aiceflower opened a new issue, #4795:
URL: https://github.com/apache/linkis/issues/4795

   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/linkis/issues) and 
found no similar issues.
   
   
   ### Linkis Component
   
   linkis-engineconnn-plugin
   
   ### Steps to reproduce
   
   Failed to import excel data to hive.
   
   error log:
   java.lang.RuntimeException: Unable to invoke no-args constructor for 
interface scala.collection.immutable.Map. Registering an InstanceCreator with 
Gson for this type may fix this problem.
   at 
com.google.gson.internal.ConstructorConstructor$14.construct(ConstructorConstructor.java:228)
   at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:212)
   at com.google.gson.Gson.fromJson(Gson.java:963)
   at com.google.gson.Gson.fromJson(Gson.java:928)
   at com.google.gson.Gson.fromJson(Gson.java:877)
   at com.google.gson.Gson.fromJson(Gson.java:848)
   at 
org.apache.linkis.engineplugin.spark.imexport.LoadData$.create_table_from_a_file(LoadData.scala:53)
   at 
org.apache.linkis.engineplugin.spark.imexport.LoadData$.loadDataToTable(LoadData.scala:44)
   ... 78 elided
   Caused by: java.lang.UnsupportedOperationException: Interface can't be 
instantiated! Interface name: scala.collection.immutable.Map
   at 
com.google.gson.internal.UnsafeAllocator.assertInstantiable(UnsafeAllocator.java:117)
   at 
com.google.gson.internal.UnsafeAllocator$1.newInstance(UnsafeAllocator.java:49)
   at 
com.google.gson.internal.ConstructorConstructor$14.construct(ConstructorConstructor.java:225)
   ... 85 more
   
   ### Expected behavior
   
   export success.
   
   ### Your environment
   
   linkis 1.4.0
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@linkis.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@linkis.apache.org
For additional commands, e-mail: notifications-h...@linkis.apache.org

Reply via email to