getodk / aggregate

ODK Aggregate is a Java server that stores, analyzes, and presents survey data collected using ODK Collect. Contribute and make the world a better place! ✨🗄✨
https://docs.opendatakit.org/aggregate-intro/
Other
74 stars 227 forks source link

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

Open getodk-bot opened 7 years ago

getodk-bot commented 7 years ago

Issue by mitchellsundt Thursday Jul 09, 2015 at 19:35 GMT Originally opened as https://github.com/opendatakit/opendatakit/issues/946 (1 comment(s))


Originally reported on Google Code with ID 945

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--- 

Reported by mitchellsundt on 2013-12-04 22:55:05

getodk-bot commented 7 years ago

Comment by mitchellsundt Thursday Jul 09, 2015 at 19:35 GMT


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. 

Reported by cfcpotato on 2014-04-01 15:07:26

ggalmazor commented 6 years ago

Attention! We're housekeeping! This issue will automatically be closed if no feedback is received in one week.

If this issue is important to you or you can provide more information about it, please, do so as soon as possible :)