无法将错误从WSO2 AM 3.0.0迁移到4.1.0



我无法将WSO2am 3.0.0迁移到4.1.0。wso2文档后我一直在https://apim.docs.wso2.com/en/latest/install -和- setup/upgrading wso2 - api - manager/300 410/upgrading -从- 300到- 410/。当运行Step4.4时,我得到以下错误:

ERROR {org.wso2.carbon.apimgt.impl.internal.APIManagerComponent} - Error while initializing the API manager component org.wso2.carbon.apimgt.api.APIManagementException: Error while saving tenant conf to the registry of tenant carbon.super

Caused by: org.wso2.carbon.apimgt.api.APIMgtDAOException: Failed to retrieve TENANT Configuration for org: carbon.super

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'apim_db.AM_SYSTEM_CONFIGS' doesn't exist

ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/admin]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

ERROR {org.apache.catalina.core.StandardContext} - One or more listeners failed to start. Full details will be found in the appropriate container log file

ERROR {org.apache.catalina.core.StandardContext} - Context [/api/am/admin] startup failed due to previous errors

ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Cannot stop context org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/admin]] in state [DESTROYED]

ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Webapp StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/admin] failed to deploy

ERROR {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Error while deploying webapp: StandardContext[api#am#admin.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war] org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy
Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED
ERROR {org.wso2.carbon.webapp.mgt.AbstractWebappDeployer} - Error occurred while deploying webapp : /wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war org.wso2.carbon.CarbonException: Error while deploying webapp: StandardContext[api#am#admin.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war]
Caused by: org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy
Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED
ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException
ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/devops/v0]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException
ERROR {org.apache.catalina.core.StandardContext} - One or more listeners failed to start.
ERROR {org.apache.catalina.core.StandardContext} - Context [/api/am/devops/v0] startup failed due to previous errors
ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Cannot stop context org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/devops/v0]] in state [DESTROYED]
ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Webapp StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/devops/v0] failed to deploy
ERROR {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Error while deploying webapp: StandardContext[api#am#devops#v0.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war] org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy
ERROR {org.wso2.carbon.webapp.mgt.AbstractWebappDeployer} - Error occurred while deploying webapp : /wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war org.wso2.carbon.CarbonException: Error while deploying webapp: StandardContext[api#am#devops#v0.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war]
Caused by: org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy
Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED
ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException
ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/devportal]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException

和许多这样的重复错误。

我在VM(amazon linux)和mysql(amazon RDS)中使用该产品。

您必须使用最新的U2级别的APIM 4.1.0进行迁移,因为它包含迁移所需的一些更改。这些更改在GA版本中不可用(从网站或github下载)。

如果您订阅了WSO2,您可以使用U2工具[1]将4.1.0更新到最新版本。

[1] - https://updates.docs.wso2.com/en/latest/updates/overview/

相关内容

最新更新