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

resource.properties file is missing from org.wso2.carbon.utils.i18n package. #2904

Open
sajinidesilva opened this issue Jan 25, 2021 · 0 comments
Labels

Comments

@sajinidesilva
Copy link

Description:
Below exception is thrown when calling org.wso2.carbon.utils.i18n.Messages.getMessage() method.
"'Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.wso2.carbon.utils.i18n.Messages
at com.synchronoss.cloud.oauth2.token.handlers.grant.UserStoreUtils.decrypt(UserStoreUtils.java:146)
at com.synchronoss.cloud.oauth2.token.handlers.grant.CustomRefreshGrantHandler.issue(CustomRefreshGrantHandler.java:104)
at org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:301)
at org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:254)
at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:318)
at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
... 56 more
"
This error occurs because Messages class is not initialized at the run time because of another exception. That exception is as below.

"Caused by: java.util.MissingResourceException: Cannot find resource 'org.wso2.carbon.utils.i18n.resource'
at org.wso2.carbon.utils.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:251)
at org.wso2.carbon.utils.i18n.MessagesConstants.(MessagesConstants.java:29)
... 69 more
"
This exception happens because the resource.properties file is missing in the "org.wso2.carbon.utils.i18n" package.

Suggested Labels:

Suggested Assignees:

Affected Product Version:
4.6.0 and all the previous versions
OS, DB, other environment details and versions:

Steps to reproduce:

Related Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants