AccessException: Perforce password (P4PASSWD) invalid or unset. Null message body; hope that's okAccessException: password invalid Null message body
Posted 20 June 2014 - 12:19 PM
I am trying to use the perforce java API com.perforce.p4java.core.IChangelist.submit(boolean arg0) to submit the changelist into perforce server. Although the changelist gets submitted into perforce it throws below exception
com.perforce.p4java.exception.AccessException: Perforce password (P4PASSWD) invalid or unset.Null message body; hope that's ok
I have checked the login session from perforce client, and it is still active. I am able to access the perforce client with no issues.
It used to work before with no issues, but suddenly it has started giving this exception.
I am using perforce server version
Server version: P4D/LINUX26X86_64/2013.3/822226 (2014/04/08)
Perforce Visual Client/NTX86/2010.2/317255
Perforce Java API version is - p4java-2012.1.469775.jar
Please let me know if i am missing anything or any configuration.
Let me know if you need more information.
Posted 24 June 2014 - 08:11 PM
Is the Perforce user in a group where the Timeout setting is "unlimited"?
Posted 25 June 2014 - 06:16 AM
Thanks for your reply.
The perforce user is not in a group with unlimited timeout setting.
Posted 25 June 2014 - 09:21 PM
Then after modifying this setting, log the user in to Perforce.
Posted 26 June 2014 - 08:43 AM
Our admin won't accept to change the user group timeout to "unlimited". As the group of this user does not fall under "unlimited" timeout category.
Also, i am not able to understand how this issue is about login timeout. As the same user is logged in from p4client but not from the p4-java api.
This is reproducible everytime we run the IChangelist.submit(boolean arg0) method from p4-java api.
One more thing is - before i am executing the IChangelist.submit(boolean arg0) method, the IOptionsServer.getChangelist(int id) method is getting executed with no issues. It's only for the submit API is it failing.
Posted 26 June 2014 - 06:32 PM
Thank you for the additional details concerning that the message only occurs on submit.
One culprit and solution for receiving this 'Password invalid' message is covered here:
I do not know if this applies to your case or not as I am not sure which versions you use.
We do not have any current reported issues with IChangelist.submit and user logins so I
am guessing it is something minor with your configuration in either the java api or with the
user password and login.
Posted 09 July 2014 - 11:46 AM
AccessException: Perforce password (P4PASSWD) invalid or unset. Null message body; hope that's ok
We are not able to find any difference in the user settings.
Are there any special settings that we need to do for that particular user?
Posted 03 February 2015 - 11:16 PM
Also tagged with one or more of these keywords: AccessException:, password, invalid, Null message body
About The Forums →
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users