I am using cocos2d-x 2.1.2 , i have completed working on my ios builds and now started with android build. I created the android project using create-android-project.bat and successfully compiled it with cygwin. Then i imported the same into eclipse, but when i try to run the same onto a device it crashes on the launch itself.
So next i created a new hello world project and tried running the same on android device, the result was same as before.
But the hello world and test cpp projects present in samples folder run properly.
following is the log that i get in logcat(eclipse)
05-21 14:09:21.693: E/AndroidRuntime(322): FATAL EXCEPTION: main
05-21 14:09:21.693: E/AndroidRuntime(322): java.lang.UnsatisfiedLinkError: nativeSetExternalAssetPath
05-21 14:09:21.693: E/AndroidRuntime(322): at org.cocos2dx.lib.Cocos2dxHelper.nativeSetExternalAssetPath(Native Method)
05-21 14:09:21.693: E/AndroidRuntime(322): at org.cocos2dx.lib.Cocos2dxHelper.init(Cocos2dxHelper.java:64)
05-21 14:09:21.693: E/AndroidRuntime(322): at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:60)
05-21 14:09:21.693: E/AndroidRuntime(322): at com.sci.test.TestApp.onCreate(TestApp.java:33)
05-21 14:09:21.693: E/AndroidRuntime(322): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-21 14:09:21.693: E/AndroidRuntime(322): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
05-21 14:09:21.693: E/AndroidRuntime(322): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
05-21 14:09:21.693: E/AndroidRuntime(322): at android.app.ActivityThread.access$1500(ActivityThread.java:121)
05-21 14:09:21.693: E/AndroidRuntime(322): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
05-21 14:09:21.693: E/AndroidRuntime(322): at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 14:09:21.693: E/AndroidRuntime(322): at android.os.Looper.loop(Looper.java:138)
05-21 14:09:21.693: E/AndroidRuntime(322): at android.app.ActivityThread.main(ActivityThread.java:3701)
05-21 14:09:21.693: E/AndroidRuntime(322): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 14:09:21.693: E/AndroidRuntime(322): at java.lang.reflect.Method.invoke(Method.java:507)
05-21 14:09:21.693: E/AndroidRuntime(322): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
05-21 14:09:21.693: E/AndroidRuntime(322): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
05-21 14:09:21.693: E/AndroidRuntime(322): at dalvik.system.NativeStart.main(Native Method)
any ideas where i might be going wrong. All suggestions are welcome.
I've had the same problem.
I resolved by including the project cocos2dx/cocos2dx/platform/android/java, linking it to my game project and deleting the previous package org.cocos2dx.lib.
Related
I have imported the project into android studio. I am the only one getting this error.
This is the headline of the error
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
Here is the stack trace:
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':appmanager:kaptProdDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
> java.lang.reflect.InvocationTargetException (no error message)
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':appmanager:kaptProdDebugKotlin'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:205)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:203)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:184)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:53)
at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:200)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:215)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:164)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:131)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:90)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:31)
at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:45)
... 35 more
Caused by: java.lang.reflect.InvocationTargetException
Caused by: com.sun.tools.javac.processing.AnnotationProcessingError: java.lang.ExceptionInInitializerError
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:992)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:896)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1222)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1335)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258)
... 42 more
Caused by: java.lang.ExceptionInInitializerError
at androidx.room.processor.DatabaseProcessor.doProcess(DatabaseProcessor.kt:82)
at androidx.room.processor.DatabaseProcessor.process(DatabaseProcessor.kt:57)
at androidx.room.RoomProcessor$DatabaseProcessingStep.process(RoomProcessor.kt:134)
at com.google.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:330)
at com.google.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:181)
at org.jetbrains.kotlin.kapt3.base.incremental.IncrementalProcessor.process(incrementalProcessors.kt:90)
at org.jetbrains.kotlin.kapt3.base.ProcessorWrapper.process(annotationProcessing.kt:188)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:980)
... 46 more
Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64
at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:333)
BUILD FAILED in 1m 5s
189 actionable tasks: 177 executed, 12 up-to-date
Caused by: com.sun.tools.javac.processing.AnnotationProcessingError: java.lang.ExceptionInInitializerError
Caused by: java.lang.ExceptionInInitializerError
Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64
I have an update.
These error were thrown because of a bug in room library that has to do with apple M1 chip, I am using macbook pro M1 chip, I found related questions asked similar question and after updating the room library version to 2.4.2, the above error is resolved. No I am getting this error.
Caused by: java.lang.IllegalArgumentException: #androidx.room.Database does not define an element autoMigrations()
at com.google.auto.common.AnnotationMirrors.getAnnotationElementAndValue(AnnotationMirrors.java:134)
at
Caused by: java.lang.IllegalArgumentException: #androidx.room.Database does not define an element autoMigrations()
at com.google.auto.common.AnnotationMirrors.getAnnotationElementAndValue(AnnotationMirrors.java:134)
at
com.google.auto.common.AnnotationMirrors.getAnnotationValue(AnnotationMirrors.java:114)
at androidx.room.compiler.processing.javac.JavacAnnotationBoxKt.box(JavacAnnotationBox.kt:71)
at androidx.room.compiler.processing.javac.JavacElement.getAnnotations(JavacElement.kt:57)
at androidx.room.compiler.processing.InternalXAnnotated.getAnnotations(InternalXAnnotated.kt:46)
at androidx.room.compiler.processing.XAnnotated.getAnnotation(XAnnotated.kt:147)
at androidx.room.processor.DatabaseProcessor.doProcess(DatabaseProcessor.kt:68)
at androidx.room.processor.DatabaseProcessor.process(DatabaseProcessor.kt:61)
at androidx.room.DatabaseProcessingStep$process$databases$1$1.invoke(DatabaseProcessingStep.kt:79)
at androidx.room.DatabaseProcessingStep$process$databases$1$1.invoke(DatabaseProcessingStep.kt:75)
at androidx.room.processor.Context.collectLogs(Context.kt:149)
at androidx.room.DatabaseProcessingStep.process(DatabaseProcessingStep.kt:75)
at androidx.room.DatabaseProcessingStep.process(DatabaseProcessingStep.kt:42)
at androidx.room.compiler.processing.CommonProcessorDelegate.processRound(XBasicAnnotationProcessor.kt:122)
at androidx.room.compiler.processing.javac.JavacBasicAnnotationProcessor.process(JavacBasicAnnotationProcessor.kt:71)
at org.jetbrains.kotlin.kapt3.base.incremental.IncrementalProcessor.process(incrementalProcessors.kt:90)
at org.jetbrains.kotlin.kapt3.base.ProcessorWrapper.process(annotationProcessing.kt:188)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:980)
I have an update. These error were thrown because of a bug in room library that has to do with apple M1 chip, I am using macbook pro M1 chip, I found related questions asked similar question and after updating the room library version to 2.4.2, the above error is resolved. No I am getting this error.
Thank you for this. I couldn't find the error in my app for 2 days. Turns out it was this...
I have updated Mobilefirst Platform Foundations 8.0 to the last fix available right now (8.0.0.0-MFPF-IF202011111304) After applying the fix, we didn't have any problem, however when we tried to send an IOS push notification we got this error:
[1/22/21 10:05:36:058 CST] 00000484 Mediator E
com.ibm.mfp.push.server.notification.Mediator submitNotification
FPWSE1081E: Failure sending notification. See the server log file for
more details.
java.lang.UnsatisfiedLinkError: failed to load the required native library at
io.netty.handler.ssl.OpenSsl.ensureAvailability(OpenSsl.java:474) at
io.netty.handler.ssl.ReferenceCountedOpenSslContext.(ReferenceCountedOpenSslContext.java:196)
at
io.netty.handler.ssl.ReferenceCountedOpenSslContext.(ReferenceCountedOpenSslContext.java:185)
at io.netty.handler.ssl.OpenSslContext.(OpenSslContext.java:34)
at
io.netty.handler.ssl.OpenSslClientContext.(OpenSslClientContext.java:189)
at
io.netty.handler.ssl.SslContext.newClientContextInternal(SslContext.java:827)
at
io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:576)
at
com.ibm.mfp.push.server.notification.nettyapns.NettyApplicationConnection.setService(NettyApplicationConnection.java:433)
at
com.ibm.mfp.push.server.notification.nettyapns.NettyApplicationConnection.sendNotification(NettyApplicationConnection.java:137)
at
com.ibm.mfp.push.server.notification.apns.APNSMediator.sendNotification(APNSMediator.java:166)
at
com.ibm.mfp.push.server.notification.Mediator$2.run(Mediator.java:105)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)
at java.util.concurrent.FutureTask.run(FutureTask.java:277) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.lang.Thread.run(Thread.java:822) Caused by:
java.lang.IllegalArgumentException: Failed to load any of the given
libraries: [netty_tcnative_aix_ppc_64, netty_tcnative_ppc_64,
netty_tcnative] at
io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:104)
at io.netty.handler.ssl.OpenSsl.loadTcNative(OpenSsl.java:581) at
io.netty.handler.ssl.OpenSsl.(OpenSsl.java:133) at
com.ibm.mfp.push.server.notification.nettyapns.NettyApplicationConnection.setService(NettyApplicationConnection.java:419)
... 8 more Suppressed: java.lang.UnsatisfiedLinkError: could not
load a native library: netty_tcnative_aix_ppc_64 at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:224)
at
io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:96)
... 11 more Caused by: java.io.FileNotFoundException:
META-INF/native/libnetty_tcnative_aix_ppc_64.a at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:173)
... 12 more Suppressed: java.lang.UnsatisfiedLinkError:
netty_tcnative_aix_ppc_64 (Not found in java.library.path) at
java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1462) at
java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1414)
at java.lang.System.loadLibrary(System.java:584) at
io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at
io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:349)
at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136)
... 12 more Suppressed: java.lang.UnsatisfiedLinkError:
netty_tcnative_aix_ppc_64 (Not found in java.library.path)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1462)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1414)
at java.lang.System.loadLibrary(System.java:584)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:369)
at java.security.AccessController.doPrivileged(AccessController.java:678)
at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:361)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:339)
... 13 more Suppressed: java.lang.UnsatisfiedLinkError: could not load a native library: netty_tcnative_ppc_64 at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:224)
at
io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:96)
... 11 more Caused by: java.io.FileNotFoundException:
META-INF/native/libnetty_tcnative_ppc_64.a at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:173)
... 12 more Suppressed: java.lang.UnsatisfiedLinkError:
netty_tcnative_ppc_64 (Not found in java.library.path) at
java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1462) at
java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1414)
at java.lang.System.loadLibrary(System.java:584) at
io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at
io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:349)
at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136)
... 12 more Suppressed: java.lang.UnsatisfiedLinkError:
netty_tcnative_ppc_64 (Not found in java.library.path)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1462)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1414)
at java.lang.System.loadLibrary(System.java:584)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:369)
at java.security.AccessController.doPrivileged(AccessController.java:678)
at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:361)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:339)
... 13 more Suppressed: java.lang.UnsatisfiedLinkError: could not load a native library: netty_tcnative at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:224)
at
io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:96)
... 11 more Caused by: java.io.FileNotFoundException:
META-INF/native/libnetty_tcnative.a at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:173)
... 12 more Suppressed: java.lang.UnsatisfiedLinkError:
netty_tcnative (Not found in java.library.path) at
java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1462) at
java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1414)
at java.lang.System.loadLibrary(System.java:584) at
io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at
io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:349)
at
io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:136)
... 12 more Suppressed: java.lang.UnsatisfiedLinkError:
netty_tcnative (Not found in java.library.path)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1462)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1414)
at java.lang.System.loadLibrary(System.java:584)
at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:369)
at java.security.AccessController.doPrivileged(AccessController.java:678)
at io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:361)
at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:339)
... 13 more
According to the error, it looks like there is a missing library. Searching inside of the war I found out, that there are not libraries for aix.
There is someone out there with the same problem, or should I open a case with IBM?
Thank you!
Please create a case with IBM so we can track it and provide timely update/solution.
We are aware of the issue and working on it. Till then please use Legacy protocol to send APNS notifications.
To switch to Legacy protocol you need to set below JNDI to false
<jndiEntry jndiName="imfpush/mfp.push.apns.http2.enabled" value= '"false"'/>
Thanks.
I'am having a problem with JS Debugger on Windows or Android, when I debug the app crashes. Every time I try to reopen it, the app crashes. This is my log cat:
2019-02-04 12:48:27.135 26780-26833/com.cmcj E/AndroidRuntime: FATAL EXCEPTION: mqt_js
Process: com.cmcj, PID: 26780
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/FirebaseApp;
at io.invertase.firebase.RNFirebaseModule.getConstants(RNFirebaseModule.java:158)
at com.facebook.react.bridge.JavaModuleWrapper.getConstants(JavaModuleWrapper.java:138)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:154)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.FirebaseApp" on path: DexPathList[[zip file "/data/app/com.cmcj-1/base.apk"],nativeLibraryDirectories=[/data/app/com.cmcj-1/lib/arm, /data/app/com.cmcj-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at io.invertase.firebase.RNFirebaseModule.getConstants(RNFirebaseModule.java:158)
at com.facebook.react.bridge.JavaModuleWrapper.getConstants(JavaModuleWrapper.java:138)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:154)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
at java.lang.Thread.run(Thread.java:761)
It does look like the linking went wrong after linking firebase. You need to make sure that everything is in place in MainApplication (especially the namespaces from where classes are taken).
Hi Got the below excption while running the Wso2 Esb Client java code with security with Jdk 1.5 version and Could you please provide the solution..
java.lang.ClassNotFoundException: org.wso2.carbon.security.util.SecurityTokenStore
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.ws.security.util.Loader.loadClass(Loader.java:155)
at org.apache.rampart.RampartMessageData.getTokenStorage(RampartMessageData.java:639)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:138)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at WSO2.WSO2_Axis2_Client19.UpdateAssetStatusSecuirtyStub.updateAssetStatusSecurity(UpdateAssetStatusSecuirtyStub.java:193)
at WSO2.WSO2_Axis2_Client19.UpdateAssetClientProgram.main(UpdateAssetClientProgram.java:94)
29 Jul, 2015 2:30:33 PM org.apache.ws.security.util.Loader loadClass
WARNING: org.wso2.carbon.security.util.SecurityTokenStore
java.lang.ClassNotFoundException: org.wso2.carbon.security.util.SecurityTokenStore
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.ws.security.util.Loader.loadClass(Loader.java:185)
at org.apache.ws.security.util.Loader.loadClass(Loader.java:163)
at org.apache.rampart.RampartMessageData.getTokenStorage(RampartMessageData.java:639)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:138)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at WSO2.WSO2_Axis2_Client19.UpdateAssetStatusSecuirtyStub.updateAssetStatusSecurity(UpdateAssetStatusSecuirtyStub.java:193)
at WSO2.WSO2_Axis2_Client19.UpdateAssetClientProgram.main(UpdateAssetClientProgram.java:94)
Exception in thread "main" java.lang.RuntimeException: Undefined 'WSHandler: cannot load token storage class: org.wso2.carbon.security.util.SecurityTokenStore' resource property
at org.apache.rampart.RampartException.getMessage(RampartException.java:81)
at org.apache.rampart.RampartException.(RampartException.java:61)
at org.apache.rampart.RampartException.(RampartException.java:67)
at org.apache.rampart.RampartMessageData.getTokenStorage(RampartMessageData.java:641)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:138)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at WSO2.WSO2_Axis2_Client19.UpdateAssetStatusSecuirtyStub.updateAssetStatusSecurity(UpdateAssetStatusSecuirtyStub.java:193)
at WSO2.WSO2_Axis2_Client19.UpdateAssetClientProgram.main(UpdateAssetClientProgram.java:94)
I got the same issue with jdk 1.7 in java client. it worked after adding the correct org.wso2.carbon.security.mgt maven dependency.
I am in the process of migrating an application from WAS 7 to WAS 8.5 but am having trouble starting the application. Following is the error I get. A similar question was asked earlier but was not answered,Unable to start application on websphere 8.5, but running on version 7
. I would appreciate if someone could throw some light on this issue.
ADMA0116W: Unable to start: dcaEAR using: WebSphere:name=ApplicationManager,process=server1,platform=proxy,node=W7-PC009NYLNode01,version=8.5.0.1,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=W7-PC009NYLNode01Cell,spec=1.0 exception is: javax.management.MBeanException: Exception thrown in RequiredModelMBean while trying to invoke operation startApplication
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1112)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
at com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1482)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1371)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1320)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)
Caused by: com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: null
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:432)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1173)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:772)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1367)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2172)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5363)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5579)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1259)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
... 38 more
Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: null
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:759)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
... 68 more
Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: null
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:176)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
... 70 more
Caused by: java.lang.reflect.GenericSignatureFormatError
at sun.reflect.generics.parser.SignatureParser.error(SignatureParser.java:115)
at sun.reflect.generics.parser.SignatureParser.parseSimpleClassTypeSignature(SignatureParser.java:274)
at sun.reflect.generics.parser.SignatureParser.parseClassTypeSignatureSuffix(SignatureParser.java:282)
at sun.reflect.generics.parser.SignatureParser.parseClassTypeSignature(SignatureParser.java:256)
at sun.reflect.generics.parser.SignatureParser.parseClassSignature(SignatureParser.java:183)
at sun.reflect.generics.parser.SignatureParser.parseClassSig(SignatureParser.java:138)
at sun.reflect.generics.repository.ClassRepository.parse(ClassRepository.java:46)
at sun.reflect.generics.repository.ClassRepository.parse(ClassRepository.java:35)
at sun.reflect.generics.repository.AbstractRepository.<init>(AbstractRepository.java:68)
at sun.reflect.generics.repository.GenericDeclRepository.<init>(GenericDeclRepository.java:42)
at sun.reflect.generics.repository.ClassRepository.<init>(ClassRepository.java:42)
at sun.reflect.generics.repository.ClassRepository.make(ClassRepository.java:59)
at java.lang.Class.getClassRepository(Class.java:1825)
at java.lang.Class.getTypeParameters(Class.java:1842)
at org.apache.webbeans.util.ClassUtil.isDefinitionConstainsTypeVariables(ClassUtil.java:1653)
at org.apache.webbeans.config.BeanTypeSetResolver.normalClassConfiguration(BeanTypeSetResolver.java:72)
at org.apache.webbeans.config.BeanTypeSetResolver.startConfiguration(BeanTypeSetResolver.java:60)
at org.apache.webbeans.util.ClassUtil.setTypeHierarchy(ClassUtil.java:1710)
at org.apache.webbeans.portable.AbstractAnnotated.<init>(AbstractAnnotated.java:55)
at org.apache.webbeans.portable.AnnotatedTypeImpl.<init>(AnnotatedTypeImpl.java:58)
at org.apache.webbeans.portable.AnnotatedElementFactory.newAnnotatedType(AnnotatedElementFactory.java:98)
at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:484)
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)
at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)
at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)
at com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)
at com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
... 71 more
According to soa4j
This error happens when you use reflection and you try to load a class
but the definition of the class does not match what you expected to found,
probably due to an older JAR library being loaded in a more modern
version of a server. Check the nested exception to try to find the
name of the class colliding and put it in another classloader.
http://www.soa4j.com/RequestContentFromID?q=968830446190576900&lang=en
Have you tried enabling verbose loading of classes to see in which class this happens?