BUILD FAILED with Sencha CMD - sencha-touch

I installed Sencha CMD tool in order to build production app. I went through sencha guidelines: http://docs.sencha.com/cmd/5.x/touch/cmd_app.html and upgraded to new version 2.4.
I'm running Sencha Touch 2.4.0.487, Sencha Cmd 5.0.2.270 with Ruby 1.9.3, Compass 1.0.1, Sass 3.4.5 on Windows 8.
Basically I'm trying to build production, but it fails. You can see errors below.
If anyone has any pointers it would be really appreciated.
Sencha Cmd v5.0.2.270
[INF] Processing Build Descriptor : default
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: java.lang.NullPointerException
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:
..\www\app\.sencha\app\build-impl.xml:376: The following error occurr
ed while executing this line:
..\www\app\.sencha\app\init-impl.xml:292: com.sencha.exceptions.Basic
Exception: java.lang.NullPointerException
..\www\app>sencha app build testing
Sencha Cmd v5.0.2.270
[INF] Processing Build Descriptor : default
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: java.lang.NullPointerException
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
..\www\app\.sencha\app\build-impl.xml:376: The following error occurr
ed while executing this line:
..\www\app\.sencha\app\init-impl.xml:292: com.sencha.exceptions.Basic
Exception: java.lang.NullPointerException}

Related

Apache hive beeline error: JAVA Error: A JNI error has occurred, please check your installation and try again

When I run the beeline command that came with Apache Hive 3.1.2 I get an error that says:
PS C:\Users\bluet> beeline.cmd
File Not Found
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hive/jdbc/JdbcUriParseException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)
Caused by: java.lang.ClassNotFoundException: org.apache.hive.jdbc.JdbcUriParseException
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 7 more
This is what the beeline.cmd command looks like.
Hadoop is running smoothly including hdfs and yarn.
I am on Java 8.
What could be the problem?
I also received the same error. Then when i checked the file "beeline.cmd", i saw it needs hive-jdbc--standalone.jar**. So Downloading that and placing it in C:\Users-----\apache-hive-3.1.2-bin\lib solved the issue.

Failed on deploying adapter on IBM MobileFirst Platform 8.0

