wsharba / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 1 forks source link

Exceptions during installer Upload script are erroneously reported as END SCRIPT SUCCESS #945

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If someone has their PATH variable set to find the java.exe in the windows 
directory before their installed JRE, then chaos ensues.

If that happens, the script still reports success because it doesn't grep for 
the Exception

=============
Hello,
I believe that I have followed all of the instructions correctly for installing 
Aggregate on App Engine. When I run uploadAggregateToAppEngine.hta it says 
"---END-SCRIPT-SUCCESS--- at the end, but there appear to be errors. I have 
Java 7 installed. The upload progress says "found java in PATH... 
C:\Windows\System32\java.exe" but I don't have Java installed in that location. 
Below is the text of the output when I attempted the upload. Any help would be 
greatly appreciated.
Steve

Looking for java...
found java in PATH... C:\Windows\System32\java.exe
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:116)
Caused by: java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.(Unknown Source)
at com.google.appengine.tools.info.SdkInfo.findSdkRoot(SdkInfo.java:108)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:235)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:190)
at com.google.appengine.tools.info.SdkImplInfo.(SdkImplInfo.java:19)
... 2 more
---- WEBSITE COMPLETE - BEGIN BACKEND ----
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:116)
Caused by: java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.(Unknown Source)
at com.google.appengine.tools.info.SdkInfo.findSdkRoot(SdkInfo.java:108)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:235)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:190)
at com.google.appengine.tools.info.SdkImplInfo.(SdkImplInfo.java:19)
... 2 more
---END-SCRIPT-SUCCESS--- 

Original issue reported on code.google.com by mitchellsundt@gmail.com on 4 Dec 2013 at 10:55

GoogleCodeExporter commented 9 years ago
Hi, Im probably way to late to help on this, but I had the same problem (now 
fixed). 
Simple answer was that I was 'installing' odk aggregate to a folder which was 
actually a server location at my organisation. Basically this wasnt allowed 
through. So I 'installed' it instead on my local drive and it ran fine. 
ps, I previously had setup and instance of ODK aggregate and this was the 
second time I was doing it, not sure if that had any bearing on the nature of 
the error message, and if I wouldve got that far the first time. 

Original comment by cfcpot...@gmail.com on 1 Apr 2014 at 3:07