我开始使用新的flex英雄sdk将这个flex应用程序转换为在android上运行.我已经替换了所有与移动设备不兼容的组件,并使其成功运行了几次.
当我使用运行原始web应用程序的相同库时,它可以很好地工作.
然而,最大的问题是在启动移动应用程序时这些随机的无效BitMapdata错误.这是整个输出.
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData/ctor()
at flash.display::BitmapData()
at spark.primitives::BitmapImage/http://www.adobe.com/2006/flex/mx/internal::applySource()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\primitives\BitmapImage.as:1337]
at spark.primitives::BitmapImage/http://www.adobe.com/2006/flex/mx/internal::validateSource()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\primitives\BitmapImage.as:1652]
at spark.primitives::BitmapImage/commitProperties()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\primitives\BitmapImage.as:902]
at spark.primitives.supportClasses::GraphicElement/validateProperties()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3487]
at spark.components::Group/commitProperties()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\components\Group.as:931]
at mx.core::UIComponent/validateProperties()[E:\dev\hero_private_beta\frameworks\projects\framework\src\mx\core\UIComponent.as:8095]
at mx.managers::LayoutManager/validateProperties()[E:\dev\hero_private_beta\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private_beta\frameworks\projects\framework\src\mx\managers\LayoutManager.as:760]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private_beta\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1157]
Run Code Online (Sandbox Code Playgroud)
我调试了很多次,我发现它到达这个方法时
mx_internal function applySource():void
{
Run Code Online (Sandbox Code Playgroud)
在BitmapImage.as中,在此声明中
if (!bitmapData && tmpSprite)
Run Code Online (Sandbox Code Playgroud)
bitmapData == null.但是,当我运行原始web应用程序时,bitmapData不为null.应该在这行代码中确定bitmapData值
<s:BitmapImage id="smallTriangle" smooth="true" source="@Embed('/com/xploreplus/components/containers/panel/assets/images/smallTriangle.png')" />
Run Code Online (Sandbox Code Playgroud)
现在在我看来,运行移动应用程序,它无法找到图像,因为当我运行webapplication时,使用上面代码行所在的相同库,它能够找到图像.
这个问题一直困扰着我好几天,我真的开始认为这是一个错误,特别是因为它有时会运行.或者我在这里缺少一些东西.
由于在脚本标记中使用JSONP直接从不同的域获取数据是直截了当的,我们不应该允许XMLHttpRequest也这样做吗?声称它可以解决它时加强安全性没有多大意义,尽管语义更加混乱.
而已 .我想一次打开所有文件(进行替换).但是notepad ++在ANSI中打开它们,我必须遍历每个文件并将编码更改为UTF-8.
我最近开始学习设计模式.我已经理解了几种模式的基础知识.现在我想熟悉一些使用这些模式的真实代码示例.有人可以指出一些使用设计模式的开源项目吗?我想看看在现实世界的代码中如何使用设计模式.
我有一个使用默认字符集SQL_ASCII设置的数据库.我想将它切换到UNICODE.有一个简单的方法吗?
我在tabC中有一个选择.我已将该选择应用于tabB.现在我要用这两个选项中的值更新tabA.
在tabC和tabB上选择:
SELECT * FROM tabC
WHERE id_field IN
(SELECT id_field FROM tabB WHERE date_IN = '2011-02-22')
ORDER BY id_field
Run Code Online (Sandbox Code Playgroud)
更新标签:
UPDATE tabA
SET field_1 = tabC.field_1, field_2 = tabC.field_2, field_2 = tabC.field_2
FROM tabC WHERE tabA.id_field IN
(SELECT tabC.id_field FROM tabC WHERE tabC.id_field IN
(SELECT id_field FROM tabB WHERE date_IN = '2011-02-22'))
Run Code Online (Sandbox Code Playgroud)
UPDATE语句运行没有任何错误,但结果不是我想要的:3个字段对所有行都有相同的值.怎么了?
起初我警告说我/不是程序员,但只有管理员我试图理解一些操作
当我安装 Oracle 制作的程序时,我收到日志消息:
/usr/bin/make -f ins_precomp.mk relink ORACLE_HOME=/u01/oracle/OraHome_1 EXENAME=proc/Linking /u01/oracle/OraHome_1/precomp/lib/proc__stack_chk_fail@GLIBC_2.4'`
libgcc_s.so: undefined reference to
ls -l
../libgcc_s.so -> /lib/libgcc_s.so.1
所以接下来我尝试通过以下方式进行诊断:
objdump -T /lib/libgcc_s.so.1 | grep __stack_chk_fail
00000000 DF *UND* 00000000 GLIBC_2.4 __stack_chk_fail
和
ldd /lib/libgcc_s.so.1.ORG
linux-gate.so.1 => (0x00fc5000)
libc.so.6 => /lib/libc.so.6 (0x00110000)
/lib/ld-linux.so.2 (0x00b39000)
和
objdump -T /lib/libc.so.6 |grep __stack_chk_fail
00c52f80 g DF .text 0000001a GLIBC_2.4 __stack_chk_fail
1)如果所有符号都在共享库中,我不知道为什么会出现此问题(可能不是,请纠正我,或如何检查)
当我把没有符号 __stack_chk_fail 的旧库 libgcc_s.so.1
objdump -T /lib/libgcc_s.so.1 |grep __stack_chk_fail
empty output
一切正常
2) 链接器是否不检查对 __stack_chk_fail 的引用,因为在这种情况下 libgcc_s.so.1 中没有?
我使用Spring Security运行NTLM,我收到以下错误
org.springframework.beans.factory.NoSuchBeanDefinitionException:没有定义名为'springSecurityFilterChain'的bean
我该如何解决这个错误?
我在web.xml中定义了以下内容
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Run Code Online (Sandbox Code Playgroud)
更新1
我解决了这个错误,现在我得到了
org.springframework.beans.factory.NoSuchBeanDefinitionException:没有定义名为'filterSecurityInterceptor'的bean
我有以下内容
<bean id="springSecurityFilterChain" class="org.acegisecurity.util.FilterChainProxy">
<property name="filterInvocationDefinitionSource">
<value>
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/**=httpSessionContextIntegrationFilter, exceptionTranslationFilter, ntlmFilter, filterSecurityInterceptor
</value>
</property>
</bean>`
Run Code Online (Sandbox Code Playgroud)
我改变了我的applicationContext.xml如下所示,因为就像@Sean Patrick Floyd所提到的那样,一些元素已经老了,已经死了并埋葬了.但是我现在有其他错误需要修复:-)
谢谢
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.2.xsd">
<!--<authentication-manager alias="_authenticationManager"></authentication-manager>-->
<security:authentication-provider>
<security:user-service>
<security:user name="testuser" password="PASSWORD" authorities="ROLE_USER, ROLE_ADMIN"/>
<security:user name="administrator" password="PASSWORD" authorities="ROLE_USER,ROLE_ADMIN"/>
</security:user-service>
</security:authentication-provider>
<bean id="userDetailsAuthenticationProvider"
class="com.icesoft.icefaces.security.UserDetailsAuthenticationProvider">
<security:custom-authentication-provider/>
</bean>
<bean id="ntlmEntryPoint"
class="org.springframework.security.ui.ntlm.NtlmProcessingFilterEntryPoint">
<property name="authenticationFailureUrl" value="/accessDenied.jspx"/>
</bean>
<bean id="ntlmFilter" class="org.springframework.security.ui.ntlm.NtlmProcessingFilter">
<security:custom-filter position="NTLM_FILTER"/>
<property …Run Code Online (Sandbox Code Playgroud) 我是测试自动化的实习生.我正在使用Eclipse创建Junit代码并使用Eclipse运行.我正在使用FileInputStream函数从excel表中重新获取数据.
FileInputStream fi=new FileInputStream("c:\\search.xls");
Workbook w=Workbook.getWorkbook(fi);
Sheet s=w.getSheet(0);
Run Code Online (Sandbox Code Playgroud)
是否有必要关闭Inputstream功能?如果是这样,请指导我一些编码.
是否有可能将Objective-C++用于iOS应用程序(iPhone,iPad,iPod touch)开发?
互联网上有任何示例和源代码吗?
c++ ×2
java ×2
postgresql ×2
apache-flex ×1
bitmapdata ×1
c ×1
encoding ×1
file-io ×1
inputstream ×1
ios ×1
ipad ×1
iphone ×1
javascript ×1
linker ×1
login ×1
notepad++ ×1
oracle ×1
security ×1
select ×1
spring ×1
unicode ×1