GenericJobException Unknown Job after modifying and running Job Example from the SDK(6.1.3)

Description
jrdk
Posts: 3
Joined: Fri Mar 08, 2019 10:12 pm

GenericJobException Unknown Job after modifying and running Job Example from the SDK(6.1.3)

Postby jrdk » Mon Apr 01, 2019 2:19 pm

Hello,

So I am at my wit's end in debugging the issue with my custom job.
Here is what I changed:
    I changed JOB_NAME in IOverdueJobUnit.java to "myjobA.job".

    Inside of the jobUnitFactory tag, I changed its name attribute to "myjobA.job" in hivemodule.xml. The jobUnitFactory tag is inside the contribution tags.


Attached is my project directory structure.
projectStructure.PNG
projectStructure.PNG (40.09 KiB) Viewed 767 times


Below will list details for my MANIFEST.MF.
    Overview Card.
    overview.PNG
    overview.PNG (162.19 KiB) Viewed 767 times


    Dependencies Card only include com.polarion.platform.jobs and com.polarion.alm.tracker.

    Runtime Card has com.polarion.example.job under "Exported Packages" and example-job.jar under "Classpath".

    Nothing under Extensions.

    Nothing under Extension Points.

    Build Card
    buildConfiguration.PNG
    buildConfiguration.PNG (77.49 KiB) Viewed 767 times


    MANIFEST.MF Card

    Code: Select all

    Manifest-Version: 1.0
    Require-Bundle: com.polarion.platform.jobs,com.polarion.alm.tracker
    Bundle-Vendor: Polarion Software
    Bundle-ClassPath: example-job.jar
    Bundle-Version: 1.0.0
    Bundle-Name: Job Example Plug-in
    Bundle-ManifestVersion: 2
    Bundle-SymbolicName: com.polarion.example.job
    Export-Package: com.polarion.example.job


    and finally build.properties Card

    Code: Select all

    bin.includes = META-INF/,\
                   example-job.jar,\
                   src/META-INF/
    source.example-job.jar = src/
    bin.excludes = META-INF/.svn/



Here's the stack trace.

2019-04-01 10:23:43,864 [ajp-nio-8889-exec-5] INFO PolarionLicensing - User 'admin' logged in with named ALM
2019-04-01 10:23:44,327 [ajp-nio-8889-exec-6 | u:admin] INFO com.polarion.alm.ui.server.diagrams.internal.DiagramEditorsRegistry - Registered diagram editor mxg (com.polarion.alm.ui.diagrams.mxgraph.internal.MxGraphDiagramEditor)
2019-04-01 10:23:44,543 [ajp-nio-8889-exec-6] INFO TXLOGGER - Summary for 'servlet /polarion/gwt/com.polarion.UI/PortalDataService': Total: 0.38 s, CPU [user: 0.297 s, system: 0.0469 s], Allocated memory: 62.7 MB, transactions: 3, RPC: 0.271 s [49% encodeResponse (1x), 32% decodeRequest (1x)] (4x), PortalDataService: 0.0834 s [100% getInitData (1x)] (1x), RepositoryConfigService: 0.0197 s [100% getReadConfiguration (8x)] (13x)
2019-04-01 10:23:45,034 [ajp-nio-8889-exec-2] INFO TXLOGGER - Summary for 'servlet /polarion/gwt/com.polarion.UI/PortalDataService': Total: 0.155 s, CPU [user: 0.0781 s, system: 0.0625 s], Allocated memory: 24.8 MB, transactions: 5, PortalDataService: 0.13 s [100% requestPortalSite (1x)] (1x), svn: 0.0571 s [61% info (4x), 39% getFile content (3x)] (12x), RepositoryConfigService: 0.0483 s [62% getReadConfiguration (11x), 38% getReadUserConfiguration (4x)] (20x), RPC: 0.0233 s [63% encodeResponse (1x), 35% decodeRequest (1x)] (4x)
2019-04-01 10:23:45,262 [ajp-nio-8889-exec-9 | u:admin] INFO TXLOGGER - Tx 5a7652377505e_0_5a7652377505e_0_: finished. Total: 0.155 s, CPU [user: 0.109 s, system: 0.0469 s], Allocated memory: 10.2 MB, RepositoryConfigService: 0.0181 s [100% getReadUserConfiguration (1x)] (1x)
2019-04-01 10:23:45,264 [ajp-nio-8889-exec-9] INFO TXLOGGER - Summary for 'servlet /polarion/gwt/com.polarion.UI/WorkItemDataService': Total: 0.188 s, CPU [user: 0.141 s, system: 0.0469 s], Allocated memory: 12.9 MB, transactions: 1, WorkItemDataService: 0.155 s [100% getAvailableColumnsAndConfigurations (1x)] (1x), RepositoryConfigService: 0.0181 s [100% getReadUserConfiguration (1x)] (1x), RPC: 0.0144 s [87% decodeRequest (1x)] (4x)
2019-04-01 10:23:49,798 [ajp-nio-8889-exec-8 | u:admin] ERROR com.polarion.portal.monitor.internal.server.jobs.JobsDataProvider - Unknown job myjobA.job
com.polarion.platform.jobs.GenericJobException: Unknown job myjobA.job
at com.polarion.platform.jobs.internal.service.scheduler.JobSchedulerService.scheduleImmediatelyLocally(JobSchedulerService.java:376)
at com.polarion.platform.jobs.internal.service.scheduler.JobSchedulerService.scheduleImmediately(JobSchedulerService.java:341)
at $IJobSchedulerService_169d94693ba.scheduleImmediately($IJobSchedulerService_169d94693ba.java)
at com.polarion.portal.monitor.internal.server.jobs.JobsDataProvider.sheduleNow(JobsDataProvider.java:217)
at com.polarion.alm.ui.server.jobs.JobsServiceImpl$4.executeImpl(JobsServiceImpl.java:66)
at com.polarion.alm.ui.server.jobs.JobsServiceImpl$4.executeImpl(JobsServiceImpl.java:1)
at com.polarion.portal.server.TransactionalExecuter$1.runWEx(TransactionalExecuter.java:28)
at com.polarion.core.util.RunnableWEx.runWRet(RunnableWEx.java:61)
at com.polarion.portal.server.TransactionalExecuter.executeImpl(TransactionalExecuter.java:76)
at com.polarion.portal.server.TransactionalExecuter.execute(TransactionalExecuter.java:55)
at com.polarion.portal.server.TransactionalExecuter.execute(TransactionalExecuter.java:25)
at com.polarion.alm.ui.server.jobs.JobsServiceImpl.sheduleNow(JobsServiceImpl.java:69)
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 com.polarion.alm.ui.server.rpc.RPCServlet.invokeMethod(RPCServlet.java:84)
at com.polarion.alm.ui.server.rpc.RPCServlet.lambda$0(RPCServlet.java:69)
at com.sun.proxy.$Proxy98.sheduleNow(Unknown Source)
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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303)
at com.polarion.alm.ui.server.rpc.RPCServlet$Delegate.executeSuperProcessCall(RPCServlet.java:216)
at com.polarion.alm.ui.server.rpc.RPCServlet$Delegate.processCall(RPCServlet.java:189)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at com.polarion.alm.ui.server.rpc.RPCServlet.doPost(RPCServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.polarion.alm.ui.server.ExpiresFilterForGWT.doFilter(ExpiresFilterForGWT.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.polarion.alm.server.util.VelocityInstanceFilter.doFilter(VelocityInstanceFilter.java:64)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.polarion.portal.tomcat.servlets.DoAsFilter.doFilterAndShowUri(DoAsFilter.java:123)
at com.polarion.portal.tomcat.servlets.DoAsFilter.access$0(DoAsFilter.java:118)
at com.polarion.portal.tomcat.servlets.DoAsFilter$1.run(DoAsFilter.java:97)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at com.polarion.platform.internal.security.SubjectNDC.doAs(SubjectNDC.java:69)
at com.polarion.portal.tomcat.servlets.DoAsFilter.doFilterImpl(DoAsFilter.java:94)
at com.polarion.portal.tomcat.servlets.DoAsFilter.doFilter(DoAsFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.polarion.portal.tomcat.servlets.SecurityCheckFilter.doFilter(SecurityCheckFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
at com.polarion.platform.security.auth.PolarionAuthenticator.invokeInternal(PolarionAuthenticator.java:173)
at com.polarion.platform.security.auth.PolarionAuthenticator.invoke(PolarionAuthenticator.java:167)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:291)
at com.polarion.platform.session.PolarionLocalSingleSignOn.invoke(PolarionLocalSingleSignOn.java:176)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:850)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
2019-04-01 10:25:01,000 [ajp-nio-8889-exec-6 | u:admin] ERROR com.polarion.portal.monitor.internal.server.jobs.JobsDataProvider - Unknown job myjobA.job

My cron expression inside the Scheduler looks like:

Code: Select all

  <job cronExpression="0 0 12 * * ?" id="myjobA.job" name="MyJobA job" scope="project:drivepilot">
  </job>


And through the Monitor, I attempt to execute MyJobA.
Is there something I am missing here? What can I do to better debug the issue?

Thank You

HackneyJ
Posts: 1
Joined: Fri Sep 20, 2019 2:48 pm

Re: GenericJobException Unknown Job after modifying and running Job Example from the SDK(6.1.3)

Postby HackneyJ » Fri Sep 20, 2019 2:51 pm

Did you ever solve this issue?

After installing the PSO Script Engine patch my custom script no longer works. (Worked fine before the patch) and now I'm also getting this same error.

"Unknown job script.job"
"com.polarion.platform.jobs.GenericJobException: Unknown job script.job"

Does anyone know how to fix this?

Thank you.
Jim


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 8 guests