LibreOffice on Windows Server - java

Can't solve the problem in Java Web Application. The application has been in production for several years now, I only add new functionality if necessary. For the last half of the year, all that had to be done was to update the libraries. But starting from December last year, it began to “freeze” for clients.
The functionality of the application is to work with documents of various formats: uploading to the server, deleting a document, creating previews, and downloading files. When uploaded to the server, the files are converted to .pdf format. So, the application is running on Windows Server 2016 Standart 10.0.14393 Build 14393 x64-based PC and LibreOffice 6.4.x.x is also installed, WildFly 20.0.0 Final on which the application is launched.
The task was to upgrade LibreOffice 6 to 7. I read the release notes and did not find anything that would prevent me from upgrading the LibreOffice version. We installed version 7.1 (just in December), then the problems started.
The problem is that when loading a file in the .docx/.doc format, the file is not loaded correctly, the preview is “broken”, and the “unkillable” soffice.bin/.exe processes remain on the server in the Task Manager.
As it turned out later, clients use barcodes in documents (but for 4+ years), and I also go to the “File” property in LibreOffice and choose “Properties…”, so I find the checkbox for embed fonts is enabled. If this checkbox is removed, then everything works correctly on any version of LibreOffice. But with it, starting from version 6.4 inclusive and higher - the program “freezes” for 2 minutes. This is the timeout limit in jodconverter per process.
However, if I do the same manipulations on my local machine where Windows 10 is installed, then everything works fine for me, as well as on other local machines. The problem is only on Windows Server 2016, which we have for tests, as well as for clients.
What I tried on the server: I installed the old version of the Java application from 2020 year and LibreOffice 6.4 and 7.1 - it still doesn't work. I took the latest version of the Java application, but LibreOffice 6.0 - 6.3 (inclusive) - and everything works. I also installed font with barcodes from a file - Free 3 of 9, it also did not help for LibreOffice 6.4 and higher.
Installing LibreOffice 6.0 also installed Microsoft Visual C++ Redistributable 2015 x64, I thought that was the problem. But after trying different combinations, I was not successful in solving the problem. At the moment, Microsoft Visual C ++ Redistributable 2015-2022 x64 and Microsoft Visual C ++ Redistributable 2017 x86 are installed on the server. Guided by this article.
Regarding Microsoft Visual C ++ Redistributable, I read an article that earlier, when installing LibreOffice, this package was also installed in a parallel process, but Microsoft changed the license to use the software or something like that, and then The Document Foundation stopped inserting into the LibreOffice installation file Microsoft Visual C++ Redistributable.
I want to note that the problem is not in the specification of files or barcodes since I created a completely empty document on the server, through LibreOffice, in the .docx / .doc format and put the font checkbox - it also “freezes”, and all the symptoms that I described above appear.
I came to the conclusion that the involvement of the Java application itself, fonts, or the .docx / .doc format in the error is unlikely, although not excluded.
Can you tell me the solution or where to look for the problem?

Perhaps someone will encounter it in the future, I solved the problem by switching from Windows Server 2016 to Windows Server 2019.

Related

Running Java in Internet Explorer 11

I have JRE 8u211 installed on a Windows 10 box with IE 11. I can see the Java plugin (and plugin 2) are installed and enabled. I have the "Allow active content to run in files on my computer" option checked under Security. But I cannot get a Java applet to load. Every time the page loads, I get the "The page you are viewing uses Java" notification as if the browser thinks I don't have Java installed.
What am I missing?
Figured it out. I'd forgotten that IE traditionally doesn't seem to like x64 Java installs very much. Once I dropped a 32 bit version, everything worked.
In the perfect dream world where all software development makes use of current and best practices, applets might be dead. But in the actual world of legacy support, they are (unfortunately) still alive.
I second the comment by Elliot Fischer... However, there is still quite a lot of Hardware that is still being supported, or even potentially manufactured (sold for sure) that can only function with these Java applets.
I had this problem with my Motorola FX7400. Of course Motorola says it's "Service & Support Discontinuation Date" is 30.8.2019. Of course the latest firmware is from 2015 and doesn't have a hint of any type of certificate or signing of java applets!
For most applets that have not been updated since the very latest Java Security settings were upgraded in around 2013-2015 and which most likely are also only 32-bit and have no signing of any sort on them; Do the following steps. Of course, even I CANNOT RECOMMEND THIS METHOD AT ALL FOR APPLICATIONS RUN FROM THE INTERNET Also, you should take precautions when trying to use Java like this on Hardware you are not familiar with.
The steps that are required for Windows 7, 8.1 & 10 with Internet Explorer 11 are as follows:
Download and install latest JRE SE 32bit from here: https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html (And yes, you need to give out your private data including address and phone number. You also need to pay for a license, if you are not a developer or a private user)
Start Internet Explorer 11 (64 bit seems to work fine)
Ensure ActiveX filtering is disabled Tools -> ActiveX filtering On my install disabling this was only necessary to be able to run the Java test from the "alternate page", which is marked "IE 11 users:": https://www.java.com/en/download/installed.jsp
Check that the Java plugin is enabled Tools -> Manage Add-ons
Check that your security zone has Scripting of Java applets enabled. On my IE11 it was enabled by default even for the Internet-zone set to Medium-High with protected mode on Tools -> Internet Options -> Security -> (select your appropriate zone) -> Custom level -> Scripting of Java applets
If the applet that needs to run is not properly signed (very likely...), it is required to set every single URL where an applet is run in to the exceptions. (As of writing this answer, at least wildcars for paths are working.)
When running the applet, accept the security exception prompts that Java prompts for.
And finally! For some reason there will at some point when loading an applet that previously loaded fine be a prompt about not being able to run the applet, because only applications that meet the very high security settings (signed applets) can be run. To get back to running again, Java's temporary files need to be removed. Restoring security prompts has no effect. Start Menu -> Configure Java -> General tab -> Temporary Internet Files -> Settings... -> Delete Files -> OK C:\Users\%username%\AppData\LocalLow\Sun\Java\Deployment\Cache -directory probably also works.
Security and prompts really have come far in the past 10 years, haven't they?
I jumped here searching for an answer that I found elsewhere and I would like to share.
According to my experience the problems of IEx64 with jre x64 are due to the fact that internet explorer tabs are 32 bit processes, so they work only if they find a 32 bit jre. There is a registry key to force IEx64 to open x64 tabs:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main
Dword TabProcGrowth set to 0
I heard it is considered a security flaw, but it can be accepted if IE is used only with well known legacy web applications.
About IEx64
In the folder
\Program Files (x86)\Internet Explorer
there is the 32 bit version and when you open a page in IEx64 it is actually displayed by an new instance of IEx86. You can check this using task manager, going on detail tab and looking at the application path.

