registering

Spring security plugin not throwing events

我们两清 提交于 2020-01-06 06:52:34
问题 I am in the process of migrating to spring security plugin from acegi plugin.Currently working on grails environment. I am facing a weird issue as my authentication success event and authentication bad credentials event does not throw at all.I added println statements in the callback in config.groovy and also through listeners.However i can catch events like InteractiveAuthenticationSuccessEvent. Please do reply if you have gone through the same issue 回答1: As mentioned in Chapter 5 of the

Google GCM client not sending messages after unregistering/registering the BroadcastReceiver programatically

我的未来我决定 提交于 2019-12-25 03:24:43
问题 I would like to register/unregister the BroadcastReceiver which I am using to receive messages from GCM. I have declared and initialised the BroadcastReceiver.class in my onResume(), but after I unregister inside onPause() next time my app launches it wont send messages any more, only if I send the regId again and register with the GCM server as well. Can the BroadcastReceiver be responsible for not sending the messages? Or is it essential to have the BroadcastReceiver registered in the

IText: registering font: not found as file or resource

拥有回忆 提交于 2019-12-24 19:38:49
问题 I am developing on windows plattform. My maven project has the following structure for font resources: src/main/resources/package/name/fonts I try to register a font as following: FontFactory.register("package/name/fonts/fontname.otf"); But I get the error: package/name/fonts/fontname.otf not found as file or resource What is my failure? Thank you 回答1: First I get the correct path with getResource(): String pathtofont = "/package/name/fonts/fontname.otf"; String fontname = myworkingclass

Why No android.content.SyncAdapter meta-data registering sync-adapter?

家住魔仙堡 提交于 2019-12-11 02:52:54
问题 I am following the SampleSyncAdapter and upon startup, it appears that my SyncAdapter is not configured correctly. It reports an error trying to load its meta-data. How can I isolate the problem? You can see the other accounts in the system that register correctly. Logcat: 12-21 17:10:50.667 W/PackageManager( 121): Unable to load service info ResolveInfo{4605dcd0 com.myapp.syncadapter.MySyncAdapter p=0 o=0 m=0x108000} 12-21 17:10:50.667 W/PackageManager( 121): org.xmlpull.v1

How to use AutoItX in .NET (C#) without registering

主宰稳场 提交于 2019-11-28 04:23:58
How do I use AutoitX ( OCX / ActiveX library) in a .NET C# application without registering it? I would like to create an application with it without need to use administrator rights for installation. I found some pages on MSDN like, Registration-Free Activation of COM Components: A Walkthrough about creating manifest files for DLL files. I tried it and did not succeed. So maybe it is possible and I created it wrongly. Unfortunately I lost the XML files so I can't post it here. I also tried setting isolated and enable interop types in reference properties without success. Is it possible to get

How to remove(unregister) registered instance from Unity mapping?

主宰稳场 提交于 2019-11-27 18:31:05
I meet one problem that i can't solve now. I have the following: UnityHelper.DefaultContainer.RegisterInstance(typeof(IMyInterface), "test", instance); where UnityHelper.DefaultContainer is my helper for getting unity container with loaded configuration. here I registered instance as an instance of IMyInterface . So anywhere( some time after using) I want to remove this mapping. Remove it at all. How I can do it? I have tried: UnityHelper.DefaultContainer.Teardown(instance) but is was unsuccessful and the following code returns instance anyway: UnityHelper.DefaultContainer.ResolveAll

How to use AutoItX in .NET (C#) without registering

↘锁芯ラ 提交于 2019-11-27 05:19:48
问题 How do I use AutoitX (OCX/ActiveX library) in a .NET C# application without registering it? I would like to create an application with it without need to use administrator rights for installation. I found some pages on MSDN like, Registration-Free Activation of COM Components: A Walkthrough about creating manifest files for DLL files. I tried it and did not succeed. So maybe it is possible and I created it wrongly. Unfortunately I lost the XML files so I can't post it here. I also tried

How to remove(unregister) registered instance from Unity mapping?

倖福魔咒の 提交于 2019-11-27 04:17:34
问题 I meet one problem that i can't solve now. I have the following: UnityHelper.DefaultContainer.RegisterInstance(typeof(IMyInterface), "test", instance); where UnityHelper.DefaultContainer is my helper for getting unity container with loaded configuration. here I registered instance as an instance of IMyInterface . So anywhere( some time after using) I want to remove this mapping. Remove it at all. How I can do it? I have tried: UnityHelper.DefaultContainer.Teardown(instance) but is was