Invalid Java location
Troubleshooting Installation
- 'Address already in use' when Starting up Stash
- After Configuring Stash with SSL, Application Won't Start
- All Repositories Appear Empty After an Upgrade
- A soft-locked cache entry was expired by the underlying Ehcache
- Both old and new directory exist
- Change atlassian.recovery.password when installed as a Windows service
- Change STASH_HOME when installed as a Windows service
- ClassNotFoundException: javax.servlet.ServletContext When Starting Stash WAR in Tomcat 7
- Git 1.7.1 is Not Supported by Stash
- Harmless checkThreadLocalMapForLeaks messages on catalina.out
- How to run Stash over HTTPS with a Personal Information Exchange (PFX) keystore
- Invalid Java location
- java: not found during Stash startup
- LDAP Groups are not being populated with users using FreeIPA
- Login and session conflicts with multiple Atlassian applications
- Manage add-ons - An unexpected error has occurred. Please refer to the logs for more information.
- object directory does not exist - Git operations fail after upgrade or STASH_HOME update
- OpenJDK 64-Bit Server VM is an unsupported JVM
- Push Causes Pre-Receive Hook Declined When Running Windows Server on XenServer
- Sending email fails due to 501 Syntax: HELO hostname error
- SpringMVC dispatcher could not be started
- SSH server fails to start on AWS EC2 instance
- stash.git.notfound error during installation
- Stash as a service and the database as currently configured is not accessible error
- Stash console output: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found
- Stash Doesn't Start Due to java.lang.UnsatisfiedLinkError
- Stash does not start - After upgrade due to ClassNotFoundException org.apache.catalina.core.JasperListener
- Stash Does Not Start - No fonts found
- Stash does not start - No such file or directory
- Stash failed to Start due to Required plugin failed to start
- Stash fails to start: Perl does not seem to be installed
- Stash fails to start - BASEDIR environment variable is not defined
- Stash fails to start - Missing column
- Stash fails to start on 64-bit Windows with error 'tc-native-1.dll: Can't load IA 32-bit .dll'
- Stash Fails To Start on Windows, Please add git version 1.7.6 or higher to the PATH
- Stash Fails to Start - SEVERE: Error listenerStart
- Stash fails to start - The Spring WebApplicationContext could not be started - Unresolved constraint in bundle
- Stash fails to start - UnsupportedDirectoryOverrideException
- Stash Fails to Startup after installation when Running on OpenJDK
- Stash Fails to Start Up with java.net.UnknownHostException Exception
- Stash fails to start when the current locale is Turkish
- Stash fails to start with org.apache.catalina.core.ContainerBase.startInternal A child container failed during start
- Stash Fails to Start with the Reference to Entity "ABC123" Must End with the ';' Delimiter Error
- Stash hangs right after it starts
- Stash Home [<STASH_HOME>] cannot be created
- Stash Installer fails on Windows 2000
- Stash Install or Upgrade Fails: Error validating Perl
- Stash logo displays localhost
- Stash requires a case-sensitive database, but the target database is case-insensitive.
- Stash service (64-bit) fails to start - not a valid Win32 application
- Stash service installed as "STASH" instead of "Atlassian Stash" and fails with code 4
- Stash Stuck at Empty Repository Screen after Push When Running Windows Server on XenServer
- Stash Upgrade Fails with: tables whose names collide with Stash
- Stash Upgrade Fails with 'Permission Denied' Error
- Stash Upgrade Fails with "Table already exists" Error
- Stash Upgrade Fails with (Permission denied) Exception
- Stash Windows service fails to start - The system cannot open the file
- The database, as currently configured, is not accessible
- The Spring WebApplicationContext could not be started
- Unable to access server on fresh install on Linux
- Unable to access Stash during installation
- Unable to start Stash, with message function: not found
- Upgrading your Stash home directory for Stash 3.2 manually
- White/blank screen after upgrade
- Windows service launches old version after upgrade
On this page
Related content
- Modifying Incoming Email Settings Fails with Passed List had more than one value
- 500 Error Accessing Email Requests in JSM Data Center
- Git or Hg Repository exceeds number of allowed committers
- Error 500: unable to find all commit-graph files in Bitbucket DataCenter
- Setting a valid HEAD on your Git repository
- Broken email notification due to corrupted work directory
- An error is returned while editing a file through the Bitbucket in-browser editor if the user performing the action does not have an email address
- Error 500 when opening the Permissions page
- Plan Failing to Load with 500 error
- ClassCastException gnu.mail.handler.TextPlain when Sending Test Mail due to GNU Java
Symptoms
Starting Stash will get the following error:
# bin/start-stash.sh -fg
Starting Atlassian Stash as current user
Detecting JVM PermGen support...
PermGen switch is supported. Setting to 256m\n
Using STASH_HOME: /home/stash
Using CATALINA_BASE: /opt/atlassian/atlassian-stash-1.3.1
Using CATALINA_HOME: /opt/atlassian/atlassian-stash-1.3.1
Using CATALINA_TMPDIR: /opt/atlassian/atlassian-stash-1.3.1/temp
Using JRE_HOME: /usr/bin/java
Using CLASSPATH: /opt/atlassian/atlassian-stash-1.3.1/bin/bootstrap.jar
Using CATALINA_PID: /opt/atlassian/atlassian-stash-1.3.1/work/catalina.pid
bin/catalina.sh: line 306: /usr/bin/java/bin/java: Not a directory
bin/catalina.sh: line 306: exec: /usr/bin/java/bin/java: cannot execute: Not a directory
Cause
JAVA_HOME
is incorrectly set.
Resolution
Set the correct JAVA_HOME
as stated in this documentation.
Last modified on Mar 30, 2016
Related content
- Modifying Incoming Email Settings Fails with Passed List had more than one value
- 500 Error Accessing Email Requests in JSM Data Center
- Git or Hg Repository exceeds number of allowed committers
- Error 500: unable to find all commit-graph files in Bitbucket DataCenter
- Setting a valid HEAD on your Git repository
- Broken email notification due to corrupted work directory
- An error is returned while editing a file through the Bitbucket in-browser editor if the user performing the action does not have an email address
- Error 500 when opening the Permissions page
- Plan Failing to Load with 500 error
- ClassCastException gnu.mail.handler.TextPlain when Sending Test Mail due to GNU Java
Powered by Confluence and Scroll Viewport.