PDA

View Full Version : [OPEN] Cannot convert java.lang.String to java.util.Date (value=2017-05-10T18:19:02Z)



aestevez
20 Jun 2017, 3:15 AM
At the time to build my app now i have seen this message

Exception in thread "Thread-20" Exception in thread "Thread-18" com.sencha.exceptions.ExConvert: Cannot convert java.lang.String to java.util.Date (value=2017-05-10T18:19:02Z)
at com.sencha.util.BasicTypeConverter.convert(BasicTypeConverter.java:22)
at com.sencha.util.Converter.convert(Converter.java:24)
at com.sencha.security.Signature.setCreatedText(Signature.java:93)
at com.sencha.security.Signature.(Signature.java:55)
at com.sencha.tools.pkg.Model$Package.(Model.java:962)
at com.sencha.tools.pkg.Model$Package.load(Model.java:910)
at com.sencha.tools.pkg.Model$Package.load(Model.java:895)
at com.sencha.command.environment.PackageEnvironment.loadModel(PackageEnvironment.java:270)
at com.sencha.command.environment.PackageEnvironment.getPackageModel(PackageEnvironment.java:262)
at com.sencha.command.environment.PackageEnvironment.getModel(PackageEnvironment.java:297)
at com.sencha.command.environment.PackageEnvironment.(PackageEnvironment.java:51)
at com.sencha.command.environment.FrameworkEnvironment.(FrameworkEnvironment.java:70)
at com.sencha.command.environment.WorkspaceEnvironment.loadFrameworkEnvironment(WorkspaceEnvironment.java:86)
at com.sencha.command.environment.AppOrPackageEnvironment.loadFrameworkConfig(AppOrPackageEnvironment.java:115)
at com.sencha.command.environment.AppEnvironment.(AppEnvironment.java:51)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:107)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:131)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:77)
at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:482)
at com.sencha.tools.server.service.tasks.DispatchTask.execute(DispatchTask.java:49)
at com.sencha.tools.server.service.tasks.BaseServiceTask$1.run(BaseServiceTask.java:42)
at com.sencha.util.ThreadUtil$1.run(ThreadUtil.java:65)
at com.sencha.util.ThreadUtil$2.run(ThreadUtil.java:162)
at java.lang.Thread.run(Thread.java:745)
com.sencha.exceptions.ExConvert: Cannot convert java.lang.String to java.util.Date (value=2017-05-10T18:19:02Z)
at com.sencha.util.BasicTypeConverter.convert(BasicTypeConverter.java:22)
at com.sencha.util.Converter.convert(Converter.java:24)
at com.sencha.security.Signature.setCreatedText(Signature.java:93)
at com.sencha.security.Signature.(Signature.java:55)
at com.sencha.tools.pkg.Model$Package.(Model.java:962)
at com.sencha.tools.pkg.Model$Package.load(Model.java:910)
at com.sencha.tools.pkg.Model$Package.load(Model.java:895)
at com.sencha.command.environment.PackageEnvironment.loadModel(PackageEnvironment.java:270)
at com.sencha.command.environment.PackageEnvironment.getPackageModel(PackageEnvironment.java:262)
at com.sencha.command.environment.PackageEnvironment.getModel(PackageEnvironment.java:297)
at com.sencha.command.environment.PackageEnvironment.(PackageEnvironment.java:51)
at com.sencha.command.environment.FrameworkEnvironment.(FrameworkEnvironment.java:70)
at com.sencha.command.environment.WorkspaceEnvironment.loadFrameworkEnvironment(WorkspaceEnvironment.java:86)
at com.sencha.command.environment.AppOrPackageEnvironment.loadFrameworkConfig(AppOrPackageEnvironment.java:115)
at com.sencha.command.environment.AppEnvironment.(AppEnvironment.java:51)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:107)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:131)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:77)
at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:482)
at com.sencha.tools.server.service.tasks.DispatchTask.execute(DispatchTask.java:49)
at com.sencha.tools.server.service.tasks.BaseServiceTask$1.run(BaseServiceTask.java:42)
at com.sencha.util.ThreadUtil$1.run(ThreadUtil.java:65)
at com.sencha.util.ThreadUtil$2.run(ThreadUtil.java:162)
at java.lang.Thread.run(Thread.java:745)

After search into my project folder I have found this:

hostname:Project-gui$ egrep -R "2017-05-10T18:19:02Z" *
ext/package.json: "created": "2017-05-10T18:19:02Z",

Assuming the date is wrong and affects at the time to compile to read from there?

petr.vecera
20 Jun 2017, 4:16 AM
Hi

Thanks for the report. Does it also happens after restart?

Thanks
Petr

aestevez
20 Jun 2017, 5:26 AM
I have tried but then i got this:

Sencha Cmd v6.5.0.180


[ERR] Cannot convert java.lang.String to java.util.Date (value=2017-05-10 18:19:02)
[ERR] A crash log is available in the file "/Users/xxxxxx/Desktop/PROJECTS/xxx/Project-gui/sencha-error-20170620.log" please contact Sencha Support and share this file with us.

