2 Replies Latest reply on Nov 4, 2013 5:45 AM by kwintesencja

    arquillian.xml with accent comments

    kwintesencja

      Hi guys,

       

      i find hard time figuring out this error when running my arquilian tests:

       

      java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

              at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)

              at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)

              at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)

       

       

      the cause was a comment with accent in arquillian.xml

       

      this comment line in arquillian.xml should reproduce the error

       

      <!--ó-->

       

      i got the error when running the tests throught command line 'mvn clean test'

       

      i hope that helps someone

        • 1. Re: arquillian.xml with accent comments
          kpiwko

          Hi Rafael,

           

          I'm not able to reproduce the issue. Works fine with <!-- +ěščřžýáíééó --> in arquillian.xml, using RHEL 6.4 with en_US.utf8 locale.

           

          My guess is that arquillian.xml is not encoded with UTF-8. It might also be a configuration issue with Maven - your locale is not UTF-8 enabled and Maven chooses platform locale as default.You can fix the latter by putting <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> into <properties> in pom.xml file.

           

          HTH,

           

          Karel

          • 2. Re: arquillian.xml with accent comments
            kwintesencja

            Thanks Karel,

            that was exactly the issue