# Uh oh, a serious error has occurred...

**URL:** <https://forum.certara.com/t/uh-oh-a-serious-error-has-occurred/1255>\
**Category:** Define.xml\
**Created:** [November 29, 2018, 9:17am UTC](https://forum.certara.com/t/uh-oh-a-serious-error-has-occurred/1255 "2018-11-29T09:17:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![XML4Pharma](https://avatars.discourse-cdn.com/v4/letter/x/b2d939/32.png) [@XML4Pharma](https://forum.certara.com/u/XML4Pharma)\
**Post date:** [November 29, 2018, 12:03pm UTC](https://forum.certara.com/t/uh-oh-a-serious-error-has-occurred/1255/1 "2018-11-29T12:03:35Z")

</div>

Step 1: does your define.xml validate against the XML-Schema v.2.0? See the CDISC publication “XML Schema Validation for Define.xml White Paper” which essentially also applies to define.xml 2.0. See: [XML Schema Validation for Define.xml White Paper | CDISC](https://www.cdisc.org/standards/foundational/define-xml/xml-schema-validation-definexml-white-paper)

You can test this easily using any **XML editor** that supports **XML-Schema validation**.

From the error message, it looks however that there is something wrong with one or more of your “def:Origin” elements. Remark that in v.2.0 this is an XML element whereas it was an attribute in v.1.0.

With best regards,

Jozef Aerts  
CDISC Define-XML Development Team

---

<div class="post-metadata">

**Author:** ![mdigian](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mdigian](https://forum.certara.com/u/mdigian)\
**Post date:** [November 29, 2018, 5:38pm UTC](https://forum.certara.com/t/uh-oh-a-serious-error-has-occurred/1255/2 "2018-11-29T17:38:32Z")

</div>

Check your origins . Could be a null, missing or empty XML tag for it. Joseph is correct about the element vs attribute.

---

<div class="post-metadata">

**Author:** ![XML4Pharma](https://avatars.discourse-cdn.com/v4/letter/x/b2d939/32.png) [@XML4Pharma](https://forum.certara.com/u/XML4Pharma)\
**Post date:** [November 30, 2018, 7:17am UTC](https://forum.certara.com/t/uh-oh-a-serious-error-has-occurred/1255/3 "2018-11-30T07:17:20Z")

</div>

Thank you Michael!  
Please: my first name is Jozef, not Joseph 😉

---

<div class="post-metadata">

**Author:** ![Yash](https://avatars.discourse-cdn.com/v4/letter/y/f17d59/32.png) [@Yash](https://forum.certara.com/u/Yash)\
**Post date:** [November 29, 2018, 9:17am UTC](https://forum.certara.com/t/uh-oh-a-serious-error-has-occurred/1255/4 "2018-11-29T09:17:01Z")

</div>

Hi Team, I am getting this following error when I try to run the define.xml for ADaM:

java.lang.NullPointerExceptionat org.opencdisc.define.validator.ContentValidator.validateAllOrigins(ContentValidator.java:836)at org.opencdisc.define.validator.ContentValidator.validate(ContentValidator.java:90)at org.opencdisc.define.validator.DefineValidator.validateContent(DefineValidator.java:216)at org.opencdisc.define.Connector$1.start(Connector.java:147)at org.opencdisc.define.Connector$1.onNext(Connector.java:61)at org.opencdisc.define.Connector$1.onNext(Connector.java:45)at rx.Observable$35.onNext(Observable.java:7439)at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:130)at rx.internal.operators.NotificationLite.accept(NotificationLite.java:150)at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.pollQueue(OperatorObserveOn.java:191)at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.access$000(OperatorObserveOn.java:65)at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber$2.call(OperatorObserveOn.java:155)at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:47)at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)at java.util.concurrent.FutureTask.run(Unknown Source)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)at java.lang.Thread.run(Unknown Source)

Environment

Application Version: 2.2.0

Platform: Windows 6.1.7601

RDP: false

Citrix: false

Auto Updates: false

Metrics: true

Threads: 1

Initial Memory: 256

Maximum Memory: 1024

Could you please let me know what is causing it?

Many thanks in advance.