I'm tearing my hair off with IBM MobileFirst Platform 8.0 on deploying the adapter.
I'm quite new to this platform and trying to following the instruction here
http://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/creating-adapters/#creating-adapters-using-mobilefirst-cli
I installed the mfp server, the mfpdev-cli, installed maven, created an adapter (which is just a default adapter). Then, run
mfpdev adapter build
The operation was success.
However, when I tried to deploy to the mfp server using mfpdev, there was an error in the console and the adapter was not deployed.
Here's the error :
[INFO] -----------------------------------------------------------------------
[INFO] Building SampleAdapter 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- adapter-maven-plugin:8.0.2018021101:deploy (default-cli) # SampleAdapter ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.529 s
[INFO] Finished at: 2561-03-08T19:20:29+07:00
[INFO] Final Memory: 8M/112M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.ibm.mfp:adapter-maven-plugin:8.0.2018021101:deploy (default-cli) on project SampleAdapter: Unexpected response from http://localhost:9080/mfpadmin/management-apis/2.0/runtimes/mfp/adapters -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error deploying adapter
undefined
Error: An error occurred during an attempt to deploy the adapter. See the
preceding messages for details.
And when I looked to the mfp server log, it showed this error.
[ERROR ] RuntimeMBeanCallable.call() exception
java.lang.reflect.UndeclaredThrowableException
[err] java.lang.reflect.UndeclaredThrowableException
[err] at com.sun.proxy.$Proxy342.changeDeploymentState(Unknown Source)
[err] at com.ibm.mfp.admin.actions.ArtifactDeploymentTransaction.prepareMBean(ArtifactDeploymentTransaction.java:822)
[err] at com.ibm.mfp.admin.actions.util.RuntimeMBeanWorkerThreadCaller$RuntimeMBeanCallale.call(RuntimeMBeanWorkerThreadCaller.java:76)
[err] at com.ibm.mfp.admin.actions.util.RuntimeMBeanWorkerThreadCaller.callSynchronouslyRuntimeMBeanWorkerThreadCaller.java:206)
[err] at com.ibm.mfp.admin.actions.util.RuntimeMBeanPoolCaller.callRuntimeMBeans(RuntimeMBeanPoolCaller.java:91)
.
.
.
.
[err] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
[err] at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:501)
[err] at java.lang.Throwable.readObject(Throwable.java:914)
[err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[err] at java.lang.reflect.Method.invoke(Method.java:497)
[err] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
[err] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1900)
[err] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
[err] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
[err] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
[err] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
[err] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
[err] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
[err] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
[err] at com.ibm.ws.jmx.connector.server.rest.JSONSerializationHelper.readObject(JSONSerializationHelper.java:69)
[err] at [internal classes]
[err] ... 102 more
[ERROR ] Unable to delete configuration with id ADAPTER_CONTENT due to exception FWLSE3208E: An invalid status code "404" was returned.
The response content is "{"reason":"configuration_not_found","details":"CNFSRVE115: configuration with id 'ADAPTER_CONTENT' for schema 'mfp_default_schema' with version '1.0' not found"}".
However, I did skim back to the server starting log, there seemed to have some [err], which I'm not sure whether it is an error or not.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the file:/D:/MobileFirst/mfp server/usr/servers/mfp/apps/mfp-push-service.war location rather than from a product class loader.
[err] 670 PushPU-derby INFO [Default Executor-thread-2] openjpa.Runtime - Starting OpenJPA 2.4.1
[err] 1363 PushPU-derby INFO [Default Executor-thread-2] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary".
[err] 2688 PushPU-derby INFO [Default Executor-thread-2] openjpa.jdbc.JDBC - Connected to Apache Derby version 10.10 using JDBC driver Apache Derby Embedded JDBC Driver version 10.11.1.1 - (1616546).
[AUDIT ] CWWKZ0001I: Application mfp started in 47.549 seconds.
[AUDIT ] CWWKZ0001I: Application imfpush started in 49.088 seconds.
[19:12:51,128][WARN ][org.elasticsearch.bootstrap] JNA not found. native methods will be disabled.
[err] 24634 WorklightManagementPU-derby INFO [Default Executor-thread-5] openjpa.Runtime - Starting OpenJPA 2.4.1
[err] 24634 WorklightManagementPU-derby INFO [Default Executor-thread-5] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary" (Apache Derby 10.11.1.1 - (1616546) ,Apache Derby Embedded JDBC Driver 10.11.1.1 - (1616546)).
[err] 24650 WorklightManagementPU-derby INFO [Default Executor-thread-5] openjpa.jdbc.JDBC - Connected to Apache Derby version 10.10 using JDBC driver Apache Derby Embedded JDBC Driver version 10.11.1.1 - (1616546).
[AUDIT ] CWWKZ0001I: Application analytics-service started in 58.394 seconds.
I couldn't find any solution or resource regarded to this problem. There are just some few thread talking about this but they couldn't manage to solve it either.
Configuration with id 'ADAPTER_CONTENT' for schema 'mfp_default_schema' with version '1.0' not found
and
https://www.cpume.com/question/fezseeoz-unable-to-delete-configuration-with-id-adapter-content-due-to-exception-fwlse320.html
I also tried to deploy from MobileFirst Application Web Console. It also failed.
My machine env are as follow:
OS : Win7 SP1
JDK : 1.8.0_60-b27
Maven : 3.5.2
MFP Server : 8.0.0.00-20180220-083852
mfpdev-cli : 8.0.0-2017102406
Anyone has experienced this before?
All helps and suggestions would be greatly appreciated...

Encounter error when building app in sencha

Encountered the following error when I tried to build the app.
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: No such property : splitFramework
[ERR]
[ERR] Total time: 1 second
[ERR] The following error occurred while executing this line:
C:\xampp\htdocs\sencha\tileconmob\.sencha\app\build-impl.xml:378: The following
error occurred while executing this line:
C:\xampp\htdocs\sencha\tileconmob\.sencha\app\init-impl.xml:296: com.sencha.exce
ptions.ExNotFound: No such property : splitFramework
What is the cause of this error? Anyway, what is the step by step guide to generate an apk?

IBM Worklight OutOfSyncException

