Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoking any API fails in WSO2 APIM v3.2.0.1 throwing ClassNotFoundException #367

Open
shubhadeep14 opened this issue Oct 13, 2020 · 0 comments

Comments

@shubhadeep14
Copy link

Description:
I am able to Create & publish API but Unable to invoke any newly create API timeouts after subscription using this repo, tried using swagger UI from the Dev Portal > Try Out option both HTTP & HTTPS didn't worked after putting the Authentication bearer

Note :
Same steps when running from Docker Hub is working fine https://hub.docker.com/r/wso2/wso2am

Affected Product Version:
v3.2.0.1

OS, DB, other environment details and versions:
MAC OS Catalina
Docker Desktop 2.3.0.5
Docker Engine 19.0.3
Compose 1.27.2

api-manager_1             | [2020-10-13 04:36:51,048]  INFO - CarbonCoreActivator Java Home        : /opt/java/openjdk
api-manager_1             | [2020-10-13 04:36:51,049]  INFO - CarbonCoreActivator Java Version     : 11.0.8
api-manager_1             | [2020-10-13 04:36:51,050]  INFO - CarbonCoreActivator Java VM          : OpenJDK 64-Bit Server VM 11.0.8+10,AdoptOpenJDK

Steps to reproduce:

  1. Clone repo
  2. Start containers using docker-compose up from either apim-is-as-km-with-analytics or apim-with-analytics
  3. Create & Publish API , followed quick step https://apim.docs.wso2.com/en/latest/getting-started/quick-start-guide/ or also steps given in lms.wso2.com
    Able to Create > Publish & Subscribe API successfully.
  4. Invoke API following Step 3 - https://apim.docs.wso2.com/en/latest/getting-started/quick-start-guide/
