Question

1
Replies
606
Views
Vamsi Thatavarthi (Vamsi.Thatavarthi)
Hcl Technologies

Hcl Technologies
NL
Vamsi.Thatavarthi Member since 2014 35 posts
Hcl Technologies
Posted: August 7, 2018
Last activity: January 9, 2019
Posted: 7 Aug 2018 5:59 EDT
Last activity: 9 Jan 2019 7:00 EST
Closed
Solved

Pega 6.3.1 - Attempting to access a rule with a bad defined-on class: < blank >.

Hi,


I've created a simple Rest connector in int- class and wanted to test it using activity. In activity, used Connect-Rest method by passing service name, method name and execution mode. Up on executing it, I'm getting "Attempting to access a rule with a bad defined-on class: <blank>. " error message.


Error from log

Hi,

I've created a simple Rest connector in int- class and wanted to test it using activity. In activity, used Connect-Rest method by passing service name, method name and execution mode. Up on executing it, I'm getting "Attempting to access a rule with a bad defined-on class: <blank>. " error message.

Error from log

2018-08-07 05:30:17,525 [ttp-bio-8097-exec-37] [ STANDARD] [ CLMSProFW:01.01.01] (ngineinterface.service.HttpAPI) ERROR com.pega.pegarules.pub.PRRuntimeError
com.pega.pegarules.pub.PRRuntimeError: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:683)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:584)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:2797)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:394)
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1043)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:765)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:328)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:720)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:312)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:263)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:240)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:277)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:222)
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:383)
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:271)
at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:349)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:390)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:439)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:118)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1136)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.pega.pegarules.pub.PRRuntimeException: Rule-Connect-REST lookup failed
at com.pegarules.generated.activity.sh_action_testactivity_101a117732924071ca2367fa49aa97b3.step1_circum0(sh_action_testactivity_101a117732924071ca2367fa49aa97b3.java:230)
at com.pegarules.generated.activity.sh_action_testactivity_101a117732924071ca2367fa49aa97b3.perform(sh_action_testactivity_101a117732924071ca2367fa49aa97b3.java:73)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3040)
at com.pegarules.generated.activity.ra_action_executemaystartactivity_f40836adf19b0aeed8b9fbc26f8d4445.step3_circum0(ra_action_executemaystartactivity_f40836adf19b0aeed8b9fbc26f8d4445.java:497)
at com.pegarules.generated.activity.ra_action_executemaystartactivity_f40836adf19b0aeed8b9fbc26f8d4445.perform(ra_action_executemaystartactivity_f40836adf19b0aeed8b9fbc26f8d4445.java:117)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3040)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:617)
... 44 more
Caused by: com.pega.pegarules.pub.database.BadClassDefinitionException: Attempting to access a rule with a bad defined-on class: <blank>.
From: (HB7D02AD9E9354DAB722B2E81F90B8FD1:)
at com.pega.pegarules.data.internal.access.RuleResolver.lookupFirstLevelCandidates(RuleResolver.java:2071)
at com.pega.pegarules.data.internal.access.RuleResolver.getFirstLevelCandidates(RuleResolver.java:1801)
at com.pega.pegarules.data.internal.access.RuleResolver.getFirstLevelCandidates(RuleResolver.java:1720)
at com.pega.pegarules.data.internal.access.RuleResolver.resolveRuleToCandidate(RuleResolver.java:759)
at com.pega.pegarules.data.internal.access.RuleResolver.resolveRuleToCandidate(RuleResolver.java:727)
at com.pega.pegarules.data.internal.access.RuleResolver.resolveRule(RuleResolver.java:679)
at com.pega.pegarules.data.internal.access.DatabaseImpl.open(DatabaseImpl.java:4116)
at com.pega.pegarules.data.internal.access.DatabaseImpl.open(DatabaseImpl.java:3842)
at com.pega.pegarules.data.internal.access.DatabaseImpl.open(DatabaseImpl.java:3810)
at com.pegarules.generated.activity.sh_action_testactivity_101a117732924071ca2367fa49aa97b3.step1_circum0(sh_action_testactivity_101a117732924071ca2367fa49aa97b3.java:228)
... 50 mor

Data Integration Java and Activities
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.