Auto Completion error
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Auto Completion error
Hello,
We use oxygen-18.1.0.0.jar, and we have a problem when we use auto-completion or the panel "Element" to add specific xml tag.
We have this in our xsd file :
And when we try to add the element periode or descript from PourType with auto-completion or Element panel, we have this issue :
The element ldp works fine and if we changed the type from type="PeriodeType" / type="DescripteurType" to type="xs:string" then it works.
I don't find understand why this to complexe type don't work.
Can you help me, please ?
Regards,
Isabelle
We use oxygen-18.1.0.0.jar, and we have a problem when we use auto-completion or the panel "Element" to add specific xml tag.
We have this in our xsd file :
Code: Select all
<xs:complexType name="PourType">
<xs:sequence>
<xs:element name="ldp" type="xs:string"/>
<xs:element name="periode" type="PeriodeType" minOccurs="0"/>
<xs:element name="descript" type="DescripteurType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="idComment" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="DescripteurType">
<xs:sequence>
<xs:element name="code" type="xs:string"/>
<xs:element name="label" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PeriodeType">
<xs:sequence>
<xs:element name="type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="SERIE"/>
<xs:enumeration value="DAM"/>
<xs:enumeration value="OPR"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="start" type="xs:string" minOccurs="0"/>
<xs:element name="end" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
Code: Select all
18:46:08.295 [AWT-EventQueue-0] ERROR c._.d.a.l.DefaultUncaughtExceptionHandler - SYSTEM - Unexpected Error Occurred in thread Thread[AWT-EventQueue-0,6,main]
java.lang.NullPointerException: null
at ro.sync.contentcompletion.xml.extensibility.elements.c$_b.getAttributes(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.contentcompletion.c.qor(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.contentcompletion.c.nor(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.contentcompletion.c.nor(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.contentcompletion.c.yor(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.contentcompletion.ccitems.l.p(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.contentcompletion.ccitems.l.l(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.contentcompletion.ccitems.l.m(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.component.ui.context.c.d.saf(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.component.ui.context.c.d.xbf(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at ro.sync.ecss.component.ui.context.c.d$6.mouseClicked(Unknown Source) ~[psa-oxygen-18.1.0.0.jar:na]
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270) ~[na:1.8.0_112]
at java.awt.Component.processMouseEvent(Component.java:6536) ~[na:1.8.0_112]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) ~[na:1.8.0_112]
at java.awt.Component.processEvent(Component.java:6298) ~[na:1.8.0_112]
at java.awt.Container.processEvent(Container.java:2236) ~[na:1.8.0_112]
at java.awt.Component.dispatchEventImpl(Component.java:4889) ~[na:1.8.0_112]
at java.awt.Container.dispatchEventImpl(Container.java:2294) ~[na:1.8.0_112]
at java.awt.Component.dispatchEvent(Component.java:4711) ~[na:1.8.0_112]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) ~[na:1.8.0_112]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534) ~[na:1.8.0_112]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) ~[na:1.8.0_112]
at java.awt.Container.dispatchEventImpl(Container.java:2280) ~[na:1.8.0_112]
at java.awt.Window.dispatchEventImpl(Window.java:2746) ~[na:1.8.0_112]
at java.awt.Component.dispatchEvent(Component.java:4711) ~[na:1.8.0_112]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) ~[na:1.8.0_112]
at java.awt.EventQueue.access$500(EventQueue.java:97) ~[na:1.8.0_112]
at java.awt.EventQueue$3.run(EventQueue.java:709) ~[na:1.8.0_112]
at java.awt.EventQueue$3.run(EventQueue.java:703) ~[na:1.8.0_112]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_112]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) ~[na:1.8.0_112]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) ~[na:1.8.0_112]
at java.awt.EventQueue$4.run(EventQueue.java:731) ~[na:1.8.0_112]
at java.awt.EventQueue$4.run(EventQueue.java:729) ~[na:1.8.0_112]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_112]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) ~[na:1.8.0_112]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) ~[na:1.8.0_112]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [na:1.8.0_112]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_112]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_112]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_112]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_112]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_112]
The element ldp works fine and if we changed the type from type="PeriodeType" / type="DescripteurType" to type="xs:string" then it works.
I don't find understand why this to complexe type don't work.
Can you help me, please ?
Regards,
Isabelle
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Auto Completion error
Hi Isabelle,
Our latest 18.1 SDK is 18.1.0.3:
https://www.oxygenxml.com/oxygen_sdk/ox ... _18_1.html
If using it you still encounter the NPE, ideally you could also try with our 19.1 or 20.0. SDK.
If you still have problems maybe you can send a sample XML document + full XML Schema to us (support@oxygenxml.com) and we can look into this.
We will no longer make any fixes on the 18.1 SDK though, maybe we can try to fix this in the 19.1 SDK although I cannot promise we'll have a release for it either but it's a possibility.
Regards,
Radu
Our latest 18.1 SDK is 18.1.0.3:
https://www.oxygenxml.com/oxygen_sdk/ox ... _18_1.html
If using it you still encounter the NPE, ideally you could also try with our 19.1 or 20.0. SDK.
If you still have problems maybe you can send a sample XML document + full XML Schema to us (support@oxygenxml.com) and we can look into this.
We will no longer make any fixes on the 18.1 SDK though, maybe we can try to fix this in the 19.1 SDK although I cannot promise we'll have a release for it either but it's a possibility.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service