net.sf.cglib.core.CodeGenerationException

java.lang.NoSuchMethodException-->com.splwg.base.domain.common.message.ServerMessageFactory_Impl__.<init>(java.lang.Class)

Samebug tips1

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web10

  • java.lang.NoSuchMethodException-->com.splwg.base.domain.common.message.ServerMessageFactory_Impl__.<init>(java.lang.Class)
  • java.lang.NoSuchMethodException-->B$$EnhancerByCGLIB$$db68ebca.<init>()
  • via Spring JIRA by Saif ul Islam Khan, 1 year ago
    java.lang.ClassCastException-->java.lang.Class incompatible with java.lang.reflect.ParameterizedType
  • Stack trace

    • net.sf.cglib.core.CodeGenerationException: java.lang.NoSuchMethodException-->com.splwg.base.domain.common.message.ServerMessageFactory_Impl__.<init>(java.lang.Class) at net.sf.cglib.core.ReflectUtils.getConstructor(ReflectUtils.java:248) at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:220) at net.sf.cglib.reflect.FastClass$Generator.firstInstance(FastClass.java:76) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:225) at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:64) at net.sf.cglib.proxy.MethodProxy.helper(MethodProxy.java:121) at net.sf.cglib.proxy.MethodProxy.init(MethodProxy.java:74) at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:226) at com.splwg.base.support.interception.BusinessMethodInterceptor.intercept(BusinessMethodInterceptor.java:84) at com.splwg.base.domain.common.message.ServerMessageFactory_Impl__.createMessage(<generated>) at com.splwg.base.api.changehandling.ServerMessageTemplate.createServerMessage(ServerMessageTemplate.java:99) at com.splwg.base.api.changehandling.ServerMessageTemplate.createServerMessage(ServerMessageTemplate.java:117) at com.splwg.base.api.changehandling.RestrictRule.privateThrowError(RestrictRule.java:418) at com.splwg.base.api.changehandling.RestrictRule.handleWhenConditionalsAreTrue(RestrictRule.java:400) at com.splwg.base.support.changehandlers.AbstractValidationRule.applyRule(AbstractValidationRule.java:88) at com.splwg.base.support.changehandlers.ChangeEventHandler.applyRule(ChangeEventHandler.java:321) at com.splwg.base.support.changehandlers.ChangeEventHandler.access$2(ChangeEventHandler.java:318) at com.splwg.base.support.changehandlers.ChangeEventHandler$2.run(ChangeEventHandler.java:242) at com.splwg.base.support.changehandlers.ChangeEventHandler$JumpToChangeHandlerRunner.run(ChangeEventHandler.java:370) at com.splwg.base.support.interception.SessionInterceptionManager.notifyGenericCallStackJump(SessionInterceptionManager.java:296) at com.splwg.base.support.context.FrameworkSession.notifyGenericCallStackJump(FrameworkSession.java:2182) at com.splwg.base.support.changehandlers.ChangeEventHandler.executeValidation(ChangeEventHandler.java:247) at com.splwg.base.support.changehandlers.SessionChangeManager.fireEagerValidations(SessionChangeManager.java:164) at com.splwg.base.support.changehandlers.SessionChangeManager.fireEvents(SessionChangeManager.java:113) at com.splwg.base.support.changehandlers.SessionChangeManager.setDTOCalled(SessionChangeManager.java:67) at com.splwg.base.support.context.FrameworkSession.setDTOCalled(FrameworkSession.java:1238) at com.splwg.base.support.api.AbstractBusinessEntity.completeSetAbstractDTO(AbstractBusinessEntity.java:167) at com.splwg.base.domain.common.script.Script_Per.completeSetAbstractDTO(Script_Per.java:418) at com.splwg.base.support.context.FrameworkSession.createBusinessEntity(FrameworkSession.java:1541) at com.splwg.base.support.impl.AbstractDataTransferObject$1.run(AbstractDataTransferObject.java:78) at com.splwg.base.support.impl.AbstractDataTransferObject$JumpFromDTORunner.run(AbstractDataTransferObject.java:172) at com.splwg.base.support.interception.SessionInterceptionManager.notifyGenericCallStackJump(SessionInterceptionManager.java:296) at com.splwg.base.support.context.FrameworkSession.notifyGenericCallStackJump(FrameworkSession.java:2182) at com.splwg.base.support.impl.AbstractDataTransferObject.abstractNewEntity(AbstractDataTransferObject.java:84) at com.splwg.base.domain.common.script.Script_DTO.newEntity(Script_DTO.java:268) at com.splwg.base.domain.common.script.Script_Test.testEligibilityOptionForBPAScript(Script_Test.java:81) 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:606) at junit.framework.TestCase.runTest(TestCase.java:164) at com.splwg.base.api.testers.TestCase.runTest(TestCase.java:39) at com.splwg.base.api.testers.ApplicationComponentTestCase.runTest(ApplicationComponentTestCase.java:181) at com.splwg.base.api.testers.AbstractEntityTestCase.runTest(AbstractEntityTestCase.java:64) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at com.splwg.base.api.testers.TestCase.run(TestCase.java:26) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:131) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: java.lang.NoSuchMethodException: com.splwg.base.domain.common.message.ServerMessageFactory_Impl__.<init>(java.lang.Class) at java.lang.Class.getConstructor0(Class.java:2849) at java.lang.Class.getDeclaredConstructor(Class.java:2053) at net.sf.cglib.core.ReflectUtils.getConstructor(ReflectUtils.java:244) ... 55 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 11 months ago
    3 times, 6 days ago
    Once, 3 weeks ago
    Once, 3 weeks ago
    2 times, 1 month ago
    113 more bugmates