Oracle Forms troubleshooting: 10g to 12c conversion - oracle

I am running out of options and I hope somebody can help/advise.
We are doing Forms upgrade from 10.1.2.0.2 to 12.2.1.2.0.
We are going "fresh install, convert forms and deploy to new server" route.
Oracle forms server 12.2.1.2.0 appears OK since I can successfully run anything from default section from formsweb.cfg (message "Installed successfully").
One of developers converted forms, however when I try to run that section form appears loading (JAVA security etc) but then screen (internet explorer) goes blank (white).
Problem is I cannot see any single error anywhere so I can check where it fails. Nothing from $DOMAIN_HOME/servers/WLS_FORMS/logs shows any error sign and I enabled serverURL=/forms/lservlet/debug (debug messages in formsapp-diagnostic.log).
I even run form directly with &record=forms&tracegroup=0-199, got output files in $DOMAIN_HOME/system_components/FORMS/forms1/trace then tried to convert to meaningfull .txt. with:
java oracle.forms.diagnostics.Xlate datafile=forms_27233.trc outputfile=myfile.txt outputclass=WriteOutTEXT
but I am getting next error (not sure how to fix this):
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at oracle.forms.diagnostics.FormsInfo.interpret(Unknown Source)
at oracle.forms.diagnostics.FormsInfo.process(Unknown Source)
at oracle.forms.diagnostics.ReadDataFile.readEvent(Unknown Source)
at oracle.forms.diagnostics.Xlate.process(Unknown Source)
at oracle.forms.diagnostics.Xlate.main(Unknown Source)
How can I enable server to get some feedback when forms is loaded?
Details:
Oracle Forms Server 12.2.1.2.0 on Oracle Linux Server release 7.3 (4.1.12-94.3.6.el7uek.x86_64)
Previously, Forms were running on Windows Server 2003R2 and conversion was done on Windows 7.
Could this be issue?

Related

Azure web app (Linux) started throwing font error for apache poi xlsx export

I have Java application which uses apache poi to generate xlsx export.
The app is deployed on Azure app service as web app on Linux setup and it was working fine since many months (No Font config was ever installed on Azure web service). but suddenly it started throwing error on worksheet creation method saying Font not found.
below is the stack trace
Caused by: java.lang.InternalError: java.lang.reflect.InvocationTargetException
2022-03-04T11:49:12.048900166Z at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:86)
2022-03-04T11:49:12.048903666Z at java.base/java.security.AccessController.doPrivileged(Native Method)
2022-03-04T11:49:12.048907266Z at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
2022-03-04T11:49:12.048910866Z at java.desktop/java.awt.Font.getFont2D(Font.java:497)
2022-03-04T11:49:12.048914366Z at java.desktop/java.awt.Font.canDisplayUpTo(Font.java:2250)
2022-03-04T11:49:12.048917866Z at java.desktop/java.awt.font.TextLayout.singleFont(TextLayout.java:469)
2022-03-04T11:49:12.048924066Z at java.desktop/java.awt.font.TextLayout.<init>(TextLayout.java:530)
2022-03-04T11:49:12.048927967Z at org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(SheetUtil.java:273)
2022-03-04T11:49:12.048931467Z at org.apache.poi.xssf.streaming.AutoSizeColumnTracker.<init>(AutoSizeColumnTracker.java:117)
2022-03-04T11:49:12.048935167Z at org.apache.poi.xssf.streaming.SXSSFSheet.<init>(SXSSFSheet.java:82)
2022-03-04T11:49:12.048938867Z at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:674)
2022-03-04T11:49:12.048942367Z at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:695)
2022-03-04T11:49:12.048946167Z at org.xxx.xxx.utils.EXCELReportExporter.writeHeaderLine(EXCELBenchReportExporter.java:28)
and deep down in stacktrace
2022-03-04T11:49:12.049101970Z Caused by: java.lang.reflect.InvocationTargetException: null
2022-03-04T11:49:12.049105470Z at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2022-03-04T11:49:12.049109070Z at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2022-03-04T11:49:12.049112670Z at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2022-03-04T11:49:12.049116270Z at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
2022-03-04T11:49:12.049119870Z at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:84)
2022-03-04T11:49:12.049123370Z ... 156 common frames omitted
2022-03-04T11:49:12.049126870Z Caused by: java.lang.NullPointerException: null
2022-03-04T11:49:12.049130370Z at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1262)
2022-03-04T11:49:12.049133970Z at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:225)
2022-03-04T11:49:12.049137571Z at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:107)
2022-03-04T11:49:12.049141071Z at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:719)
2022-03-04T11:49:12.049144671Z at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:379)
2022-03-04T11:49:12.049148171Z at java.base/java.security.AccessController.doPrivileged(Native Method)
2022-03-04T11:49:12.049151671Z at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:324)
2022-03-04T11:49:12.049155371Z at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
2022-03-04T11:49:12.049158971Z at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:56)
2022-03-04T11:49:12.049162671Z ... 161 common frames omitted
Apparently there is no change in the application and environment is made.
Same app is tested on Windows & Linux with JDK 8 and 11 and it is still working fine locally.
Any help is much appreciated.
Apologies you're experiencing this issue.
Kindly check if Java version on Web App is set to auto-update.
This may cause the Java minor version to change to the most recent one and may throw exceptions on some API calls.
As outlined in this doc- It is recommend to use a fixed version for production environments and not auto-update.
To update the Java version, please try these steps:
1.Navigate to your WebApp on Azure Portal
2.Select the Configuration tab under Settings blade, and then General Settings.
3.If you have "Java SE (Embedded Web Server) (auto-update)” selected under “Java web server” option, then change the Java minor version to 11.0.11. Now, check to see if it helps.
I am having the same issue: Apache POI FontConfiguration NPE on Azure. The only workaround I found for the moment, is to set the minor java version to "11.0.11". I created a GitHub ticket also: https://github.com/Azure/azure-cli/issues/21540. The problem I have is that I didn't find a solution to force the minor version using an "az webapp create" command.
If you are using Apache Tomcat 8.5 have a look to the automatic update in the configuration tab on Azure Portal.
In the newest version (> 8.5.66) the Docker image of the service contains also an update of Java (not the version but the "provider" - they switched to OpenJDK) and there are no fonts installed causing the problem.
I fix it rollbacking to the 8.5.66 version
I am currently having the same issue. A temporary fix I did is to remove all the styling and formatting. I think this is an issue on the azure app service container itself. I've raised this question to the Azure community and will update here once I get an answer.
Another workaround would be to deploy the app in a custom container.
For Apache Tomcat 9 works if you choose tomcat version 9.0.46

