Auto Completion error

Post here questions and problems related to oXygen frameworks/document types.
Isabelle
Posts: 37

Auto Completion error

Wed Apr 04, 2018 8:09 pm

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 :

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>


And when we try to add the element periode or descript from PourType with auto-completion or Element panel, we have this issue :

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
Radu
Posts: 5994

Re: Auto Completion error

Tue Apr 10, 2018 12:14 pm

Hi Isabelle,

Our latest 18.1 SDK is 18.1.0.3:

https://www.oxygenxml.com/oxygen_sdk/oxygen_sdk_maven_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
Isabelle
Posts: 37

Re: Auto Completion error

Tue Apr 10, 2018 12:18 pm

Hello Radu,

I will try and let you know if the issue persists.

Regards,
Isabelle Ousset
Isabelle
Posts: 37

Re: Auto Completion error

Wed Apr 18, 2018 5:15 pm

Hello Radu,

I have tried with the version 20.0 and it solves my problem.

Regards,
Isabelle
Radu
Posts: 5994

Re: Auto Completion error

Wed Apr 18, 2018 10:03 pm

Hi Isabelle,

Thanks for the update, so will you upgrade to the Oxygen 20 SDK?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Isabelle
Posts: 37

Re: Auto Completion error

Thu Apr 19, 2018 11:49 am

Hello Radu,

My manager is going to take care of it in the next weeks.

Regards,
Isabelle

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests