title: SoapUI: java.lang.NumberFormatException
body: <p>I succeed to test a web service with SoapUI, now I want to add some
  condition, my WS accepts the type Long as input, I want to add a condition when 
  I enter a String, so I used a block <code>try catch(NumberFormatException)</code> and I 
  display a message in the log 'invalid number' but always I had the exception <code>java.lang.NumberFormatException</code><br>
  in the SoapUI
  this is the error in the console :</p>
  
  <pre><code>2018-02-26 15:53:51,693 [http-8181-Processor25] INFO  (SoapFaultHandler:113) - java.lang.NumberFormatException: For input string: "sss"
  </code></pre>
  
  <p>Test.java</p>
  
  <pre><code>try{        
       Long a=new Long(request.getCsId());    
  }catch(NumberFormatException nb){   
       LOGGER.debug("invalid number ");   
  }
  </code></pre>
  
  <p>SoapUi input :</p>
  
  <pre><code>&lt;soapenv:Envelope&gt;
  &lt;soapenv:Header/&gt;
  &lt;soapenv:Body&gt;
    &lt;alu:getCustomerStatisticsRequest&gt;
       &lt;alu:csId&gt;sss&lt;/alu:csId&gt;
    &lt;/alu:getCustomerStatisticsRequest&gt;
  &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>SoapUi output:</p>
  
  <pre><code>&lt;soapenv:Fault&gt;
     &lt;detail&gt;
        &lt;alu:UnexpectedErrorFault xmlns:alu="http://alu.services.ws.lhs.com"&gt;
           &lt;alu:faultcode/&gt;
           &lt;alu:faultstring&gt;java.lang.NumberFormatException: For input string: "sss"&lt;/alu:faultstring&gt;
        &lt;/alu:UnexpectedErrorFault&gt;
     &lt;/detail&gt;
  &lt;/soapenv:Fault&gt;
  </code></pre>