我的配置MBean的持久性存在问题.我的配置:
<bean id="adminMBean" class="pl.mobileexperts.catchme.mbeans.AdminSettingsMBean"></bean>
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
<property name="assembler" ref="assembler" />
<property name="autodetect" value="true" />
<property name="namingStrategy" ref="namingStrategy"/>
</bean>
<bean id="attributeSource" class="org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource" />
<bean id="namingStrategy" class="org.springframework.jmx.export.naming.MetadataNamingStrategy">
<property name="attributeSource" ref="attributeSource" />
</bean>
<bean id="assembler" class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler">
<property name="attributeSource" ref="attributeSource" />
</bean>
Run Code Online (Sandbox Code Playgroud)
@ManagedResource(objectName = "pl.mobileexperts.catchme:name=adminMBean",
description ="admin settings",
persistPolicy = "OnUpdate",
persistLocation = "c:/", persistName = "adminSettings.jmx")
public class AdminSettingsMBean {
private boolean moderatorModeEnabled;
public AdminSettingsMBean() {
}
@ManagedAttribute(persistPolicy = "OnUpdate")
public boolean isModeratorModeEnabled() {
return moderatorModeEnabled;
}
@ManagedAttribute(persistPolicy = "OnUpdate")
public void …Run Code Online (Sandbox Code Playgroud) 我有以下对象:
public class ProjectInfo
{
public string ConnectionStringName { get; set; }
public string DefaultEntityNamespace { get; set; }
public string DefaultSharedNamespace { get; set; }
public string DefaultTestNamespace { get; set; }
public string SqlProviderName { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
我尝试做一个简单的序列化(在VSIX项目中):
var settings = new ProjectInfo { ConnectionStringName = "SomeName" };
var json = JsonConvert.SerializeObject(settings);
Run Code Online (Sandbox Code Playgroud)
这给了我:
An exception of type 'System.IO.FileNotFoundException' occurred in Newtonsoft.Json.dll but was not handled in user code
Additional information: Could not load file or assembly …Run Code Online (Sandbox Code Playgroud) c# json.net visual-studio-extensions .net-4.5.2 visual-studio-2015
我有一个带有spring-security-core插件和Atmosphere框架的Grails应用程序.
如果我从已打开WebSocket连接的页面注销,则Spring Security会将WebSocket连接的URL保留为SavedRequest.
DEBUG savedrequest.HttpSessionRequestCache - DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/formx/formX/update]
DEBUG savedrequest.HttpSessionRequestCache - DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/formx/formX/notifications/?X-Atmosphere-Transport=close&X-Atmosphere-tracking-id=b5d8fde4-d950-41fd-9b49-02e06799a36f&conversationId=988080042]
Run Code Online (Sandbox Code Playgroud)
日志中的第一个条目具有SavedRequest的正确值,但不知何故它被Atmosphere WebSocket连接覆盖.
如何告诉Spring Security不要将Atmosphere WebSocket连接用作SavedRequest?
我想我可以使用一些Atmosphere Protocol Specific Header来区分连接.
我在我的Galaxy 3上安装了cyanogenmod.在Eclipse中开发时,大多数应用程序似乎都运行正常.但是,我已经编写了一个需要访问该库的应用程序,每次我尝试访问它时,应用程序都会在log cat崩溃:
02-03 19:05:42.054: D/libEGL(10279): loaded /system/lib/egl/libEGL_mali.so
02-03 19:05:42.059: D/libEGL(10279): loaded /system/lib/egl/libGLESv1_CM_mali.so
02-03 19:05:42.059: D/libEGL(10279): loaded /system/lib/egl/libGLESv2_mali.so
02-03 19:05:42.064: E/(10279): Device driver API match
02-03 19:05:42.064: E/(10279): Device driver API version: 23
02-03 19:05:42.064: E/(10279): User space API version: 23
02-03 19:05:42.064: E/(10279): mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Wed Oct 9
21:05:57 KST 2013
Run Code Online (Sandbox Code Playgroud)
知道如何解决它吗?谢谢!
在允许在我的Web应用程序中执行特别敏感的操作(例如向一组数据添加签名)之前,我想强制重新验证凭据.
方案是用户已登录,单击以在数据上添加其签名,并获得字段以输入其凭据,然后将其传递到服务器以进行身份验证.失败不会影响登录状态,只是拒绝操作.
我正在使用Grails spring-security插件并对LDAP进行身份验证(spring-security-ldap),但我假设解决方案将独立于这些确切的细节.
我在服务器端(控制器/ servlet)上有用户名和密码值,如何验证这些新凭据?
java ×2
.net-4.5.2 ×1
android ×1
atmosphere ×1
c# ×1
cyanogenmod ×1
grails ×1
jboss5.x ×1
jmx ×1
json.net ×1
spring ×1
websocket ×1