Token expired-error 50101
I am unable to download apps from app worldm every time I try a pop up msg appears which states token expired, relogin error 50101. I tried reseting pswd, but it doesn't help. I tried to change user I'd and password by going to options >set device user I'd but a pop msg again appears, unable top retrieve info. I am no clue as to what shd be done. Never by a blackberry there is no proper online support.
Hey sunil007,
Welcome to the BlackBerry Support Community Forums.
Thanks for the question.
Follow the steps in this KB article to resolve the issue in BlackBerry App World™: www.blackberry.com/btsc/KB28212
Let me know if you have any more questions.
Cheers.
-ViciousFerret
Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
Be sure to click Like! for those who have helped you.
Click Accept as Solution for posts that have solved your issue(s)!
Similar Messages
-
Login Token Expired Error on FolderManager.getFolderByPath
Hello,
We have two applications that are both making a call to FolderManager.getFolderByPath(). When this call is made, we receive a ContentException from the PTCS, and the error message indicates that the Login Token has expired. We are sending the login token (in fact, all of our web service settings are identical to another set of servers that do work), and we are completely stumped. We don't see any exceptions in the logs for the PTCS. Anyone have a clue as to what might be wrong?
Thanks,
EricDid you ever figure this one out? I am having the same problem.
-
BBID token is expired. (error id: 40631)
Everytime I try to download or do something on Blackberry app world, I get the following:
BBID token is expired. (error id: 40631)
Could anyone help me please?Hey Rhys_Turnbull,
Welcome to the BlackBerry Support Community Forums.
Thanks for the question.
Follow the steps in this KB article to resolve the issue: www.blackberry.com/btsc/KB28212
Let me know if you have any more questions.
Cheers.
-ViciousFerret
Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
Be sure to click Like! for those who have helped you.
Click Accept as Solution for posts that have solved your issue(s)! -
Content has expired error - NOT related to time being off on servers??
Recently I had a site (with publishing turned on) where the top navigation and quick launch disappeared showing the content had expired error. I have triple checked the server time settings, as well as the web application time settings. I verified
with our AD guy that our time is the same. This was only happening on one site but now I see it on a different site collection sub site.
I am weak when it comes to development so I am at a brick wall. I was hoping someone could tell me or have some suggestions as to what the problem could be.
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
Files
aise3 Medium
Failure when fetching document. 0x80070002 debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
8e2s Medium
Unknown SPRequest error occurred. More information: 0x80070002
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
aix9j High
SPRequest.GetFile: UserPrincipalName=i:0).w|s-1-5-21-1049048376-158663921-5522801-22804, AppPrincipalName= ,bstrUrl=/PWA/ProjectBICenter/Pages/Forms/scripts.js
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
at Microsoft.SharePoint.SPWeb.GetFileAsString(String url)
at A.SharePoint.Features.jQueryScripts.Common.GetListScripts(SPWeb& web, SPList& list)
at A.SharePoint.Features.jQueryScripts.ListSettings.get_ScriptContent()
at A.SharePoint.Features.jQueryScripts.ControlTemplates.A.SharePoint.Features.jQueryScripts.jQueryScripts.RegisterListScript(SPSite& site, SPWeb& web)
at A.SharePoint.Features.jQueryScripts.ControlTemplates.A.SharePoint.Features.jQueryScripts.jQueryScripts.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Con...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...trol control, Int32 index) at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControlsInternal()
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.WebControls.DelegateControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control na...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...mingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequ...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...estNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, ...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing
7fz3 Medium
Setting [Display] as the FormContext.FormMode for the current page
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing
7fz3 Medium
Setting [Display] as the FormContext.FormMode for the current page
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing
7fz3 Medium
Setting [Display] as the FormContext.FormMode for the current page
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
72nz High
token not fresh for non-interactive action
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
8e2s Medium
Unknown SPRequest error occurred. More information: 0x80090317
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
aix9j High
SPRequest.SetHttpParameters: UserPrincipalName=, AppPrincipalName= ,bstrHttpMethod=GET ,bstrRequestDigest=<null> ,flags=8 ,gTranLockerId=00000000-0000-0000-0000-000000000000 ,bIgnoreTimeout=False ,bstrUserLogin=i:0#.w|domain\sp_superuser
,bstrUserKey=i:0).w|s-1-5-21-1049048376-158663921-5522801-32415 ,ulRoleCount=0 ,bstrRoles=<null> ,bWindowsMode=False ,bstrAppPrincipalName=<null> ,bIsHostHeaderAppPrincipal=False ,bstrOriginalAppPrincipalIdentifier=<null> ,bInvalidateCachedConfigurationProperties=False
,lAppDomainId=2 ,bCallstack=False debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
System.Runtime.InteropServices.COMException: The context has expired and can no longer be used. (Exception from HRESULT: 0x80090317), StackTrace:
at Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(SPSite site, String name, Boolean bNotGlobalAdminCode, String strUrl, Boolean bNotAddToContext, Byte[] UserToken, SPAppPrincipalToken appPrincipalToken, String userName, Boolean bIgnoreTokenTimeout,
Boolean bAsAnonymous) at Microsoft.SharePoint.SPWeb.InitializeSPRequest()
at Microsoft.SharePoint.SPWeb.EnsureSPRequest()
at Microsoft.SharePoint.SPWeb.InitWebPublic()
at Microsoft.SharePoint.Publishing.CachedObjectFactory.OpenWebFromSuperUserSite(String webUrl)
at Microsoft.SharePoint.Publishing.CachedObjectFactory.CreateListItemFromUrl(String url, SPWeb contextWeb,...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
... Boolean enableCheckedOutItem) at Microsoft.SharePoint.Publishing.WebControls.ConsoleUtilities.get_ContextualListItemCached()
at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.retrieveItemVersion()
at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e)
at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e)
at Microsoft.SharePoint.Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive()
at System.Web.UI....
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessR... debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...equestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequ...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...estNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing Cache
fev8
Medium
CreatePageFromUrlNoUpperCase failed with SPException. Url = '/PWA/ProjectBICenter/Pages/default.aspx'. Exception : 'Microsoft.SharePoint.SPException: The context has expired and can no longer be used. (Exception from HRESULT: 0x80090317) ---> System.Runtime.InteropServices.COMException:
The context has expired and can no longer be used. (Exception from HRESULT: 0x80090317)
at Microsoft.SharePoint.Library.SPRequestInternalClass.SetHttpParameters(String bstrHttpMethod, String bstrRequestDigest, UInt32 flags, Guid gTranLockerId, Byte[]& ppsaImpersonateUserToken, Boolean bIgnoreTimeout, String bstrUserLogin, String bstrUserKey,
UInt32 ulRoleCount, String bstrRoles, Boolean bWindowsMode, String bstrAppPrincipalName, Boolean bIsHostHeaderAppPrincipal, String bstrOriginalAppPrincipalIdentifie...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing Cache
fev8 Medium
...r, ApplicationPrincipalInfo& pAppUserInfo, Boolean bInvalidateCachedConfigurationProperties, Int32 lAppDomainId, ISPManagedObjectFactory pFactory, Boolean bCallstack, ISPDataCallback pCanaryCallback)
at Microsoft.SharePoint.Library.SPRequest.SetHttpParameters(String bstrHttpMethod, String bstrRequestDigest, UInt32 flags, Guid gTranLockerId, Byte[]& ppsaImpersonateUserToken, Boolean bIgnoreTimeout, String bstrUserLogin, String bstrUserKey, UInt32
ulRoleCount, String bstrRoles, Boolean bWindowsMode, String bstrAppPrincipalName, Boolean bIsHostHeaderAppPrincipal, String bstrOriginalAppPrincipalIdentifier, ApplicationPrincipalInfo& pAppUserInfo, Boolean bInvalidateCachedConfigurationProperties, Int32
lAppDomainId, ISPManagedObjectFactory pFactory, Boolean bCallstack, ISPDataCallback pCanar...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing Cache
fev8 Medium
...yCallback) --- End of inner exception stack trace ---
at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.SetHttpParameters(String bstrHttpMethod, String bstrRequestDigest, UInt32 flags, Guid gTranLockerId, Byte[]& ppsaImpersonateUserToken, Boolean bIgnoreTimeout, String bstrUserLogin, String bstrUserKey, UInt32
ulRoleCount, String bstrRoles, Boolean bWindowsMode, String bstrAppPrincipalName, Boolean bIsHostHeaderAppPrincipal, String bstrOriginalAppPrincipalIdentifier, ApplicationPrincipalInfo& pAppUserInfo, Boolean bInvalidateCachedConfigurationProperties, Int32
lAppDomainId, ISPManagedObjectFactory pFactory, Boolean bCallstack, ISPDataCallback pCanaryCallback)
at Microsoft.SharePoint.SPGlobal.CreateSPRequestAnd...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
Jennifer Knight (MCITP, MCPD)Hi,
As you said, the error only occurs in some sites, so other sites in the same site collections are all ok?
If other sites are all ok, then please check that whether the issued sites has been modified with some unique customization.
According to the error message, a common solution is to update your web applications' time zone to match that of your SharePoint servers, then IIS reset is also required on each server in the farm.
Here are two links about this issue for your reference:
http://sureshpydi.blogspot.com/2013/04/the-content-has-expired-and-can-no.html
http://jantjesworld.blogspot.com/2013/03/the-context-has-expired-and-can-no.html
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
Hi,
We have few dashboards developed in Xcelsius which we need to run 24/7. We use jsp to create login token and pass the login token to the .swf file. The problem is, the login token expires after 24 hour and the dashboards give error message "Invalid login token". In that case, we have to close the dashbaords and start again.
Is there anyway to automatically extend the lifetime of the login tokens? Please share your knowledge.
Regards,
Tanveer.There is a setting in the infoview web.xml for logontoken and value of true will cause the logon token to auto renew.
If you are looking for a solution in the SDK then you may want to ask this question in the SDK forums. Let me know and I can move the post there.
Regards,
Tim -
Timeout expired error when inserting into a mirrored server
We have 3 SQL Server 2012 servers.
All 3 SQL Server has the same database, ie myDB.
In 2 of the servers (say server A and B), myDB is mirrored, and on the 3rd server myDb is NOT mirrored.
When the program calls a stored procedure to insert a record into a table in the database, on the mirrored servers (server A and B) sometimes it takes up to 7 seconds and gave an error "Timeout expired. The timeout period elapsed prior
to completion of the operation or the server is not responding. This failure occured while attempting to connect to the Principle server." This doesn't happen all the time, but happens often enough throughout the day.
The 3rd server (that is NOT mirrored) never gives this Timout expired error.
Will mirrored server cause slowness in writing, thus causes the Timeout expired error ?
Thank you.Since we can live with some missing data, I think we should use asynchronous mirroring instead of synchronous, do you agree ?
That may be an options, provided that you are on Enterprise Edition. As I recall, Standard Edition only has synchronhous mirroring.
There are caveats with asynchronous mirroring. One is data loss in case of a failover, which you say that you can live with. There may be more caveats, though. Unfortunately, since my role is more of a developer than a DBA, I'm not too well versed in
the details. Maybe someone else can fill in?
Can a firewall issue cause mirror latency, that in turn causes the delay in writing to the principal database ?
Firewalls and other network hiccups certainly can cause a latency.
Erland Sommarskog, SQL Server MVP, [email protected] -
Weblogic 5.1 SP12 Evaluation copy : License expiration error
Hi,
I downloaded the evalution copy of Weblogic Server
Version 5.1 SP12 for the Windows NT on 08/12. However
I am unable to run the Weblogic server because of the
license expiration error. The license file shows the
expiration date as 08-Jul-2002.
Could you pls send me the updated license file?
Thanks,
Shirish PanseI will file a CR to update the license file in the kit.
Meanwhile you can contact support to get a temp/eval license.
Kumar
Shirish Panse wrote:
Hi,
I downloaded the evalution copy of Weblogic Server Version 5.1 SP12 for the Windows
NT. However I am unable to run the Weblogic server because of the license expiration
error. The license file contains old expiration date.
Could you pls send me the updated license file?
Thanks,
Shirish Panse -
Password expired error when connecting via AFP to a server.
Hello everyone, I am new to OSX server and have had much help from everyone here on many issues just be reading the posts. But now I have one issue that is driving me nuts and I cannot seem to fix it.
I have 10.5.8 with Open Directory and one shared folder on that server. Half the users that connect to the server via AFP (Because they have laptops and conenct remotely) get a password expired error. As a work around I have setup new accounts for them with different ID's which do work but no matter what I do, the old ones wont. I have also noticed that a user can try and connect just one time and thier account gets disabled even though we have it set to disable after 5 failed attempts.
Any help would be greatly appreciated. Thank you.Hi
One thing you could try is to double-check the Self Signed Certificate has not expired. I've seen this cause similar problems to yours. If it has expired you'll see a Red Triangle by the side of it. Amend it and change the start date to the current date and the expiry date to sometime in the future. It makes sense to set it to 3 or more years from the set start date. There's no logical reason to leave it at the default 12 months. Especially as you'll probably forget this and not watch out for it when it's due to expire.
After you've done this you could set a Password Policy for your users to change their passwords at next login.
Tony -
Why Hit "No Token Present" error even the USB token has been inserted?
Hi,
I am totally new to programming with cryptographic token.
When i try to login my secure token after inserted it into the USB port, my program throws "No Token Present" error.
I confirmed that the USB token is inserted properly because i can login the token with the Token Admin app installed on my system.
I have also installed the Provider successfully dynamically in my code.
Can anyone give me some idea or solution?
Thanks very much.
I program based on JDK 6 update 7 on Windows XP SP2 and the USB Secure Token (ST 2) is from SecureMetrics.
The error message is as shown as below:
Please kindly help to take a look at my code.
Use Provider: SunPKCS11-FeitianPKCS
Version: 1.600000
Info: SunPKCS11-FeitianPKCS using library D:\Develop\JavaPKCS11\ST2pkcs11v10.dll
Services: 0
{color:#999999}{color:#ff0000}javax.security.auth.login.LoginException: No token{color}{color}{color:#ff0000} present{color}{color:#ff0000}
{color}at sun.security.pkcs11.SunPKCS11.login(SunPKCS11.java:1044)
// Main code
String configName = "D:\\Develop\\JavaPKCS11\\pkcs11.cfg";
Provider p = new sun.security.pkcs11.SunPKCS11(configName);
Security.addProvider(p);
Provider[] ps = Security.getProviders();
System.out.printf("Total providers %d\n\n", ps.length);
for (int i=0; i<ps.length;i++) {
System.out.printf("Provider[%d]: %s\n",i, ps.getName());
//Create the provider we defined
Provider p = Security.getProvider("SunPKCS11-FeitianPKCS");
System.out.printf("\nUse Provider: %s\n", p.getName());
System.out.printf("Version: %f\n", p.getVersion());
System.out.printf("Info: %s\n", p.getInfo());
//List all the services it supports
System.out.printf("Services: %d\n", p.getServices().size());
Set ss = p.getServices();
Iterator ii = ss.iterator();
Service s;
while (ii.hasNext()) {
s = (Service) ii.next();
System.out.printf("Service: %s - %s - %s \n", s.getType(), s.getAlgorithm(), s.getClassName());
try {
MyGuiCallbackHandler mcb = new MyGuiCallbackHandler();
Subject token = new Subject();
AuthProvider aprov = (AuthProvider) p;
//Login the token
aprov.login(token, mcb);
Config:
name = FeitianPKCS#11
library = D:\Develop\JavaPKCS11\ST2pkcs11v10.dllHi Martin,
Thanks very much for your kind help and sharing of experience.
Below is my complete code and also the exceptions that i get.
Program output + exceptions
Java PKCS#11 Demo
Load library success
Total providers: 10
Provider[0]: SUN
Provider[1]: SunRsaSign
Provider[2]: SunJSSE
Provider[3]: SunJCE
Provider[4]: SunJGSS
Provider[5]: SunSASL
Provider[6]: XMLDSig
Provider[7]: SunPCSC
Provider[8]: SunMSCAPI
Provider[9]: SunPKCS11-FeitianPKCS
Use Provider: SunPKCS11-FeitianPKCS
Version: 1.6
Info: SunPKCS11-FeitianPKCS using library D:\\Develop\\JavaPKCS11\\ngp11v211.dll
javax.security.auth.login.LoginException: No token present
at sun.security.pkcs11.SunPKCS11.login(SunPKCS11.java:1044)
at javapkcs11.Main.main(Main.java:112)Main.java
// Main.java
package javapkcs11;
import java.security.*;
import java.security.Provider.*;
import javax.security.auth.*;
import java.util.*;
import java.lang.*;
import javax.crypto.*;
import javax.crypto.spec.*;
//import sun.misc.*;
* @author
public class Main {
/** Creates a new instance of Main */
public Main() {
* @param args the command line arguments
public static void main(String[] args) {
System.out.println("Java PKCS#11 Demo\n\n");
//Load the configuration file
if (Main.configProvider())
System.out.println("Load library success\n\n");
else {
System.out.println("Load library failed\n\n");
return;
//List all the providers
Provider[] ps = Security.getProviders();
System.out.println("Total providers: " + ps.length);
for (int i=0; i<ps.length;i++) {
// System.out.printf("Provider[%d]: %s\n",i, ps.getName());
System.out.println("Provider[" + i + "]: " + ps[i].getName());
//Create the provider we defined
Provider p = Security.getProvider("SunPKCS11-FeitianPKCS");
//System.out.printf("\nUse Provider: %s\n", p.getName());
System.out.println("\nUse Provider: " + p.getName() );
//System.out.printf("Version: %f\n", p.getVersion());
System.out.println("Version: " + p.getVersion() );
//System.out.printf("Info: %s\n", p.getInfo());
System.out.println("Info: " + p.getInfo() );
//List all the services it supports
//System.out.printf("Services: %d\n", p.getServices().size());
Set ss = p.getServices();
Iterator ii = ss.iterator();
Service s;
while (ii.hasNext()) {
s = (Service) ii.next();
// System.out.printf("Service: %s - %s - %s \n", s.getType(), s.getAlgorithm(), s.getClassName());
System.out.println("Service: " + s.getType() + " " + s.getAlgorithm() + " " + s.getClassName());
try {
char pin[] = "99999999".toCharArray();
MyGuiCallbackHandler mcb = new MyGuiCallbackHandler();
Subject token = new Subject();
AuthProvider aprov = (AuthProvider) p;
//Login the token
aprov.login(token, mcb);
} catch (Exception e) {
e.printStackTrace();
public static boolean configProvider() {
//Here defines the path of configuration file, you could change it
String configName = "D:\\Develop\\JavaPKCS11\\pkcs11.cfg";
try {
Provider p = new sun.security.pkcs11.SunPKCS11(configName);
Security.addProvider(p);
} catch (Exception e) {
e.printStackTrace();
return false;
return true;
}PKCS11 Configname = FeitianPKCS
library = D:\\Develop\\JavaPKCS11\\ngp11v211.dll
slot = 3 -
Brand new Galaxy III S - Cannot setup Yahoo email - 80201: Getting Token Failed Error
I got my brand new phone; logged in/set-up account with gmail.
I added my corporate email just fine.
Adding a yahoo email I get the following error: 80201: Getting Token Failed Error
I've tried over wi-fi and on 4G.
Also, it doesn't matter what email and password I put in - same error.
Note: I had a Galaxy S previously with Yahoo email - this isn't the first time I've configured an account.Same issue cannot create email accounts using the Email app - 80201: Getting Token Failed Error with Yahoo, AOL and Hotmail. Any Verizon support people here? Can you help?
-
Could not persist object with token:re00100000b7f6e12d419f(Error: INF)
Post Author: saravanan rangaraj
CA Forum: Migration to XI R2
Hi everybody,
I'm getting error, 'could not persist object with token:re00100000b7f6e12d419f(Error: INF)' while refreshing reports in infoview. If I logoff and logon it's working fine. The error repeats everytime after refreshing 3-5 reports.Can anybody say why it happens?Post Author: saravanan rangaraj
CA Forum: Migration to XI R2
Hi everybody,
I'm getting error, 'could not persist object with token:re00100000b7f6e12d419f(Error: INF)' while refreshing reports in infoview. If I logoff and logon it's working fine. The error repeats everytime after refreshing 3-5 reports.Can anybody say why it happens? -
BIP event trigger throwing session expired error!
Hi,
I am trying to have some event triggers in my data model, but as soon as i click on the UpdateDefaultPackage button the box throws session expired error.
I am using Firefox for development, and when i do the same in IE the function list doesn't get populated.
Give me some suggestions.
Thanks and Regards
PrakharCheck your browser settings for accepting cookies from this domain, you must have tried this by now clearing all your browser cache and cookies.
try solutions beacon site where they have Oracle Apps Demo Instances for Public
http://www.solutionbeacon.com/tools_vision.htm -
Report not running "session expired error"
while trying to run a query...its not opening and showing "session expired error after 30 mts.
how to rectify ithi devi,
use the following links
Error msg in BW after session timeout
Retain hierarchy node value on selection screen during execution of report
with hopes
Raja Singh -
Lightroom Mobile Trial Expired error
"Lightroom Mobile Trial Expired" error message. I have current CC LR/PS bundle. I've tried the standard things, nothing works so far.
I couldn't find a way to add to other threads, so I am starting a new discussion.Mine hasn't expired yet, but I don't want it and would like to know how to remove it too!
-
Session expired error after migration 11.1.1.1
We are taking a lots of session expired error after migrating our projects from 11.1.1.1. to the 11.1.1.0
How can we control session parameters in Jdev 11.1.1.1 and Web logic 10.1.3.1 ?
Thanks.Hi,
its still the same setting in the web.xml file. However, I think the expiry you mean is the one raised by the client framework. As far as I remember there is no way to configure itslength. I'll take a not to see what the plans are in this regards. Can you confirm that its not the serve expiry but the message you get from ADF Faces RC?
Frank
Maybe you are looking for
-
How do I turn off auto renewal in iTunes?
How do I turn off auto renewal in iTunes? I wish to try Hulu FREE for one week, but do not want my account charges. Thanks.
-
I want to display a HTML file that is stored locally on my machine.
Hello, I am having a problem with my paths (I believe). I have created a JEditorPane that reads in a HTLM page. If the page is form the web it works fine: page_jep.setPage("http://www.google.com");However I want to display a HTML file that is stored
-
I have an iPad Mini 2 with Lightning connector and an IPad (3rd Generation) with 30-pin connector. I have an Apple Lightning to 30-pin Adaptor and am planning to purchase a Apple 30-pin to Digital AV Adaptor. Will I be able to connect my Mini 2 to th
-
Credit note linked to a closed AR invoice
Hi! I have a problem: I need to create a Credit Note for an invoice with status 'closed' but i noticed that the copy feature is disabled and i wanted to know if there was a SAP note that refers to this problem.
-
Iweb Feedback - How Long Before I Hear From Apple
I submitted an iweb Feedback yesterday (5/4/09) and I have not heard anything yet. The issue involves "Publish Error iweb couldn't connect to mobileme. Make sure your internet connection works and try again" How long will it take for them to email wi