Comments (17)
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.
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.
Attaching the error for your reference.
from analyze.
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.
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.
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.
from analyze.
Could you please look at the list of problems that are being reported by Eclipse, and report them here:
from analyze.
Below is the problem
from analyze.
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.
@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.
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.
Please see the above
from analyze.
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.
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.
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:
- 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.
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:
Cheers
from analyze.
I believe this issue has been resolved. Feel free to re-open it if necessary.
from analyze.
Related Issues (20)
- Audit Log With Query Data Detail HOT 2
- Load custom entities with special characters HOT 2
- Error starting onyx server after DAOD upgrade HOT 2
- IBM i2EIA - Unable to perform quicksearch after Configuring the 'audit logging to database' HOT 9
- Deploy new schema after deploying Example schema HOT 1
- Implementing audit logging to database - issues with capturing certain logs HOT 5
- Implementing audit logging to database - Quick Search Error HOT 2
- Implementing audit logging to database - SSL connection HOT 3
- Audit & Logging HOT 3
- LDAP authentication HOT 4
- EIA 2.4.1 - Audit Enablement causing Expand issue in Analyst Notebook HOT 3
- Analyze 4.3.5 + SSL connection (from AN 9.3 and from and endpoint Browser) HOT 12
- Login, Logout & Acceptance audit function HOT 4
- T HOT 1
- i2 Analyze auto start in RHEL 8 HOT 3
- Notebook doesn't run in test mode HOT 9
- Upgrade instructions HOT 5
- Labeling schema update HOT 6
- i2 Analyse system match rules HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analyze.