Service not Starting with YF Upgrade 7.3 with Java 9.0.1

Mansi Sharma shared this problem 6 years ago
Resolved

Hi Team YF,


I have a customer where we upgraded YF to 7.3 from 7.1 and java to Jre 9.0.1 from Jre 1.8.0_5.

YF upgraded successfully from 7.1 to 7.3 but when i tried to start the service and it does not start and error shows up in Yellowfin logs -

"2018-02-26 14:16:49 Commons Daemon procrun stdout initialized -Djava.endorsed.dirs=C:\Yellowfin\appserver\endorsed is not supported. Endorsed standards and standalone APIs

in modular form will be supported via the concept of upgradeable modules."

attached are the logs.


When i tried to change the Java_Home in Catalina.bat and Services.bat to Jre 1.8.0_5, Removed and reinstalled the service - service starts and Yellowfin works as expected. But we need to remove Jre 1.8.0_5 and keep Jre 9.0.1 only.

Can you please help me to make this work.


Thanks,

Mansi Sharma,

Replies (9)

photo
1

Hi Mansi,

7.3 was updated to be compatible with Java 9 from December 2017 onwards, which build of 7.3 did your customer upgrade to?

regards,

David

photo
1

Hi Dave,


I went ahead and used the 7.3 installer which was release after December 2017 and upgraded YF on Java 9 but i still see the same error and logs.

I tried to run Catalina.bat but i see below error -

94cba8cafdd093a1ecca4f6f13f56cc5

Can you please help me and let me know what can be the issue. YF service is not starting and Its getting critical at customer environment.

Thanks,

Mansi Sharma.

photo
1

Hi Dave, Any update on this issue ??

photo
1

Hi Mansi,


I'll look after this while Dave is away.

From what I understand, you cannot start Yellowfin if pointing to Java 9, and you still have 8 on your system.

The error you get is 'endorsed is not supported.'

By removing 8, everything works.

From what I can find, that error is related to Tomcat 7 not working with Java 9, so removing 8 should not make a difference.


I performed my own tests with upgrading from Java 8 > 9, and I found the following:

- The existing service works fine once I point it to Java 9 (JRE)

- If I remove the service and re-install, it keeps finding the Java 8 JDK (also on my system) and the service fails to run.


If I then remove the system variable for Java_HOME it complains that it needs it, and that it needs to point to a JDK.

Pretty annoying really, and finding articles saying how it's Windows being a pain. I'm sure there is a way around this.


However, it sounds like there are 2 options to get this working for you right now:

-Ensure you remove everything but Java 9

-Stick with Java 8.

You can then mirror the environment and run some tests to figure out which procedure/order works for your environment. As I'm still not convinced this is not a Tomcat issue.


Please let me know if I've missed anything, or if a remote session is in order.


Thanks,

David

photo
1

Hi David,

Thanks for taking this up.


I am little confused here - Just to clear - You mean i should removed Java 8 and other java versions and only keep Java 9.

Then re-run the upgrade installer to upgrade Yellowfin from 7.1 (i took the backup before upgrade so can restore the YF7.1 by backup) to 7.3 ?

Sticking with Java 8 is not an option as my client is rigid to keep Java 9.


Thanks,

Mansi Sharma.

photo
1

Hi Mansi,

Yeah while I cannot replicate your issue from the info you've provided it sounds like you only have 1 option.

-Ensure you remove everything but Java 9

You will not be able to use Java 9 when using 7.1 as it initially shipped with an older Tomcat. You could upgrade Tomcat to get it working, but it sounds like you're needing to upgrade Yellowfin. So I would think the following process should get you up and running.

1. Upgrade Yellowfin to 7.3

2. Confirm YF starts ok

3. Point YF to Java 9. Confirm YF starts ok when using the startup.bat. Then stop Yellowfin

4. Start Yellowfin using Windows service to make sure it starts ok. Then stop the service

5. Modify the service to point to java 9, then give that a try.

There should be no need to remove the service, just re-point the existing.

Please let me know how this all goes!


Regards,

David

photo
1

Thanks David.

photo
1

No problems. Please let us know how it all goes.

photo
1

Hi David,


I followed the steps you suggested above and my reporting service is started but the Catalina.bat does not run and throws error -

/MzL8F+9rDu7LO290AAAAAElFTkSuQmCC


I commented the perm size parameters in Catalina.bat and the error with Perm Size support is resolved but Error with Djava.Endorsed.dir is still showing up and i can not access YF with java 9.0.4.


I googled a bit and found this - https://stackoverflow.com/questions/45917401/tomcat-7-0-73-doesnt-work-with-java-9

Please suggest me what should i do next.

Its really really critical for me to fix this issue.


Thanks,

Mansi Sharma.

photo
1

Hi Mansi,


You're correct. I previously mentioned the Java 9 Yellowfin & 7.1 compatible issue (due to the version of Tomcat we shipped with), and suggested you have a few ways to move forward;

-Upgrade Yellowfin to a supported release such as 7.3

OR

-Ensure you have a working version of Java 8 and have Yellowfin use that.


Have you attempted any of the suggestions?


If you need further help configuring you're environment, we may need to organise some professional services to assist with this. But I think you could probably sort this out on your own with some guidance. Just let me know if there were any issues with the previous suggestions.


Thanks,

David

photo
1

Hi David,


I upgraded YF 7.1 to YF 7.3 (which release after December 2017) with java 9 support and had the same issue.

But our client does not want to keep java 8 or lesser on the servers.

Can you please help.


Thanks,

Mansi Sharma.

photo
1

Hi Mansi,


Ok so you have upgraded to 7.3, and Tomcat is still not starting, this would mean the problem is lying with the Java environment, or possibly Tomcat.


We can rule out Tomcat, changes made to your catalina.bat if you provide me with your Yellowfin folder.

You can upload it to http://ftp.yellowfin.bi , just first compress your folder and rename it 'QSYellowfin' before uploading.


Thanks,

David

photo
1

Hi David,


Sure - i will get the Catalina.bat with YF Folder from the environment and will upload for your review by tomorrow.


Thanks,

Mansi Sharma.

photo
1

Thanks

photo
1

Hi David,


I have fixed the problem on my environment by making the changes in Service.bat and catalina.bat -

1. removed the Djava.Endorsed.dir options and catalina.bat runs successfully.

2. In Service.bat, i removed -Djava.endorsed.dirs=%CATALINA_HOME%\endorsed; from "JVMOptions" and added "%CATALINA_HOME%\endorsed;" to "Classpath".

It fixed the issue with Service.bat and Catalina.bat not running.


Also, i took the latest Upgrade installer for 7.3 (released in May 2018) and it worked fine for me (i still have Tomcat7 on the server after upgrade).


Thanks,

Mansi Sharma.

photo
1

Well there you go!

Yeah your options were always ; Upgrade Yellowfin or Tomcat, or downgrade Java.


Sounds like you're all good to go, and please let us know if there was anything else you were after.


Regards,

David

photo
1

Hi David,


Thanks for your help. I am good with the fix i found.

I have a question regarding - YF7.3 05152018 release - wanna be sure that this version/upgrade installer is fully tested in your labs or there are any known issues with this version of YF?


Thanks,

Mansi Sharma.

photo
1

Hi Mansi, That is an official release so yes it has been tested and passed our QA process :)

photo
Leave a Comment
 
Attach a file