线程0与X86线程状态(32位)崩溃:在cocoa应用程序中(Thread 0 crashed with X86 Thread State (32-bit): in cocoa Application)
我在osx应用程序中进行崩溃修复。崩溃报告显示
Date/Time: 2012-05-01 16:05:58.004 +0200 OS Version: Mac OS X 10.5.8 (9L31a) Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000545f5f00 Crashed Thread: 8 Thread 8 crashed with X86 Thread State (32-bit): eax: 0x140e0850 ebx: 0x00060fc8 ecx: 0x92df0ec0 edx: 0xc0000003 edi: 0x545f5f00 esi: 0x140e0870 ebp: 0xb0445988 esp: 0xb0445964 ss: 0x0000001f efl: 0x00010206 eip: 0x92dca68c cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037 cr2: 0x545f5f00
如何使用此报告对应用程序代码进行去皮?
什么是线程0与X86线程状态(32位)崩溃?
如果有人知道请帮助我。 提前致谢。
I am doing crash fixing in an osx application .The crash report shows
Date/Time: 2012-05-01 16:05:58.004 +0200 OS Version: Mac OS X 10.5.8 (9L31a) Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000545f5f00 Crashed Thread: 8 Thread 8 crashed with X86 Thread State (32-bit): eax: 0x140e0850 ebx: 0x00060fc8 ecx: 0x92df0ec0 edx: 0xc0000003 edi: 0x545f5f00 esi: 0x140e0870 ebp: 0xb0445988 esp: 0xb0445964 ss: 0x0000001f efl: 0x00010206 eip: 0x92dca68c cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037 cr2: 0x545f5f00
How to tares the application code with this report?
what is Thread 0 crashed with X86 Thread State (32-bit)?
if anybody know please help me. Thanks in advance.
原文:https://stackoverflow.com/questions/11096319
最满意答案
您可以通过创建package-info.java并添加以下内容来为您的模型设置elementFormDefault =“qualified” :
package-info.java
@XmlSchema(namespace="http://www.example.com/type", elementFormDefault=XmlNsForm.QUALIFIED) package mypkg; import javax.xml.bind.annotation.*;
这将允许您的常规XML,但不是您的“剥离”XML。 除了“剥离”外部包装元素之外,两者之间的区别在于,原始XML具有默认命名空间集,而剥离XML则没有。
You can set elementFormDefault="qualified" for your model by creating a package-info.java and adding:
package-info.java
@XmlSchema(namespace="http://www.example.com/type", elementFormDefault=XmlNsForm.QUALIFIED) package mypkg; import javax.xml.bind.annotation.*;
This will allow your regular XML, but not your "stripped" XML, to work. The difference between the two, besides the "stripping" of the outer, wrapper elements, is the fact that your original XML has a default namespace set, while the stripped XML does not.
相关问答
更多-
jaxb继承,unmarshalling导致nullpointerexception(jaxb inheritance, unmarshalling cause nullpointerexception)[2023-06-17]
我没有为策略添加setter并且导致了nullPointerException。 I had not add setter for policy and that had caused nullPointerException. -
我必须按照收到相同的方式保存说明。 你不应该。 就XML而言, " 或"是完全相同的东西,因此,无论你是获得一个还是另一个,都无关紧要。 至于为什么发生这种情况,这是一个XML解析器的工作,以避开逃脱的字符,以便它们向您显示它们所表示的数据。 它也是unescapes < 等等。 但是,当这样获得的文本被序列化回XML时,序列化程序将再次转义诸如<因为它是XML所需的字符,但它不会打扰转义"因为这不是必需的。 当你经历一个解析XML的过程,然后再次序列化时,你不能有一个“保留”逃逸的概念。 ...
-
这是解决方案: ClassPathResource classPathResource = new ClassPathResource("samples/form2/data/test.xml"); XMLInputFactory xmlInputFactory = XMLInputFactory.newFactory(); xmlInputFactory.setProperty(XMLInputFactory.IS_COALESCING, true); XMLStreamReade ...
-
您可以使用MOXy的NullPolicy指定此行为。 您将需要创建DescriptorCustomizer来修改基础映射。 不要担心它比听起来容易,我将在下面演示: import org.eclipse.persistence.config.DescriptorCustomizer; import org.eclipse.persistence.descriptors.ClassDescriptor; import org.eclipse.persistence.oxm.mappings.XMLCompos ...
-
如果您不想指定jaxb注释,则可以实现MessageBodyReader。 这适用于宁静的Web服务,是JEE7的一部分。 您必须注册@provider和@consumes The problem is the Java naming conventions: variables need to start with lowercase letter. If i use lowercase variable and element names, its working fine. So the above ...
-
如何在使用JAXB解组对象进行克隆时保持IDREF链接?(How to keep IDREF link when unmarshalling an object with JAXB for cloning?)[2022-05-11]
几点提示。 试试JAXB2-Basics的可复制插件。 此插件生成深度无反射的复制方法,可以很好地处理JAXB结构,您还可以指定自己的复制策略。 免责声明:我是作者。 实现并注册您自己的IDResolver ,请参阅此博客文章 。 这将允许您插入自己的ID解析策略。 Few hints. Try the copyable plugin from JAXB2-Basics. This plugin generates deep reflection-free copying methods which han ... -
您使用@XmlAttribute而不是@XmlElement映射了roleName和externallyDefined 。 调试提示 当您的对象模型没有按预期解组时,填充它并将其编组为XML,然后将输出与输入进行比较。 You have roleName and externallyDefined mapped with @XmlAttribute instead of @XmlElement. Debugging Tip When your object model doesn't unmarshal a ...
-
请在解组呼叫后仔细检查您所在的元素事件。 如果XMLStreamReader在endElement你将需要调用next()作为循环的一部分,但它不在startElement 。 Double check which element event you are on after the unmarshal call. If the XMLStreamReader is on endElement you will need to call next() as part of your loop, but it ...
-
你没有提供你试图解组的JSON,但我做了一些逆向工程,下面是一个使用你在问题中发布的模型的例子: import javax.xml.bind.*; import javax.xml.transform.stream.StreamSource; import org.eclipse.persistence.jaxb.MarshallerProperties; import org.eclipse.persistence.jaxb.UnmarshallerProperties; public class De ...
-
从XmlStreamReader解组的JAXB导致null对象(JAXB unmarshalling from XmlStreamReader results in null object)[2023-01-23]
您可以通过创建package-info.java并添加以下内容来为您的模型设置elementFormDefault =“qualified” : package-info.java @XmlSchema(namespace="http://www.example.com/type", elementFormDefault=XmlNsForm.QUALIFIED) package mypkg; import javax.xml.bind.annotation.*; 这将允许您的常规XML,但不是您的“剥 ...