Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.6.0
-
None
Description
When I try to import an exported note, the import dialog remains with no output.
I found an exception log like this.
com.google.gson.JsonSyntaxException: 2016-06-16T04:39:11+0000
at com.google.gson.internal.bind.DateTypeAdapter.deserializeToDate(DateTypeAdapter.java:81)
at com.google.gson.internal.bind.DateTypeAdapter.read(DateTypeAdapter.java:66)
at com.google.gson.internal.bind.DateTypeAdapter.read(DateTypeAdapter.java:41)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
at com.google.gson.Gson.fromJson(Gson.java:791)
at org.apache.zeppelin.notebook.Notebook.importNote(Notebook.java:199)
at org.apache.zeppelin.socket.NotebookServer.importNote(NotebookServer.java:650)
Caused by: java.text.ParseException: Unparseable date: "2016-06-16T04:39:11+0000"
at java.text.DateFormat.parse(DateFormat.java:366)
at com.google.gson.internal.bind.DateTypeAdapter.deserializeToDate(DateTypeAdapter.java:79)
It seems date format is the cause.
Dates in exported json from release version are like "Apr 19, 2016 12:04:58 PM",
but dates in exported json from snapshot version are like "2016-06-15T14:39:04+0000".
I found a similar issue ( https://issues.apache.org/jira/browse/ZEPPELIN-905 ) and PR ( https://github.com/apache/zeppelin/pull/933 ),
but it seems its focus is different.
I think this problem is created by this commit - https://github.com/apache/zeppelin/commit/b18811fd3694b9ca0f34b9d8c6c6697430e02c8e -
Attachments
Attachments
Issue Links
- links to