So i read the old date from my git repo and pasted inside the package.json again and then tried to do a sencha app refresh and worked?? weird....

Attached the output of the crash file too


Sencha Cmd 6.5.0.180 - Crash report
================================================
An error occurred while executing the following command: app clean


Diagnostic information:
=======================
Error while loading build environment: Cannot convert java.lang.String to java.util.Date (value=2017-05-10 18:19:02)


java.lang.NullPointerException
at com.sencha.command.Sencha.logCrashToFile(Sencha.java:622)
at com.sencha.command.Sencha.main(Sencha.java:169)
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:497)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)




Exception information:
=======================
Cannot convert java.lang.String to java.util.Date (value=2017-05-10 18:19:02)
at com.sencha.util.BasicTypeConverter.convert(BasicTypeConverter.java:22)
at com.sencha.util.Converter.convert(Converter.java:24)
at com.sencha.security.Signature.setCreatedText(Signature.java:93)
at com.sencha.security.Signature.<init>(Signature.java:55)
at com.sencha.tools.pkg.Model$Package.<init>(Model.java:962)
at com.sencha.tools.pkg.Model$Package.load(Model.java:910)
at com.sencha.tools.pkg.Model$Package.load(Model.java:895)
at com.sencha.command.environment.PackageEnvironment.loadModel(PackageEnvironment.java:270)
at com.sencha.command.environment.PackageEnvironment.getPackageModel(PackageEnvironment.java:262)
at com.sencha.command.environment.PackageEnvironment.getModel(PackageEnvironment.java:297)
at com.sencha.command.environment.PackageEnvironment.<init>(PackageEnvironment.java:51)
at com.sencha.command.environment.FrameworkEnvironment.<init>(FrameworkEnvironment.java:70)
at com.sencha.command.environment.WorkspaceEnvironment.loadFrameworkEnvironment(WorkspaceEnvironment.java:86)
at com.sencha.command.environment.AppOrPackageEnvironment.loadFrameworkConfig(AppOrPackageEnvironment.java:115)
at com.sencha.command.environment.AppEnvironment.<init>(AppEnvironment.java:51)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:107)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:131)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:77)
at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:482)
at com.sencha.command.Sencha.main(Sencha.java:133)
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:497)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

Binnity
31 Jul 2017, 8:13 AM
I have the same problem after I upgraded SA to 4.2.1.224 (cmd: 6.5.0.180):

Exception in thread "Thread-20" com.sencha.exceptions.ExConvert: Cannot convert java.lang.String to java.util.Date (value=2017-05-10T18:19:02Z)
at com.sencha.util.BasicTypeConverter.convert(BasicTypeConverter.java:22)
at com.sencha.util.Converter.convert(Converter.java:24)
at com.sencha.security.Signature.setCreatedText(Signature.java:93)
at com.sencha.security.Signature.(Signature.java:55)
at com.sencha.tools.pkg.Model$Package.(Model.java:962)
at com.sencha.tools.pkg.Model$Package.load(Model.java:910)
at com.sencha.tools.pkg.Model$Package.load(Model.java:895)
at com.sencha.command.environment.PackageEnvironment.loadModel(PackageEnvironment.java:270)
at com.sencha.command.environment.PackageEnvironment.getPackageModel(PackageEnvironment.java:262)
at com.sencha.command.environment.PackageEnvironment.getModel(PackageEnvironment.java:297)
at com.sencha.command.environment.PackageEnvironment.(PackageEnvironment.java:51)
at com.sencha.command.environment.FrameworkEnvironment.(FrameworkEnvironment.java:70)
at com.sencha.command.environment.WorkspaceEnvironment.loadFrameworkEnvironment(WorkspaceEnvironment.java:86)
at com.sencha.command.environment.AppOrPackageEnvironment.loadFrameworkConfig(AppOrPackageEnvironment.java:115)
at com.sencha.command.environment.AppEnvironment.(AppEnvironment.java:51)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:107)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:131)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:77)
at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:482)
at com.sencha.tools.server.service.tasks.DispatchTask.execute(DispatchTask.java:49)
at com.sencha.tools.server.service.tasks.BaseServiceTask$1.run(BaseServiceTask.java:42)
at com.sencha.util.ThreadUtil$1.run(ThreadUtil.java:65)
at com.sencha.util.ThreadUtil$2.run(ThreadUtil.java:162)
at java.lang.Thread.run(Thread.java:745)


egrep -R "2017-05-10T18:19:02Z" *
ext/package.json: "created": "2017-05-10T18:19:02Z",

Thanks for help.

petr.vecera
31 Jul 2017, 8:18 AM
Hi guys, yeah we are tracking this thing in the Cmd. But I think it shouldn't affect you in any way. All should work even with this.

Let us know if it causes any troubles.

Thank you

Zeusss82
1 Oct 2017, 11:25 PM
I have the same problem after I upgraded