Giter Club home page Giter Club logo

Comments (17)

Novshathaleem avatar Novshathaleem commented on June 30, 2024

We are upgrading from i2Analyze 4.3.0 to 4.3.4, application started with 4.3.4 however we are facing issues with CSV logging, then we downloaded the projects from the git and tried to make jar out of that, considering the existing jar file might be incompatible with new i2analyze 4.3.4.
Unfortunately unable to create a jar file because there are some errors in the code. Will you please assist us here

OS:
Linux 3.10.0-1160.36.2.el7.x86_64 #1 SMP Thu Jul 8 02:53:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Tried creating jar in Eclipse

from analyze.

Ricardo-Antunes-i2 avatar Ricardo-Antunes-i2 commented on June 30, 2024

Hi @Novshathaleem apologies for the late reply.

It would be very helpful if you could you provide us with a stacktrace of the errors you are getting.

from analyze.

Novshathaleem avatar Novshathaleem commented on June 30, 2024

Hi @Ricardo-Antunes-i2,

Attaching the error for your reference.

image

image

from analyze.

Ricardo-Antunes-i2 avatar Ricardo-Antunes-i2 commented on June 30, 2024

Hi @Novshathaleem are you running the examples using the main branch from this repo, or have you downloaded the source code from here: https://github.com/i2group/analyze/releases? Running the source code using the main branch will require that you have the latest toolkit installed. To use dev essentials examples compatible with the 4.3.4 toolkit, then I would suggest you download the source code from here: Developer Essentials for IBM i2 Analyze v4.3.4

Please let us know if this fixes your problem.

from analyze.

Novshathaleem avatar Novshathaleem commented on June 30, 2024

Thanks @Ricardo-Antunes-i2 for the reply. Anyways we are planning to upgrade to 4.3.5 now, will you please redirect me to the developer essentials of the same.

from analyze.

Novshathaleem avatar Novshathaleem commented on June 30, 2024

Hi @Ricardo-Antunes-i2 ..I tried with the Developer Essentials for IBM i2 Analyze v4.3.4..however still facing the same issue, I did followed the steps mentioned in the documents.

image

from analyze.

Ricardo-Antunes-i2 avatar Ricardo-Antunes-i2 commented on June 30, 2024

Could you please look at the list of problems that are being reported by Eclipse, and report them here:
image

from analyze.

Novshathaleem avatar Novshathaleem commented on June 30, 2024

Below is the problem

image

from analyze.

Ruairi-OShea-i2 avatar Ruairi-OShea-i2 commented on June 30, 2024

Hi @Novshathaleem, have you completed the first steps in the documentation to prepare the environment and import the i2analyze-toolkit-libraries project? see https://github.com/i2group/analyze/blob/master/documentation/Preparing-to-use-IBM-i2-Analyze-Developer-Essentials.md

from analyze.

Novshathaleem avatar Novshathaleem commented on June 30, 2024

@Ruairi-OShea-i2 .I went through document on preparing the developer essentials. However our toolkit is in linux box. DO you have any documents related to the same

from analyze.

Ricardo-Antunes-i2 avatar Ricardo-Antunes-i2 commented on June 30, 2024

Could you please confirm that you have imported the "i2-analyze-toolkit-libraries" into eclipse successfully. I do not see that project in your "Project Explorer" screen.

from analyze.

Novshathaleem avatar Novshathaleem commented on June 30, 2024

image

Please see the above

from analyze.

Ricardo-Antunes-i2 avatar Ricardo-Antunes-i2 commented on June 30, 2024

Hi @Novshathaleem by the errors you are getting it seems like Eclipse isn't able to pick up the libraries it needs from the toolkit. Could you confirm that you have set the TOOLKIT_ROOT correctly? TOOLKIT_ROOT should point to the directory where you have your toolkit installed.

from analyze.

Novshathaleem avatar Novshathaleem commented on June 30, 2024

Hi @Ricardo-Antunes-i2 ..Yes I agree.. BTW the toolkit is installed on Linux machine. Hence it becomes difficult to point to the toolkit directory. Is there any instructions to complete the same steps in Linux box?

from analyze.

Novshathaleem avatar Novshathaleem commented on June 30, 2024

Hi @Ricardo-Antunes-i2,

Somehow we compiled the jar file and tried using it. But we are facing the issue below.
Do you have any insights

ERROR 2022-02-16 22:28:36,290 - com.i2group.disco.common.rest.interceptors.internal.JSONExceptionMapper -
com.google.inject.CreationException: Unable to create injector, see the following errors:

  1. An exception was caught and reported. Message: Failed Resource Type: [SYSTEM_UNINITIALIZED] from the source class [ConfigurableClassList] with additional context [Class Not Found]: Unexpected problem while instantiating extension class 'CSVAuditLogger' specified by parameter named 'AuditLogger' with value 'CSVAuditLogger'.
    at CommonEndpointModule.configure(CommonEndpointModule.java:50)
    _ installed by: CatalogResourceModule -> OpalRestServiceEndpointModule -> CommonRestServiceEndpointModule -> CommonEndpointModule -> AuditModule

1 error

======================
Full classname legend:

AuditModule: "com.i2group.disco.audit.guice.internal.AuditModule"
CSVAuditLogger: "com.example.audit.CSVAuditLogger"
CatalogResourceModule: "com.i2group.disco.catalogservice.guice.internal.CatalogResourceModule"
CommonEndpointModule: "com.i2group.disco.common.endpoint.guice.internal.CommonEndpointModule"
CommonRestServiceEndpointModule: "com.i2group.disco.common.rest.internal.CommonRestServiceEndpointModule"
ConfigurableClassList: "com.i2group.apollo.configuration.ConfigurableClassList"
OpalRestServiceEndpointModule: "com.i2group.disco.common.rest.internal.OpalRestServiceEndpointModule"

End of classname legend:

from analyze.

Anthony-Johnson-i2 avatar Anthony-Johnson-i2 commented on June 30, 2024

Hi @Novshathaleem,

I just set this up on my local VM and I can get exactly the same error as you are now seeing if I...

Set AuditLogger=CSVAuditLogger rather than setting it to be com.example.audit.CSVAuditLogger in configuration\fragments\common\WEB-INF\classes\ApolloServerSettingsMandatory.properties.

and either do not get a built jar file for example opal-audit-csv-example.jar in the correct destination

toolkit\configuration\fragments\opal-audit-csv-example\WEB-INF\lib

or forget to add the reference

<fragment name="opal-audit-csv-example"/>

to my topology file as the documentation describes before I deploy.

So please check that you are using the full AuditLogger=com.example.audit.CSVAuditLogger in configuration\fragments\common\WEB-INF\classes\ApolloServerSettingsMandatory.properties and that you have actually created the jar file here toolkit\configuration\fragments\opal-audit-csv-example\WEB-INF\lib and that your topology.xml has the correct <fragment name="opal-audit-csv-example"/> line added so that we know to include the contents of that fragment folder when we deploy.

I have found that setting the export destination for the jar up is a little touchy and doesn't create the jar file unless I have manually browsed and created the lib sub folder myself from this dialog:

image

Cheers

from analyze.

Colvin-Cowie-i2 avatar Colvin-Cowie-i2 commented on June 30, 2024

I believe this issue has been resolved. Feel free to re-open it if necessary.

from analyze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.