I'm trying to use SAS Studio 3.71 along my (working) 3.1.
I get this error in the serverlog:
Server running at: http://localhost:51700/
2018-06-25 09:37:41,947 [http-nio-auto-1-exec-10] ERROR com.sas.ep.sascoder.directory.workspace.iom.IOMWorkspace - Fileref to determine home folder failed
java.lang.NullPointerException
at com.sas.ep.sascoder.directory.workspace.iom.IOMWorkspace.setHomeFolder(IOMWorkspace.java:790)
at com.sas.ep.sascoder.directory.workspace.iom.IOMWorkspace.<init>(IOMWorkspace.java:134)
at com.sas.ep.sascoder.directory.workspace.iom.IOMWorkspaceFactory.create(IOMWorkspaceFactory.java:135)
at com.sas.ep.sascoder.directory.workspace.iom.LocalWorkspaceFactory.create(LocalWorkspaceFactory.java:41)
at com.sas.ep.sascoder.directory.Server.newWorkspace(Server.java:129)
at com.sas.ep.sascoder.utilities.pool.Pool.getNonPooled(Pool.java:567)
at com.sas.ep.sascoder.directory.Server.getTestedNonPooled(Server.java:84)
at com.sas.ep.sascoder.session.SessionManager.getWorkSpace(SessionManager.java:440)
at com.sas.ep.sascoder.rest.representations.RestSession.connect(RestSession.java:818)
at com.sas.ep.sascoder.rest.representations.RestSession.connect(RestSession.java:813)
at com.sas.ep.sascoder.service.auth.AuthenticationProviderSingle.makeInitialWorkspaceConnection(AuthenticationProviderSingle.java:68)
at com.sas.ep.sascoder.service.auth.AuthenticationProviderCommon.logon(AuthenticationProviderCommon.java:233)
at com.sas.ep.sascoder.service.auth.AuthenticationProviderCommon.logon(AuthenticationProviderCommon.java:149)
at com.sas.ep.sascoder.web.SessionController.post(SessionController.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
How do I define the home folder and in what configuration file?
How do I define the home folder and in what configuration file?
To set the -SASUSER option more dynamically, you can modify the /<SASHome>/SASFoundation/9.x/bin/sasenv_local file to include shell script code comparable to:
#check whether user directory exists and create it if necessary
if [ ! -d /newpath/$USER/sasuser.v94 ]
then
mkdir -p /newpath/$USER/sasuser.v94
fi
# set the SASUSER option by using the SASV9_OPTIONS environment variable
SASV9_OPTIONS="$SASV9_OPTIONS -sasuser /newpath/$USER/sasuser.v94"
export SASV9_OPTIONS
How do I define the home folder and in what configuration file?
To set the -SASUSER option more dynamically, you can modify the /<SASHome>/SASFoundation/9.x/bin/sasenv_local file to include shell script code comparable to:
#check whether user directory exists and create it if necessary
if [ ! -d /newpath/$USER/sasuser.v94 ]
then
mkdir -p /newpath/$USER/sasuser.v94
fi
# set the SASUSER option by using the SASV9_OPTIONS environment variable
SASV9_OPTIONS="$SASV9_OPTIONS -sasuser /newpath/$USER/sasuser.v94"
export SASV9_OPTIONS
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.