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

[Bug][Manager] ConsumptionMqExtBase cannot be cast to ConsumptionPulsarInfo #3242

Closed
1 of 2 tasks
xuesongxs opened this issue Mar 19, 2022 · 3 comments · Fixed by #3245
Closed
1 of 2 tasks

[Bug][Manager] ConsumptionMqExtBase cannot be cast to ConsumptionPulsarInfo #3242

xuesongxs opened this issue Mar 19, 2022 · 3 comments · Fixed by #3245
Assignees
Labels
Milestone

Comments

@xuesongxs
Copy link
Contributor

xuesongxs commented Mar 19, 2022

What happened

Submit NewConsume failed!

image

2022-03-18 20:09:50.489 [http-nio-8083-exec-6] ERROR o.a.i.m.web.config.ControllerExceptionHandler:124 - Failed to handle request on path:/api/inlong/manager/consumption/save, user:admin
java.lang.ClassCastException: org.apache.inlong.manager.common.pojo.consumption.ConsumptionMqExtBase cannot be cast to org.apache.inlong.manager.common.pojo.consumption.ConsumptionPulsarInfo
        at org.apache.inlong.manager.service.core.impl.ConsumptionServiceImpl.savePulsarInfo(ConsumptionServiceImpl.java:167)
        at org.apache.inlong.manager.service.core.impl.ConsumptionServiceImpl.save(ConsumptionServiceImpl.java:156)
        at org.apache.inlong.manager.service.core.impl.ConsumptionServiceImpl$$FastClassBySpringCGLIB$$91c8c7ca.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
        at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)
        at org.apache.inlong.manager.service.core.impl.ConsumptionServiceImpl$$EnhancerBySpringCGLIB$$4401f9d9.save(<generated>)
        at org.apache.inlong.manager.web.controller.ConsumptionController.save(ConsumptionController.java:90)
        at org.apache.inlong.manager.web.controller.ConsumptionController$$FastClassBySpringCGLIB$$c7e6cdf7.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)
        at org.apache.inlong.manager.service.core.operationlog.OperationLogRecorder.doAround(OperationLogRecorder.java:72)
        at org.apache.inlong.manager.web.aspect.LogAspect.doAround(LogAspect.java:41)
        at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)

What you expected to happen

Submit NewConsume sucessful.

How to reproduce

1、Data Consumption/NewConsume
2、Submit

Environment

CentOS 7.2

InLong version

master

InLong Component

InLong Manager

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@xuesongxs xuesongxs added the type/bug Something is wrong label Mar 19, 2022
@dockerzhang
Copy link
Contributor

@healchow PTAL, thanks.

@xuesongxs
Copy link
Contributor Author

@healchow PTAL, thanks.
Is it convenient to add a wechat to ask questions?

@healchow
Copy link
Member

@healchow PTAL, thanks.
Is it convenient to add a wechat to ask questions?

yes, my wechat id is ma_shoufeng.

@healchow healchow added this to the 1.1.0 milestone Mar 20, 2022
@healchow healchow changed the title [Bug]ConsumptionMqExtBase cannot be cast to ConsumptionPulsarInfo [Bug][Manager] ConsumptionMqExtBase cannot be cast to ConsumptionPulsarInfo Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants