Clarity

  • 1.  Set JVM parameters

    Posted Jan 08, 2019 07:17 AM

    Hi,

     

    I have a Java Interface to XOG data into Clarity. When I deploy that custom jar file in home/clarity/custom lib folder and try to execute the interface, I get Class Not found error.

    I found that Class path is not set on CSA to start that instance.

    Can anyone please let me know the syntax to set the JVM parameter to set the class path on CSA?

    Or Am I missing something else here?

     

    Regards,

    Divya



  • 2.  Re: Set JVM parameters

    Posted Jan 08, 2019 05:32 PM

    Hi Divya,

     

    Did you restart app and bg services after deploying your custom java interface?

     

    NoClassDefFoundError in Java is caused when the class file being executed is not available at runtime, when you restart app and bg services you shouldn't be seeing this exception.

     

    Regards,

    Praneeth



  • 3.  Re: Set JVM parameters

    Posted Jan 08, 2019 11:19 PM

    Hi Praneeth,

     

    Yes , I did restart the services.

    I get this error com.niku.union.exceptions.SchedulerException: Job's listener is invalid 

    Along with this, Caused by: java.lang.ClassNotFoundException:

     

    Regards,

    Divya



  • 4.  Re: Set JVM parameters

    Posted Jan 08, 2019 11:35 PM

    If the java interface which you are deploying was provided by CA, better raise a support case. Otherwise if you are on-premise and that is custom built interface need to look at the classpath you have setup in the job definition and ensure the same class path exists in the jar file.

     

    I am hoping the main class file has imported and implemented below two interfaces:

    import com.niku.union.interfaces.JobSchedulerContext;
    import com.niku.union.interfaces.SchedulerListener;