api-manager_1             | [2020-10-13 05:01:42,591]  INFO - DependencyTracker Local entry : ga-config-key was added to the Synapse configuration successfully
api-manager_1             | [2020-10-13 05:01:42,594]  INFO - DependencyTracker Local entry : 2c582424-ef1f-4e70-9591-7082949f1bae was added to the Synapse configuration successfully
api-manager_1             | [2020-10-13 05:01:42,611]  INFO - DependencyTracker Endpoint : HelloWorld--v1.0.0_APIsandboxEndpoint was added to the Synapse configuration successfully
api-manager_1             | [2020-10-13 05:01:42,622]  INFO - DependencyTracker Endpoint : HelloWorld--v1.0.0_APIproductionEndpoint was added to the Synapse configuration successfully
api-manager_1             | [2020-10-13 05:01:42,831]  INFO - DependencyTracker API : admin--HelloWorld:v1.0.0 was added to the Synapse configuration successfully
api-manager_1             | [2020-10-13 05:01:42,832]  INFO - API {api:admin--HelloWorld:v1.0.0} Initializing API: admin--HelloWorld:v1.0.0
api-manager_1             | [2020-10-13 05:01:43,063]  INFO - CarbonAuthenticationUtil '[email protected] [-1234]' logged in at [2020-10-13 05:01:43,063+0000]
api-manager_1             | [2020-10-13 05:11:24,457]  WARN - SourceHandler I/O error: Received fatal alert: certificate_unknown
api-manager_1             | [2020-10-13 05:11:24,499]  WARN - AccessConfiguration Error loading properties from file: access-log.properties
api-manager_1             | [2020-10-13 05:11:24,506]  WARN - MiscellaneousUtil Error loading properties from a file at from the System defined location: access-log.properties
api-manager_1             | [2020-10-13 05:11:24,510]  WARN - MiscellaneousUtil Error loading properties from a file at from the System defined location: access-log.properties
api-manager_1             | [2020-10-13 05:11:24,587]  INFO - LogMediator STATUS = Message dispatched to the main sequence. Invalid URL., RESOURCE = /, HEALTH CHECK URL = /
api-manager_1             | [2020-10-13 05:11:47,669]  WARN - SourceHandler I/O error: Received fatal alert: certificate_unknown
api-manager_1             | [2020-10-13 05:11:47,819] ERROR - NativeWorkerPool Uncaught exception
api-manager_1             | java.lang.NoClassDefFoundError: org/wso2/carbon/apimgt/impl/jwt/SignedJWTInfo$ValidationStatus
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.jwt.JWTValidator.getJwtValidationInfo_aroundBody16(JWTValidator.java:422) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.jwt.JWTValidator.getJwtValidationInfo(JWTValidator.java:415) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.jwt.JWTValidator.authenticate_aroundBody0(JWTValidator.java:136) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.jwt.JWTValidator.authenticate(JWTValidator.java:111) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.oauth.OAuthAuthenticator.authenticate_aroundBody4(OAuthAuthenticator.java:300) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.oauth.OAuthAuthenticator.authenticate(OAuthAuthenticator.java:114) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.isAuthenticate_aroundBody42(APIAuthenticationHandler.java:424) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.isAuthenticate(APIAuthenticationHandler.java:418) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest_aroundBody36(APIAuthenticationHandler.java:354) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:325) ~[org.wso2.carbon.apimgt.gateway_6.7.206.jar:?]
api-manager_1             | 	at org.apache.synapse.rest.API.process(API.java:373) ~[synapse-core_2.1.7.wso2v183.jar:2.1.7-wso2v183]
api-manager_1             | 	at org.apache.synapse.rest.RESTRequestHandler.apiProcessNonDefaultStrategy(RESTRequestHandler.java:144) ~[synapse-core_2.1.7.wso2v183.jar:2.1.7-wso2v183]
api-manager_1             | 	at org.apache.synapse.rest.RESTRequestHandler.identifyAPI(RESTRequestHandler.java:164) ~[synapse-core_2.1.7.wso2v183.jar:2.1.7-wso2v183]
api-manager_1             | 	at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:95) ~[synapse-core_2.1.7.wso2v183.jar:2.1.7-wso2v183]
api-manager_1             | 	at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:73) ~[synapse-core_2.1.7.wso2v183.jar:2.1.7-wso2v183]
api-manager_1             | 	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:331) ~[synapse-core_2.1.7.wso2v183.jar:2.1.7-wso2v183]
api-manager_1             | 	at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:99) ~[synapse-core_2.1.7.wso2v183.jar:2.1.7-wso2v183]
api-manager_1             | 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) ~[axis2_1.6.1.wso2v41.jar:?]
api-manager_1             | 	at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:367) ~[synapse-nhttp-transport_2.1.7.wso2v183.jar:?]
api-manager_1             | 	at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:188) ~[synapse-nhttp-transport_2.1.7.wso2v183.jar:?]
api-manager_1             | 	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) [axis2_1.6.1.wso2v41.jar:?]
api-manager_1             | 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
api-manager_1             | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
api-manager_1             | 	at java.lang.Thread.run(Thread.java:834) [?:?]
api-manager_1             | Caused by: java.lang.ClassNotFoundException: org.wso2.carbon.apimgt.impl.jwt.SignedJWTInfo$ValidationStatus cannot be found by org.wso2.carbon.apimgt.gateway_6.7.206
api-manager_1             | 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461) ~[org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1             | 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:423) ~[org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1             | 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:415) ~[org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1             | 	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155) ~[org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1             | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
api-manager_1             | 	... 24 more

Related Issues:

@shubhadeep14 shubhadeep14 changed the title Invoking any API fails in WSO2 APIM v3.2.0.1 throwing Caused by: java.lang.ClassNotFoundException: org.wso2.carbon.apimgt.impl.jwt.SignedJWTInfo$ValidationStatus cannot be found by org.wso2.carbon.apimgt.gateway_6.7.206 Invoking any API fails in WSO2 APIM v3.2.0.1 throwing ClassNotFoundException Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant