Highlighted
Absent Member.
Absent Member.
710 views

Connecting Elcipse with Sentinel and develop custom reports


I have been trying to figure out how to create custom reports with
eclipse. I have never used Eclipse before, nor am I a programmer, but I
was trying to set up the Sentinel SDK environment to work on it. Pretty
much play around it and test some audit workflows. I have been following
some recent instructions here:

http://tinyurl.com/nz4f5j2

However getting to the step connection Eclipse with my Sentinel server
has been given me errors on the connection.xml console. I replace the IP
with <Sentinel IP address> for security.

[scp] Connecting to <Sentinel IP address>
[scp] Receiving file:
/idm/opt/novell/sentinel/lib/postgresql*.jdbc4.jar
[scp] Caught exception: scp:
/idm/opt/novell/sentinel/lib/postgresql*.jdbc4.jar: No such file or
directory

[echo] Copying additional .jar files for Solution Designer from server
directory
/idm/var/opt/novell/sentinel/3rdparty/jetty/webapps/ROOT/siemdownloads/...
[scp] Connecting to <Sentinel IP address>
[scp] Receiving file:
/idm/var/opt/novell/sentinel/3rdparty/jetty/webapps/ROOT/siemdownloads/console-webstart.jar
[scp] Receiving: console-webstart.jar : 83668997
[scp] File transfer time: 10.73 Average Rate: 7,797,669.8 B/s
[scp] done

[scp] Connecting to <Sentinel IP address>
[scp] Receiving file:
/idm/var/opt/novell/sentinel/3rdparty/jetty/webapps/ROOT/siemdownloads/activity*.jar
[scp] Caught exception: scp:
/idm/var/opt/novell/sentinel/3rdparty/jetty/webapps/ROOT/siemdownloads/activity*.jar:
No such file or directory
[scp] Connecting to<Sentinel IP address>
[scp] Receiving file:
/idm/var/opt/novell/sentinel/3rdparty/jetty/webapps/ROOT/siemdownloads/branding*.jar
[scp] Caught exception: scp:
/idm/var/opt/novell/sentinel/3rdparty/jetty/webapps/ROOT/siemdownloads/branding*.jar:
No such file or directory
[scp] Connecting to <Sentinel IP address>
[scp] Receiving file:
/idm/var/opt/novell/sentinel/3rdparty/jetty/webapps/ROOT/siemdownloads/common*.jar
[scp] Caught exception: scp:
/idm/var/opt/novell/sentinel/3rdparty/jetty/webapps/ROOT/siemdownloads/common*.jar:
No such file or directory
[scp] Connecting to <Sentinel IP address>

There are more missing jar files, but the error is the same.

[echo] Performing connection test...please wait...
[echo] (This test will take approximately 1 minute... But may
take up to 5 minutes if the test fails with a connection timeout.)
[java] Java Result: 1
[echo] java.lang.UnsupportedClassVersionError:
com/novell/reports/jasper/data/event/ConnectionCheck : Unsupported
major.minor version 52.0
[echo] at java.lang.ClassLoader.defineClass1(Native Method)
[echo] at
java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[echo] at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[echo] at
java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[echo] at
java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[echo] at
java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[echo] at
java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[echo] at java.security.AccessController.doPrivileged(Native
Method)
[echo] at
java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[echo] at
java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[echo] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[echo] at
java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[echo] at
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
[echo] Exception in thread "main"
[echo] ERROR: Unable to successfully create a connection to
<Sentinel IP address>. Return code: 1
BUILD SUCCESSFUL
Total time: 51 seconds

By the looks of the errors I am missing a lot of jar files, but
according to the instructions to set it everything should be there. It
is understandable that there might be issues with setting up iReports,
but I need to see if someone knows what I am doing wrong. I put all of
the java JDK files on my local computer in the proper place made the
current java is set to 1.7, I believe, but the errors suggest there are
JDK jar files missing on the Sentinel server itself.


--
dominique122
------------------------------------------------------------------------
dominique122's Profile: https://forums.netiq.com/member.php?userid=10786
View this thread: https://forums.netiq.com/showthread.php?t=55463

0 Likes
4 Replies
Highlighted
Knowledge Partner Knowledge Partner
Knowledge Partner

Part of that error complains about major/minor versions, and mentions 52.0.

