GoAnywhere fails to start with Error: java.security.InvalidKeyException: Illegal key size

View some of the Frequently Asked Questions to our support staff. Included are some tips and tricks making this forum ideal for users getting started with GoAnywhere MFT. Note: Users can reply to existing topics but only our support staff can add new topics to this forum.
1 post Page 1 of 1

Support_Andy

Posts: 7
Joined: Thu Feb 16, 2017 11:03 am

Post by Support_Andy » Tue Jan 02, 2018 1:51 pm
Symtptom: GoAnywhere Service will not stay started
Cause: This can occur when Java is updated on the windows environment.

Diagnose the error by viewing the stderr log file in the tomcat\bin directory
Typical log location
C:\Program Files\Linoma Software\GoAnywhere\tomcat\logs\goanywhere-stderr.YYYY-MM-DD.log

Excerpt from log below
2018-01-02 12:03:04 Commons Daemon procrun stderr initialized
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
to.EncryptorImpl.<init>(Unknown Source)
at com.linoma.commons.crypto.AESEncryptor.initialize(Unknown Source)
at com.linoma.startup.TomcatStarter.start(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.linoma.bootstrap.GoAnywhereBootstrap.main(GoAnywhereBootstrap.java:95)
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
at javax.crypto.Cipher.implInit(Cipher.java:805)
at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
at javax.crypto.Cipher.init(Cipher.java:1396)
at javax.crypto.Cipher.init(Cipher.java:1327)
... 8 more

Resolution (the unlimited strength policy files of "local_policy.jar" and "US_export_policy.jar" must be in the lib\security folder of installed Java location)

1. Navigate to the GoAnywhere installation folder (i.e. C:\Program Files\Linoma Software\GoAnywhere) and go to the \tomcat\bin folder.)

2. Find out what the Windows Service name is that starts GoAnywhere. For example, the default service name is “GoAnywhere” so in this \tomcat\bin folder is a file called “GoAnywherew.exe”. Find the service name and file that ends with “w.exe” and right click > run as administrator.

3. On the Java tab on the properties that opens up will be a field for “Java Virtual Machine”. Take note on where it is. If this is pointed to C:\Program Files\java, then GoAnywhere is pointing to external Java and can be subject to updates to Java that can cause the service to stop.

4. Update the policy files: (Java 8) http://www.oracle.com/technetwork/java/ ... 33166.html

5. After downloading the files, extract and replace the existing files in the (jre install)/lib/security folder. (i.e C:\Program Files\Java\jre1.8.0_111\lib\security)

NEWER JAVA Alert. If the new java downloaded contains sub directories of limited and unlimited. The files inside the unlimited directory need copied out of this directory and placed in the C:\Program Files\Java\jre1.8.0_xxx\lib\security (where xxx = current build of Java installed)

6. Note future updates can cause a similar result. Make sure to control the Java updates to be proactive in keeping GoAnywhere running.

7. Start GoAnywhere Service
1 post Page 1 of 1