Results 1 to 6 of 6

Thread: Cannot convert java.lang.String to java.util.Date (value=2017-05-10T18:19:02Z)

    You found a bug! We've classified it as SDKTOOLS-1920 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    Aug 2009
    Location
    Sant cugat del Valles
    Posts
    29
    Vote Rating
    0
      0  

    Default Cannot convert java.lang.String to java.util.Date (value=2017-05-10T18:19:02Z)

    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?





  2. #2
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Vote Rating
    52
      0  

    Default

    Hi

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

    Thanks
    Petr

  3. #3
    Ext JS Premium Member
    Join Date
    Aug 2009
    Location
    Sant cugat del Valles
    Posts
    29
    Vote Rating
    0
      0  

    Default

    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)

  4. #4
    Sencha Premium User
    Join Date
    Apr 2016
    Posts
    1
    Vote Rating
    0
      0  

    Default

    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.

  5. #5
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Vote Rating
    52
      0  

    Default

    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

  6. #6
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Macerata
    Posts
    16
    Vote Rating
    0
      0  

    Default

    I have the same problem after I upgraded


Similar Threads

  1. Replies: 2
    Last Post: 6 Sep 2016, 2:12 AM
  2. [FIXED] Invalid UUID string / java.lang.NullPointerException
    By M165437 in forum Sencha Cmd
    Replies: 10
    Last Post: 26 Nov 2014, 7:45 PM
  3. java.lang.OutOfMemoryError: Java heap space
    By trinitrotoluen in forum Sencha Cmd
    Replies: 11
    Last Post: 1 Oct 2013, 3:39 PM
  4. Replies: 16
    Last Post: 7 Mar 2013, 8:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •