<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Emmanuel<br>
    <br>
    Thanks for the report. The NullPointerException is (or was) a bug -
    Apache SIS shall not throw that exception for any locale. There is
    some bug fixes in SIS 0.4 [1]. I'm not sure if they solve that
    NullPointerException, but this is possible (I looked at the code and
    saw that version currently on trunk performs more nullity checks
    than the 0.3 version). Unfortunately we didn't deployed a Geotk
    milestone using SIS 0.4. Would it be possible to try Geotk snapshot
    until we deploy a milestone?<br>
    <br>
    Using snapshots would have a significant inconvenient: we are in the
    process of upgrading ISO 19115 from version 2003 to version 2014.
    Until this upgrade is completed, the snapshots may be less stable
    than what they were used to be. However I would be happy to fix any
    reported issues.<br>
    <br>
    Could it be doable?<br>
    <br>
        Regards,<br>
    <br>
            Martin<br>
    <br>
    <br>
    [1] <a class="moz-txt-link-freetext" href="http://sis.apache.org/release-notes/0.4.html">http://sis.apache.org/release-notes/0.4.html</a><br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Le 22/07/14 12:57, Emmanuel Blondel a
      écrit :<br>
    </div>
    <blockquote cite="mid:53CE43AF.4080601@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Ok, i've finally found the
        problem....<br>
        The setLocales() method in DefaultMetadata was using
        Locale.ENGLISH.... I've solved using Locale.UK<br>
        Is it a normal behavior that we cannot speficy Locale.ENGLISH
        here??<br>
        <br>
        Emmanuel<br>
        <br>
        <br>
        Le 22/07/2014 11:32, Emmanuel Blondel a écrit :<br>
      </div>
      <blockquote cite="mid:53CE2F9F.70008@gmail.com" type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        <font size="-1">Hello,<br>
          <br>
          I'm currently doing an attempt to move from Geotoolkit 3.21 to
          4.0-M1, in order to progressively move to Apache SIS.<br>
          I'm getting the following error with a test to marshall the
          metadata. Any idea?<br>
          <br>
          Thanks in advance<br>
          <br>
          <br>
          javax.xml.bind.MarshalException<br>
           - with linked exception:<br>
          [com.sun.istack.internal.SAXException2<br>
          java.lang.NullPointerException]<br>
              (...snip...)<br>
          Caused by: java.lang.NullPointerException<br>
              at
          org.apache.sis.internal.jaxb.gmd.Country.create(Country.java:97)<br>
              at
org.apache.sis.internal.jaxb.code.PT_Locale$Wrapper.<init>(PT_Locale.java:123)<br>
              at
org.apache.sis.internal.jaxb.code.PT_Locale.<init>(PT_Locale.java:157)<br>
              at
          org.apache.sis.internal.jaxb.code.PT_Locale.marshal(PT_Locale.java:169)<br>
              at
          org.apache.sis.internal.jaxb.code.PT_Locale.marshal(PT_Locale.java:69)<br>
              at
com.sun.xml.internal.bind.v2.runtime.reflect.AdaptedLister$ListIteratorImpl.next(AdaptedLister.java:98)<br>
              ... 36 more</font><br>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>