As shown on some sites, like
http://www.rgagnon.com/javadetails/java-0544.html , 52 means Java 1.8, so
if you have put Java 1.7 on something that is trying to load a JAR built
with Java 1.8, change that. The docs may be a bit outdated, and new
versions of Sentinel are using Java 1.8 9for security reasons if nothing
else) and since I think the report connection thingy (technical term)
pulls down JARs from the Sentinel server, that could easily be the problem.

> [java] Java Result: 1
> [echo] java.lang.UnsupportedClassVersionError:
> com/novell/reports/jasper/data/event/ConnectionCheck : Unsupported
> major.minor version 52.0


Maybe JARs are missing, or have been moved, but if you have the JRE (for
Eclipse) running with a version that cannot load all JARs, nothing else
will work.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Highlighted
Absent Member.
Absent Member.


Ok, finally got it working. I was using the wrong java I was using an
jre, instead of jdk. Plus, there are some issue when starting iReports
with 1.8 JDK. They have stop support for iReports 5.6.0 on JDK 1.8,
people will have to download two JDK versions 1.7 and 1.8.

Software that is installed:
Eclipse IDE for Java Developers 4.4.1.20140925-1820
Java JDK 1.7.0_67 (iReport)
Java JDK 1.8.0_40 (Eclipse and Sentinel 7.3)
iReports 5.6.0

My JAVA_HOME is set to JDK 1.8.0_40 in environment variables.

You will have to modify the ireport.conf file to have the program point
to the 1.7 JDK, otherwise it will not open and give you an error that
"Java 8 is not supported".

Fix here:http://tinyurl.com/jey3xlj


--
dominique122
------------------------------------------------------------------------
dominique122's Profile: https://forums.netiq.com/member.php?userid=10786
View this thread: https://forums.netiq.com/showthread.php?t=55463

0 Likes
Highlighted
Knowledge Partner Knowledge Partner
Knowledge Partner

On 03/03/2016 11:29 AM, dominique122 wrote:
>
> Ok, finally got it working. I was using the wrong java I was using an
> jre, instead of jdk. Plus, there are some issue when starting iReports
> with 1.8 JDK. They have stop support for iReports 5.6.0 on JDK 1.8,
> people will have to download two JDK versions 1.7 and 1.8.
>
> Software that is installed:
> Eclipse IDE for Java Developers 4.4.1.20140925-1820
> Java JDK 1.7.0_67 (iReport)
> Java JDK 1.8.0_40 (Eclipse and Sentinel 7.3)
> iReports 5.6.0
>
> My JAVA_HOME is set to JDK 1.8.0_40 in environment variables.
>
> You will have to modify the ireport.conf file to have the program point
> to the 1.7 JDK, otherwise it will not open and give you an error that
> "Java 8 is not supported".
>
> Fix here:http://tinyurl.com/jey3xlj


Great details; thanks for sharing!!

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Highlighted
Absent Member.
Absent Member.


ab;265725 Wrote:
> On 03/03/2016 11:29 AM, dominique122 wrote:
> >
> > Ok, finally got it working. I was using the wrong java I was using an
> > jre, instead of jdk. Plus, there are some issue when starting

> iReports
> > with 1.8 JDK. They have stop support for iReports 5.6.0 on JDK 1.8,
> > people will have to download two JDK versions 1.7 and 1.8.
> >
> > Software that is installed:
> > Eclipse IDE for Java Developers 4.4.1.20140925-1820
> > Java JDK 1.7.0_67 (iReport)
> > Java JDK 1.8.0_40 (Eclipse and Sentinel 7.3)
> > iReports 5.6.0
> >
> > My JAVA_HOME is set to JDK 1.8.0_40 in environment variables.
> >
> > You will have to modify the ireport.conf file to have the program

> point
> > to the 1.7 JDK, otherwise it will not open and give you an error that
> > "Java 8 is not supported".
> >
> > Fix here:http://tinyurl.com/jey3xlj

>
> Great details; thanks for sharing!!
>
> --
> Good luck.
>
> If you find this post helpful and are logged into the web interface,
> show your appreciation and click on the star below...



Note that there was an accidental bug injection into 7.3.1 that caused
the binaries to require JDK 8 when currently the requirement is only JDK
7. That was addressed in 7.3.2. If you can't run consistently on JDK
7 in all cases and you are on 7.3.2 or 7.4.0, we have an issue to
address 🙂


--
brandon.langley
------------------------------------------------------------------------
brandon.langley's Profile: https://forums.netiq.com/member.php?userid=350
View this thread: https://forums.netiq.com/showthread.php?t=55463

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.