Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
Description
From: Hagimoto, Kumi
Sent: Thursday, November 17, 2016 6:19 PM
To: Hyzer, Chris
Subject: Re: [grouper-users] NullPointerException trying to upgrade v2.2.1 > v.2.3.0
Hi Chris,
I checked out the code from git and found that if I changed this.grouperInstallDirectoryString (which was null) to this.grouperTarballDirectoryString in a couple of methods, it let me move forward.
The two methods were:
downloadAndConfigureApi()
downloadAndBuildClient()
I’m not sure this is the correct fix though…
Thanks,
Kumi
On Nov 16, 2016, at 10:59 PM, Hyzer, Chris wrote:
I will get back to you on this...
----Original Message----
From: grouper-users-request
On Behalf Of Kumi Hagimoto
Sent: Wednesday, November 16, 2016 7:27 PM
To: grouper-users
Subject: [grouper-users] NullPointerException trying to upgrade v2.2.1 > v.2.3.0
Hi,
I'm getting a NullPointerException running the upgrade from v2.2.1 to v.2.3.0
using the grouperInstaller. (I just downloaded the installer today.)
Here's the stack trace:
...
##################################
Download and build grouper packages
Downloading from URL:
https://software.internet2.edu/grouper/release/2.3.0/grouper.clientBinary-2.3.
0.tar.gz to file:
/private/src/grouper.installer-2.3.0/tarballs/grouper.clientBinary-2.3.0.tar.g
z
Unzipping:
/private/src/grouper.installer-2.3.0/tarballs/grouper.clientBinary-2.3.0.tar.g
z
Exception in thread "main" java.lang.NullPointerException
at java.io.File.<init>(File.java:277)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.downloadAndBuildCli
ent(GrouperInstaller.java:7128)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller$AppToUpgrade$3.down
loadAndBuildGrouperProjects(GrouperInstaller.java:4593)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller$AppToUpgrade$2.down
loadAndBuildGrouperProjects(GrouperInstaller.java:4506)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainUpgradeLogic(Gr
ouperInstaller.java:2691)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$400(GrouperI
nstaller.java:80)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller$GrouperInstallerMai
nFunction$2.logic(GrouperInstaller.java:1099)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainLogic(GrouperIn
staller.java:1150)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.main(GrouperInstall
er.java:418)
Here is the dir list of the tarballs dir at this point so the file seems to be
there:
root@grouper-be-dev:/private/src/grouper.installer-2.3.0/tarballs# ls -ltr
total 8164
drwxr-xr-x 28 root root 4096 Nov 16 15:07 patches
rw-rr- 1 root root 3888869 Nov 16 15:07 grouper.clientBinary-2.3.0.tar.gz
rw-rr- 1 root root 4464640 Nov 16 15:07 grouper.clientBinary-2.3.0.tar
I can reproduce this by trying to upgrade a vanilla installation of v2.2.1 to
v2.3.0. I even tried untarring the grouper.clientBinary-2.3.0.tar to see if
that helped, but no luck. It threw an exception at the same line.
Has anyone seen this, and if so, how did you get past it?
Thanks,
Kumi