Hello Ryan,
Thank you for your suggestion. It worked and the RDFs puller was successfully completed.
Initially, I wondered about the relation between the "Number of Administrative Sessions Allowed" value in DB config and the rdfs-puller command.
------------------------------
Karthik
------------------------------
Original Message:
Sent: Tue March 07, 2023 10:46 AM
From: Ryan Medernach
Subject: rdfs-puller command fails in between with "authLogout() no session token to communicate with" error
I don't recall exactly but I believe this is related to the # of sessions that are required (I don't recall if it was the RDF Puller process or the app build process) but I noticed that each call opened a full session instead of using one session. You can see this under the Users > Manage Sessions. If there are multiple sessions with maxadmin (or whatever your username is) you can try increasing the # of sessions available under Database Configuration > Turn Admin Mode On > "Number of Administrative Sessions Allowed".
Note when I checked with support with a case file this was "As designed".
Hope this helps.
------------------------------
Ryan Medernach
Application Support
MEG Energy
Calgary AB
-
Original Message:
Sent: Mon March 06, 2023 11:47 PM
From: Karthik Angara
Subject: rdfs-puller command fails in between with "authLogout() no session token to communicate with" error
Hello Team,
After the Maximo Anywhere upgrade 764 with IFIX4, the rdfs-puller command fails in between with "authLogout() no session token to communicate with" error as shown below. We are running this on iOS MacBook. Request to suggest a solution.
bkiamac001:MaximoAnywhere admin$ ./build/tools/ant/bin/ant -f anywhere-rdfs-puller.xml -Dadapter.connection.user=maxadmin -Dadapter.connection.password=maxadmin
Unable to locate tools.jar. Expected to find it in /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/tools.jar
Buildfile: /Users/IBM/AnywhereTest/MaximoAnywhere/anywhere-rdfs-puller.xml
[echo] 2023-03-07 12:31:08> Pulling RDF's from server: http://maximo.Development.com:80/maximo
all:
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/sp?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/sp/sp
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/sp/WorkManagement?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/sp/WorkManagement/WorkManagement
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/sp/AssetManagement?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/sp/AssetManagement/AssetManagement
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/sp/SmarterPhysicalInfrastructure?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/sp/SmarterPhysicalInfrastructure/SmarterPhysicalInfrastructure
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/sp/FriendOfAFriend?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/sp/FriendOfAFriend/FriendOfAFriend
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcasset?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcasset/oslcasset
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcasset/assetmeter?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcasset/assetmeter/assetmeter
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcasset/downtimereport?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcasset/downtimereport/downtimereport
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcasset/assetstatus?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcasset/assetstatus/assetstatus
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcasset/assetaudit?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcasset/assetaudit/assetaudit
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcasset/assetspec?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcasset/assetspec/assetspec
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcasset/classspec?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcasset/classspec/classspec
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcshift?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcshift/oslcshift
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslccalendar?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslccalendar/oslccalendar
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslclocations?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslclocations/oslclocations
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcmeter?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcmeter/oslcmeter
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcwodetail/multiassetlocci?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcwodetail/multiassetlocci/multiassetlocci
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcwodetail/wplabor?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcwodetail/wplabor/wplabor
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcwodetail/wptool?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcwodetail/wptool/wptool
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] authenticate() send request to get HttpSession cookie.
[getOneRdf]
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcwodetail/worklog?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcwodetail/worklog/worklog
[getOneRdf] authLogout() HTTP STATUS: 200 [OK]
[getOneRdf] java.net.SocketException: Connection reset
[getOneRdf] at java.net.SocketInputStream.read(SocketInputStream.java:210)
[getOneRdf] at java.net.SocketInputStream.read(SocketInputStream.java:141)
[getOneRdf] at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
[getOneRdf] at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
[getOneRdf] at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
[getOneRdf] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
[getOneRdf] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
[getOneRdf] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:706)
[getOneRdf] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
[getOneRdf] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
[getOneRdf] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
[getOneRdf] at com.ibm.tivoli.si.util.ConnectionUtil.authenticate(ConnectionUtil.java:129)
[getOneRdf] at com.ibm.tivoli.si.build.ant.GetOneRdf.execute(GetOneRdf.java:36)
[getOneRdf] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[getOneRdf] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[getOneRdf] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[getOneRdf] at java.lang.reflect.Method.invoke(Method.java:498)
[getOneRdf] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[getOneRdf] at org.apache.tools.ant.Task.perform(Task.java:348)
[getOneRdf] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
[getOneRdf] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[getOneRdf] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[getOneRdf] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[getOneRdf] at java.lang.reflect.Method.invoke(Method.java:498)
[getOneRdf] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[getOneRdf] at org.apache.tools.ant.Task.perform(Task.java:348)
[getOneRdf] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
[getOneRdf] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[getOneRdf] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[getOneRdf] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[getOneRdf] at java.lang.reflect.Method.invoke(Method.java:498)
[getOneRdf] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[getOneRdf] at org.apache.tools.ant.Task.perform(Task.java:348)
[getOneRdf] at org.apache.tools.ant.Target.execute(Target.java:390)
[getOneRdf] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[getOneRdf] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[getOneRdf] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[getOneRdf] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[getOneRdf] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[getOneRdf] at org.apache.tools.ant.Main.runBuild(Main.java:809)
[getOneRdf] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[getOneRdf] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[getOneRdf] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[getOneRdf] Getting: http://maximo.Development.com:80/maximo/oslc/shapes/oslcperson?&_lid=maxadmin&_lpwd=maxadmin
[getOneRdf] To: /Users/IBM/AnywhereTest/MaximoAnywhere/oslc-docs/resources/rdf/oslc/shapes/oslcperson/oslcperson
[getOneRdf] http://maximo.Development.com:80/maximo/oslc/shapes/oslcperson?&_lid=maxadmin&_lpwd=maxadmin moved to http://maximo.Development.com/maximo/webclient/login/login.jsp?appservauth=true
[getOneRdf] authLogout() no session token to communicate with.
BUILD FAILED
/Users/IBM/AnywhereTest/MaximoAnywhere/anywhere-rdfs-puller.xml:87: The following error occurred while executing this line:
/Users/IBM/AnywhereTest/MaximoAnywhere/anywhere-rdfs-puller.xml:298: java.lang.NullPointerException
at com.ibm.tivoli.si.util.ConnectionUtil.authLogout(ConnectionUtil.java:312)
at com.ibm.tivoli.si.build.ant.GetOneRdf.execute(GetOneRdf.java:38)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
------------------------------
Karthik
------------------------------
#Maximo
#MaximoAnywhere
#AssetandFacilitiesManagement