Environment:
IBM Worklight 6.2.0.0 Consumer Edition
Liberty 8.5.5.1
IBM DB2
Windows 2008 Server
iPhone 5 - IOS 7
Adapter based authentication
2 nodes of Worklight Server points a single DB2 Instance.
Direct update is prompted frequently when I try to login. But I have an updated build running on my device.
Even if I proceed with the update, device build rolled back to previous build.
After sometime device prompts to update, this time new build has been updated.
I got the following as logs.
[ERROR ] RuntimeMBeanCallable.call() exception
java.lang.reflect.UndeclaredThrowableException
[err] java.lang.reflect.UndeclaredThrowableException
[err] at com.sun.proxy.$Proxy137.deleteApplication(Unknown Source)
[err] at com.ibm.worklight.admin.actions.ApplicationDeletionTransaction.prepareMBean(ApplicationDeletionTransaction.java:160)
[err] at com.ibm.worklight.admin.actions.util.RuntimeMBeanWorkerThreadCaller$RuntimeMBeanCallable.call(RuntimeMBeanWorkerThreadCaller.java:75)
[err] at com.ibm.worklight.admin.actions.util.RuntimeMBeanWorkerThreadCaller.callSynchronously(RuntimeMBeanWorkerThreadCaller.java:182)
[err] at com.ibm.worklight.admin.actions.util.RuntimeMBeanPoolCaller.callRuntimeMBeans(RuntimeMBeanPoolCaller.java:91)
[err] at com.ibm.worklight.admin.actions.BaseTransaction.prepare(BaseTransaction.java:364)
[err] at com.ibm.worklight.admin.actions.BaseTransaction.internalRun(BaseTransaction.java:307)
[err] at com.ibm.worklight.admin.actions.BaseTransaction.run(BaseTransaction.java:227)
[err] at com.ibm.worklight.admin.services.ApplicationService.deleteApplication(ApplicationService.java:521)
.
.
.
.
.
.
[err] at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[err] at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:52)
[err] at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
[err] at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
[err] at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:133)
[err] at com.ibm.worklight.admin.services.RestServlet.service(RestServlet.java:39)
[err] at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[err] at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
[err] at [internal classes]
[err] Caused by: java.io.IOException: CWWKX0204E: Unable to parse Throwable from server error stream.
[err] at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.getServerThrowable(RESTMBeanServerConnection.java:1712)
[err] at [internal classes]
[err] ... 83 more
[err] Caused by: java.lang.ClassNotFoundException: com.worklight.twopc.exceptions.OutOfSyncException
[err] at com.ibm.ws.kernel.internal.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:96)
[err] at java.lang.ClassLoader.loadClass(Unknown Source)
[err] at com.ibm.ws.kernel.internal.classloader.BootstrapChildFirstJarClassloader.loadClass(BootstrapChildFirstJarClassloader.java:56)
[err] at java.lang.ClassLoader.loadClass(Unknown Source)
[err] at com.ibm.ws.serialization.DeserializationObjectInputStream.loadClass(DeserializationObjectInputStream.java:57)
[err] at [internal classes]
[err] ... 87 more
Is this because of both Worklight instance points to same DB2? I believe this is not the case.
Help me to resolve the issue of roll back build.
This may be happening because you are using two independent Libery profile application servers, which both point to the same database.
Because they are independent, they do not get "synced" when a Direct Update occurs.
To have this sync enabled, the application servers must be deployed as a farm of servers.
For more information on server farms, review the following documentation topic: Defining a server farm for Worklight Server administration

SenchaCMD Error during refresh or build

I have an error with SenchaCMD 4.0.2.67. When I try to run sencha app refresh or sencha app build or sencha ant phonegap-sencha-build on the terminal, I get the following error:
...
[INF] -detect-app-build-properties:
[INF] Loading app json manifest...
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/touch/src
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/app.js
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/app
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/Ux
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/build/temp/production/Inpunkto/sencha-compiler/app
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException
[ERR] at com.sencha.tools.compiler.sources.ReferenceVisitor.processObjectAutoDependencies(Refe
[ERR] renceVisitor.java:303)
[ERR] at com.sencha.tools.compiler.sources.ReferenceVisi
[ERR] tor.processObjectAutoDependencies(ReferenceVisitor.java:303)
[ERR] at org.mozilla.javascript.ast.FunctionNode.visit(Func
[ERR] tionNode.java:421)
[ERR] at com.sencha.tools.comp
[ERR] iler.sources.ReferenceVisitor.processObjectAutoDependencies(ReferenceVisitor.java:303)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfig(InstanceConfigReferenceProcess
[ERR] or.java:128)
[ERR] at org.mozilla.javascript.ast.Block.visit(Block
[ERR] .java:61)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfig(Inst
[ERR] anceConfigReferenceProcessor.java:131)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferen
[ERR] ceProcessor.processInstanceConfig(InstanceConfigReferenceProcessor.java:128)
[ERR] at org.mozilla.javascript.ast.ExpressionStatement.visit(ExpressionStat
[ERR] ement.java:120)
[ERR] at com.sencha.tools.compiler.sou
[ERR] rces.InstanceConfigReferenceProcessor.processInstanceConfig(InstanceConfigReferenceProcessor.java:131)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfigForClass(InstanceConfigReferenceProcessor.java:
[ERR] 179)
[ERR] at org
[ERR] .mozilla.javascript.ast.ExpressionStatement.visit(ExpressionStatement.java:120)
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:
/Users/matthias/Sencha/Cmd/4.0.2.67/plugins/touch/2.3/plugin.xml:326: The following error occurred while executing this line:
/path/to/project/senchatouch/projects/inpunkto/.sencha/app/build-impl.xml:367: The following error occurred while executing this line:
/path/to/project/senchatouch/projects/inpunkto/.sencha/app/js-impl.xml:11: com.sencha.exceptions.BasicException
I have a SenchaTouch 2.3.1 app and integrated the newest release of phonegap into it by using the command: sencha phonegap init [AppID].
Can anybody tell my what this error is all about?
it seems like you are building a code created with sencha architect. Please create a separate project using sencha generate app.. command and then copy the contents from this project to newly created project. Make necessary changes whereever needed, such as project name in each file, etc. I think it will work fine after that...