Android WSO2 EMM jks keystore Error prevents service from running

user3994005

I was trying to create the jks file as said in your documentation

keytool -importkeystore -srckeystore KEYSTORE.p12 -srcstoretype PKCS12 -destkeystore wso2carbon.jks 
keytool -importkeystore -srckeystore KEYSTORE.p12 -srcstoretype PKCS12 -destkeystore client-truststore.jks

it tells me wso2carbon.jks and client-truststore.jks exist and I should replace. If I replace it, I get this error when I try to run ./wso2server.sh

ERROR {org.wso2.carbon.apimgt.keymgt.internal.APIKeyMgtServiceComponent} -  Failed to initialize key management service.
java.lang.Exception: Error in initializing thrift transport
    at org.wso2.carbon.apimgt.keymgt.internal.APIKeyMgtServiceComponent.startThriftService(APIKeyMgtServiceComponent.java:222)
    at org.wso2.carbon.apimgt.keymgt.internal.APIKeyMgtServiceComponent.activate(APIKeyMgtServiceComponent.java:75)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:622)
    at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
    at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
    at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
    at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
    at org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent.activate(ThriftAuthenticationServiceComponent.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:622)
    at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
    at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
    at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
    at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
    at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
    at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
    at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:701)

And then when I got the error, I did copy the .jks files that comes with the zip binary file downloaded from WSO2 EMM Files. And ran wso2server.sh again, and there we go. It's running again. And I needed it to run the Android EMM. Please any help would be appreciated. I need the help as soon as I can get. And also, unlike before where when I try to login, I get Authentication failed. It's now Connection Failed "Server is unavailable. Please contact administrator" Thanks.

And when I use LogCat, this is what I see when I try to login with username and password

09-11 23:50:39.084: W/System.err(7021): Catch exception while startHandshake: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
09-11 23:50:39.084: W/System.err(7021): return an invalid session with invalid cipher suite of SSL_NULL_WITH_NULL_NULL
09-11 23:50:39.104: V/Check Reg Success(7021): From Demo Server: successfully added device!
Chatura Dilan

When following the docs[1] be careful to go through all 2 to 8 the steps without any errors. If you encounter any errors, it would not work at the runtime.

You have to import key-stores to existing wso2carbon.jks and client-truststore.jks which is in /repository/resources/security directory, otherwise you will get the error which is mention in your previous question[2]

[1]- https://docs.wso2.com/display/EMM110/iOS+Server+Configurations#iOSServerConfigurations-step2 [2] - WSO2 EMM Android Agent Configuration

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Managing iOS devices from wso2 emm console

From Dev

WSO2 EMM Error occurred while registering the OAuth application : emm

From Dev

WSO2 EMM Error occurred while registering the OAuth application : emm

From Dev

Keystore not loading JKS file from within jar

From Java

Android Error Building Signed APK: keystore.jks not found for signing config 'externalOverride'

From Dev

Error : IBM WAS cannot retrieve the key 'vivek' from "D:\policyset\client.jks" keystore

From Dev

WSO2 EMM provides API for development?

From Dev

Clustering of WSO2 EMM with redundant database

From Dev

WSO2 EMM - operation not working

From Dev

WSO2 EMM - WIFI operation not working

From Dev

WSO2 EMM - Usage limitations

From Dev

WSO2 EMM - Device Name

From Dev

What framework used in WSO2 Emm?

From Dev

Error 501 calling web service with WSO2 proxy service

From Dev

Adding project reference prevents windows service from starting - error 1053

From Dev

java - need to import private key from jks(java keystore)

From Dev

How to run WSO2 EMM Jaggery Web App in a WSO2 EMM Carbon Server?

From Dev

What is the purpose of a .jks keystore?

From Dev

WSO2 ESB proxy with IS Entitlement Service ERROR

From Dev

How to create certificate from keystore.jks and truststore.jks files

From Dev

WSO2Emm - Unable to register android device

From Dev

Why does WSO2 API Manager throw an error when trying to publish an API after setting up a new jks

From Dev

WSO2 agent compilation error with Android Studio 2.1.3

From Dev

Is there a WSO2 IS service to validate a SAML token generated from wso2carbon-sts

From Dev

WSO2 API Manager "error": "no response from server"

From Dev

error in use application from servise chaining in wso2 esb

From Dev

Error during Build from Source WSO2 Identity Server

From Dev

keystore.jks (for SSL) cannot be found when running project with Intellij IDEA, but is found by Eclipse

From Dev

Does wso2 emm provide space isolation?

Related Related

  1. 1

    Managing iOS devices from wso2 emm console

  2. 2

    WSO2 EMM Error occurred while registering the OAuth application : emm

  3. 3

    WSO2 EMM Error occurred while registering the OAuth application : emm

  4. 4

    Keystore not loading JKS file from within jar

  5. 5

    Android Error Building Signed APK: keystore.jks not found for signing config 'externalOverride'

  6. 6

    Error : IBM WAS cannot retrieve the key 'vivek' from "D:\policyset\client.jks" keystore

  7. 7

    WSO2 EMM provides API for development?

  8. 8

    Clustering of WSO2 EMM with redundant database

  9. 9

    WSO2 EMM - operation not working

  10. 10

    WSO2 EMM - WIFI operation not working

  11. 11

    WSO2 EMM - Usage limitations

  12. 12

    WSO2 EMM - Device Name

  13. 13

    What framework used in WSO2 Emm?

  14. 14

    Error 501 calling web service with WSO2 proxy service

  15. 15

    Adding project reference prevents windows service from starting - error 1053

  16. 16

    java - need to import private key from jks(java keystore)

  17. 17

    How to run WSO2 EMM Jaggery Web App in a WSO2 EMM Carbon Server?

  18. 18

    What is the purpose of a .jks keystore?

  19. 19

    WSO2 ESB proxy with IS Entitlement Service ERROR

  20. 20

    How to create certificate from keystore.jks and truststore.jks files

  21. 21

    WSO2Emm - Unable to register android device

  22. 22

    Why does WSO2 API Manager throw an error when trying to publish an API after setting up a new jks

  23. 23

    WSO2 agent compilation error with Android Studio 2.1.3

  24. 24

    Is there a WSO2 IS service to validate a SAML token generated from wso2carbon-sts

  25. 25

    WSO2 API Manager "error": "no response from server"

  26. 26

    error in use application from servise chaining in wso2 esb

  27. 27

    Error during Build from Source WSO2 Identity Server

  28. 28

    keystore.jks (for SSL) cannot be found when running project with Intellij IDEA, but is found by Eclipse

  29. 29

    Does wso2 emm provide space isolation?

HotTag

Archive