Four Js Development Tools Forum

Discussions by product => Reporting tools (GRW, GRE) => Topic started by: Asnidzal M. on April 04, 2023, 10:35:30 am



Title: ERROR communicating with GRE: Response from channel is NULL.
Post by: Asnidzal M. on April 04, 2023, 10:35:30 am
Hi all,

I try to use new Genero version 4.03, everything ok, the system(form / input etc.) is running ok except for generate a genero report. The error is like below :
Exception in thread "main" java.lang.UnsupportedClassVersionError: GReportWriter : Unsupported major.minor version 52.0
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:648)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:272)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:68)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:207)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:201)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:200)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:296)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
   at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:406)
ERROR communicating with GRE: Response from channel is NULL. Please check your Java installation.
Program stopped at 'PrettyPrinterStyleSheet.4gl', line number 213.
FORMS statement error number -6000.
 FLM-64 - Invalid license request format.
*** Execution of 'Application' finished. Exit code: 1 ***
 
I check all the setting is ok. Everyting is point to right path on Genero studio and .bash_profile setting.

.bash_profile :

#==================================================================================
export FGLDIR=/mnt/shared01/fourjs/gstsrv/4.00/fgl
export FGLASDIR=/mnt/shared01/fourjs/gstsrv/4.00/gas
export FGLSERVER=`who am i | awk '{print $5}' | sed 's/(//g' | sed 's/)//g'`:0
export GREDIR=/mnt/shared01/fourjs/gstsrv/4.00/gre
export GSTDIR=/mnt/shared01/fourjs/gstsrv/4.00/gst
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/jre
export PATH=$PATH:$FGLDIR/bin:$GREDIR/bin:.
export FGLLDPATH=$GSTDIR/lib:$FGLDIR/lib:$GREDIR/lib
#==================================================================================

Can anyone help me ...

Thanks in advance,

Asnidzal


Title: Re: ERROR communicating with GRE: Response from channel is NULL.
Post by: Alex G. on April 04, 2023, 10:42:10 am
It is a Java version problem.
You can check the Java version by typing "java -version" on the command line.
A value of "52" means that this version of GRE requires at least a Java version of 1.8.
I hope that this helps.
Best regards,
Alex


Title: Re: ERROR communicating with GRE: Response from channel is NULL.
Post by: Alex G. on April 04, 2023, 10:53:26 am
Hi Asnidzal,
I see that you have this:
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/jre
This is the problem.
Since you are running 4.01 you should make sure that you have at least version 1.9.
Best regards,
Alex


Title: Re: ERROR communicating with GRE: Response from channel is NULL.
Post by: yahya o. on April 05, 2023, 06:53:46 am
Hi Alex,

I try to point JAVA_HOME to java JRE version 11 but still error :

Exception in thread "main" java.lang.UnsupportedClassVersionError: GReportWriter : Unsupported major.minor version 52.0
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:648)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:272)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:68)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:207)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:201)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:200)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:296)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
   at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:406)
ERROR communicating with GRE: Response from channel is NULL. Please check your Java installation.
Program stopped at 'PrettyPrinterStyleSheet.4gl', line number 213.
FORMS statement error number -6000.
 FLM-64 - Invalid license request format.


and if i run the system using FGLRUN Application.42r  and try to print a report using GRV .. there is no error like above but only this error at terminal/console :

[uji1@uniszadb1 ~]$ fglrun /mnt/shared/staff/uji2/DemoProject1/bin/Application.42r
demorep7.4rp::error:(GS-18269)  Failed to open file

both error occur when i try to generate a report using 4rp files ...

==================================
my .bash_profile setting :-

export FGLSERVER=`who am i | awk '{print $5}' | sed 's/(//g' | sed 's/)//g'`:0
export GSTSETUPDIR=/mnt/shared01/fourjs/gstsrv/4.00/gst/bin/src/ag/tpl/dbapp5.0
export GENERODIR=/mnt/shared01/fourjs/gstsrv/4.00
export GGCDIR=/mnt/shared01/fourjs/gstsrv/4.00/fgl/testing_utilities/ggc
export FGLASDIR=/mnt/shared01/fourjs/gstsrv/4.00/gas
export GSTDIR=/mnt/shared01/fourjs/gstsrv/4.00/gst
export FGLDIR=/mnt/shared01/fourjs/gstsrv/4.00/fgl
export GREDIR=/mnt/shared01/fourjs/gstsrv/4.00/gre
export PATH=$GSTDIR/bin:$GREDIR/bin:$FGLASDIR/bin:$FGLDIR/bin:$FGLDIR/testing_utilities/ggc/bin:$INFORMIXDIR/bin:$INFORMIXDIR/extend/krakatoa/jre/bin:$INFORMIXDIR/extend/krakatoa/jre/bin/j9vm:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/mnt/shared/staff/yan/bin
export FGLRESOURCEPATH=$GSTDIR/bin/src/ag/tpl/dbapp5.0/styles:$GSTDIR/bin/src/ag/tpl/dbapp5.0/bin:
export FGLLDPATH=$GSTDIR/bin/src/ag/tpl/dbapp5.0/bin:$GREDIR/lib:$FGLDIR/testing_utilities/ggc/lib:
export CLASSPATH=$FGLDIR/testing_utilities/ggc/ggc.jar

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.18.0.10-1.portable.jre.el.x86_64






Title: Re: ERROR communicating with GRE: Response from channel is NULL.
Post by: yahya o. on April 05, 2023, 06:57:35 am
ok this is the files


Title: Re: ERROR communicating with GRE: Response from channel is NULL.
Post by: Alex G. on April 05, 2023, 07:13:44 am
Error GS-18269 means that the .4rp file could not be found. Please check the path in the call to fgl_loadCurrentSetting() and the value of FGLRESOURCEPATH in the case that the path is relative.
Best regards,
Alex


Title: Re: ERROR communicating with GRE: Response from channel is NULL.
Post by: Asnidzal M. on April 06, 2023, 05:43:23 am
Ok .. Thank you Alex. Problem solved.