I'm spinning up new AWS EC2 Ubuntu 22.04 instances...
# cfml-general
p
I'm spinning up new AWS EC2 Ubuntu 22.04 instances and trying to run the CF 2018 installer on them (because that's what we have licenses for.) Lately, the installer has been bombing with the following message/stack trace.
Copy code
Launching installer...

Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file com/zerog/util/ZGSys$IAConsoleReader
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:801)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:699)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:622)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
	at com.zerog.util.ZGSys.<clinit>(Unknown Source)
	at com.zerog.ia.installer.LifeCycleManager.init(Unknown Source)
	at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
	at com.zerog.ia.installer.Main.main(Unknown Source)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.zerog.lax.LAX.launch(Unknown Source)
	at com.zerog.lax.LAX.main(Unknown Source)
This Application has UnexpectedlApplicatation will now exit. (LAX)
Some google-fu is pointing at the InstallAnywhere app having a problem with the temp directory. I've tried reassigning the temp directory, and increasing the volume and instance size. Nothing is working. The CF 2021 installer does not experience the same issue. I did notice that the description of the AMI from AWS reads "Canonical, Ubuntu, 22.04 LTS, amd64 jammy image build on 2023-02-08" so I'm wondering if this issue was introduced then. Has anyone else run into this?
p
Can you send me the exact Instalelr your using and I'll have a crack
p
Where does that error happen?
I have been able to install successfully
p
Really!? Here's my steps to reproduce: • AWS EC2 => Launch instance • Select QuickStart AMI for Ubuntu, Server 22.04 • Assign it a t3.medium instance, key pair, security group, give it 40 GB of storage, etc and launch it. • ssh into it. •
apt update && apt upgrade -y
apt install apache2 default-jre -y
wget <https://acf-installers.s3.us-west-2.amazonaws.com/ColdFusion_2018_WWEJ_linux64.bin>
(this is where I copied the CF2018 installer from CFML Repo so I could wget it directly.) •
chmod +x ColdFusion_2018_WWEJ_linux64.bin
./ColdFusion_2018_WWEJ_linux64.bin
Video below shows the install of CF2018. http://35.87.40.169 is the Apache server running. (I'll leave that up today.) What did you do differently?
p
Literally those steps but a larger instance type. I’ll try with the smaller instance.
Actually I didn’t install a jre or Apache
p
Let me redo it without Apache or the default jre.
p
I forgot that http endpoint it whist listed to my up but it’s running fine
p
But I suspect it will still die.
p
It’s 7:15am so I’ll try the t3 when I start for the day
👍 1
p
Same issue on a brand new machine. I'm wondering if the AMI you're using is different than the one I'm using in us-west-2
p
I do assume you udid sudo
Copy code
sudo ./ColdFusion_2018_WWEJ_linux64.bin
p
Indeed.
p
Doing it om t3 med now
p
sudo -s
as soon as I logged in.
1
p
Copy code
Launching installer...

Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file com/zerog/util/ZGSys$IAConsoleReader
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:801)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:699)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:622)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
	at com.zerog.util.ZGSys.<clinit>(Unknown Source)
	at com.zerog.ia.installer.LifeCycleManager.init(Unknown Source)
	at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
	at com.zerog.ia.installer.Main.main(Unknown Source)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.zerog.lax.LAX.launch(Unknown Source)
	at com.zerog.lax.LAX.main(Unknown Source)
This Application has UnexpectedlApplicatation will now exit. (LAX)
ubuntu@ip-172-31-26-207:~$
Just for arguments skae cna you also try a larger nstance size?
p
I did... I tried with a t3.2xlarge instance and m6a.large instance with the same results.
You got the same thing?
If so, good. (I mean good, but not good... "good, I'm not crazy.")
p
I wonder if I never did a sudo upgrade before
Let me try without that
Nah same dealk
It worked on Instance type t2.xlarge
Yeah, same with all t3 instance types.
p
So bizarre. I wonder if building it on a t2 then changing to a t3 would work.
p
I'm goignt o try with swap on
And it worked