I am facing some issue in the code at line Base64.getEncoder().encodeToString("tomcat:tomcat".getBytes()); in run time.
As i am using 1.6.x cersion of jdk, i used Base64.encode("tomcat:tomcat"); The base64 that i am using is from org.apache.xmlbeans.impl.util.Base64.
This is giving exception during runtime. This is not going to any exception or so. But as per the logs it is breaking at this line.
No compilation issues, no issues while testing from
junit. Issue only at runtime.
I saw couple of online forums that this is an issue but didn't find the solution.
What third party package supports this now for jdk1.6.x version.
Thanks