Different styles based on Operative System

i have a problem with my webapp
Im using tomcat 6 + jr6 in Windows 10 and Windows 2003 Server, the problem is that when i use Windows 2003 Server for loading the app it doesnt apply the same styles as in Windows 2010 (pics down), i have problems downloading files from the server too (only in Internet Explorer and with the app in Windows 2003 Server)
Also in Windows 2003 Server jsps seems to load much slower than Windows 2010 (same machine different SO)
PS. I have used Windows 2010 internet explorer for all tests
The question is, is that possible ?
I thought that only java version and tomcat version applys to this
Windows 2003 Server + Tomcat 6 + JRE6 + Internet Explorer
Windows 2010 + Tomcat 6 + JRE6 + Internet Explorer
This is just how web browsers work: they have their own default styles and if you don't override them, you get the defaults.
The biggest difference I see between your two screenshots is the shape of the "Guardar Escritura" button at the bottom: in the above image, the button has square corners and in the image below it has rounded corners.
You have full control over button display using CSS. It looks like you need to add some more styles to your stylesheet to ensure that your page looks the same on all platforms.
Note that most MSIE/Edge versions have similar defaults. You may be surprised when you load your page in Firefox, Chrome, or Safari.

Java, Raspbian Jessie May 26, how to setup windows fonts

I developed a GUI application with JAVA swing components and run it on Windows. When running the same application on Raspbian Jessie the font and size is different.
I found many solutions to solve this for other Linux implementation. I tried those. Mainly I failed due to different setup file names etc with the new "Jessie" implementation dated 26th of May 2016.
Could anyone please guide me to a proper installation procedure to get the same font appearance on Jessie as on my Windows desktop?
Just to finalise this. As I did not get an answer, I decided to change all fonts in my application to those available in both Windows and Linux.

Can't run in browser on latest Linux and Mac with Java7u13 JFX2.2.5

I can't start JavaFX 2.2.5 applications in browser(all possible browsers) in Oracle Linux 6.3 x86 and latest MacOS. I have the latest Java 7 u 13 from Oracle.
Neither JavaFX Netbeans sample, my applications nor Ensamble(http://download.oracle.com/otndocs/products/javafx/2.2/samples/Ensemble/index.html) work.
The applications work if I start them as normal apps, but not from the browser.
Java works perfectly on those systems, just that I can't start JFX 2 in browsers.
What should be done? My clients need the flexibility of starting their apps from browsers.
It worked a few versions ago, but now I can't start them. Browsers tell me that I don't have Java. (they show that image with Java that redirects to the page from where I can download Java). I also tried to install just the JRE from that link. I have removed and reinstalled Java.
Is anyone else facing this problem?
Any help would be really useful.
I have also posted this on oracle forum: https://forums.oracle.com/forums/thread.jspa?threadID=2494131
In addition, after installing JRE 7u13 on XP/sp3 (IE8), the "verify Java Version" page (http://java.com/en/download/installed.jsp) produces a Data Execution Prevention (DEP) exception
I've got access to my customer's Mac machines.
My apologize. They had 7u12 on their Macs.
Happily enough, it seems that Oracle managed to get JFX working in browser with 7u13.
Regarding Linux, I finally got it to work, but don't forget about "firefox/plugins" and "firefox/plugin" (the latest is wrong). Oracle should update this error from their description available at: http://java.com/en/download/help/linux_install.xml#enable

Java Web Application not working on windows 7

I have a java web application installed on a server which is accessed via intranet. It worked well when i run it on a client pc with Windows XP and IE 6, with Jinitiator. The problem comes when i run it on Windows 7, on any updated browser. The IE in Windows 7 stops responding whenever i enter the particular url for my application.
I tried to run it on other browsers like Mozilla and Netscape but they give me the plugin error for Jinitiator. In fact i downloaded the plugin and installed it for for both the browsers but still the browser cant find any plugin.
When i researched about it i found that the Jinitiator is only compatible for windows not higher than Windows xp and Browser only IE6 not higher.
I am confused about whether it is ony the JVM version problem or i have to get into the code of the application. Till now i have no access to the code of the application.It was developed by some other company in 2006 which is petty much dead by now. Can any body suggest me any solutions on what can i do to solve this compatibility problem. How can go by it and from where i should start?
You can exchange the JInitiator with Suns/Oracles Java Plugin. If you have access to metalink have a look there.
You find some outdated information at:
http://www.oracle.com/technetwork/developer-tools/forms/clientsod-forms10g-094744.html
http://www.oracle.com/technetwork/testcontent/readme-101362.html
If you have no idea of the topic try to get help from Oracle or one of there business partners. You probably have to update environment for getting support for newer versions.

Categories

Resources