4 Replies Latest reply on Apr 11, 2013 8:27 AM by floflo floflo

    Jboss 7.1 *XSD newSchema() very slow

    floflo floflo Newbie

      Hello,

      I want to verify my xml generate with my xsd schema.

       

      In Jboss 5 all is allright , it's very fast but with jboss 7.1, it's very very very slow

      I obtain a warning

      09:51:37,148 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffffc0a8011b:212d1164:51666a01:34 in state  RUN

      09:51:37,151 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012095: Abort of action id 0:ffffc0a8011b:212d1164:51666a01:34 invoked while multiple threads active within it.

      09:51:37,152 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012108: CheckedAction::check - atomic action 0:ffffc0a8011b:212d1164:51666a01:34 aborting with 1 threads active!

      09:51:37,153 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffffc0a8011b:212d1164:51666a01:34

      and after many time the verification is done.

       

      my code:

                     Schema instance;

                  SchemaFactory sf = SchemaFactory.newInstance(javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);

                  URL url = Thread.currentThread().getContextClassLoader().getResource("xsd/Interchange.xsd");

                  try {

                      instance = sf.newSchema(url);

                  } catch (SAXException ex) {

                      log.error(ex.getMessage());

                  }

       

      -------

       

      instance = sf.newSchema(url); => takes many minuts

       

      i join my xsd maybe i have a problem ...

       

      thanks for your help

       

      ps i try to remplace url in   instance = sf.newSchema(url); by instance = sf.newSchema(new File("xsd/Interchange.xsd"));  same problem  slowwwwwww