从现有的extjs5应用程序目录:
> sencha app upgrade path\to\ext-5.0.0
Sencha Cmd v5.0.0.116
[ERR] java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Unknown Source)
at java.util.regex.Matcher.reset(Unknown Source)
at java.util.regex.Matcher.<init>(Unknown Source)
at java.util.regex.Pattern.matcher(Unknown Source)
at com.sencha.util.Version.cleanVersionString(Version.java:169)
at com.sencha.command.app.AppCommands$UpgradeCommand.execute(AppCommands.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
at com.sencha.cli.Command.dispatch(Command.java:43)
at com.sencha.command.app.AppCommands$UpgradeCommand.dispatch(AppCommands.java:335)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.command.Sencha.dispatch(Sencha.java:71)
at com.sencha.command.Sencha.main(Sencha.java:139)
%100下载的sdk位于path\to\ext-5.0.0
尝试升级5.0.0.736 - &gt; 5.0.0.970
sencha app upgrade
和sencha app upgrade -ext
请告知
答案 0 :(得分:0)
我也有类似的问题。你可以试试这个:
sencha upgrade
sencha app upgrade
如果失败,请使用
生成新应用sencha -sdk /path/to/ext generate app --starter=no YourAppName your/app/path
这将跳过默认的入门应用创建。然后将旧的应用程序文件复制到新结构,最后运行
sencha app build
我不得不使用第二种方法:重新生成,复制,构建。