Oracle Apex RAS is not supported on this system

one of my applications button stopped working on production, while it was working before, and it's still working on development server,
after enabling the debug mode I can see the following error, please support
RAS is not supported on this system
APEX Version=20.2.0.00.20
SID=1139
USER=APEX_PUBLIC_USER
INSTANCE=1
POST http://192.168.40.78:8010/ords
REMOTE_ADDR=192.168.235.18
REMOTE_USER=APEX_PUBLIC_USER
APEX_LISTENER_VERSION=19.2.0.r1991647
REFERER=http://192.168.40.78:8010/ords/apex_iha/r/store-employee-evaluation/login?session=3445169994675
CGI: PATH_INFO = /wwv_flow.accept
Notes:
My DB version is: 11.2.0.4.0
The code in the button working fine if I try to execute directly on
DB level
When login internal and checking instance security setting I can see
any parameter related to real application security
This button is doing the following: Button Code
Thanks ...

Oracle Instant Client 12 - How to disable 'Fault Diagnosability' (SIGTERM issue)

It seems I am suffering from this issue: Oracle Pro*C/OCI install handlers for SIGSEGV/SIGABRT and friends - why, and how to disable?
The answers in that question suggest that I create a sqlnet.ora file and put the following content into it (possibly only the second line would be enough - but I am not sure):
DIAG_ADR_ENABLED=OFF
DIAG_SIGHANDLER_ENABLED=FALSE
DIAG_DDE_ENABLED=FALSE
I am currently using the Oracle Instant Client Version 12.2.0.1.0 downloaded from Oracle.
Currently the Oracle Instant Client is installed under /usr/lib/oracle/12.2/client64/ (which contains the folders bin/, lib/ and network/). ORACLE_HOME is also set and points to /usr/lib/oracle/12.2/client64/.
When I place the above three lines into /usr/lib/oracle/12.2/client64/network/admin/sqlnet.ora they seem to have no effect. I tried starting my application additionally with TNS_ADMIN=/usr/lib/oracle/12.2/client64/network/admin which also had no effect. Finally I tried to put an sqlnet.ora into the local folder from where I start my application and then started it with TNS_ADMIN=. ./myapp, which also had no effect.
How can I disable the Fault Diagnosability of the Oracle Instant Client in order to get back control over Unix signals in my app.

How to create a deployment package with SQL scripts in IIS

Using IIS-10, Web Deploy v3.6, Windows 10.
It is an ASP.NET Website (not application) using SQL Server 2014 for the back-end.
I was able to successfully create and deploy the package, but without SQL scripts. Could not find any info on how to do it for including SQL scripts in the package. Here is what I have tried:
In IIS, under 'Default Web Site', select my web application.
On the right hand side, click on 'Export Application'.
Click on 'Manage Components'. Choose 'dbFullSql' as Provider name. For Path, enter connection string.
eg: Data Source=xxx.xxx.xx.xxx;Initial Catalog=MyDB;Persist Security Info=True;User ID=testuser;Password=test#345;
When clicked on OK, nothing happens. The processing icon keeps showing. It had to be closed using task manager.
Also tried with the path of the .sql file, instead of connectionString. But no idea about what parameters to be entered& how /where to mention the connection string.
I would appreciate if anyone could guide me with the right procedure.

Could not obtain information about Windows NT group / user, error code 0x3a

I am trying to deploy a SQLCLR library to SQL Server 2008 R2. In visual studio I have set up the data connection and it works correctly (I can run queries), but when I try to deploy I get the message "Error: Could not obtain information about Windows NT group / user , error code 0x3a."
This is strange because I have set up the data connection to use SQL server authentication on a different user name.
I receive the same error when I run CREATE ASSEMBLY while logged in to the SQL management studio with the different user name.
To add to the mystery, when I deploy using permission set SAFE everything is fine. However my assembly requires EXTERNAL ACCESS.
What could be the problem with deploying my assembly?
This issue wasted so much time I feel compelled to share the solution so that nobody else falls into the same trap.
Issue was resolved by setting the SQL Server Active Directory Helper service to run on Manual, then rebooting the server.
This issue arose in a different environment for me:
Windows 10 box;
The user Windows complained about was an AZUREAD user;
On my Win10 box there was no SQL Server Active Directory
Helper service, so I couldn't try the original solution posted by
ose.
I was able to work round the issue by removing the AZUREAD user as a SQL Server user while I added the assembly.
In my case that user was not essential to have as a SQL Server user, but I dare say it would be possible to re-add the user back later should this be required.

Resources